Skip to content

contract: direct-PR ship tasks get one independent review before merge - #1

Merged
alandomio merged 2 commits into
mainfrom
contract-direct-pr-review-standard
Aug 19, 2026
Merged

alandomio merged 2 commits into
mainfrom
contract-direct-pr-review-standard

Conversation

@alandomio

Copy link
Copy Markdown
Owner

Why it matters

direct-PR is the only delivery mode with no review step of its own. no-mistakes owns review on its path, local-only lands through a guarded merge, and direct-PR runs implementation straight to an opened review request awaiting the merge authority. Nothing sits between the implementing worker's self-review and the captain.

On 2026-08-19 four direct-PR ship tasks in ai-monorepo were each given one independent scout review after their merge request was opened. All four reviews found confirmed defects, including two that regressed behaviour which had previously worked:

  • a fix that reproduced its own bug on a second code path, in the very field the ticket had added
  • a classifier matching a bare word, asserting a false premise to a model as fact
  • two fixes to one function that collided on their own target case
  • a merge request whose stated validation evidence did not survive re-running

Every one had already passed the implementing worker's own self-review. That is the gap this closes: self-review by the author does not catch this class, and direct-PR has nothing after it.

Change

AGENTS.md section 7, "Selected delivery path and approval authority" — the three sentences owning review authority are patched in place rather than extended, per the one-owner rule in firstmate-coding-guidelines:

  • no-mistakes keeps owning review on its own path, wording unchanged in substance
  • a direct-PR ship task now gets exactly one independent scout review before the configured merge authority decides, with the reason stated inline: that mode carries no pipeline review of its own
  • the reviewing scout never changes code, and its findings return as a captain decision under section 9
  • the anti-stacking rule is preserved and widened to cover both paths explicitly
  • a further review beyond that single pass still requires an explicit captain request

Cross-reference reconciled: section 7's intake classification previously framed scout work as appropriate only when the captain explicitly requests it, which the new standing review would have contradicted. It now admits the standing direct-PR review without becoming a second copy of the rule.

Validation
  • bin/fm-doc-audience-check.sh — pass
  • bin/fm-lint.sh — pass
  • One full sentence per line, plain dashes, no agent co-author

Not run: the no-mistakes pipeline. This repo's own contract ships shared tracked material through that pipeline, and it has not run against this branch. The two checks above were run directly. Treat this as unvalidated by the pipeline until it does.

Ticket deviations

No ticket — filed directly from a captain instruction.

The scope is deliberately broader than the evidence strictly supports: every direct-PR ship task in every project, generalised from four tasks in one repository on one day. Justification: in none of the four cases was the failure class predictable from the surface, so a "review only risky-looking changes" rule would have missed all four. A narrower rule keyed on product-facing or shared-contract surfaces is defensible and was considered.

Follow-ups
  • The vocabulary of AGENTS.md is GitHub-flavoured: 25 mentions of "PR", zero of "MR", while every project this fleet manages is GitLab. direct-PR is additionally a literal accepted flag value in six bin/*.sh scripts and in data/projects.md entries, so a rename is a breaking change needing its own task rather than a wording fix.
  • Standing cost: one scout per direct-PR review request. Worth revisiting if it proves disproportionate on small changes.

Alan Domio added 2 commits August 19, 2026 15:43
Four direct-PR ship tasks reviewed on 2026-08-19 each surfaced a
confirmed defect that the implementing worker's own self-review had
missed. direct-PR is the one delivery mode with no review step of its
own, so it now gets exactly one independent scout review of its opened
PR before the merge authority decides, never stacked, never inferred
from risk alone, with any further review still gated on an explicit
captain request.
Say "the pull or merge request it opened" instead of "PR" so the new
review-standard sentence reads correctly for GitLab projects too, not
just GitHub ones. The direct-PR mode name itself is unchanged; renaming
it is a separate, out-of-scope task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant