Repository navigation
feat(bin): let the unchanged-pause rule absorb rechecks of exited workers - #56
Merged
Merged
Conversation
…kers The deterministic unchanged-pause rule skipped a worker whose agent had exited, so every parked, exited worker re-surfaced on each recheck. The rule now treats an exited worker like a live one; captain-held transfers, changed rechecks and the FM_PAUSE_REMIND_SECS reminder valve are unchanged. Jev and the legacy absorb still skip exited workers. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…in architecture doc
…y reminder (#58) * feat(bin): absorb an unchanged dead-agent wait recheck until the daily reminder An unchanged recheck of a declared pause or captain-held transfer whose worker had already exited at the last surface woke the supervising session every FM_PAUSE_RESURFACE_SECS, and almost all of them ended in a plain acknowledgement. config/absorb-unchanged-pause now accepts an optional second line "daily": the rule then also absorbs that recheck, behind absorb_vetoed and counted in the absorption digest as source=rule, until FM_PAUSE_REMIND_SECS since the last surface. The first recheck, any change of status, open decisions, liveness (alive to dead included) or pane text, and the daily reminder still surface at once; homes without the second line behave as before. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * no-mistakes(document): docs: align absorb-unchanged-pause pointers with daily reminder --------- Co-authored-by: Alan Domio <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…ccess to /retrospective, and prune it (#59) * feat(skills): add rule-classification, no-ops audit, review placement and information-access to /retrospective Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * docs(skills): credit /retro wording Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * docs(skills): prune retrospective skill; net shorter than before Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Alan Domio <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…kers The deterministic unchanged-pause rule skipped a worker whose agent had exited, so every parked, exited worker re-surfaced on each recheck. The rule now treats an exited worker like a live one; captain-held transfers, changed rechecks and the FM_PAUSE_REMIND_SECS reminder valve are unchanged. Jev and the legacy absorb still skip exited workers. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…in architecture doc
…s on After rebasing onto main's daily reminder, an exited paused wait could be absorbed by the daily rule and then again by the unchanged-pause rule's own window, which would stretch the reminder to twice its length. With the daily line set, the daily rule now owns every exited-worker recheck; plain on keeps the unchanged-pause rule. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d tree The branch was rebased onto main after the pipeline had pushed f49fe1c. This records that head as a parent so the next push is a fast-forward; the tree is exactly the rebased one. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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
Widen firstmate's deterministic unchanged-pause absorption rule (config/absorb-unchanged-pause, rule_absorb_unchanged_pause in bin/fm-watch.sh) to also cover workers whose session has exited. Captain decision 2026-10-05: 'yes, widen it with the daily reminder'. Evidence: 526 unchanged exited-worker rechecks in 7 days were all only acknowledged; the rule without the exclusion absorbs 789 with 1 wrong, preserved by the reminder valve. Acceptance: an unchanged declared-pause recheck of an exited worker is absorbed exactly like a live worker's under plain 'on'; captain-held transfers and any changed recheck (pane text changed, or the worker exited since the last recheck) still surface; the reminder valve re-surfaces each parked wait once per FM_PAUSE_REMIND_SECS; docs/configuration.md, docs/architecture.md, AGENTS.md config line and script headers describe the new scope; tests cover exited-unchanged (absorbed), exited-changed (surfaced), exited-captain-held (surfaced) and the reminder valve. Exclusions: Jev absorb-try and the legacy unchanged-recheck absorb deliberately still skip exited workers; pane-text-changed and idle-worker rules stay out. Rebase context (captain instruction 2026-10-07: resolve the PR 56 conflicts keeping both main's changes and this rule's intent): main meanwhile landed PR 58, the opt-in 'daily' second line of config/absorb-unchanged-pause (rule_absorb_unchanged_wait) that absorbs an unchanged dead-agent recheck, captain-held included, until FM_PAUSE_REMIND_SECS since the last surface. Both are kept and layered deliberately: plain 'on' absorbs an exited paused wait via this rule's own FM_PAUSE_REMIND_SECS marker and never a captain-held one; with the 'daily' line set, the daily rule alone owns every exited-worker recheck (paused or captain-held) so its reminder window is not stretched by a second absorber. Main's test test_rule_daily_is_off_without_its_second_line was rewritten to assert a captain-held exited recheck still surfaces without the daily line, since an exited paused wait is now absorbed under plain 'on'. The branch was rebased onto main after the pipeline's earlier push; the captain approved recording the pre-rebase pipeline head f49fe1c as a merge parent with the ours strategy (tree identical to the rebased branch, no force push) so this push is a fast-forward - the merge commit is deliberate, not a mistake. Shared tracked firstmate material (bin/, docs/, tests/, AGENTS.md); firstmate-coding-guidelines applies.
What Changed
bin/fm-watch.sh:rule_absorb_unchanged_pauseno longer skips workers whose session has exited. Under plainon, an unchanged declared-pause recheck of an exited worker is now absorbed the same way a live worker's is, and itsFM_PAUSE_REMIND_SECSreminder re-surfaces the wait periodically. Captain-held transfers and changed rechecks (pane text changed, or the worker exited since the last recheck) still surface. When thedailysecond line ofconfig/absorb-unchanged-pauseis set, this rule gives up exited workers and the daily rule handles every exited-worker recheck on its own, so only one reminder window applies. The Jev absorb-try and the legacy unchanged-recheck absorb still skip exited workers.tests/fm-watch-triage.test.shadds four cases: exited and unchanged (absorbed), exited and changed (surfaced), exited and captain-held (surfaced), and the reminder re-surfacing. It also rewritestest_rule_daily_is_off_without_its_second_lineto check that a captain-held exited recheck still surfaces without the daily line.docs/configuration.md,docs/architecture.md, the config line inAGENTS.mdand the script headers now describe the wider scope and how it combines with the daily rule.🤖 Generated with Claude Code
Risk Assessment
✅ Low: This is a small, contained change to one condition: plain 'on' now lets rule_absorb_unchanged_pause take paused rechecks of exited workers. When the daily line is set, the daily rule owns those rechecks. Captain-held rechecks, changed rechecks and Jev's exclusions are unchanged, which matches the stated intent.
Testing
I ran the targeted
tests/fm-watch-triage.test.shsuite against the realbin/fm-watch.shtriage rules and every test passed, with nonot oklines. These cases cover the acceptance criteria: an unchanged recheck of an exited worker is absorbed and recorded as source=rule; an exited recheck is surfaced if the pane or liveness changed; a captain-held exited recheck is always surfaced; the reminder valve re-surfaces a wait once per FM_PAUSE_REMIND_SECS. The 'daily' layering cases also passed, including the rewritten test that a captain-held recheck still surfaces when the daily line is not set. This change has no UI, so the evidence is the TAP log. The working tree is still clean.Evidence: fm-watch-triage TAP log (exited-worker absorption, captain-held, reminder valve, daily layering)
Source: fm-watch-triage TAP log (exited-worker absorption, captain-held, reminder valve, daily layering)
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-watch-triage.test.sh✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.