Docs Review code

Decide, send back or approve

Decide each finding, add your own, then send the review back or approve it.

A review is not finished when the reviewer finishes. A person decides what each finding means for this change, then closes the round in one of two ways. Send back asks the developer to fix the items you marked. Approve passes the change. This page covers the three decisions, adding your own findings, turning a decision into a rule, and running a review again.

In the portal Reviews › a change › each finding, then Your decision in the rail Member

Before you start

  • You need the Member or Admin role. A viewer sees "Members and admins decide findings."
  • The round must have finished. While it runs, the page says "Reviewing… this page refreshes itself."
  • Read the findings first. See Read a review.

Decide each finding

Each open finding has three choices:

DecisionMeansReason
To fixThe developer must fix it. The review comment shows it as to fix.Optional
Accept the riskIt is real, but you accept it for this change. It is listed with your reason when you approve.Required
Not an issueThe finding is wrong, or does not matter here.Required
  1. On the review page, pick a decision under a finding.
  2. For Accept the risk or Not an issue, write why in Why? (required to accept the risk or mark it not an issue). A reason is at most 2,000 characters.
  3. Repeat for the other findings. To mark every undecided finding to fix at once, use Mark the undecided ones to fix in the rail.
  4. Press Save and come back later to save without closing the round, or go straight to Send back or Approve. Both save the decisions on the page first.

A decided card shows who decided it, for example "To fix by Sam" or "Not an issue by Ana". You can change a decision while the round is open. Security findings are decided only by the organisation's security owners (see Security reviewer).

Your reasons matter beyond this change. When the round closes (sent back, approved, or merged without either), Entropix records your decisions and reasons for the reviewer, and the rules it follows learn from them. A branch review's decisions are recorded as soon as you save them. See Rules.

Add your own finding

If you see a problem the reviewer missed, add it. A finding you write is yours. It is marked to fix, goes into the send-back with the reviewer's findings, and shows "written by" you.

  1. On the review page, choose Add your own finding above the findings (or Add a finding to send back when the reviewer found nothing).
  2. Fill in the form:
    FieldWhat to enterLimit
    AngleWhich of the nine angles it belongs toRequired
    How seriousWill break, Should fix or NoteRequired
    TitleA short name for the problem120 characters, required
    What is wrongThe problem, in your words600 characters, required
    What to change (optional)The fix you expect600 characters
    Where (optional)A file the change touches: file, file:line or file:line-lineMust be a changed file
  3. Press Add finding. You return to the review with your finding in the list.

Entropix does not read the line you name. The next round checks it, like any other item to fix. A review takes at most 10 findings written by people. You can add findings only while the round waits for a decision.

Make a rule from a decision

When a decision with a reason should apply to every future review, turn it into a rule. Make this a rule shows under a decided finding that has a reason.

  1. Choose Make this a rule. The form quotes your note and the finding.
  2. Pick where it Belongs to: the repository, or one of your agents.
  3. Pick the Kind: Flag it (always raise this) or Don't flag it (never raise this). A "not an issue" decision starts on Don't flag it.
  4. Write the Sentence (at most 300 characters) and Why (at most 600).
  5. Optionally set Applies to: one glob per line, gitignore-style. *.go is every Go file at any depth, payments/ is everything under that directory, and /payments/ anchors it to the repository root. Leave it empty to apply everywhere.
  6. Press Suggest rule.

A suggested rule reaches no agent until an admin, or a maintainer of an agent that holds it, approves it. The finding then shows the rule's state, for example "Suggested R-31 · waiting for a maintainer" or "R-31 · approved by Sam". See Rules.

The decision rail

The Your decision box in the rail counts the findings to fix, accepted, not an issue and undecided. It always offers one main next step:

