bun test v1.4.0 (34cbb9a40)

tests/gjc_hook.test.ts:
(pass) requires actual interactive Orca identity; explicitly headless fixtures allowed [4.11ms]
(pass) duplicate loaders and repeated or late starts never double count asks [0.36ms]
(pass) tool name mismatch cannot clear a pending ask [0.12ms]
(pass) final assistant outcome, retry, late failures, pause and queued work [0.16ms]
(pass) cancelled ask followed by completed toolUse is never green [0.11ms]
(pass) child shutdown and parent completion retain decision; only matching real answer clears it [0.38ms]
(pass) multi-answer correlation clears only matching decision and collisions stay uncertain [0.20ms]
(pass) malformed yield is unknown, child shutdown alone never proves success [0.50ms]
(pass) parent instructions append without replacing prompt and stay root-only [0.11ms]
(pass) session and tool bounds mark incomplete while retaining a valid root [1.57ms]
(pass) normal session switch keeps one root and preserves old unresolved requests [0.09ms]
(pass) fresh readonly facades preserve /new and resume work, completion and shutdown [315.00ms]
(pass) unrelated interactive loader cannot switch, mutate or close the root even with a reused ID [0.39ms]
(pass) headless child reopening current root cannot switch or shut it down [251.35ms]
(pass) duplicate root loaders remain recognized when event delivery order changes after switch [251.66ms]
(pass) socket reconnect replaces lost history with latest complete snapshot and flushes closure [133.68ms]
(pass) backpressure coalesces to one latest frame and bounded shutdown completes without receiver [260.43ms]
(pass) separate installed loaders share a publisher and duplicate events [2.71ms]
(pass) emitted snapshots satisfy the actual Python receiver schema, including closed pending child [364.03ms]
(pass) exhausted retry remains failed when an outstanding tool ends late [0.44ms]
(pass) resolved-call memory is bounded and exhaustion explicitly downgrades coverage [1.26ms]

tests/gjc_hook_faults.test.ts:
(pass) H-ID: capacity /new tracks the actual root and its explicit shutdown [253.49ms]
(pass) H-CORR: an ask predating a decision cannot resolve that later decision [1.71ms]
(pass) H-CORR: concurrent old answers cannot resolve a reused request ID [1.09ms]
(pass) H-PENDING: root completion and nested terminal events retain every deep request [1.14ms]
(pass) H-PRIORITY: pending ask remains waiting over failure, cancellation and retry [0.79ms]
(pass) H-YIELD: malformed yield receipt stays unknown 0 [0.92ms]
(pass) H-YIELD: malformed yield receipt stays unknown 1 [0.63ms]
(pass) H-YIELD: malformed yield receipt stays unknown 2 [0.37ms]
(pass) H-YIELD: malformed yield receipt stays unknown 3 [0.34ms]
(pass) H-YIELD: malformed yield receipt stays unknown 4 [0.34ms]
(pass) H-YIELD: malformed yield receipt stays unknown 5 [0.44ms]
(pass) H-YIELD: malformed yield receipt stays unknown 6 [0.41ms]
(pass) H-BOUNDS: independent session tool IDs deduplicate, overflow remains incomplete [1.46ms]
(pass) H-LOADER: original payloads establish duplicate root provenance in both delivery orders [0.54ms]
(pass) H-ID: child reopening current root never takes authority even after resume [0.44ms]
(pass) H-BOUNDS: exhausted receipt history never claims complete recovery [6.08ms]
(pass) H-TRANSPORT: event-synchronized Unix reconnect sends latest full state and closed flush [111.06ms]
(pass) H-LIVENESS: real Bun process exits with absent receiver without disposal [51.38ms]
(pass) H-LINEAGE: real nested process inherits owner marker and cannot claim a root [46.75ms]
(pass) H-BACKPRESSURE: real paused receiver bounds buffered frames and shutdown exits [368.05ms]
(pass) H-PENDING: reopening a child ID and late terminal events retain unresolved decision [1.84ms]

 42 pass
 0 fail
 153 expect() calls
Ran 42 tests across 2 files. [2.46s]
