Skip to content

Goal: Make herdr orphan-pane reaping work in internal/herdr, atomically. (1) T - #350

Merged
linhdmn merged 1 commit into
mainfrom
devagent/TASK-mtyqggp1-32tw
Sep 12, 2026
Merged

linhdmn merged 1 commit into
mainfrom
devagent/TASK-mtyqggp1-32tw

Conversation

@linhdmn

@linhdmn linhdmn commented Sep 12, 2026

Copy link
Copy Markdown
Member

Automated task via devagent task.

Prompt

Goal: Make herdr orphan-pane reaping work in internal/herdr, atomically. (1) Thread session into PaneForegroundWorker (sweep.go:245) and emit --session before pane process-info — today it is missing, so liveness is always false; update the roster.go:51 caller. (2) In FindStalePanes, evaluate orphan evidence (orphans && PaneRunOwnerOrphaned(paneID)) above the rostered-running spare (sweep.go:175) yet below the envAttached gate (FR-VIS-10: operator-attached still outranks orphan evidence) — else the fixed probe spares orphans as operator-attached and the class stays unreachable. (3) Sweep loop-dispatched main-checkout panes only with pane-run-owner evidence, sparing operator scratch panes. (4) Make test fakes assert --session on process-info. Keep DEVAGENT_HERDR_SWEEP_ORPHANS as kill-switch. Acceptance: go test ./internal/herdr/ green with per-part regression tests.

Repo policy: every PR keeps docs/PRD.md current — update the sections this change affects (status claims, architecture notes, roadmap/completion notes) and bump the Last updated footer in the same PR. A PR that changes repo state without reflecting it in docs/PRD.md is incomplete.

PRD state update (repo policy)

  • docs/PRD.md sections touched by this change are updated to the post-PR state
  • the Last updated footer reflects this change

@linhdmn
linhdmn merged commit 50b03e8 into main Sep 12, 2026
7 checks passed
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.

1 participant