Repository navigation
feat(bin): require crewmate briefs to declare invoked/skipped skills in status - #20
Merged
Merged
Conversation
…in status No worker has ever reported using a project-specific skill or procedure the brief prescribed (e.g. GOPlanner's implement-ticket, prescribed in roughly thirty briefs with zero matches in any status log), so firstmate has been relaying "the worker followed the procedure" on the brief's say-so alone. Extend Rule 4's status-protocol contract in ship and scout briefs so the first substantive status line must declare which prescribed skills/procedures were invoked, which were not and why, or that none were prescribed - making the claim verifiable from the status log itself. Placed in Rule 4 rather than Grounding: Grounding governs a specific universal action (PP Brain/memory search) and reports search results, while this is required content of the status line Rule 4 already mandates. The secondmate charter omits it, matching the existing Grounding omission, since its own crewmates each carry the same contract in their own briefs. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DixNDod4Ys5N76Ux3NRhWH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Extend the generated crewmate brief (bin/fm-brief.sh) so every worker declares, in its first substantive status line, which project-specific skills or procedures it invoked - and just as importantly which prescribed ones it did not and why - so skill usage becomes verifiable from the status log instead of assumed.
Background: firstmate briefs routinely prescribe a project-specific procedure (e.g. GOPlanner's implement-ticket, prescribed in roughly thirty briefs), but no status log has ever reported one being invoked. Concrete evidence: GOP-269 was dispatched with implement-ticket prescribed, but the ticket never moved to "In corso" and received no worker comment, both things that skill explicitly requires. The captain asked for this to become verifiable rather than assumed.
Design constraints applied:
working:line before the firstdone:/failed:; the new sentence attaches directly onto that existing mandate). Making Grounding own it would have conflated two logically separate compliance signals and required the grounding-search report and the skill declaration to always coincide, which they do not.working:line" mandate; scout: "the first status line you send, whatever its state").Verification performed: generated all 5 brief variants (ship x3 modes, scout, secondmate) into a scratch location via bin/fm-brief.sh and inspected each - the new text renders correctly, reads coherently in place, and does not collide with the existing Grounding section or the "note: CANDIDATE" durable-finding text. Confirmed the secondmate charter correctly omits both Grounding and the new requirement. Added a new test (test_skill_declaration_required_in_first_status_line) to tests/fm-brief.test.sh following the existing test_grounding_section_requires_search_and_reporting pattern, checking ship, scout, and secondmate-omission; the full fm-brief.test.sh suite (29 tests) passes, and bin/fm-lint.sh (shellcheck + actionlint) is clean. The script's own header comment documentation was updated to describe the new requirement and the Grounding-vs-Rule-4 ownership decision.
Out of scope, explicitly not touched: AGENTS.md, the supervision protocol, and the status classifier (bin/fm-classify-lib.sh) - this is a change to what the generated brief asks of a worker, not to how firstmate itself parses or classifies status lines.
What Changed
bin/fm-brief.sh: extends Rule 4's status-protocol contract in both the ship brief (all three delivery modes) and the scout brief so the first substantive status line must declare which of the task's prescribed project-specific skills or procedures the worker invoked, and which prescribed ones it did not and why (or state explicitly that none were prescribed). The secondmate charter is left unchanged since its crewmates each receive their own generated ship/scout brief carrying this same requirement.tests/fm-brief.test.sh: addstest_skill_declaration_required_in_first_status_line, verifying the ship brief, scout brief, and secondmate-charter omission, following the existingtest_grounding_section_requires_search_and_reportingpattern.🤖 Generated with Claude Code
Risk Assessment
✅ Low: Change is a small, well-bounded addition of static guidance text to generated brief templates (bin/fm-brief.sh), fully matches every stated design constraint (applies to all 3 ship modes + scout, correctly omitted from secondmate charter, attaches to existing Rule 4 status-line mandate rather than Grounding or a new line), leaves the status classifier and AGENTS.md untouched as promised, and is covered by a new test following an already-accepted generated-artifact-contract test pattern.
Testing
Targeted test suite (tests/fm-brief.test.sh, 29 tests) passes fully including the new declaration-requirement test, and manual generation of ship/scout briefs confirms the new sentence renders correctly in the actual generated brief text that workers receive — the end-user-facing artifact for this change. No regressions found; scratch demo directory was removed and the worktree is clean.
Evidence: Rendered ship brief Rule 4 excerpt showing new skill-declaration requirement attached to the existing first-substantive-working-line mandate
Evidence: Rendered scout brief Rule 4 excerpt showing new skill-declaration requirement attached to the existing first-status-line mandate
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.
bash tests/fm-brief.test.sh (29/29 passed, incl. test_skill_declaration_required_in_first_status_line covering ship, scout, and secondmate-omission)Manual: FM_HOME=/tmp/fm-brief-demo bin/fm-brief.sh demo-ship some-proj --mode no-mistakes; inspected rendered Rule 4 textManual: FM_HOME=/tmp/fm-brief-demo bin/fm-brief.sh demo-scout some-proj --scout; inspected rendered Rule 4 text✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.