Repository navigation
fix(brief): slim no-mistakes contract behind version floor - #102
Merged
Merged
Conversation
no-mistakes v1.31.2 self-documents the validation mechanics in its own SKILL.md (refreshed from the binary on init) and live axi help output, including the review-always-gates, no-abort/rerun-mid-run, and never-idle-wait facts. fm-brief.sh's no-mistakes-mode Definition of done was restating all of that, a drift hazard since the brief lives in a different repo from the version-matched SKILL.md. Collapse the duplicated mechanics block to a ~3-line pointer at no-mistakes' own guidance and keep only the firstmate-specific wrapper: the done handshake, ask-user escalation to firstmate via rule 6, the --yes captain stance, and the CI-green reporting line.
leo1oel
added a commit
to leo1oel/nemo
that referenced
this pull request
Jun 27, 2026
…ckend (#13) Port upstream kunchenguid#104 to the herdr fork: bin/fm-crew-state.sh, a deterministic one-line read of a crew's CURRENT state. The status log is an append-only wake-event log, so tail -1 reports the last event, not the current state; after a resolved needs-decision/blocked the crew silently resumes and the log goes stale. The helper takes the matching no-mistakes run-step as the source of truth (attributed to the crew's branch via axi status then the run list), reconciles a stale needs-decision/blocked log line against it (flagging it superseded when the run resumed), and falls back to the pane busy-signature + status log when no run is active. The run-step stays authoritative over pane liveness, so a finished crew whose pane has closed still reports done/working. Scout/secondmate kinds and torn-down/missing crews are handled gracefully. herdr adaptation: reads handle= from meta (not tmux window=), and instead of reusing fm-tmux-lib.sh, the herdr busy/exists primitives (fm_herdr_pane_exists, fm_herdr_pane_agent_status, fm_herdr_pane_is_busy) are extracted into the shared fm-herdr-lib.sh and the away-mode daemon now delegates to them, so the incident-prone agent_status busy detection has one source of truth across the daemon and the helper rather than two copies. Wire AGENTS.md sections 5/7/8 and the docs to read current state via the helper and to stop inferring state from a tail of the status log; the status file stays the wake-event log. Add tests/fm-crew-state.test.sh (22 cases, self-contained per the fork's harness convention); the daemon's own pane-layer tests stay green after the delegation. Deferred this round: kunchenguid#102 (slim the no-mistakes brief behind a >=1.31.2 version floor) - 1.31.2 is an unreleased tag and our install channel ships 1.30.1, so slimming would point crewmates at self-documentation the running binary lacks; revisit when 1.31.2 releases. kunchenguid#103 (settle codex skill popups) is N/A - this fork is Claude-only.
This was referenced Aug 9, 2026
fritznoff
pushed a commit
to fritznoff/starship
that referenced
this pull request
Nov 2, 2026
) * fix(bin): catch up glasses events across watcher arms * no-mistakes(review): Captain: preserve watcher events across authenticated check sweeps * no-mistakes(review): Captain: capture watcher sweep boundary before catch-up * no-mistakes(document): Consolidate watcher continuity documentation * no-mistakes(lint): Suppress indirect fixture invocation lint warning
|
From FUL-2 (#67): the extension points for FUL-B056 and the box stop.
|
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
Slim firstmate's no-mistakes validation contract in bin/fm-brief.sh down to a short pointer plus the firstmate-specific wrapper, because no-mistakes now self-documents the validation mechanics in its own SKILL.md (refreshed from the binary on init) and live axi help output as of v1.31.2. The brief's no-mistakes-mode Definition of done was restating those mechanics verbatim-in-spirit, which is a drift hazard since the brief lives in firstmate's repo while the authoritative, version-matched guidance lives in no-mistakes' SKILL.md.
The deliberate change: in the no-mistakes (default) branch of the DOD heredoc, replace the ~18-line duplicated mechanics block (the 'During validation the pipeline owns every fix...' bullets covering process-every-return, gate/outcome return model, long-run-is-normal, backgrounding-vs-idle-wait, auto-fix respond mechanics, review-always-gates, and the abort/rerun-mid-run warning) with a 3-line pointer that tells the crewmate it drives gates by responding (not implementing fixes) and to follow no-mistakes' own version-matched guidance (SKILL.md loaded on /no-mistakes invocation, plus 'no-mistakes axi run --help' and the per-response help lines).
Deliberately KEEP only the firstmate-specific wrapper that no-mistakes cannot know: the done handshake (commit -> append 'done: {summary}' -> firstmate then instructs /no-mistakes), ask-user routing to FIRSTMATE via rule 6 / the status file rather than 'the user' with the decision fed back through axi respond, the --yes stance that the captain (not the crewmate) owns those decisions, and the post-CI-green 'done: PR {url} checks green' reporting line.
Constraints honored: edited ONLY the no-mistakes-contract section of the DOD heredoc; the direct-PR and local-only branches and every other part of fm-brief.sh are untouched. The orienting sentence intentionally stays in the brief because the crewmate reads the brief before it ever invokes /no-mistakes, so SKILL.md is not yet in its context at planning time. Verified before removal that the installed no-mistakes v1.31.2 SKILL.md carries the three dropped facts (review-auto-fix-disabled, no-abort/rerun-mid-run, never-idle-wait/backgrounding-ok), so none of them now live nowhere. A freshly-scaffolded brief was confirmed to read coherently and rule 6 still resolves for the ask-user cross-reference. This is a fresh retry after the prior run died with a transient 'daemon crashed during execution' at the test step (review had already passed with 0 findings); no code changed between runs.
What Changed
Risk Assessment
✅ Low: Captain, the diff is narrow and the added no-mistakes version floor directly addresses the prior regression risk without widening runtime behavior beyond bootstrap detection.
Testing
Inspected the target diff, ran the focused bootstrap, secondmate sync, and brief-related behavior tests, then captured reviewer-visible artifacts showing the generated crewmate brief now contains the slim no-mistakes pointer and firstmate-specific wrapper, and that bootstrap enforces the v1.31.2 no-mistakes floor; all checks passed and no working-tree artifacts were left behind.
Evidence: Generated no-mistakes-mode crewmate brief
Evidence: Brief contract check transcript
Evidence: Bootstrap no-mistakes version probe transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
bin/fm-brief.sh:211- The slimmed brief now delegates the removed validation mechanics to the installed no-mistakes guidance, but bootstrap only checks thatno-mistakesexists and does not enforce the v1.31.2+ capability that carries those details. Existing fleets with an older binary will scaffold briefs that no longer include the no-idle-wait/no-abort gate-loop safety rules, so validation can regress silently. Add a minimum version/capability check, or keep a fallback in the brief until that dependency is enforced.🔧 Fix: Enforce no-mistakes bootstrap version floor
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
Inspected target diff withgit diff --stat 9391e901001e13428a61f7de34e04f65a2bdaae1..c6058ca39a34e465947634929a27bd4aa5bd8711and focused file diffs forbin/fm-brief.sh,bin/fm-bootstrap.sh,tests/fm-bootstrap.test.sh, andtests/fm-secondmate-sync.test.sh.Rantests/fm-bootstrap.test.sh.Rantests/fm-secondmate-sync.test.sh.Rantests/fm-tangle-guard.test.sh.Generated a real no-mistakes-mode ship brief withFM_HOME=/var/folders/5x/4nqprlbx0518k3ybcb1sz6gr0000gn/T/no-mistakes-evidence/01KW3AQWJRMEKKDXSV8P10FN0D/brief-home bin/fm-brief.sh slim-contract-b5 alphaand checked required slim-contract lines plus removed duplicated mechanics phrases.Ran a fake-toolchainfm-bootstrap.shevidence probe showing no-mistakesv1.31.1reportsMISSING: no-mistakeswhilev1.31.2is accepted silently.Verified the working tree stayed clean withgit status --short.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.