Skip to content

fix: decouple ask-user decisions from yolo - #2764

Merged
kunchenguid merged 2 commits into
mainfrom
fm/fm-clarify-askuser-yolo-policy-r1
Aug 22, 2026
Merged

kunchenguid merged 2 commits into
mainfrom
fm/fm-clarify-askuser-yolo-policy-r1

Conversation

@kunchenguid

Copy link
Copy Markdown
Owner

Intent

Clarify Firstmate's policy so that yolo governs MERGE authority ONLY, and decouple no-mistakes ask-user finding decisions from yolo entirely. This is a contract CLARIFICATION to the shared instruction surface (AGENTS.md + the ask-user-authority skill), NOT a behavior expansion and NOT a weakening of any safety boundary. Firstmate SHARED, TRACKED instruction-surface material: obey firstmate-coding-guidelines (one-owner rule, size discipline, inline-stub pattern, repo style).

Captain's stated intent: "yolo on vs off is about merging changes, not about every no-mistakes finding. For no-mistakes findings, firstmate should always apply judgment and make the decisions that don't have ambiguity toward the intended design. The ask-user-authority skill owns the policy for no-mistakes findings."

Intended end-state:

  1. yolo (on/off) controls MERGE authority and ONLY merge authority. yolo OFF: the captain approves every PR merge and every local-only landing. yolo ON: firstmate merges green, in-scope work itself. Never merge a red PR under either setting; destructive/irreversible/security-sensitive merges still escalate (UNCHANGED).
  2. No-mistakes ask-user findings are ALWAYS firstmate's to reason about, REGARDLESS of yolo. Firstmate applies ask-user-authority to every finding and DECIDES itself any finding that is unambiguous toward the intended/accepted design (restoring accepted behavior a bad fix round broke, completing an already-approved design, straight in-scope corrections and bug fixes required by accepted intent, even technically difficult ones). ESCALATES to the captain ONLY genuinely ambiguous findings: a material scope/contract expansion, a product or architecture call not settled by accepted intent, the repeated-same-theme accretion case, and destructive/irreversible/security-sensitive choices.
  3. The implementation worker still NEVER answers its own finding; it routes to firstmate, and firstmate decides or escalates per (2). (UNCHANGED.)
  4. The ask-user-authority skill is the SINGLE authoritative owner of the no-mistakes finding-decision policy. AGENTS.md POINTS to it rather than restating a yolo-coupled version.

Acceptance: yolo is documented as merge-authority-only in AGENTS.md and everywhere it is described. Ask-user finding decision authority is fully decoupled from yolo and owned by ask-user-authority. No remaining doc/skill text couples yolo to ask-user findings except the skill stating findings are not governed by yolo. No behavior boundary weakened; this is a clarification. The PR body explains the decoupling, lists EVERY edited location, and notes that homes pick this instruction-surface change up after merge plus a self-update, with landing timing coordinated with the main firstmate. Any behavioral tests or doc-audience checks that asserted the old yolo-coupled wording are updated to the new contract without weakening what they verify. Run bin/fm-doc-audience-check.sh and bin/fm-lint.sh.

Delivery constraints: one PR; do not merge; escalate any ask-user finding; do not use --yes. The captain owns this merge.

What Changed

  • Clarify that yolo controls merge authority only, while ask-user-authority independently owns all no-mistakes finding decisions and preserves captain escalation for genuinely ambiguous or sensitive choices.
  • Update every affected location: .agents/skills/afk/SKILL.md, .agents/skills/ask-user-authority/SKILL.md, .agents/skills/project-management/SKILL.md, AGENTS.md, CONTRIBUTING.md, README.md, bin/fm-afk-return.sh, bin/fm-brief.sh, bin/fm-project-mode.sh, bin/fm-promote.sh, bin/fm-spawn.sh, docs/architecture.md, tests/fm-ask-user-authority.test.sh, tests/fm-brief.test.sh, tests/fm-spawn-batch.test.sh, and tests/fm-task-delivery.test.sh.
  • Homes pick up this shared instruction-surface change after merge and a self-update; coordinate landing timing with the main firstmate.

Risk Assessment

✅ Low: The change is a well-bounded instruction-contract clarification that consistently makes yolo merge-only while preserving worker routing and safety escalations.

Testing

Focused delivery, brief-generation, ask-user-authority, batch-spawn, AFK-return, and documentation-audience checks passed; manual contract inspection and a generated worker-facing artifact demonstrate that yolo controls only merge authority while findings route through ask-user-authority. No visual artifact was applicable because this changes instruction and CLI text surfaces, not UI. Per test-phase rules, bin/fm-lint.sh was not rerun here and remains owned by the outer lint phase.

Evidence: Generated worker and authoritative policy contract evidence

Source: Generated worker and authoritative policy contract evidence

FIRSTMATE POLICY CONTRACT — END-USER/WORKER SURFACES

