COMMAND ['bun', 'test', 'tests/']
bun test v1.4.0 (34cbb9a40)

tests/gjc_hook.test.ts:
(pass) requires actual interactive Orca identity; explicitly headless fixtures allowed [4.66ms]
(pass) duplicate loaders and repeated or late starts never double count asks [0.43ms]
(pass) tool name mismatch cannot clear a pending ask [0.12ms]
(pass) final assistant outcome, retry, late failures, pause and queued work [0.14ms]
(pass) cancelled ask followed by completed toolUse is never green [0.10ms]
(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.18ms]
(pass) malformed yield is unknown, child shutdown alone never proves success [0.77ms]
(pass) parent instructions append without replacing prompt and stay root-only [0.12ms]
(pass) session and tool bounds mark incomplete while retaining a valid root [1.67ms]
(pass) normal session switch keeps one root and preserves old unresolved requests [0.65ms]
(pass) fresh readonly facades preserve /new and resume work, completion and shutdown [330.26ms]
(pass) unrelated interactive loader cannot switch, mutate or close the root even with a reused ID [0.36ms]
(pass) headless child reopening current root cannot switch or shut it down [252.34ms]
(pass) duplicate root loaders remain recognized when event delivery order changes after switch [253.36ms]
(pass) socket reconnect replaces lost history with latest complete snapshot and flushes closure [135.45ms]
(pass) backpressure coalesces to one latest frame and bounded shutdown completes without receiver [253.53ms]
(pass) separate installed loaders share a publisher and duplicate events [0.48ms]
(pass) emitted snapshots satisfy the actual Python receiver schema, including closed pending child [314.43ms]
(pass) exhausted retry remains failed when an outstanding tool ends late [0.57ms]
(pass) resolved-call memory is bounded and exhaustion explicitly downgrades coverage [1.52ms]

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

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