This repository was archived by the owner on Oct 24, 2026. It is now read-only.
Repository navigation
feat(brief): add shared no-mistakes daemon safety rule to briefs - #10
Merged
Merged
Conversation
Reuses the equivalent-content fix from held upstream PR kunchenguid#267 (fork-local only; upstream contribution stays a separate deliberate act). Extends tests/fm-brief.test.sh with coverage that both scaffolds emit the rule.
…y for tests/fm-brief.test.sh to mention the new daemon-rule coverage; no other docs referenced the brief's rule content.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Add a shared-daemon safety rule to both ship and scout briefs: workers report daemon errors and escalate them to the supervisor instead of stopping, restarting or updating the shared service. Verify that both brief types render the rule correctly and that the focused tests pass.
What Changed
# Rulessections inbin/fm-brief.sh's scaffold: crewmates must never stop, restart, or update the shared no-mistakes daemon, and must instead append ablockedstatus and escalate daemon errors to firstmate.tests/fm-brief.test.shwith new assertions verifying the daemon rule renders correctly, with proper numbering, in both generated ship and scout briefs.CONTRIBUTING.md's test-file table entry fortests/fm-brief.test.shto mention the new daemon-rule coverage.Risk Assessment
✅ Low: Small, additive doc/text change to a shell heredoc scaffold (a new numbered rule appended verbatim to both ship and scout blocks) plus two matching new tests; verified bash -n still parses and the rule numbering/quoting matches existing conventions.
Testing
Ran the targeted test file tests/fm-brief.test.sh directly (all 5 checks pass, including the two new tests asserting the daemon rule appears in generated ship and scout briefs), then manually regenerated both brief types in a scratch temp home and visually confirmed rule 7's exact wording, numbering continuity, and quoting style match the surrounding rules in both scaffolds; the configured full baseline suite had already passed per the task setup, and a full re-run timed out only due to unrelated long-running e2e/backend tests in this large repo, not this change.
Evidence: Generated ship brief with new daemon rule
Evidence: Generated scout brief with new daemon rule
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.
command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; exit "$rc"bash tests/fm-brief.test.sh (all 5 assertions pass, including the two new daemon-rule checks for ship and scout briefs)Manually generated a ship brief (./bin/fm-brief.sh brief-verify-ship1 demo-project) and a scout brief (./bin/fm-brief.sh brief-verify-scout1 demo-project --scout) in a scratch FM_HOME, then inspected the rendered# Rulessections to confirm rule 7 appears verbatim with correct numbering in bothgit diff --stat against base commit to confirm only bin/fm-brief.sh and tests/fm-brief.test.sh changedgit status --porcelain to confirm no leftover artifacts in the worktree after cleanup✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.