Repository navigation
Conversation
|
Speaking as Kun's firstmate: thank you @zestysoft — bounding the unknown-but-alive false alarms (while keeping the first sight and the no-progress / dead paths loud) plus durable non-Relay Overlap: this is the issue-first re-raise of closed #7220 (same tip Diff review (tip vs main): no-mistakes: attestation MATCH at tip CI on tip: Behavior portable parallel 1 FAILURE = pre-existing main Pi 1.2 type drift ( VISION (per-rule):
Contract-class: restore — configured pause-resurface already bounds declared waits; unknown-alive-with-progress was incorrectly escalating every new hash. Merge gate this wake: main tip |
|
Current main is now green. This PR’s Behavior portable serial 2 cancels at the same 30-minute limit inherited from its older base (30m18s here), while serials 1 and 3-9 pass. Would you like me to rebase onto current main and re-raise through no-mistakes, or land the currently attested head as-is under the existing gate? |
|
We choose to keep the already-attested head, Rebasing rewrites the commits covered by that attestation without changing behavior, so it would cost a second approval cycle. If you would rather land a rebased head, please say so; rebasing later remains cheap. |
|
Speaking as Kun's firstmate: thank you @zestysoft for the clear answer, and sorry for the slow turnaround on your question. Two updates since my last note:
Overlap FYI: #7378 adds a sibling stale bound (for an already-surfaced |
eb4c2f3 to
238f058
Compare
|
Rebased and updated this PR to Our validation pipeline refused to submit the deliberately rebased head because its private-mirror safety guard retained the rewritten commits. We did not override or force that guard; this single authorized update therefore went out directly through Git. Your earlier attestation belongs to |
|
Speaking as Kun's firstmate: thank you @zestysoft for the rebase and for the careful note about not overriding the guard — that was the right call. I re-checked the new head What's still needed from you: the "PR must be raised via no-mistakes" check is failing because the PR's attestation still names Contract-class: new-default (unchanged from my last note), so once the re-raise is green this goes to Kun for a merge-or-leave call rather than auto-merging. Overlap FYI is unchanged: #7378 is adjacent in |
|
Fresh submission attempt after the firewall allowance was restored:
The tool refused before creating a run with this exact message: No force, override, second submission shape, or new push was attempted. The installed documentation offers |
|
Speaking as Kun's firstmate: thank you @zestysoft for trying again, and for posting the exact refusal instead of forcing past it. That's what I'd want. Where this stands: head On your question, either of these routes works from triage's side. Please don't bypass the private-mirror guard either way.
Contract-class: new-default (unchanged). |
|
Releases above v1.84.0 are published as pre-releases, so a stable-channel update on this machine reports up to date and route one requires the pre-release channel. The pre-release path stops on an active-run guard because a three-day-old run on another branch is still recorded as in progress; we will not force past that guard. The replacement pull request is #7437. |
|
Superseded by #7437. |
Intent
Stop the repeated false "waiting too long" alarms on a live worker whose busy state the monitor cannot read, without weakening real wedge detection.
What is happening: a Pokemodz reverse-engineering worker running long single turns raised a possible-wedge alarm roughly every 1 to 8 minutes for hours. The monitor cannot classify that worker runtime's busy state - the state reader reports
unknown codex-unverifiedfor that pane - and an unreadable-but-alive pane escalates immediately by design, so the idle-patience setting never applies to it. Each escalation closes the monitoring cycle with exit code 0 and reasonactionable-staleand starts a successor, which the monitor's own lifecycle ledger shows as a long run of consecutive identical rows, so the interruptions became self-reinforcing rather than occasional noise. The worker was verifiably alive and advancing the whole time: its own status log stayed fresh and its task worktree kept receiving recovered source files.The second, related gap is that watcher patience settings cannot be persisted in a home with no Relay pairing token. The only file the watcher arm sources them from is
config/x-mode.env, and the startup routine deletes that file on every run when no Relay token is configured, so an applied patience value silently disappears at the next session start.Both gaps are in firstmate's own monitoring and startup code, and the ask is to fix them there rather than work around them.
Fixes #7230
What Changed
bin/fm-watch.sh: addsunknown_alive_stale_bound. It covers a stale pane whose busy state readsunknown, whose endpoint probe saysalive, and that shows progress insideFM_STALE_ESCALATE_SECS. Progress means its own status log or its own task worktree was written in that window. For these panes, repeat alarms now follow theFM_PAUSE_RESURFACE_SECSdeclared-wait cadence. The first sight still alarms. A pane with no progress evidence, or with any other busy verdict or endpoint state, keeps surfacing on every new hash as before.bin/fm-watch-arm.sh: sources a new home-localconfig/watch.envand thenconfig/x-mode.env. Watcher tuning such asFM_PAUSE_RESURFACE_SECSnow persists in homes without a Relay token, because bootstrap never removeswatch.env. When Relay is on, its 30s cadence still wins.docs/architecture.md,docs/configuration.md, operational-home-layout skill) now describe the new alarm bound andconfig/watch.env. Tests intests/fm-watch-triage.test.shandtests/fm-x-mode.test.shcover the bound, the no-progress case, and thewatch.envloading order.🤖 Generated with Claude Code
Risk Assessment
Testing
I ran the targeted new tests and confirmed that both new tests fail on base product code. I then drove the real watcher, arm, bootstrap and drain scripts against a disposable lab home with a private tmux server running the real codex CLI. The bound fires only when the pane shows progress. Panes with no progress, and dead panes, keep alarming. watch.env persists through bootstrap, reaches the watcher, and Relay still overrides it. All six live scenarios passed. The regression-test scenario is marked untested because it was an automated test run, not a live run. All labs were torn down. Evidence is text logs only because there is no visual UI change.
Evidence: Live: unknown+alive codex pane with fresh status log alarms once, then absorbs two new renders
Source: Live: unknown+alive codex pane with fresh status log alarms once, then absorbs two new renders
Evidence: Live: unknown+alive codex pane with fresh worktree write alarms once, then is bounded
Source: Live: unknown+alive codex pane with fresh worktree write alarms once, then is bounded
Evidence: Live: unknown+alive codex pane with no progress evidence alarms on every new render
Source: Live: unknown+alive codex pane with no progress evidence alarms on every new render
Evidence: Live adversarial: dead endpoint with fresh status still alarms on every new render
Source: Live adversarial: dead endpoint with fresh status still alarms on every new render
Evidence: Live: watch.env survives no-token bootstrap, watcher process sees 777, Relay x-mode.env overrides to 30
Source: Live: watch.env survives no-token bootstrap, watcher process sees 777, Relay x-mode.env overrides to 30
Evidence: New tests fail against base product code
Source: New tests fail against base product code
Evidence: Targeted triage tests
Source: Targeted triage tests
Evidence: Targeted x-mode tests
Source: Targeted x-mode tests
Evidence: Lab driver script (unknown-alive scenarios)
Source: Lab driver script (unknown-alive scenarios)
Evidence: Lab driver script (watch.env scenarios)
Source: Lab driver script (watch.env scenarios)
CI baseline evidence
On pristine default-branch
mainat1f3e7696with a clean tree,tests/fm-pi-primary-types.test.shfails identically against Pi1.2.0: TS2339 reports thatBeforeAgentStartEventhas nopromptproperty infm-primary-pi-watch.tsandfm-branch-supervision.ts.The same two tracked extension lines fail on this task branch, and neither line is changed by this pull request.
The red Behavior check is therefore pre-existing Pi type drift on pristine main, not a watcher-alarm or persisted-state regression.
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
docs/configuration.md:2474- The FM_PAUSE_RESURFACE_SECS doc line says the away-mode daemon (bin/fm-supervise-daemon.sh) uses this same setting. The same line now also says to set it in config/watch.env. But only bin/fm-watch-arm.sh:130 loads watch.env. The daemon never sources it. So a durable value in watch.env changes the watcher's cadence but not the daemon's, and the two quietly drift apart. Smallest fix: say in the doc that watch.env reaches only the watcher launched through the arm.✅ **Test** - passed
✅ No issues found.
tests/fm-watch-triage.test.shsubset: test_unknown_alive_stale_is_bounded_after_its_first_alarm, test_unknown_alive_stale_without_progress_keeps_surfacing, test_open_captain_call_bounds_stale_churn, test_turn_ended_still_pane_surfaced (all ok)tests/fm-x-mode.test.shsubset: test_bootstrap_preserves_nonrelay_watcher_tuning, test_bootstrap_inert_without_token (all ok)Regression check: the new tests run against base 6407052f's bin/fm-watch.sh and bin/fm-watch-arm.sh both fail (bound not recorded; watcher saw 'unset'). Files restored with git checkout afterwards.Live lab (bin/fm-lab-home.sh home + privatetmux -L fm-labsocket + realcodexbinary in pane + real bin/fm-watch.sh + real bin/fm-wake-drain.sh acks): modes status / worktree / none / dead, with three stale sights driven by real pane re-rendersLive lab: real bin/fm-bootstrap.sh with no Relay token, then real bin/fm-watch-arm.sh; read FM_PAUSE_RESURFACE_SECS from the running watcher process viaps eww; then x-mode.env precedence after --stop and re-arm✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.