Repository navigation
Conversation
[Low impact] The PR appears safe to merge. Reviews (3) · Last reviewed commit: "no-mistakes(document): Document push-pat..." · Reviewed by Greptile |
|
Speaking as Kun's firstmate: thanks @zestysoft, the base-vs-target lab run (leftover window logged three times with no stall, while the live window still wakes at once) shows the fix clearly. I read the diff at
Separate note: your #7958 is in a nearby area but changes a different file ( |
|
Speaking as Kun's firstmate: thanks @zestysoft. I re-checked every gate on head This is waiting on our full-suite run, not on you. If it passes, it goes to the captain for a merge-or-leave call (new-default). |
|
Speaking as Kun's firstmate: thanks @zestysoft. The full suite on head I've removed and re-added the |
|
Speaking as Kun's firstmate: thanks @zestysoft. The fresh full suite on head Every gate is green, so this is now with the captain for the merge decision. It is not waiting on you. The reason it needs the captain: it adds a new skip class to the default push-stall alarm path (endpoints with no task record stop raising stall wakes), and that changes behaviour for every unconfigured home. |
A native push edge on a pane whose task was already retired raised a stalled-worker alarm that nothing could act on. The push handler now checks that a surviving task record owns the endpoint; an unowned leftover is reported once as a housekeeping check and later edges are only logged. Live task endpoints still alarm unchanged.
9cb38fd to
4ece7be
Compare
|
Speaking as Kun's firstmate: thank you @zestysoft. Tip refreshed to Re-checked on tip: Contract-class stays new-default. Today every blocked/question push edge on a mapped window raises a stall. This adds a new skip class to that default alarm path ( VISION: One captain aligns (less false noise) · Authority → captain call (new default skip) · Scripts own the mechanics aligns · Restart aligns · Delegation aligns (field leftover windows → regression) · Vendor aligns (herdr/rex/t3code via shared target helper) · Scope aligns. Still waiting on Kun, not on you. Every gate is green on this tip, so this stays with the captain for the merge decision. |
Closes #8407
Intent
Stop supervision raising an alarm for terminal windows left behind by tasks that have already been retired, so a leftover window stops costing a wake, a pane check, and a report each time.
Context to read it: three windows left behind by landed, retired tasks each produced a stalled-worker alarm. The control path refuses to close them because no task record exists any more, and closing their workspace reports not-found, so today only the captain can shut them by hand. The alarm is not protecting anything - the work it points at is already landed and cleaned up.
What Changed
handle_push_transitioninbin/fm-push-transition-lib.shnow checks whether a surviving task record actually owns the window that sent the edge. It does this by matching the record's target fromfm_backend_target_of_metaagainst the window. If nothing owns the window, the edge is written to the triage log asabsorbed push … (leftover endpoint, no task record)and its dedupe marker is committed. It returns early, so no stall row is queued and the supervisor is not woken.tests/fm-supervision-events.test.shgets three new cases: a blocked edge on a live task's window still raises one stall and one wake; an edge from a window no record owns queues nothing, wakes nothing, and is logged (also on a repeat edge); and the fallback task name only counts as an owner when that record's window matches.docs/herdr-backend.mdadds leftover endpoints to the list of push-path skips.docs/rex-backend.mdnow links to that list instead of repeating it.🤖 Generated with Claude Code
Risk Assessment
✅ Low: One small guard that only logs and commits when no task record owns the endpoint. Its ownership check uses fm_backend_target_of_meta, the same helper recorded_windows uses to build the subscribed set, and the target shapes match for herdr, rex and t3code, so live tasks still alarm. The poll stale loop stays the fallback.
Testing
I drove real Herdr lab sessions through the guarded fm-herdr-lab/herdr-test-safety helpers and never touched the default session. First, the existing real-Herdr smoke test showed a live task's blocked edge still enqueues a stale wake. Then a custom lab scenario retired a task while the wait was open and fed the real blocked record to the handler twice. The base commit raised 2 stale wakes. The target commit raised 0 and wrote two triage-log entries instead. The focused supervision-events test file also passes. All lab sessions and scratch state were torn down. The result is go.
Evidence: Real-Herdr leftover-window scenario, before vs after
Source: Real-Herdr leftover-window scenario, before vs after
Evidence: Leftover-window live scenario script
Source: Leftover-window live scenario script
Evidence: Real-Herdr smoke test: live task still alarms
Source: Real-Herdr smoke test: live task still alarms
Evidence: Focused supervision-events test run
Source: Focused supervision-events test run
Evidence: Before/after summary
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-backend-herdr-eventwait-smoke.test.sh(real herdr 0.9.5, isolated fm-lab session): live task blocked edge -> stale wakebash $EV/leftover-endpoint-live.sh <root> <bin> after: real herdr lab pane, task meta removed mid-wait, real blocked record fed twice to handle_push_transition at target commitSame script against the base-commit (bf05a4fc) fm-push-transition-lib.sh with unchanged deps, to reproduce the old alarmbash tests/fm-supervision-events.test.sh(focused file covering live-task, retired-endpoint, and mismatched-owner paths)herdr session list --json: checked that no fm-lab-leftover/eventwait session was left behind✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.