Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,12 @@ Supervise all live work under section 8.
### Selected delivery path and approval authority

The selected delivery path owns its own rigor.
When no-mistakes is selected, no-mistakes alone owns review, fixes, tests, documentation, push, PR, and CI; otherwise follow the faster path without adding an independent reviewer.
Never hold work outside no-mistakes for a manual clean verdict, stack serial manual reviews, or infer authority for one from security, architecture, or risk alone.
A separate review or audit is allowed only when the captain explicitly requests that deliverable or the authorized task is a knowledge-only review; one named question remains scoped to that question.
For every PR-based ship task, after the implementation commit and before raising a PR (for direct-PR) or starting `/no-mistakes` (for no-mistakes), the worker must launch `@oracle` to review the exact committed range, absorb its correctness and risk findings, and resolve actionable findings.
This provides independent review evidence for the worker, not merge authority and not a replacement for the selected delivery path's own validation or the captain's merge decision.
For direct-PR tasks, if `@oracle` is unavailable, the worker discloses the fallback and proceeds.
For no-mistakes tasks, the worker runs `@oracle` before starting `/no-mistakes` and includes actionable findings or fallback disclosure in `--intent` before validation starts, so Oracle review does not create an unsanctioned manual clean-verdict gate outside the pipeline.
Never hold work for an unsanctioned manual clean verdict, stack serial manual reviews, or infer merge authority for a reviewer from security, architecture, or risk alone.
A separate review or audit, such as an explicit `@lelouch` post-PR review, is performed only when the captain explicitly requests that deliverable or the authorized task is a knowledge-only review; one named question remains scoped to that question.
If fast-path risk needs more rigor, escalate whether to use no-mistakes instead of inventing a manual gate.
The path's worker, automated gates, and captain approval remain authoritative:

Expand Down
9 changes: 4 additions & 5 deletions bin/fm-brief.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ case "$MODE" in
This project ships **direct-PR**: you raise the PR yourself, without the no-mistakes pipeline.
The task is complete only when committed on your branch.
Before pushing or requesting a PR, you must ask \`@oracle\` for a fresh read-only review of the complete committed range and verification evidence, using rule 10's exact base/HEAD commands.
Resolve every finding and rerun affected checks; if \`@oracle\` is unavailable, append \`blocked: {why}\` and stop without requesting a PR.
Resolve every finding and rerun affected checks; if \`@oracle\` is unavailable, disclose the fallback and proceed.
When it is implemented, reviewed, and committed, push your branch and open a PR with \`gh-axi\`, then append \`done: PR {url}\` to the status file and stop.
Do NOT run /no-mistakes. The configured merge authority decides whether to merge the PR; firstmate relays the outcome.
EOF
Expand All @@ -346,13 +346,12 @@ EOF
RULE1='1. Never push to the default branch. Never merge a PR.'
IFS= read -r -d '' DOD <<EOF || true
# Definition of done
The task is complete only when committed on your branch.
When you believe it is complete, append \`done: {summary}\` to the status file and stop.
Firstmate will then instruct you to run /no-mistakes to validate and ship a PR.
The task is complete only when committed on your branch, reviewed by \`@oracle\`, and validated through /no-mistakes.
Before starting /no-mistakes, ask \`@oracle\` for a fresh read-only review of the complete committed range and verification evidence, using rule 10's exact base/HEAD commands. Resolve every finding and rerun affected checks; if \`@oracle\` is unavailable, disclose the fallback.

You drive no-mistakes by responding to its gates, not by implementing fixes.
Follow the guidance no-mistakes itself provides for the mechanics: it loads when you invoke /no-mistakes, and \`no-mistakes axi run --help\` plus the \`help\` lines in each \`axi\` response are authoritative and version-matched to the installed binary.
When starting no-mistakes, make \`--intent\` preserve all relevant content from this brief's \`# Task\` section plus every later accepted Firstmate requirement, clarification, constraint, exclusion, and supersession, carrying only each requirement's current accepted form; retain direct requirements instead of substituting a diff summary, and exclude generic operational, status, delivery, and other scaffold boilerplate unless it is task-specific.
When starting no-mistakes, make \`--intent\` preserve all relevant content from this brief's \`# Task\` section plus every later accepted Firstmate requirement, clarification, constraint, exclusion, and supersession, carrying only each requirement's current accepted form, along with any actionable \`@oracle\` findings or fallback disclosure; retain direct requirements instead of substituting a diff summary, and exclude generic operational, status, delivery, and other scaffold boilerplate unless it is task-specific.
Do not hand-edit, commit, or fix findings yourself while a run is active - the pipeline applies every fix.

Two firstmate-specific rules layer on top of that guidance:
Expand Down
6 changes: 6 additions & 0 deletions tests/fm-brief.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ test_faster_paths_use_configured_authority_without_stacked_review() {
"direct-PR brief lost configured merge authority"
assert_grep "Before pushing or requesting a PR, you must ask \`@oracle\` for a fresh read-only review of the complete committed range and verification evidence, using rule 10's exact base/HEAD commands." "$brief" \
"direct-PR brief lost its mandatory exact-range Oracle review"
assert_grep "if \`@oracle\` is unavailable, disclose the fallback and proceed." "$brief" \
"direct-PR brief lost its unavailable Oracle fallback disclosure instruction"
assert_no_grep "The captain reviews and merges the PR" "$brief" \
"direct-PR brief hard-coded captain-only authority"
id="brief-local-authority-a4"
Expand Down Expand Up @@ -337,6 +339,10 @@ test_no_mistakes_dod_wording() {
# shellcheck disable=SC2016 # single quotes are deliberate: the backticks must stay literal
assert_grep '`help`' "$brief" \
"no-mistakes DOD must render literal backticks around help"
assert_grep "Before starting /no-mistakes, ask \`@oracle\` for a fresh read-only review of the complete committed range and verification evidence, using rule 10's exact base/HEAD commands." "$brief" \
"no-mistakes DOD must require exact-range Oracle review before starting /no-mistakes"
assert_grep "along with any actionable \`@oracle\` findings or fallback disclosure" "$brief" \
"no-mistakes DOD must require --intent to include actionable Oracle findings or fallback disclosure"
assert_grep "make \`--intent\` preserve all relevant content from this brief" "$brief" \
"no-mistakes DOD must require --intent to retain the accepted task contract"
assert_grep "carrying only each requirement's current accepted form" "$brief" \
Expand Down