WhenThe rail saysMain button
The reviewer found nothingNothing to decide. The reviewer raised no finding. Approve, or add your own finding to send it back.Approve, with Add a finding to send back beside it
Findings are undecidedDecide N more first, with a link to eachSend back once anything is marked to fix, else Approve
All decided, some to fixAll decided. Updates the review comment on the change with the N items. Under the button: "or mark them accepted to approve".Send back N items to fix
All decided, nothing to fixAll decided. Sets entropix/review to success on (commit).Approve, or Approve with N accepted risks
A requirement round is runningEntropix is checking the change against its PRD. Send back and Approve come back when the check finishes. Decisions you save here carry over.Save decisions
A branch reviewDecisions go to the reviewer's memory. A branch review has no change to send back.Save decisions
ClosedApproved by, Sent back by, Merged, Closed without merging, or Replaced by round NNone

The buttons are never greyed out. If something is missing, pressing one tells you what, and links to the finding. Open questions never block a decision: the rail says "N questions are still open: you can approve anyway."

Send it back

Send back when at least one item is marked to fix and every finding is decided. You need the Member role.

  1. Decide every finding, with at least one To fix.
  2. Press Send back N items to fix in the rail.

The page says "Sent back. The items are on the change." Entropix updates its review comment on the merge request to "Changes requested by (name)" (see The review comment). It shows:

  • every finding of the round with its decision word: to fix, risk accepted or not an issue (your reasons stay on the portal);
  • any open questions;
  • the command to fix it from the editor, for example /entropix:fix-review acme/shop!7.

The status entropix/review becomes failure when a Will break item is to fix, and pending otherwise, for example "Sent back · 3 items to fix (1 will break)". The review channel's line in Slack, Discord or Teams is updated too. The rail now shows the same fix command, for the author to run. See Fix a review and review again.

Approve it

Approve when nothing is marked to fix and every finding is decided. You need the Member role.

  1. Decide every finding as Accept the risk or Not an issue, with a reason.
  2. Press Approve (or Approve with N accepted risks).

The page says "Approved." Entropix sets entropix/review to success on the reviewed commit, "Approved in Entropix by (you) · round N". It updates its review comment to "Approved by (you)", with each finding's decision word and the questions still open. A push after approval starts a new round, and the status goes back to pending.

Re-run a review

To have the reviewer read the same commit again, for example after you answered its questions or changed its know-how, open About this review in the rail and press Re-run review. With answered questions, it reads Re-run review with the answers. You need the Member role.

  • The re-run replaces this round with a new review of the same commit and the same round number.
  • Each review can be re-run once.
  • Only the change's current round can be re-run, and only while it is being reviewed or waits for a decision. After you send it back or approve it, a new push starts the next round instead.
  • A review that got a quick read offers Review deeper in place of Re-run review (see Review depth, packs and learning).

On the Git host, the comment /entropix review does the same (see Run a review again from the Git host). A round that did not finish has its own Retry button (see A round that did not finish).

What you can and can't do

You can
  • Change a decision while the round is open.
  • Save decisions and come back later.
  • Add up to 10 findings of your own to a review.
  • Turn a reasoned decision into a suggested rule.
  • Approve with open questions.
You can't
  • Decide as a Viewer.
  • Accept a risk or mark something not an issue without a reason.
  • Send back with nothing to fix, or approve with anything to fix.
  • Change a round after it is sent back or approved. The next push starts a new round.
  • Decide a security finding unless you are a security owner.

Troubleshooting

MessageWhat it means
F-4 needs a reason — say why it is accepted risk / not an issueAdd a reason to that finding, then try again.
N findings are undecided — decide every finding firstDecide the rest, or use Mark the undecided ones to fix.
nothing is marked to fix — approve insteadYou pressed Send back with nothing to fix.
N findings are marked to fix — send it back insteadYou pressed Approve with items to fix.
this round is already closed — push a fix or retry to start anotherSomeone already sent it back or approved it.
this is not the change's current roundA newer round exists. Open it from Rounds.
a review takes at most 10 findings written by peopleThe review already has 10 findings people wrote.
… is not one of the files this change touchesIn Where, name a file the change touches, or leave it empty.
the place is a file, file:line or file:line-lineFix the format of Where.