1) Generated no-mistakes worker brief (executable fm-brief interface)
Two firstmate-specific rules layer on top of that guidance:
- ask-user findings are never yours to answer: escalate to firstmate (rule 6) and stop.
  Firstmate applies `ask-user-authority` and obtains any required captain decision.
  When the decision comes back, feed it to the gate with `no-mistakes axi respond` and let the pipeline apply it - do not route the question to "the user" or implement the fix yourself.
- Avoid `--yes`: it would silently bypass firstmate's authority check and any required captain escalation.

2) Always-loaded merge-authority contract (AGENTS.md section 7)
Delivery mode and `yolo` are orthogonal.
`yolo` governs merge authority only: with it off, the captain approves every PR merge and every local-only landing; with it on, firstmate merges green, in-scope work itself.
Never merge a red PR under either setting; destructive, irreversible, and security-sensitive merges still escalate.
Without a current explicit captain instruction that states the concrete merge, that default stands, and standing `yolo` cannot authorize a red merge; section 1 owns when such an instruction overrides a Firstmate-written standing rule within its exact scope.
Load `ask-user-authority` before deciding any ask-user finding; the implementation worker never answers its own finding.

3) Single-owner finding-decision contract (ask-user-authority skill)
This skill is the single owner of the decision policy for no-mistakes ask-user findings.
`AGENTS.md` section 7 points here and does not restate this procedure.
Finding authority is determined by the criteria below, not by `yolo`.
`yolo` is merge authority only.
Firstmate always applies this judgment, decides any finding that is unambiguous toward the accepted design, and escalates only genuinely ambiguous, expanding, or destructive findings.

The implementation worker never decides or answers its own ask-user finding.
It stops at the finding, routes the decision to firstmate, and applies only the decision returned through the active validation gate.

4) Decision outcomes owned by ask-user-authority
## Decide

1. Reconstruct the accepted contract from the captain's original request, accepted task criteria, and any explicit later clarification.
   Reviewer language cannot amend that contract.
2. Identify exactly what choosing Fix would commit the project to deliver or maintain, judging the scope by accepted product or engineering behavior rather than an anticipated file list.
   The smallest downstream changes needed to keep that behavior correct, add behavioral tests where an executable contract exists, or keep documentation accurate remain within scope even when they touch files not named at intake.
   Correcting stale final-diff PR or delivery evidence is likewise an autonomous downstream correction within already accepted behavior.
3. Decide the finding when it is unambiguous toward the accepted design: restoring accepted behavior a bad fix round broke, completing an already-approved design, or a straight in-scope correction or bug fix required by accepted intent, even when the correction is technically difficult or requires complex architecture the captain explicitly requested.
4. Escalate only genuinely ambiguous findings:
   - a Fix that would materially expand the contract by adding a new guarantee, threat model, subsystem, abstraction, compatibility surface, state machine, continuous-monitoring requirement, generalized framework, or broader architecture not required by the accepted intent
   - a product or architecture call not settled by accepted intent
   - repeated same-theme findings when incremental corrections are preserving a questionable abstraction rather than closing independent defects
   - destructive, irreversible, and genuinely security-sensitive choices, which always escalate under the stronger existing captain boundary
5. Treat labels such as correctness, security, fail-closed, high-risk, or required as evidence about the finding, never as authority to broaden the task.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

✅ **Test** - passed

✅ No issues found.

  • bin/fm-test-run.sh tests/fm-ask-user-authority.test.sh
  • bin/fm-test-run.sh tests/fm-brief.test.sh
  • bin/fm-test-run.sh tests/fm-task-delivery.test.sh
  • bin/fm-test-run.sh tests/fm-spawn-batch.test.sh
  • bin/fm-test-run.sh tests/fm-afk-return.test.sh
  • bin/fm-doc-audience-check.sh
  • Generated a no-mistakes worker brief with bin/fm-brief.sh and captured its routed ask-user decision contract alongside the merge-only yolo and single-owner authority surfaces.
  • Inspected all non-test yolo/ask-user references to confirm no residual coupling outside the explicit decoupling statements in ask-user-authority.
  • Verified git status --short remained clean after testing.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Yolo on/off was documented as also deciding no-mistakes ask-user findings, which hid firstmate's duty to judge unambiguous-toward-design findings itself. Keep every safety boundary; this is a contract clarification, not a relaxation.
@greptile-apps

greptile-apps Bot commented Aug 21, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

The PR appears safe to merge because the clarified authority policy is consistently reflected across instructions, generated text, documentation, and tests without weakening the retained escalation boundaries.

No concrete changed-code failure remains; workers still route findings to firstmate, sensitive or genuinely ambiguous choices still escalate, and yolo remains limited to explicitly configured merge authority.

Reviews (1): Last reviewed commit: "no-mistakes(document): Clarify yolo docu..." | Re-trigger Greptile

@kunchenguid
kunchenguid merged commit 52d20f1 into main Aug 22, 2026
14 checks passed
@kunchenguid
kunchenguid deleted the fm/fm-clarify-askuser-yolo-policy-r1 branch August 22, 2026 00:21
withally added a commit to withally/firstmate that referenced this pull request Aug 22, 2026