Repository navigation
fix: require complete captain-facing final responses - #4779
Merged
Merged
Conversation
kunchenguid
force-pushed
the
fm/fm-final-response-must-carry-key-info-r1
branch
from
September 17, 2026 22:16
af6268c to
437c56d
Compare
vifar
added a commit
to vifar/firstmate
that referenced
this pull request
Sep 18, 2026
Intent
Captain ask (minimal instruction tweak, ALL harnesses): the captain may not read mid-turn messages. When the agent responds, the FINAL response message must include ALL key information the captain needs from the whole turn - even if it was already said in a mid-turn message.
Failure shape this session: after supervision-branch processing, MAIN often put substance BEFORE fm_branch_processed and only a short trailing line after tools (e.g. "Captain, shipshape." or "Awaiting your merge call." without the PR URL). The captain's live UI showed only the short line; the mid-turn / pre-tool text was easy to miss or Calm-hidden as working notes.
This GENERALIZES the already-landed #4738 (which covered shipshape-vs-outcome and PR-URL-in-visible-reply for branch-outcome turns): the rule here is that the FINAL message is the captain-facing packet for the WHOLE turn, on EVERY harness - not only branch-outcome turns.
What Changed
AGENTS.md.Risk Assessment
✅ Low: The change is a small, well-bounded documentation update that satisfies the final-response requirement and resolves the prior no-batching ambiguity.
Testing
After correcting an unsupported Pi model selection, I drove live Pi and Grok turns through real tool calls: both final responses repeated key pre-tool information, and Pi preserved separate decision asks while recapping both outstanding decisions. All targeted scenarios passed, with transcripts captured as evidence.
Evidence: Pi natural branch-outcome final-response transcript
Source: Pi natural branch-outcome final-response transcript
Evidence: Grok natural non-branch blocker final-response transcript
Source: Grok natural non-branch blocker final-response transcript
Evidence: Pi separate decisions and final visibility recap transcript
Source: Pi separate decisions and final visibility recap transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
GROK_BOT.md:31- The new instruction to follow AGENTS.md section 9 conflicts with GROK_BOT.md:27. The authoritative intent requires the final message to include every needed decision from the whole turn, but line 27 requires one message per decision and forbids batching unrelated decisions. If two workers simultaneously need separate merge approvals, the final message must either omit the earlier decision or violate the no-batching rule. Please authorize clarifying that the standalone final packet may recap all decisions, or otherwise define precedence.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
git diff --unified=80 5e879badbd1ecd3aab3a0eeb45e9502362ffd6cc..437c56d48edd2d1d44fc75053ebc4df6831eea23pi --provider openai-codex --model gpt-5.6-sol --mode json --no-session --no-extensions --no-skills --tools bash --approve -p <natural branch-outcome prompt>grok --cwd "$PWD" --single <natural non-branch blocker prompt> --output-format streaming-messages-json --permission-mode bypassPermissions --tools Bash --max-turns 3pi --provider openai-codex --model gpt-5.6-sol --mode json --no-session --no-extensions --no-skills --tools bash --approve -p <separate-decisions adversarial prompt>✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.