Repository navigation
Conversation
…nd align settlement status exclusions
…eration documentation
peterOC26
force-pushed
the
fm/fm-claude-spend-cuts-pick-c2
branch
from
November 9, 2026 13:56
3898b10 to
dcdd7ae
Compare
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
Captain wants to save Claude Code tokens, which is why he asked to update firstmate (2026-11-08 ~22:55Z chat: "we want to save claude code tokens ... answer all questions with your recommendation 80% plus"). The study data/fm-claude-spend-checks-c1/report.md (with data/fm-claude-spend-checks-c1/astra-opinion.md beside it) ranked six cuts to guard-wake spend; the decision, now that upstream sync #45 has merged, is to build rows 1 and 2 locally and row 3 as a firstmate repo fix; rows 4-6 stay out (row 4 is covered by fm-startup-record-held-compact-b1).
The referenced selected cuts are:
What Changed
Risk Assessment
interruptedkind to the recovery-marker state machine and a no-model retirement path, and every token consumer has to stay consistent with them. I traced those consumers (publish, append, handback, reopen, arm-check, begin-handling, ack, drain, autoarm, afk-return, watch-arm successor). The F1 and simplify-1 fixes are correctly gated: settlement only acceptsannounced:downtimewith an empty queue under both locks, handling history survives asinterrupted, and the recovery offer applies only to the host.Testing
Targeted drain tests, three host-loop tests with a stub engine, and nine live CLI cases passed. Captured command outputs and recovery-state snapshots; corrected driver setup issues and removed all disposable labs. The real Claude attempt stopped at workspace trust, retaining the previously declined coverage limitation. No rendered UI changed; evidence is CLI transcripts. The separately documented pre-existing Pi test failure was not rerun or modified.
Evidence: Live CLI outputs and persisted recovery state
Source: Live CLI outputs and persisted recovery state
Evidence: Real Claude launch blocked at workspace trust
Source: Real Claude launch blocked at workspace trust
Evidence: Verification details and separate known-baseline note
Source: Verification details and separate known-baseline note
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
.pi/extensions/lib/fm-branch-dispatch.ts:644- Parts of this change go beyond what the intent asks for. The intent (row 3) says to "offer original eligible task rows to the host". ButisRecoveryTriggerinbranchOfferForWakedoes not depend onattendedHost, so the Pi primary watcher also starts offering attendedcheck: rearm-resurfacecloses to the Pi branch. It callsbranchOfferForWake(state, message, afk)withoutattendedHostat .pi/extensions/fm-primary-pi-watch.ts:756. The same Pi-side widening appears in three other places: (1) the new recovery whole-log scope and the throw-to-main path in the Pi branch turn start (.pi/extensions/fm-branch-supervision.ts:1552-1567); (2) the afk-path change that passesisRecoveryTriggerinto the attended re-scan, so an away Pi recovery close is no longerawayOnly(.pi/extensions/lib/fm-branch-dispatch.ts:661); (3) the docs/pi-supervision-branch.md:99-101 rewrite. No stated requirement needs Pi-primary recovery offering. The narrower form would gate the recovery exception on the host path (attendedHost && isRecoveryTrigger) and leave Pi's existing check-trigger rule and enqueueWake unchanged. The tradeoff: this breaks the documented one-rule parity between Pi and the host. So ask whether Pi parity is wanted, or whether the Pi-side changes should be removed.🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bash tests/fm-supervision-host-drain.test.shbash -c '. tests/supervision-host-helpers.sh; fm_test_run() { for selected in test_empty_settled_recovery_uses_no_engine_turn test_attended_recovery_handles_original_rows_without_waking_main test_away_turn_without_a_report_hands_the_wake_to_main; do "$selected"; done; }; . tests/fm-supervision-host.test.sh'python3 ~/.no-mistakes/evidence/01M707ZYJDNYM24B7YH8M5C8GA/live-recovery-driver.pyLaunched installedclaudeon a privatefm-labtmux socket with a 120x36 terminal, captured its workspace-trust screen, and removed the disposable lab.git status --shortconfirmed a clean worktree after lab cleanup.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.