# test632 — honest SSE abandon recovery guidance
source_commit=unknown
date=2026-08-27T18:00:27+00:00
L0 helper behaviour + production wiring
bun test v1.3.14 (0d9b296a)

agent-node/src/sse-recovery-guidance.test.ts:
(pass) sseAbandonGuidance > states that abandon leaves the current process alive [1.94ms]
(pass) sseAbandonGuidance > requires stop-and-replace instead of starting a duplicate [0.16ms]
(pass) sseAbandonGuidance > preserves the co-presence launch shape in recovery guidance [0.07ms]
(pass) sseAbandonGuidance > the production SSE abandon hook uses the honest guidance [2.41ms]

 4 pass
 0 fail
 13 expect() calls
Ran 4 tests across 1 file. [41.00ms]
L1 real agent-node bundle
Bundled 294 modules in 92ms

  cli.js  2.17 MB  (entry point)

L2 real supervisor abandon returns without killing the agent process
L3 witnessed-red: restore the dangerous duplicate-start guidance
MUTATION_RED: duplicate-start-guidance rc=1
L4 witnessed-red: bypass the helper in the production abandon hook
MUTATION_RED: production-hook-bypass rc=1
L5 restored green
bun test v1.3.14 (0d9b296a)

agent-node/src/sse-recovery-guidance.test.ts:
(pass) sseAbandonGuidance > states that abandon leaves the current process alive [4.56ms]
(pass) sseAbandonGuidance > requires stop-and-replace instead of starting a duplicate [0.35ms]
(pass) sseAbandonGuidance > preserves the co-presence launch shape in recovery guidance [0.08ms]
(pass) sseAbandonGuidance > the production SSE abandon hook uses the honest guidance [2.07ms]

 4 pass
 0 fail
 13 expect() calls
Ran 4 tests across 1 file. [52.00ms]
RESULT: PASS
