bun test v1.4.0 (34cbb9a40)

tests/gjc_hook.test.ts:
(pass) requires actual interactive Orca identity; explicitly headless fixtures allowed [4.72ms]
(pass) duplicate loaders and repeated or late starts never double count asks [0.38ms]
(pass) tool name mismatch cannot clear a pending ask [0.14ms]
(pass) final assistant outcome, retry, late failures, pause and queued work [0.17ms]
(pass) cancelled ask followed by completed toolUse is never green [0.12ms]
(pass) child shutdown and parent completion retain decision; only matching real answer clears it [0.37ms]
(pass) multi-answer correlation clears only matching decision and collisions stay uncertain [0.22ms]
(pass) malformed yield is unknown, child shutdown alone never proves success [0.32ms]
(pass) parent instructions append without replacing prompt and stay root-only [0.10ms]
(pass) session and tool bounds mark incomplete while retaining a valid root [1.46ms]
(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 [345.01ms]
(pass) unrelated interactive loader cannot switch, mutate or close the root even with a reused ID [0.70ms]
(pass) headless child reopening current root cannot switch or shut it down [250.93ms]
(pass) duplicate root loaders remain recognized when event delivery order changes after switch [253.25ms]
(pass) socket reconnect replaces lost history with latest complete snapshot and flushes closure [171.21ms]
(pass) backpressure coalesces to one latest frame and bounded shutdown completes without receiver [260.20ms]
(pass) separate installed loaders share a publisher and duplicate events [2.12ms]
(pass) emitted snapshots satisfy the actual Python receiver schema, including closed pending child [353.25ms]
(pass) exhausted retry remains failed when an outstanding tool ends late [0.80ms]
(pass) resolved-call memory is bounded and exhaustion explicitly downgrades coverage [1.38ms]

tests/gjc_hook_faults.test.ts:
(pass) H-ID: capacity /new tracks the actual root and its explicit shutdown [254.01ms]
(pass) H-CORR: an ask predating a decision cannot resolve that later decision [1.59ms]
(pass) H-ID: capacity /new preserves sole ask before nonpending active sessions [3.62ms]
(pass) H-ID: capacity /new preserves sole decision before nonpending active sessions [6.27ms]
(pass) H-CORR: concurrent old answers cannot resolve a reused request ID [1.52ms]
(pass) H-PENDING: root completion and nested terminal events retain every deep request [1.05ms]
(pass) H-PRIORITY: pending ask remains waiting over failure, cancellation and retry [0.39ms]
(pass) H-YIELD: malformed yield receipt stays unknown 0 [0.13ms]
(pass) H-YIELD: malformed yield receipt stays unknown 1 [0.08ms]
(pass) H-YIELD: malformed yield receipt stays unknown 2 [0.07ms]
(pass) H-YIELD: malformed yield receipt stays unknown 3 [0.06ms]
(pass) H-YIELD: malformed yield receipt stays unknown 4 [0.09ms]
(pass) H-YIELD: malformed yield receipt stays unknown 5 [0.10ms]
(pass) H-YIELD: malformed yield receipt stays unknown 6 [0.12ms]
(pass) H-BOUNDS: independent session tool IDs deduplicate, overflow remains incomplete [0.53ms]
(pass) H-LOADER: original payloads establish duplicate root provenance in both delivery orders [0.14ms]
(pass) H-ID: child reopening current root never takes authority even after resume [0.12ms]
(pass) H-BOUNDS: exhausted receipt history never claims complete recovery [2.44ms]
(pass) H-TRANSPORT: event-synchronized Unix reconnect sends latest full state and closed flush [109.22ms]
(pass) H-LIVENESS: real Bun process exits with absent receiver without disposal [48.60ms]
(pass) H-LINEAGE: real nested process inherits owner marker and cannot claim a root [46.62ms]
(pass) H-BACKPRESSURE: real paused receiver bounds buffered frames and shutdown exits [354.01ms]
(pass) H-PENDING: reopening a child ID and late terminal events retain unresolved decision [1.20ms]

 44 pass
 0 fail
 163 expect() calls
Ran 44 tests across 2 files. [2.50s]
