Skip to content

Learning from corrections ​

Built When people correct the bot, the correction is kept, counted, and can become a rule. This is one part of "From correction to check": the same mistake should not come back.

Rule proposals from ignore ​

When someone answers a finding with @octryx ignore, the bot proposes a team rule, for example:

Do not report in src/cart/total.ts: rounding of the discount (reason: the shop rounds once at checkout).

Workspace admins and owners decide in the PR review bot section under Rule proposals: Accept, Accept edited rule or Reject. An accepted rule (at most 500 characters) goes into this repository's code-style rules, and the bot follows it from the next review on. Decided proposals stay listed under Decided.

Corrections the bot collects ​

Work › Coding rules with proposed checks, shown with sample data, and the built-in rules
Work › Coding rules: proposed checks (sample data so far) above the rules the agent follows.

These feed the Workspace's correction store:

  • Answers to findings: a comment by a linked person with a Workspace role that is not a command and at least 12 characters long.
  • On GitHub: the text of submitted review summaries, and comments on pull requests closed or merged in the last 24 hours. Commands in these are never acted on.
  • Fixed findings: findings that a later pass found fixed.

The bot's own replies ("✅ Fixed in", "Still open after", "◐ Partly fixed", "↩️ Withdrawn", "🙈 Ignored by", its explanations and fix-run notes) never count as corrections, even when the bot posts under a person's login.

Workflow runs add corrections too: a change request with a reason (at a confirmation or the functional acceptance), the cause of a red pipeline (a style error, a failed command, a missing proof test, a test not red on the base), and a refused tool call together with the call that worked next.

Each correction is redacted for secrets and stripped of the names of the Workspace's members and the comment's author. It is grouped with similar ones (same kind of check, file pattern and message, per Workspace, repository and app) and counted. Once a group repeats (twice by default), it is marked as over the threshold. Turning that into a proposed check, approved four-eyes, is being built.

StepStatus
Corrections captured and countedBuilt
Rule proposals from ignore, accepted into the code-style rulesBuilt
Corrections from workflow runs (change requests, red pipelines, refused calls)Built
A proposed check approved on its own screen, four-eyesBuilding screen and rules built, shown with sample data only
Proposing a check and proving it automaticallyBuilding
Reverted commits as a source of correctionsPlanned

Octryx AI v0.0.1-alpha · Apache 2.0 · octryx.ai