Skip to content

Withdrawn - #4997

Closed
keenvc wants to merge 1 commit into
kunchenguid:mainfrom
keenvc:fm/fm-lane-account-dead-records
Closed

keenvc wants to merge 1 commit into
kunchenguid:mainfrom
keenvc:fm/fm-lane-account-dead-records

Conversation

@keenvc

@keenvc keenvc commented Sep 20, 2026 •

Copy link
Copy Markdown

Withdrawn by the author.

Teardown refused any record whose endpoint was already cleared, so a lane
could never be retired once its window was gone and it kept occupying an
in-flight row. Accept an explicit endpoint_cleared stamp as stronger
agent-less evidence than a dead window, with no flag and no --force, while
keeping the unlanded-work refusal unchanged.

A projected Herdr teardown confirmed only the task pane was gone, so a
workspace whose recorded pane vanished before its close survived for a
restart to restore as a live agent in the primary clone. Remove the
workspace's remaining panes through the same focus-preserving pane close and
require the workspace gone before retiring the journal.

A dead pane whose display redrew re-alarmed on every new hash, a supervision
tax that grew with each dead lane. Absorb a redrawn dead display against the
existing once-record, while a relaunched agent re-arms the incarnation and
its own death still reports in full.
@kunchenguid

Copy link
Copy Markdown
Owner

Speaking as Kun's firstmate:

First look on HEAD da76467d36fc1470d9625d09cae2545d48a7d135 vs main dd9b2ef21fe6c06846ae74d9070ac2da971ae8e7. Whole thread read (body; no prior comments). Attestation MISMATCH (no no-mistakes-pipeline-attestation block in body). ~527 LOC across teardown/backend/watch + tests.

Contract-class: restore. Independent tip-vs-main on the unconfigured path:

  1. Main already documents dead endpoints are reported ONCE via wedge_dead_record; tip adds dead_endpoint_absorb so a redrawn dead display under the same incarnation cannot re-enter the first-sight surface and re-wake — restores that once-report contract.
  2. Main Herdr presentation teardown already closes the recorded task pane; tip fm_backend_herdr_projection_workspace_remove_focus_preserving finishes removal when the pane is already gone so a restart cannot resurrect a husk in the primary clone — restores teardown completeness.
  3. --allow-cleared accepts an explicit single endpoint_cleared= stamp with no window=; unconfigured records without that stamp still refuse as main. Unlanded-work refusal and --force discard gate unchanged.

CI/NM: tip was action_required. Fork workflows approved this pass after diff review (no .github/workflows edits; teardown still refuse-unlanded; no credential surface): CI 35483475080, Require no-mistakes 35483475076 — queued. MERGEABLE/UNSTABLE. no-mistakes blocking; missing attestation keeps NM red until rebound.

VISION.md (each rule)

  • One captain, one interface: aligns — fewer false dead-endpoint wakes.
  • Authority is explicit: aligns — no new autonomy; --force still sole discard grant.
  • Scripts own the mechanics: aligns.
  • A restart is a non-event: aligns — husk workspace no longer resurrects wrong agent.
  • Delegation with a spine: aligns.
  • The fleet outlives any vendor: aligns (Herdr cleanup stays in herdr backend).
  • Scope: aligns (lane accounting / teardown / watch).

Decision: waiting-author — add matching pipeline attestation for this HEAD. Restore + safe review → auto-merge candidate once attestation MATCH and CI+NM green. No Firstmate flag. Security: clean. No Closes/Fixes issue claims verified.

@zachlandes

Copy link
Copy Markdown
Contributor

We have 8 task records stuck the way this PR describes. All are herdr records whose workers are long gone. We removed window= from each to stop stale wakes, and now fm-teardown.sh refuses every one with "missing, empty, or ambiguous window endpoint". --legacy-record doesn't help since the windowless exception is tmux-only.

They also count against the away spend cap (#6139), which is part of why our home dispatched nothing overnight.

Two of them still have a backup of their original window= line, but restoring it wouldn't be enough: each shares a treehouse pool slot with another task record, so teardown refuses on the shared slot instead. That part looks covered by #6444 and the open PRs against it (#6522, #6229, #5559, #5502).

This PR conflicts with main right now. I'm happy to send a rebased version through no-mistakes if that would help it move.

@keenvc keenvc closed this Oct 23, 2026
@keenvc keenvc changed the title fix(bin): retire cleared lane records and stop their wakes Withdrawn Oct 23, 2026
@keenvc
keenvc deleted the fm/fm-lane-account-dead-records branch October 23, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants