Repository navigation
Conversation
|
9ae8551 to
0274f96
Compare
|
Speaking as Kun's firstmate: triage on HEAD closesReadyForPr: VERIFIED against #5718. Issue asks for a voluntary park bound below Claude's 28800s Stop-hook timeout on the plain arm (Claude drops the #4474 exit-2 of a timed-out hook; idle homes go unsupervised). Body contract-class: new-default. Main tip header still says the plain arm does not shorten a quiet park; host already owns its own boundary and is the Claude default. This hardcodes VISION (brief): One captain/interface aligns (continuity without new captain surface). Authority aligns (no new consent assumption beyond existing Stop arm). Scripts/agents aligns (deterministic boundary in scripts). Restart aligns (ledger/successor unchanged). Delegation N/A. Fleet-outlives-vendor aligns (Claude-specific measured adapter debt, documented). Scope aligns (command-layer supervision continuity, not workshop). Align paragraph: deepens looking-away confidence for idle Claude homes; resist risk is new default-on wake noise on the opt-out plain arm. Attestation: MATCH ( Waiting on: CI to finish. Even if green: new-default → no auto-merge; Firstmate flag only once otherwise-ready. |
0274f96 to
7cd3c8a
Compare
|
Speaking as Kun's firstmate: re-triage vs tip HEAD contract-class: new-default (unchanged). Main tip still documents that the plain arm does not shorten a quiet park; the supervision host already owns its own boundary and is the Claude default. This hardcodes VISION.md (per-rule)
This pass: approved fork CI |
|
The one cancelled check, "Behavior portable serial 2", hit the job's 30-minute limit with no test failures: every script in the shard finished with exit 0, and |
|
Speaking as Kun's firstmate: re-triage vs tip HEAD CI: prior attempt cancelled serial 2 at 30m job limit with all tests exit 0 (author note; contract-class: new-default (unchanged). Main tip still documents that the plain arm does not shorten a quiet park; the supervision host already owns its own boundary and is the Claude default. This hardcodes VISION.md (per-rule)
This pass: fork CI approved: no (already approved prior; re-ran cancelled). Firstmate flag: no yet (CI not green). When tip is fully green, flag Firstmate for captain close-vs-leave — never auto-merge. waiting-ci. |
e3ca782 to
1cbdaf4
Compare
|
Speaking as Kun's firstmate: re-triage on the rebased head Thanks @d1on for keeping this current — the ownership gate before any boundary action (superseded firings now leave the arm and watcher alone) reads cleanly, and the identity-scoped Closes #5718: verified from your body (idle Claude plain Stop-arm goes unsupervised after ~8h because Claude drops the exit 2 of a hook it timed out; this adds the 27000s park boundary + CI: this head's fork workflow runs were waiting for approval; I reviewed the diff (bin/tests/docs only, no workflow or secret surface) and approved them, so CI and the no-mistakes check are running now. contract-class: new-default (unchanged from earlier passes). It adds a renewal wake and a hardcoded park boundary on the plain-arm path that homes opted out of the supervision host run by default; that is a new wake on an existing default path, so it is a captain decision once green, not an auto-merge. One ask, whenever you have a moment: the attestation's live validation is |
|
Speaking as Kun's firstmate: thanks, @d1on. I looked at the new head CI: this head's fork runs were waiting for approval again. I reviewed the delta (test file only, no workflow or secret surface) and approved CI Contract-class is unchanged: new-default (a new Still waiting on you for one thing: the attestation's live validation is still |
|
Real-harness evidence for the idle renewal on head Setup. A disposable lab from What happened (UTC): Delivered Stop hook feedback (from the session transcript, 10:36:47Z): The handling turn in the primary's pane: The turn then ended, and that Stop armed the next bounded park (epoch 2, above), covered in between by the successor watcher 19840. |
|
Speaking as Kun's firstmate: thank you @d1on, that live run is exactly what I asked for. It shows a real Claude Code primary on the plain Stop-hook arm reaching the park boundary, receiving the Where head
Contract-class: new-default (unchanged). The unconfigured Claude plain-arm path gains a hardcoded park boundary and a new Status: captain-decision hold. This is not waiting on you. It is otherwise ready, and because it changes default behavior, Kun decides whether it lands. |
621170b to
f3ef369
Compare
|
Speaking as Kun's firstmate: thanks @d1on for pushing a fresh head. I compared The branch now conflicts with main (
Could you rebase onto current main and re-raise via Contract-class is unchanged: new-default. A hardcoded 27000s park boundary and a new |
An idle Claude primary's plain Stop-hook park never closes, because no-change heartbeats are absorbed, so Claude TERMs the hook at its 28800-second timeout and drops the exit 2 the timeout trap emits. The home then stays unsupervised until the next inbound message. The hook now ends its own quiet park at FM_CLAUDE_AUTOARM_PARK_SECONDS (default 27000, below the registration): it stops the home's watcher, starts a covering handling successor, and delivers one no-event `check: cycle-renewal` rewake while Claude still honors exit 2. The renewal turn's end arms the next bounded park. The timeout trap stays as defense in depth, away mode is left alone, and the opt-in supervision host keeps its own boundary. Fixes kunchenguid#5718
…-claude-stop-autoarm.sh: away mode is checked before boundary signalling, superseded firings reap their own arm silently, and boundary arm termination is bounded with KILL escalation. Added behavioral regressions in tests/fm-claude-stop-autoarm.test.sh. The test suite, shellcheck, bash syntax checks, and git diff checks pass
A superseded Claude Stop-hook generation reaped its own arm with TERM at the park boundary, and a started arm forwards TERM to the watcher it owns, so the superseded firing killed the watcher a newer generation was following. bin/fm-watch-arm.sh now treats USR1 as a release: the arm records arm-released in the cycle ledger and exits without signalling its watcher, which keeps running as the home's singleton. The hook's superseded path releases its arm with USR1 (bounded, with the existing KILL fallback, which never reaches the watcher either). The arm header also documents the --stop-if-watcher mode the park boundary uses. The supersession test now uses a started arm stub that forwards TERM like the real arm, and a real-process arm test covers release against a TERM control. Refs kunchenguid#5718
…ision At the park boundary the hook stopped the identity-matched watcher from its cycle even when a newer Stop firing had superseded it. If the superseded firing's arm had attached to the watcher the newer firing also follows, that explicit stop ended the newer firing's cycle, which the plain arm on main never does. The boundary now issues the scoped stop only while this generation still owns supervision; a superseded firing stays silent and leaves the watcher alone. Refs kunchenguid#5718
…ny park-boundary action. Superseded firings now wait for natural arm closure, leaving the watcher untouched. Updated comments and added a started-arm regression that failed before the fix. The full auto-arm test suite, bash syntax checks, shellcheck -x, and git diff --check pass
f3ef369 to
6d238bb
Compare
|
Speaking as Kun's firstmate: thanks @d1on, that's the rebase I asked for. I compared I've approved the fork runs for this head: CI Contract-class: new-default (unchanged). A hardcoded 27000 s park boundary and a new Status: waiting on CI. You don't need to do anything right now. Once it's green and no-mistakes binds this head, it goes back to Kun as a merge-or-leave decision, not an auto-merge. |
|
Speaking as Kun's firstmate: thanks @d1on. CI on head Where it stands:
Contract-class (mine): new-default (unchanged). On the unconfigured Claude plain-arm path, Status: captain-decision hold. This isn't waiting on you. It's otherwise ready, but because it changes default behaviour, Kun makes the merge-or-leave call. I won't merge it automatically. |
Problem
An idle Claude primary (a main home or a secondmate home) that runs the plain Stop-hook arm stops being supervised after about eight hours.
Since #6124 the supervision host is the default for Claude primaries and already ends its own park before the hook timeout, so this affects homes that opt out of the host (
config/supervision-host-offpresent), and any home that ran the plain arm before that change.The Stop-owned auto-arm (
bin/fm-claude-stop-autoarm.sh) runs as anasyncRewakeStop hook registered withtimeout: 28800.On an idle home the watcher cycle never closes, because no-change heartbeats are absorbed without ending the park.
At 28800 seconds Claude terminates the hook's process tree, and the #4474 trap records the failure and exits 2, but Claude does not deliver the exit 2 of a hook it terminated at its own timeout (measured in
docs/verification/supervision.md).No turn starts, so nothing re-arms, and the home stays unwatched until the next inbound message.
The supervision host bounds its own park below the timeout; the plain hook-owned arm did not.
Fixes #5718
Fix
bin/fm-watch-arm.sh --stop-if-watcher PID IDENTITYthat leaves any other cycle's lock untouched, then starts a handling successor so the short renewal turn stays covered.Only the generation that still owns supervision applies the boundary: a superseded firing takes no boundary action (no TERM to its arm and no scoped stop) and waits for its arm to close, exactly as on
main, so it never stops a watcher a newer firing may be following.check: cycle-renewalrewake while Claude still honors exit 2; the renewal turn drains, handles anything the drain presents, acknowledges, and ends, and that turn's end arms the next bounded park.When a real watcher reason reached the hook at the boundary, that reason is delivered as an ordinary wake without the renewal line.
docs/turnend-guard.md,docs/supervision-host.md,docs/watcher-continuity.md, anddocs/supervision-protocols/claude.mddescribe the boundary and the renewal wake.Tests
tests/fm-claude-stop-autoarm.test.shdrives the hook with a test-only elapsed clock, honored only underFM_TEST_SEAM=1:test_quiet_park_renews_at_the_park_boundary,test_boundary_real_event_has_no_renewal_label,test_park_boundary_reaps_term_resistant_arm_before_deadline,test_renewal_caps_unconfirmed_successor_wait,test_superseded_boundary_does_not_stop_the_watcher, andtest_park_clock_requires_the_test_marker.tests/fm-watch-arm.test.shruns a real arm and watcher:test_scoped_stop_preserves_other_cycle_lock.check: cycle-renewalrewake delivered and handled, next cycle armed; see the evidence comment on this PR).test_boundary_real_event_has_no_renewal_label); a resistant arm or unconfirmed successor not consuming the hook budget (test_park_boundary_reaps_term_resistant_arm_before_deadline,test_renewal_caps_unconfirmed_successor_wait); and a superseded firing leaving its started arm and shared watcher alone (test_superseded_boundary_does_not_stop_the_watcher).Known edge cases left for a follow-up
These behave exactly as on
mainand are out of scope here, because a durable fix needs watcher coverage outside the hook-owned process group:main.Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
🔧 **Rebase** - 1 issue found → auto-fixed ✅
bin/fm-watch-arm.sh- merge conflict rebasing onto origin/main🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Review** - passed
✅ No issues found.
Executed six focused cases fromtests/fm-claude-stop-autoarm.test.sh: quiet renewal, boundary event, successor budget, TERM-resistant arm, superseded boundary, and clock-seam guard.Executedtest_scoped_stop_preserves_other_cycle_lockfromtests/fm-watch-arm.test.sh.Drove realbin/fm-watch-arm.sh --stop-if-watcheragainst a disposable marked lab: mismatched identity, mismatched PID, and matching cycle.Launched Claude 2.1.309 on the prescribed private tmux socket with a 100x32 grid; submitted a no-tools prompt, captured its response and lab state, and checked primary-scope eligibility.Stopped lab processes, removed disposable fixtures and temporary test runners, and confirmed a clean worktree.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.