Repository navigation
Cycle 0157: a timer that a Bun test file set before the cited test no longer counts as the test's work (v0.2.153.0) - #397
Merged
Merged
Conversation
…ts as its work (crf-08) A timer that the test file set while it loaded, that a beforeAll hook set or that an earlier attempt of a retried test left behind can fire while the cited test runs. Its pause at a declared stop then counted as the test's observation. - The test bootstrap replaces setTimeout, setInterval and setImmediate (also node:timers') by proxies. A callback that fires while another entry than the one that set it runs, runs in an async context of Codebook's, past its awaits and into the timers it sets. The window reads such work as outside the test. - The running test's own callbacks, and callbacks that fire while the file registers its tests, run in no context: Bun 1.4.5 misreads a test's or hook's parameters there and never ends it. - An attempt that began inside such work, and a timer function that cannot be replaced, read no window, so the run attributes no stop to the test. - The replay's call stack leaves out the bootstrap's frames, and the run asks for twice the frames the replay keeps. - README, help and the two run sentences say which work is told apart and which is not. Issue 396, Task 1. Claude-Session: https://claude.ai/code/session_01XqGg2gEoh7GaQaWhQACJKH
…n to run The test cancelled the probe 300 ms after it began. On a busy machine the stand-in for Chrome had not run by then, so its pid file was missing and the test failed (the full suite of 6792b2e). It now waits until the stand-in wrote its pid, and the 3 s bound counts from the cancellation. Issue 396. Claude-Session: https://claude.ai/code/session_01XqGg2gEoh7GaQaWhQACJKH
… stop, and a throwing timer property ends no run Review round of Cycle 0157 (CodeRabbit passes 2 and 4): - Major: a callback that the cited test's first attempt left waiting goes on in the second attempt, where nothing at the pause tells it from that attempt's work. When Bun ran the cited test more than once (retry or repeats), or the count of its attempts cannot be read, the run's stops are now attributed to no test for good, also when every stop paused in the last attempt. A real-Bun test shows that such work reads as the later attempt's. - Minor: a bunfig.toml preload can make a timer function a property whose setter throws. Setting it then counts as not replaced (no window, no claim) instead of ending the preload before the tests start. Pass 1's Major (a paused frame has no url on Bun) is not a defect: node:inspector's endpoint, which the bootstrap opens, answers it, and the test it names passes on real Bun. Issue 396. Claude-Session: https://claude.ai/code/session_01XqGg2gEoh7GaQaWhQACJKH
pnpm update --latest with the AGENTS.md holds changed fallow (3.50.0 to 3.51.0), which pnpm's one-day minimum release age held until 08:04Z. @types/node 24.19.4 and TypeScript 6.0.3 are the newest of the pinned Node 24 major and of 6.x; Bun 1.4.5 is the latest release. pnpm audit reports no high advisory. Fallow 3.51.0's health:static, dead-code, dupes and architecture report nothing against the committed baselines, and its command list is the one of 3.50.0, so CI gets no step. Measured health is retaken after the review round's fixes. Issue 396. Claude-Session: https://claude.ai/code/session_01XqGg2gEoh7GaQaWhQACJKH
…st and its server alone (OCR delegates 1 and 3) Review round of Cycle 0157. Every case below ran on real Bun 1.4.5; the Majors also on 1.4.4. - Only a callback that fires while the test runs is marked. A server or a connection that a timer opened before the test kept the mark for good, so the test's own requests read as another timer's and their stop was never captured. - The marks take Reflect's and AsyncLocalStorage's functions while the bootstrap loads: a test that spied on getStore counted the debugger's read, and a mocked getStore made another timer's work read as the test's. - An onTestFinished callback registered in another timer's work is registered unmarked; Bun never ended it otherwise. - A flag beside the async context covers code that a marked callback runs in a context bound earlier (AsyncResource.bind, AsyncLocalStorage.snapshot). - A timer that Bun's fake clock holds is the work of whoever advances the clock, and the test's own timer stays its work inside another timer's event loop. - A window that a failing afterEach hook left open writes no count, so the run attributes none of its stops. The read answers the closed window after an attempt that began in another timer's work. - A preload that deleted a timer function leaves the bootstrap without marks instead of ending the run before its tests. - node:async_hooks loads after the debugger attached, so a Step Into at a line that sets a timer goes on to the test's code. - The replay's call stack also leaves out the proxy's and the async context's frames. AC3 a to e pass end to end (the product's OwnedNodeTestRun over headless js-debug and real Bun); on 8bc12f1 the cases a, b, c and e capture the timer's value as the test's. Issue 396. Claude-Session: https://claude.ai/code/session_01XqGg2gEoh7GaQaWhQACJKH
…ith a lost resume, and leaves a step to the learner (OCR delegates 2 and 4) - The hold is released while a pause of the run's own first-stop breakpoint holds the test, and the stop's wait resumes that pause as outside the test: a timer that the file set while it loaded, with an interval shorter than a look, kept the hold for good (Major, also on 8bc12f1). - A final Continue that the adapter refused although the test process ended is taken for an accepted one: 6 of 90 runs of a short test failed with "Unable to resume" after the test passed (Major, also on 8bc12f1); 120 of 120 pass. - A pause that a step of the learner's led to stays the learner's also when it lands on the run's own breakpoint, as the README says. - A look at a pause asks for its top frame alone, and a stop asks for 32 frames, so a chain of timers leaves the eight a replay keeps. - A request for js-debug's proxy that reaches a session before its target is attached, which js-debug never answers, ends after 2 s instead of 20 s. - The calls down to a marked timer callback are out of tail position. - README and help name two more kinds of work Codebook cannot tell apart. Claude-Session: https://claude.ai/code/session_01XqGg2gEoh7GaQaWhQACJKH
…t its own bound The open-svg test asserted four times the ordinary page but asked for the confirmation turns only above six, and the closed-svg test the other way round (Cycle 0151 put the argument on the wrong test). A loaded first round between four and six times then failed the open-svg test with no confirmation: the full suite on 92c0d2e at load average 48 read 4.49 (733.9 ms against 163.3 ms over two turns), while the worker's CPU time read 2.35. Forced probe (a first round slowed to five times the ordinary page, in dist): fails before (all four pages at 5.0, two turns each), passes after (the confirmation turns ran). Whole file 71 of 71; 24 stress runs at 12 at once, 0 failed. Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…l Continue's answer still reads its result 92c0d2e takes a final Continue that the debugger refused, once the test process ended, for an accepted one; the README's Bun section did not say so, and the CHANGELOG entry that names the fix needs its README sentence. bunTestDocs pins it (red on the README of ca5ed31, green with the sentence; every docs and README test file passes, 287 of 287). Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…1.0 (Cycle 0157 dependency step) The Fallow update (3.50.0 to 3.51.0) changes a pinned producer of the measured health gate, so the baseline was retaken on 1108c3e in its own worktree with the new pin, through checkHealth's single run with its outputs kept: - the typed build; - every compiled test once under the pinned c8: 16197 tests in 1264 files, 16179 passed, 0 failed, 10 skipped, 8 todo; coverage of 1537 source files; - Fallow 3.51.0 health on that coverage against the committed baseline: exit 0, no finding beyond it; - the same arguments with --save-baseline (Fallow 3.51.0 refuses a path outside the project root, so the file was written inside the worktree). The saved baseline holds one finding fewer: ownedNodeTestRun.ts's critical complexity and critical CRAP findings are fixed (the stop wait's poll callback remains at moderate CRAP, a static estimate), and the refactoring target src/ownedNodeTestRun.ts:complexity is gone (37 to 36). The same coverage scored with Fallow 3.50.0 gives the same 208 entries, so the drop comes from the source, not from the Fallow update; droppedFixedFindings records it. The reference records the revision, Fallow 3.51.0, the run's counts and the hashes of its coverage map and TAP report. health.test.mjs pins the new revision and baseline hash, and nativePrecheck's versioned process fixtures name Fallow 3.51.0 (68 of 68 green with health.test.mjs). Fallow 3.51.0 adds no command, so CI gets no step. Issue 396. Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…read and the frame filter on Vitest stacks (Step 7 coverage) Three code paths of this cycle had no test of their own (the /gstack-ship Step 7 coverage audit): - a timer callback set before the test that throws while the test runs leaves the test's own work unmarked (bunTestTimers.test.ts); without the finally that clears the mark, the 19 earlier tests of the file pass and this one fails; - Stop while the debug adapter never answers the declared stop's own call-stack read ends the preparation (ownedNodeTestRun.test.ts); with its signal dropped, the 90 earlier tests pass and this one fails; - a stack without the test bootstrap's frames, as every Vitest stop's, passes the frame filter unchanged (withoutBunTestBootstrapFrames.test.ts); a filter that dropped every <node_internals> frame passes the 6 earlier tests and fails this one. Issue 396. Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…s not prove AC7 of Issue 396 asks every added or changed test to state its card with protects, fails_when and no_claim; the crf#08 README test and the changed retry README test had no no_claim (the /gstack-ship Step 8 plan audit). Comment-only change. Issue 396. Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…play shows no async part without a caller (/gstack-ship pass 1) F4-H: the bootstrap frame filter compared every frame's path, and its neighbours', through a synchronous real-path read (95 reads for a 32-frame stack), also for Vitest stops. It now compares each frame's path as written with the bootstrap's spellings (its path and its real path, read once per bootstrap and remembered; Bun 1.4.5 names a preload reached through a linked folder by its real path), and returns a stop of another runner (Vitest) untouched without any file read: the run passes its plan's runner at the one call in captureStop. F4-J: a label is left out only when the filter left out every frame of the async part it begins, so a last part that held only the bootstrap's callback loses its label too, while the label that ends a stack cut at the levels the run asks for (frames not fetched) stays. Review-Finding: p1/outside-voice#6 reader=outside-voice Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…est or server run (/gstack-ship pass 1) - F3-F (Critical): the 2 s bound of the debugger binding's requestCDPProxy now ends the attempt, not the request. Every request already sent to the session stays eligible, and the first valid answer of any of them binds the session at the next attempt, within the caller's 45 s attach budget. A busy js-debug that answers each request after 2.1 to 2.5 s no longer keeps a Bun test, a Vitest run or a node-server run from binding until that budget ends; a request js-debug never answers (sent before the target was attached) still lets the wait ask again after 2 s. The binding leaves no timer and no abort listener behind once it settled, and a refused lone request still ends its attempt at once with js-debug's own words. - Tests: a first request never answered and a second answered; every answer 125 percent of the bound late; an earlier answer arriving while the next request waits; a refused request; and the node-server attach through the real binding with late answers. Review-Finding: p1/outside-voice#4 reader=outside-voice Review-Finding: p1/adversarial-native#7 reader=adversarial-native Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…, and the events show only resumes Codebook sent (/gstack-ship pass 1) F2-D: whether a pause follows the learner's step now follows the adapter's answers, by request sequence: a Continue or step the adapter refused changes nothing, an accepted step counts until an accepted Continue, and a pause that arrives while a step still waits for its answer stays the learner's. A Continue refused while the learner's step ran no longer lets Codebook resume the step's pause, and a step refused while the thread ran no longer holds the run's next own pause. F2-G: the pause of the run's own first stop that a Bun test is released at journals node-test.stop-outside-test only when Codebook continues it after the release (resumed true), or with resumed false when the learner continued it first, once; a release that the test file's hash, the stop's binding or the editor's text refuses journals no resume. F2-K: a final Continue that the adapter refused after the test process ended, for a Vitest run as for a Bun run, is journaled as node-test.final-continue-refused with the adapter's words; the README's node-test paragraph and the node-test help's sequence say so for both runners. F2-L: a pause whose top frame lies outside the declared source reads its callers too, so its node-test.frame-checked names the declared source's calling frame again; pauses at the declared stop's place keep the one-frame look. F2-N: a harness row pins a learner's step that lands on the run's own breakpoint before a Bun test's release: no Continue, resumed false, a learner pause, and the release only after the learner's Continue. Review-Finding: p1/outside-voice#5 reader=outside-voice Review-Finding: p1/adversarial-native#2 reader=adversarial-native Review-Finding: p1/adversarial-native#3 reader=adversarial-native Review-Finding: p1/adversarial-native#5 reader=adversarial-native Review-Finding: p1/adversarial-native#6 reader=adversarial-native Review-Finding: p1/specialist-batched#1 reader=specialist-batched Review-Finding: p1/specialist-batched#3 reader=specialist-batched Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…ge, never reads the test's own work as outside, and never hangs a passing test (/gstack-ship pass 1) F1-A: a callback that the marks run outside their mark (one that another timer's work set and that fires once no test runs, or the running test's own callback that fires inside another timer's event loop) keeps the learner's AsyncLocalStorage values: it runs with the marks' own value set to unmarked instead of in AsyncLocalStorage.snapshot(), which emptied every store. The onTestFinished registration still leaves the marks' context through the empty snapshot wherever they ran work: AsyncLocalStorage exit alone leaves a context in which Bun 1.4.5 never ends the callback (probed). F1-B: work inside another timer's callback after that callback ran the event loop (Bun's expect(promise).resolves, which runs the test's continuation there) reads as unknown, and so does a timer set there: the window answers no window, so the run captures the stop attributed to no test instead of resuming the test's own work as outside. A reaction queued before each marked callback tells whether it ran the event loop; code it runs bound to an earlier context before that still reads as the other timer's work. F1-C: beforeAll and afterAll of bun:test register a guard right before each hook of the test file that closes a window a failed afterEach hook left open (Bun 1.4.5 then skips the preload's afterEach and the test's onTestFinished callbacks), so a pause in the file's afterAll reads outside the cited test; no count is written, as before. F1-E: the bootstrap stops the marks (the timer functions get their originals back, callbacks marked before run unmarked) and keeps no window when onTestFinished, beforeAll or afterAll of bun:test cannot be replaced, or when the loaded test file imports Bun's own functions (a bunfig.toml preload imported bun:test first; an import() in the hold's beforeAll compares them). F1-I: a timer function that cannot be replaced puts back those replaced before it. F1-T: the onTestFinished registration runs out of tail position, so no bootstrap frame shows below the test's next pause. README and help: the window's no-window cases, the failed-afterEach window and the AsyncLocalStorage values the bootstrap keeps. Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/outside-voice#3 reader=outside-voice Review-Finding: p1/adversarial-native#1 reader=adversarial-native Review-Finding: p1/specialist-batched#2 reader=specialist-batched Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…arner's callback ran and the label of a cut stack's last async part (/gstack-ship pass 2) C1: the label of the last async part of a stack that the debugger answered cut (totalFrames above the frames answered) stays, also when the frames fetched after it are all the test bootstrap's: its part goes on past the cut. A four-frame stack cut after the bootstrap's frame now records [app, async] with a total of 3, as the whole stack records [app, async, caller] with 3 (it recorded [app] with 2). An emptied last part of a whole stack still loses its label, and a label that ends a cut stack still stays. C2: only the frames the bootstrap's wrapping makes are left out: its own, the nameless native frame of a replaced timer function's proxy right below them, and the async context a marked callback runs in, the runtime's AsyncLocalStorage.prototype.run of <node_internals>/async_hooks right below the bootstrap's frame it runs, with the nameless native frame of its bound function right below that (a frame the filter kept so far). A runtime frame that the learner's callback runs stays, also right above a frame of the bootstrap's: an emitter's emit, the learner's own AsyncLocalStorage.run, the function AsyncResource.bind made. Probed on real Bun 1.4.5 through a headless js-debug 1.140.1 with this head's bundled bootstrap; the tests use the frames it answered. C3: the proxy refusal test starts the attempt's bound on node:test's faked clock, which never moves, and waits for the refusal on the real clock, so an attempt that waits out the bound before it refuses fails it (two such mutants passed the old test 5 s late and fail the new one). Review-Finding: p2/outside-voice#6 reader=outside-voice Review-Finding: extension/src/utils/withoutBunTestBootstrapFrames.ts:154:runtime-frame-beside-bootstrap-hides-caller reader=outside-voice Review-Finding: extension/src/tests/bindOwnedNodeTestDebugSession.test.ts:195:refusal-promptness-unchecked reader=outside-voice Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…r, the released pause is journaled once, and a stale stack read ends nothing (/gstack-ship pass 2) B1: whether a pause follows the learner's step now follows the newest request (by sequence number) that the adapter accepted. An older Continue whose answer comes after the learner's accepted step no longer clears that step, so Codebook no longer resumes the step's landing on its own breakpoint. Tests for both answer orders. B2: the run's own pause before a Bun test's release keeps its node-test.stop-outside-test pending until it is decided: resumed true when Codebook resumes it after the release, resumed false once it no longer holds the test without that Continue (the learner continued it before the hold's wait returned, before the release's answer, or before the stop's wait looked at it), once in every order, also when the adapter refused a Continue of the learner's at that pause. B3: a look's stack read counts only while the pause still holds the test as read. A read that the adapter refuses, or answers with a later pause's frames, after the learner's Continue no longer ends the run; the next look examines the current pause. B4: a Stop while the run waits for the test process's exit after a refused final Continue no longer journals node-test.final-continue-refused; the refusal stands. B5: the events list publishes node-test.final-continue-refused with the debugger's words (private roots replaced, masked and cut) and elapsedMs, asserted through the service's events resource; the README's node-test paragraph and the node-test help say what the event holds and that a stop during the exit wait leaves it out. A guard test pins the learner-made pause at the first stop whose test file is saved before the release: one unresumed record, the learner's pause, the plan-changed refusal after their Continue, and no release. Review-Finding: p2/outside-voice#4 reader=outside-voice Review-Finding: p2/outside-voice#5 reader=outside-voice Review-Finding: p2/specialist-batched#1 reader=specialist-batched Review-Finding: p2/specialist-batched#2 reader=specialist-batched Review-Finding: p2/specialist-batched#3 reader=specialist-batched Review-Finding: p2/red-team#2 reader=red-team Review-Finding: p2/red-team#3 reader=red-team Review-Finding: extension/src/ownedNodeTestRun.ts:903:second-stack-read-aborts-preparation reader=outside-voice Review-Finding: extension/src/ownedNodeTestRun.ts:2302:stop-in-grace-journals-false-acceptance reader=outside-voice Review-Finding: extension/src/service.ts:5538:final-continue-refused-detail-omitted reader=outside-voice Review-Finding: extension/src/service.ts:5538:core-final-continue-refused-published reader=core Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…their own async context, and no stop is attributed beside a preload that kept Bun's test functions or in a test begun inside a setup timer (/gstack-ship pass 2)
A1: the guard registered right before a beforeAll or afterAll hook of the
test file is registered in no async context, so a hook that the file
registers inside its own AsyncLocalStorage context (with done, or async)
runs instead of timing out; the file's hook stays in its context.
A2: an onTestFinished callback that the test registers where the marks ran
work is registered in no async context through a function with its length,
which runs it in the context the test registered it in (the marks' value
unmarked): it reads the learner's store, a callback with done gets done, an
async one is awaited. Where the marks never ran work, the registration
reaches Bun as given.
A3: the bootstrap reads the modules in Bun's module registry that ran
before it (a bunfig.toml test preload and every module it loads) and keeps
no window when one names bun:test or Bun.jest, or cannot be read, before it
marks or replaces anything. A preload whose modules name neither keeps the
window (happy-dom 21.0.4's 611 files name neither; read in about 15 ms).
The check of the test file's imports stays: a preload that uses Bun's test
functions as globals makes Bun import bun:test for it (probed).
A4: a timer callback that fired while no test ran is counted while it runs,
synchronously and in no async context; a test that Bun begins while one
runs (it ran the event loop) reads no window, as one begun in another
timer's work.
A5: the release-order test clears its flag before each pause; a new test
releases the hold at a pause of a callback that then runs the event loop.
Also: the hold records why it keeps no window (testWindowAbsence), which
bunTestWindowExpression does not read; restoreFunctions' two guards have
unit tests.
README and help: the no-window cases name a preload or a module it loads
that names bun:test or Bun.jest or uses Bun's test functions as globals,
and a test begun inside a timer's callback that fired before it;
require('bun:test') in a preload no longer keeps the window; the
AsyncLocalStorage sentence names onTestFinished callbacks.
Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#2 reader=outside-voice
Review-Finding: p2/outside-voice#3 reader=outside-voice
Review-Finding: p2/specialist-batched#4 reader=specialist-batched
Review-Finding: extension/src/bunTestBootstrap.ts:167:cjs-preload-retains-original-hooks reader=outside-voice
Review-Finding: extension/src/runtimeSupport/bunTestTimers.ts:136:setup-timer-acquires-test-attribution reader=outside-voice
Review-Finding: extension/src/tests/bunTestOutsideWork.test.ts:422:release-order-flag-never-cleared reader=outside-voice
Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
… for without a total keeps its last async part's label and says the call stack is truncated (/gstack-ship pass 3) K1: DAP lets a stackTrace answer leave totalFrames out, and then only a page shorter than the levels asked for ends the stack. The frame filter read a missing total as the stack's end: on a 32-frame page with the test bootstrap's frames around the last async part's label it dropped that label, kept one frame and returned no total, so the replay no longer said "Call stack is truncated." as the unfiltered page of 32 frames always did. The run now passes the filter the levels it asked for (NODE_TEST_STACK_LEVELS), and a page that holds as many frames counts as one frame short of the stack: the label stays and the total returned stays above the frames kept (3 for 2 kept), so the snapshot's rule records the truncation. A shorter page without a total stays whole, a named total counts as before, and a Vitest stop is still returned as the debugger answered it. The next page is not fetched, which would cost a round trip at every stop. Review-Finding: p3/outside-voice#5 reader=outside-voice Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…ork after the test file faked, spied on and restored the clock (/gstack-ship pass 3) C1 (Codex outside voice, High, Blocks yes): whether Bun's fake clock holds a timer is read when the timer is set, from jest.isFakeTimers of bun:test taken while the bootstrap loads, no longer from the clock property of the setTimeout taken then. jest.useFakeTimers() sets clock on the setTimeout the global object holds, and jest.useRealTimers() deletes it from the one it holds then, so a spy on setTimeout in between left it on Bun's own function (also after mockRestore), and every later setTimeout and setInterval callback passed unmarked: its pause counted as the cited test's. Probed on Bun 1.4.4 and 1.4.5. A faked timer that the test fires stays the test's also when set through the learner's spy, setImmediate stays marked, and a spy on jest.isFakeTimers counts no call of Codebook's. Without bun:test (Node) the check reads clock on the owner's setTimeout as it stands when the timer is set. C2 (specialist testing, informational): the test that stubs Reflect.apply and AsyncLocalStorage uses the test context's mocks, which the runner restores also when the test throws before its own restore. Review-Finding: p3/outside-voice#1 reader=outside-voice Review-Finding: p3/specialist-batched#3 reader=specialist-batched Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…still waits for its answer, and a stack answer that comes after the learner's Continue tells no pause apart before the release (/gstack-ship pass 3) R1 (outside voice; Codex structured review P1): whether a pause follows the learner's step now counts a step still waiting for the adapter's answer only when it was sent after the newest request the adapter accepted (or before any was accepted, fail closed as before). A Step Over (90) that led to a pause before its answer, followed by the learner's Continue (91) that the adapter accepted first, no longer makes the next pause of Codebook's own breakpoint the learner's: the hook's pause is resumed as outside the cited test instead of holding the test for a Continue nobody has a reason to press. A newer pending step (92) still keeps its pause the learner's. The late answer to the older step changes nothing, as before. Tests for both table rows. R2 (specialist, testing): the docs of unrecordedOwnPause and settleOwnHoldPause, and the Value card of the refused-release test, say that a run that ends while the run's own pause still holds the test (a refusal before or at the release, or a Stop) journals no record of it. No behavior change. R3 (native adversarial review, Low): classifyHoldPause uses a stack answer only while the pause still holds its session as read, as the stop's wait does since pass 2. An answer that came once the learner continued the pause (it may describe a later pause on its thread) no longer journals node-test.stop-outside-test or node-test.learner-paused for it, nor counts it as a stop that paused outside the cited test, so an early exit no longer names the outside-test sentence from a stale read. Pass 2's B2 test of the order "continued while its stack is read" now pins R3's outcome (no record); a new guard keeps B2's record before the release tested, with the Continue during the test file's comparison. README and help: unchanged; both already say that a pause a breakpoint or step of the learner made too stays the learner's. Review-Finding: p3/outside-voice#3 reader=outside-voice Review-Finding: p3/specialist-batched#1 reader=specialist-batched Review-Finding: p3/adversarial-native#4 reader=adversarial-native Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…tered apart attributes no stop to the cited test and names that cause (/gstack-ship pass 3) F1 (Codex structured review P1): the test bootstrap registers an onTestFinished callback that the test registers in another timer's work, or in its own timer that fires inside such work, in no async context, so Bun ends it also without a done call, where Bun alone could wait for that done and fail the test by its timeout (probed on Bun 1.4.5: plain bun test fails the reviewer's case after its done timeout and exits 1; with the bootstrap it passed and the count's file held 1). The registration stays as it is. The marks now note a registration apart that Bun accepted (hasRegisteredApart), and the bootstrap's afterAll writes the marker 'callback-apart' into the count's file instead of the count. readBunTestEntries reads exactly that marker as its own value (any other text that is no whole number still reads as none), and the run's bunTestRanAgainRefusal answers it with a new sentence (bunTestCallbackApartText): the run attributes no stop to the cited test, and the history seals partial with that cause instead of the generic unread-count sentence. README (the Bun limits' bootstrap-frames bullet) and the node-test help (the retry limit) state the consequence and quote the sentence; the existing pins of both texts follow. New tests: bunTestCallbackApart.test.ts. Review-Finding: extension/src/runtimeSupport/bunTestTimers.ts:285:on-test-finished-registered-apart-changes-result reader=outside-voice Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…s jest leaves no window, while one that registers happy-dom's globals or loads data files keeps it (/gstack-ship pass 3)
S1 (Critical): the bootstrap's look at the modules that ran before it
reads the word jest beside Bun or the bun module, in the same module or
another one, so a preload that takes Bun's jest under any name
(const { jest: getTestApi } = Bun, import { jest } from 'bun', with or
without a rename, require of the bun module, a namespace import, or Bun
handed on by another module) keeps no window, and the hold says
"a module loaded before the bootstrap names Bun's jest". Bun 1.4.5 hands
out the very functions of bun:test through each of these (probed). A
module that names jest without Bun or the bun module keeps the window.
S2: a file that Bun runs no JavaScript of (JSON with package.json,
JSONC, JSON5, TOML, YAML, text, Markdown, HTML, CSS, WebAssembly, SQLite,
native addons) is neither read nor matched, unless a loader setting can
run it as code: a module that names a code loader in an import attribute
or a plugin, or the working folder's bunfig.toml that names a loader
(probed: each of these runs a .json or .txt file as code on Bun 1.4.5,
a global .bunfig.toml or a parent folder's does not).
S3: a module that cannot be read keeps no window under its own reason,
"a module loaded before the bootstrap cannot be read".
S5: a registry whose listing throws keeps no window under that reason
too, and the test still runs; the error no longer escapes the preload.
Also: Bun's own modules, listed by a bare name such as the ws that Bun
gives happy-dom, are left out, so a preload that registers happy-dom's
globals keeps the window (probed with happy-dom 21.0.4: on 387d927 it
kept none, 497 modules read in about 12 ms now).
README and help: the no-window clause names jest beside Bun or the bun
module, a module that cannot be read, and the data files Codebook does
not read; the two docs pins of that clause follow it.
Integrated by cherry-pick after fixer F: the README Limits lines of both commits sit side by side and were merged by hand, each kept as its commit wrote it, as were both why_changed notes on the help pin's card.
Review-Finding: p3/outside-voice#2 reader=outside-voice
Review-Finding: p3/outside-voice#4 reader=outside-voice
Review-Finding: extension/src/bunTestBootstrap.ts:195:bun-object-jest-alias-bypasses-scan reader=outside-voice
Review-Finding: extension/src/bunTestBootstrap.ts:194:module-scan-reads-whole-files reader=outside-voice
Review-Finding: p3/specialist-batched#2 reader=specialist-batched
Review-Finding: p3/adversarial-native#2 reader=adversarial-native
Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…otstrap's reason in its unconfirmed-window event and its withdrawal sentence (/gstack-ship pass 3)
A1 (red team, informational): the bootstrap records why it keeps no
window (a bunfig.toml test preload that names bun:test, an irreplaceable
timer or bun:test function, Bun's own functions imported first, a refused
hook), but the window read answered null for every cause, so the run's
node-test.test-window-unconfirmed reason and the withdrawal sentence
blamed only hooks and timers.
- bunTestWindowExpression answers { absence } with the hold's reason while
no window is kept; a kept window is read first, and its unclear answer
stays null.
- bunTestWindowOf accepts { absence } only as one line of text up to
BUN_TEST_WINDOW_REASON_LIMIT_CHARS; any other shape reads as unread.
- readBunTestWindow journals "The test bootstrap kept no test window:
<why>." and keeps the reason; withdrawAtPause passes it to
unconfirmedBunTestWindowText, which names it. The stops stay attributed
to no test, so only the words change.
- README and help clauses quote both forms; the help pin and seven
real-Bun window assertions follow the new answer.
Integrated by cherry-pick after fixer S: on the README Limits line, the help entry and its pins, this commit's appended sentence was applied to fixer S's version of the same line, and the hold's doc in bunTestBootstrap.ts now says the run reads the absence reason in the window's place.
Review-Finding: p3/red-team#2 reader=red-team
Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…ason that the window expression answers once no window is kept (/gstack-ship pass 3 integration) Fixer S wrote bunTestPreloadScan.test.ts against 387d927's window expression, which answered null for a hold without a window. Fixer A's commit, cherry-picked after it, makes the expression answer { absence } with the hold's reason, so the ten no-window rows now expect that reason in the window column too, as fixer A updated the rows of bunTestOutsideWork.test.ts. No product code changes; 16 of 16 pass on real Bun 1.4.5. Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
… checked top frame as a truncated stack, and a pause continued while its callers are read is looked at again (/gstack-ship pass 3, final-range CLI pass) Final-range CLI item 1 (major): the look at a pause reads its top frame alone since the review round, so the stop's own read of 32 frames comes after the stop's source and declared values were checked, and a refusal of that read ended the capture. A read the adapter refuses, or does not answer within the active bound, while the stop's pause still holds the test and the capture goes on now keeps the top frame the look checked, with a total one frame above it, so the replay says "Call stack is truncated." (stopStackOf). A cancelled run, a spent capture budget or a pause that no longer holds the test still ends the capture with the read's failure. Final-range CLI item 3 (minor): checkedWithCallers discarded a caller read that the learner's Continue overtook but returned the top frame's check, so examinePause reported a pause that had ended as the learner's to continue. The pause is now checked again once its callers were read: one that no longer holds the test records nothing, and is looked at again while a resume of it waits for its answer (lookAgainWhileResumeAwaited). Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…rome-start Stop tests fail when the state they claim is absent (/gstack-ship pass 3, final-range CLI pass) Test only; no product code changes. - Item 8 (final-range CLI pass, bunTestOutsideWork.test.ts): the other timer's callback holds a flag around its nested wait (expect().resolves), and the own timer's pause names it, so the three own-timer cases (its pause, its onTestFinished registration, the learner-context case) fail when the own timer fires outside that wait. Probed on Bun 1.4.5: the own timer fires inside that wait in 10 of 10 runs. - Item 9 (ownedNodeTestRun.test.ts): both waits of the call-stack Stop case are bounded with within(); it asserts that the second stackTrace was sent and that the preparation rejected with "Cancelled the stop's call stack". - Item 10 (ownedNodeTestRunBun.test.ts): the exit-wait Stop case races exitWaitBegun against the continuation's end and requires the exit wait to begin first, so a continuation that rethrows the refusal at once fails it. - Item 11 (reverseProxyBrowser.test.ts): the pid wait also ends once the probe settles, and a probe that settled first fails the case with its outcome instead of a readiness timeout. Each passes on 6150b71 and fails on its wrong state (mutated scratch copies in dist). Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
…ith comments beside the colon leaves no window when the file it runs names bun:test, and a window reason split by U+2028 or U+2029 reads as no reason (/gstack-ship pass 3, final-range CLI pass)
Final-range CodeRabbit CLI item 5 (bunTestBootstrap.ts, CODE_LOADER_NAMING):
the loader check reads whitespace and up to four comments of up to 256
characters on each side of the colon, block or line comments, so
with { type: /* note */ 'ts' }, type /* a */ : 'ts' and line comments
there count as naming Bun's ts loader, through which Bun 1.4.5 runs a
.txt file as TypeScript (probed with bun run and in a bunfig.toml test
preload). The gap is bounded: Bun's regular-expression engine gives up
a match that takes too many steps and answers no match, so a gap of any
length let 20,000 comment lines ending in "type" hide a later naming
(3.6 s, probed); the bounded gap reads 16 MB crafted texts in under a
second and typescript.js four times over in 45 ms on Bun 1.4.5.
Final-range CodeRabbit CLI item 13 (bunTestWindowOf.ts): the window
read's absence reason refuses U+2028 and U+2029, the JavaScript line
terminators besides line feed and carriage return, so such a reason
reads as an unread window with the generic event reason and sentence.
Final-range CodeRabbit CLI item 6 (bunTestBootstrap.test.ts, test only):
the open-window test asserts with lstat that nothing stands at the
count's path (ENOENT); with a folder placed there, the old read-and-catch
passed and the new assertion fails ("Missing expected rejection").
Final-range CodeRabbit CLI item 12 (nodeTestBunReportRefusal.test.ts,
test only): the expected masked path is built with join, since the mask
replaces only the home folder, so on Windows the event reads
~\repo\packages\app and the expectation matches it.
README and help: none changed.
Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
VERSION, extension/package.json, EXTENSION_VERSION and the package test's expected version move to 0.2.153.0 (bump-version.mjs --check: all five places agree). CHANGELOG.md gains the 0.2.153.0 entry. The docs audit found every behaviour the entry names already stated in extension/README.md, so the README is unchanged. Claude-Session: https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #397 +/- ##
==========================================
+ Coverage 95.31% 95.63% +0.31%
==========================================
Files 1506 1510 +4
Lines 290152 291336 +1184
Branches 39810 40417 +607
==========================================
+ Hits 276557 278605 +2048
+ Misses 13494 12651 -843
+ Partials 101 80 -21
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
Author
Cycle 0157 time report
Times come from the Issue and PR timestamps, the commit times and the cycle's running timeline.
The native checks on
Where the time went:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A stop of a test on Bun's test runner now belongs to the cited test only when the test's own work paused there. A timer that the test file or a
beforeAllhook set no longer counts as the test's when it fires during the test.Until now the chat and the saved replay could explain another piece of work's values as the test's, a defect carried from Cycle 0156.
Nothing to do. Cycle Issue: laststance/codebook Issue 396 (close by hand after the merge, the time report and the artifact rotation).
What changed
Codebook used to decide a Bun pause by the cited test's window alone, which runs from Bun's
beforeEachfor that test to itsafterEach. A timer that the test file set while it loaded, or that abeforeAllhook set, could fire inside that window. Its pause at a declared stop was then captured as the test's, and the replay sealed complete.Now Codebook's test bootstrap marks each callback of
setTimeout,setIntervalandsetImmediate(also ofnode:timers) by who set it. The mark carries past the callback'sawaits and into the timers it sets in turn.A pause in another timer's work at a declared stop is resumed and journaled
node-test.stop-outside-test. The test's own later pause at that stop is the stop.Where the window cannot tell the test's work from another timer's, the run's stops are attributed to no test, the history seals partial with the reason, and the chat cannot cite them. This covers:
retry,repeats);afterEach;bunfig.tomlpreload that keeps Bun's own test functions, because it namesbun:test, takes Bun'sjestunder any name, cannot be read, or uses the test functions as globals.The run names the cause. A preload that only registers happy-dom's globals keeps the window, and data files are not read.
An
onTestFinishedcallback that the test registers in another timer's work is registered outside the test's async context, so a test that passes without Codebook never hangs. The run then attributes no stop and says why.Bun's fake timers: the marks read Bun's fake clock when each timer is set.
A test that ends right after its last stop, a Vitest test as a Bun test, keeps its result when its process exits before the debugger answers the final Continue (
node-test.final-continue-refused).Call Stack: the native debugger's Call Stack can show the bootstrap's frames greyed out as skipped. The Test replay's Call Stack leaves them out.
The limit, named in the README and the
bunTesthelp (decision O8): other work that began before the test, such as a promise already being waited for or an I/O or event callback, still counts as the test's when it runs during the test.MCP API 1.47 and history header 3 stay. The new journal details are additive.
Acceptance criteria
1747bbca). The measured-health retake is in4378593f. Nothing else had a newer allowed version (O7), andpnpm auditis clean. Met.8bc12f15. Under rule 2, f has no test; the README and help name it. Met.bunTesthelp, and a CHANGELOG entry whose every sentence has its README sentence. Met.f6f7947b, and before that on387d9270. See Exploratory QA.protects,fails_whenandno_claim. Step 8 found two cards missing, added in7ba2b0f3. Met.f6f7947band on the release head. Required CI is green on the release head.Blast radius
The test bootstrap runs inside the learner's Bun test process, where it wraps the timer functions and registers hooks. The attribution sits in
ownedNodeTestRun.ts, which Vitest runs share; Vitest runs also get the stack-read and final-Continue changes.service.tsprojects the new journal details. The full suite, which holds the Vitest route's tests, passed on each integrated head since9ade2276(16,315 tests on the release head, 0 failed; script ran). Native checks ran Bun tests only.Test Coverage
Step 7's audit found all 30 new paths covered once its rating pass was done (value-weighted 100%). It added 3 tests (
cbe2ed8b).Pre-Landing Review
There were three
/gstack-shippasses, each followed by fixes (fixing cycles 1, 2 and 3 of 3). The final-range CodeRabbit CLI pass followed, and its findings were fixed inside cycle 3. The loop did not converge (converged:false): pass 3 was the last review the ship limit allows.7ba2b0f3:42107bcc,1b0dd24f,317b35b4,9ade2276).7ba2b0f3..9ade2276:e84d6f64,cd3546b5,387d9270).387d9270(41 files, 14 chunks):a53034cf,dbe36e53,22f8cf42,8d44f3d3,dbe2d1b1,73c8f0e1,6150b718).73c8f0e1(base8bc12f15): 2 Major, 11 minor, 1 unverified.ec352765) and the scan tests' expectation (6150b718).ec352765,fc590006andf6f7947b.f6f7947b's new commits (73c8f0e1..f6f7947b): 1 Major, refuted by running. It says the window expression drops the absence reason. Atf6f7947bthe expression returns{ absence }for a string reason, and both test files the finding names pass.Carried to the next cycle, a bug-fix cycle, under the ship review limit:
codebook_presentationfails. Codebook: Open Study Workspace then fails too, with "Native panes or learner focus changed while the new application registered; the arrangement was preserved", until the learner opens a file.studyWorkspace.tshas not changed since v0.2.134.0, and the root cause is unknown.f6f7947bfound it. Its proof needs a native check.Answered Skip (none is a defect under the cycle rule):
resumed: trueis journaled before its Continue's answer. This is Low, on the natively verified path, and a refusal there fails the run anyway. Codex structured review and outside voice raised it, and so did the final-range CLI pass.Promise[Symbol.species]getter could hold a marked callback (final-range CLI pass).Exploratory QA
All native checks ran in the macOS QA VM, on the pinned Elysia clone (
e212071a) with Bun 1.4.5. Each used a different natural/codebookquestion, the learner's 「続けて」 at each stop, a save, a reopen after a reload, a value comparison and a step mark kept across a second reload.Build
f6f7947b, the final code: PASS in all three editors (each run log is a comment in Issue 396).mergeDeep› handle circular referencesRedirect› handles redirect with explicit statushas Ref› return true if nested object property has refCursor update: Cursor moved from 3.32.23 to 3.32.24 that day. The live step therefore ran first on the installed
387d9270build, the same-day baseline the host-update rule asks for.Build
387d9270: PASS in all three editors (run logs in Issue 396).Build
cbe2ed8b: VS Code PASS (run log in Issue 396).No run journaled
node-test.stop-outside-test,node-test.stops-unattributedornode-test.test-window-unconfirmed. Elysia's tests set no timer outside the test. Real-Bun tests with isolated fixtures prove the defect itself (AC3).Evidence stays private under
artifacts/c157/; each comment names its manifest's SHA-256.Design Review
There is no visual change.
Eval Results
This repository has no eval suites.
Scope Drift
Scope Check: CLEAN.
Plan Completion
Step 8 counted 28 items:
7ba2b0f3).Linked Spec
Linked to Issue 396 (not auto-closing). Close it by hand after the merge, the time report and the artifact rotation. Spec: the Cycle 0157 spec (
20261130-144116-39898-cycle-0157-a-timer-that-a-bun-test-file-set-before-the-cited.md), filed 2026-11-30 at 05:41 UTC.Issues
This PR fixes no issue besides its cycle Issue 396 (
gstack-issue-links: none).Verification Results
The plan's native checks ran at Step 9.2.1 on the final code build
f6f7947b: 3 PASS, 0 FAIL, 0 BLOCKED, 0 NOT RUN (Exploratory QA).Left for later
bun:testfirst (decision O13).387d9270, attempt 1).node-testevent projection inservice.ts: its arrow at line 5346 is now cyclomatic 49.Documentation
Status: current. Every behavior the 0.2.153.0 entry names has its sentence in the packaged README, and no other README sentence states behavior this branch changed; no file was edited.
Scope. Ship-owned audit in edit mode of the candidate: base 8bc12f1, head f6f7947 (28 commits, 47 files), plus the unstaged release metadata (CHANGELOG.md, VERSION, extension/package.json, the package test, extension/src/constants.ts); nothing staged or untracked. Docs roots: AGENTS.md (CLAUDE.md through the symlink), CHANGELOG.md, PRODUCT_GOAL.md, README.md, extension/README.md, extension/skills/codebook/SKILL.md and the v9 PNG. Read in full: the README's Save learning replay and Test replays sections (lines 119 to 255), its node-test contract lines (544, 607) and its recorded call stack line (859), PRODUCT_GOAL.md's learning-replay contract, the root README, the skill's test-run paragraph and the PNG, whose identity matches the Design target. Keyword scans covered the rest of the README and of the other roots. Source read to check the contracts: the diffs of the small product files under extension/src in full, and the docstrings and changed regions of ownedNodeTestRun.ts, bunTestBootstrap.ts, bunTestTimers.ts and withoutBunTestBootstrapFrames.ts.
Result. All twelve rows of the driving agent's CHANGELOG-to-README map hold at the cited lines (132, 217, 227, 228, 232), and the quoted names, fields and sentences match the code:
node-test.final-continue-refusedwithreasonandelapsedMsand its 2-second exit wait,The test bootstrap kept no test window: <why>., and the onTestFinished, retry and test-window sentences. Untouched README sentences stay true. Two fixes the entry does not name (a late js-debug proxy answer still binds a test or server run; a refused call-stack read keeps a truncated stack) contradict no README sentence. Versions agree across VERSION, the CHANGELOG heading, extension/package.json, EXTENSION_VERSION and the package test, and CLAUDE.md's Fallow 3.51.0 matches the pins.Debt. No critical gaps: every changed surface has reference coverage in the README. Common gaps: the onTestFinished limit has no how-to (what to change so the stops count), the timer rule's how-to (declare a line the test itself runs) lives only in the node-test help, and no Bun limit has a tutorial (the Quick start covers the general flow). Diagram drift: none; PRODUCT_GOAL.md's two Mermaid diagrams are product-level, and no docs root names the changed modules.
Tests
pnpm --dir extension gateon the release head11c5180b: GATE pass, 16 of 16 checks. Its suite under coverage ran 16,315 tests (16,297 passed, 0 failed, 10 skipped, 8 todo), and measured health scored 87 A.gstack-ship-preflight --tests-only --base main --lane tests='pnpm --dir extension test'on11c5180b: PREGATE pass, and the tests lane passed (16,315 tests: 16,297 passed, 0 failed, 10 skipped, 8 todo).pnpm --dir extension gateonf6f7947b, the final code head: GATE pass, 16 of 16 checks. Its suite under coverage ran 16,315 tests (16,297 passed, 0 failed, 10 skipped, 8 todo).pnpm --dir extension testafter each fixing cycle's integration, 0 failed each time:9ade2276: 16,231 tests;387d9270: 16,259;6150b718: 16,306;f6f7947b: 16,315.f6f7947band 3 on387d9270(VS Code, Cursor, Devin Desktop), and 1 oncbe2ed8b(VS Code). All 7 PASS.73c8f0e1: 2 Major, 11 minor, 1 unverified;73c8f0e1..f6f7947b: 1 Major, refuted by running;11c5180b:VERIFY: clean, 2 briefs and 2 outputs, no finding.11c5180b: 32 checks passed; 2 skipped (the hosted CodeRabbit review, off for this PR under owner direction, and the split-files job, which runs on pushes tomain).Agent notes
REVIEW_LOOP: passes=3 blocking_found=28 deferred=0 noted=20 fixed=57 scope=frozen ledgers_read=3 dispatches=14 est_input_tokens=1769950
TARGETED_RECORD: classes=money,gate status=done findings=0 brief=7f92a0d0a831 rules=486f50f9badb8759 read=11c5180b8b55
Gate edits: partial (39 of 45 eligible hunks read, cap 39 reached; pass 3, the whole diff); 2 findings, 2 kept, 0 restored, 0 open
RH-16,
extension/src/bunTestBootstrap.ts: kept. Its catch blocks run in the learner's Bun test process, where a throw would fail the learner's test; a failed step leaves no window, so the run attributes no stop.RH-16,
extension/src/runtimeSupport/bunTestTimers.ts: kept. A throw while the timer marks install would end the learner's test program; a failed install leaves no marks and so no window. A timer function that refuses to be set back runs as the original once the marks stop.Review loop: 3 passes and 3 fixing cycles of 3, not converged (
converged:false, the ship review limit). The final-range CodeRabbit CLI pass's findings were fixed inside cycle 3. Each later head had its own CLI pass:f6f7947b's new commits, and the release commit.Docs audit:
c157-docs-20261201T025935Z(1 of 2 attempts) found every doc current and edited nothing. It noted two changes the entry does not name. A request for js-debug's proxy that js-debug leaves unanswered is asked again after 2 s instead of 20 s, and a late answer still binds the run. A stop whose call-stack read the debugger refuses keeps a truncated stack; that second read is new in this branch. No README sentence describes either; they are named here instead of in a second audit.Release commit route (Discussion 243):
git diff f6f7947b 11c5180bholds only the three-part version strings,VERSION,CHANGELOG.mdand the package test's version line.No ship receipt (decision O19 in Issue 396): Step 11.5 cannot bind at
converged:false. The review rows hold pass 3's tree387d9270, not the final tree, and the ship limit allows no fourth review to make new ones.merge-pr.mjsgates on the exact-HEAD gate summary, the PR head and CI, not on a receipt. The receipt's inputs are in these notes instead: theREVIEW_LOOPandTARGETED_RECORDlines, the gates in Tests, and the docs audit.Package obligation: none was open (the pregate record's
requires_remoteis empty). The PR's ownpackage.ymlrun passed on11c5180b.Hosted CodeRabbit stays off for this PR (owner direction):
@coderabbitai ignore
https://claude.ai/code/session_01PKcobVS7Z8bkgmA4xFNPFZ
Review bot comments
fallow3.50.0 to 3.51.0, with no alert.