You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
#44 carry-over follow-ups from PR #68: window-route pty proof (S3), attach rows (S1), claim-unmatched line (S2) #70
Follow-up to PR #68 (Refs #44, stage 3 piece (a), restart carry-over, observe only). The Reviewer PASSed #68 at ea21ca1 with 0 blockers (verdict ~/buzz-agent/agents/reviewer/ws/verdicts/orca-pr68-ea21ca15ef95e640419f2f7a6b77b811a2a351e9.md). Fable-3's pre-read is ~/nacho-run/fable3-orca-68.md. Per the lane rule, the should-fix items go into ONE follow-up issue, with no head change on #68.
S3 (the Reviewer, new): the window route does not prove the pty.src/main/ipc/pty/ipc/spawn-run.ts:115-124 → pane/pane-owner-replacement.ts:30-33 proves replacesPtyId only against a BOUND owner. The runtime-route guard at spawn-replacement.ts:69-72 does not cover it, as its own comment at :63-65 says. So "main refuses the spawn unless it proved the pty" holds for the runtime route only. Today the consequence is observe-only: a mislabelled carry if that id restarted within 60 s. Smallest fix: the same ptyPaneKey.get(replacesPtyId) !== paneKey check when the owner is null, plus a row.
S1 (Fable-3): "an attach never claims" is untested. Dropping the host's attachOnly guard leaves every row green. Add attach rows at the host and at admission.
S2 (Fable-3): an early claim that never meets a hold expires silently. A replacement route not stopped with reason 'restart' is then inert without a trace. Add a claim-unmatched line, with a row.
Nit (the Reviewer):spawn-carry-over.test.ts:12-20 asserts on source text. Assert on behaviour instead.
Done when: a PR on blowzer/fork-only (Fixes this issue), failing-first rows for S1, S2 and S3, Node 24 (PATH=$HOME/.local/node/node-v24.22.1-darwin-arm64/bin:$PATH per run, --config config/vitest.config.ts), ci/local + ci/issue-link, a Fable-3 read, and a Reviewer PASS. S3 must land before any #44 stage acts on a carried entry.
S3 design ruling (Z8 Buzz lead, 2026-11-16 21:3xZ): Option B. Do NOT add a refusal to the shared stopReplacedPaneOwner. On the window route that would refuse some renderer restarts and resumes that work today (an unbound pane whose PTY has no pane-key record, for example daemon sessions reattached after an app restart). That is a product behaviour change, which #44 stage 3 must not make. Instead, leave the spawn path unchanged and send carriesFrom ONLY when main proved the PTY: a bound owner with that ptyId, or ptyPaneKey.get(replacesPtyId) === paneKey. Otherwise omit it, and the old pane's held set expires with its carry-unclaimed line. Rows: proven → sent, unproven → not sent, on both routes. This closes the mislabelled-carry risk, stays observe-only and adds no refusal.
Activity
restart carry route test: no type assertion (changed-code quality gate)
Merge pull request #72 from A2Z-Operations/nachumi-a2zoperations/issu…