Repository navigation
Description
Out of scope
No production free-space policy, scope-floor formula, Stop-only behavior, timeout, behavioral assertion, offline launcher or generic createFixtureApp change. Do not reject boot-only callers, fake runtime statfs, provision storage in the harness, or weaken the actual resource guard.
Context
The caller audit required by #2394 found five more running-turn fixture suites that fail on a filled 3 GiB tmpfs without an explicit capacity prerequisite. The selected A1 helper is implemented by #2394; this follow-up applies it only where a real running turn is required.
Source at 5942148decae04852c2a99e39e0aa00112e11ef2:
| Suite | Current source | Filled-storage result |
|---|---|---|
packages/ui-react/tests/draft-runtime.test.ts |
Brain creation at :73-75; original held-turn completion wait at :241 | 390px saved/restored/conflict/revision scenario: 15-second assistant-content timeout after release; 0/1. |
packages/ui-react/tests/tracker-runtime.test.ts |
Brain creation at :44-46; original tracker wait at :166 | 320px left-running/unwatched/reload/seen scenario: 15-second tracker-state timeout; 0/1. |
packages/ui-server/tests/subscription-login.test.ts |
sendTurn at :106; outcome assertion at :172 |
Rejected-token scenario observes cancelled instead of error; 0/1. |
packages/ui-server/tests/subscription-status.test.ts |
boot at :222; turn at :253; retained proof assertion at :321 |
Successful subscription proof is null; 0/1. |
packages/ui-server/tests/ws-scope-caps.test.ts |
Fixture/brain creation at :21-23; tool-cap assertion at :98 | Claude dictation sees free_space_floor, cap 2147483648, instead of its tool-call cap; 0/1. |
The audit used Bun 1.4.2 and real Chrome for Testing 153.0.8010.12 under the repository offline launcher, empty IPv4/IPv6 main route tables and zero setup capabilities. The filesystem held 3221225472 total bytes; the 1600 MiB fill initially left 1543503872 available bytes, below the unchanged 2147483648-byte floor.
Unfilled controls on the same 3 GiB filesystem initially had 3221225472 available bytes against the same 2147483648-byte floor. All five original selected cases passed unchanged: draft-runtime.test.ts: 1/1, 32 assertions; tracker-runtime.test.ts: 1/1, 10 assertions; subscription-login.test.ts: 1/1, 6 assertions; subscription-status.test.ts: 1/1, 3 assertions; ws-scope-caps.test.ts: 1/1, 16 assertions. Only the explicit fill differs between arms; these are focused controls, not whole-suite qualification.
The audit inventoried 43 factory-calling suites and ran focused filled-storage probes in 18 additional turn-admitting suites. Thirteen additional focused probes passed: answer-delivery, approval-recovery, association-signout, auth-expiry, chat-focus, local-work, share-draft, host-capability-note, integration/inbox-bridge-host, integration/real-socket-answers, ws-main-model, ws-revocation and ws-turn-budgets. The remaining 22 callers received source inspection, not a full runtime matrix. Passing short-turn probes do not establish every case in their suite.
Scope
- Reuse
packages/ui-server/tests/helpers/turn-free-space.tsfrom test(ui-react): attribute scope freeze refusal dropping queued recovery replies #2394. - Add explicit calls before the first real turn in the five failing suites, checking their actual brain paths.
- Keep boot-only cases in subscription-status and other shared setup paths usable without a blanket check; put the prerequisite at the turn-running boundary.
- Preserve the existing source, assertions, deadlines and real scope monitor.
Acceptance criteria
- Each named filled-storage case refuses before its first turn with
TurnFixtureFreeSpaceErrorcontaining brain path, available bytes, required bytes and a TMPDIR remedy. - Every original named scenario passes on a sufficiently provisioned filesystem, including the complete original browser cells and adapter variants affected by the call placement.
- Removing each new explicit call reproduces its original low-space signature; restoring it gives the named precondition error.
- Boot-only/shared-factory callers do not acquire a blanket prerequisite. Keep the production low-space guard covered.
- Parent-relative preflight passes with actual filesystem capacity/free/floor and runtime/mutation receipts recorded in the PR.
Verification
Use docs/process/testing.md's caller-owned private tmpfs recipe and scripts/test-offline.sh. Compare size=3g without fill against fallocate -l 1600M before launch. Run real browser tests for drafts and trackers; no provider calls or network access.
Focused selectors from the audit:
bun run test packages/ui-react/tests/draft-runtime.test.ts -t '390.*saved on the host'
bun run test packages/ui-react/tests/tracker-runtime.test.ts -t '320.*left running'
bun run test packages/ui-server/tests/subscription-login.test.ts -t 'ends the turn with authentication_failed'
bun run test packages/ui-server/tests/subscription-status.test.ts -t 'the last proof is a successful subscription turn from the store'
bun run test packages/ui-server/tests/ws-scope-caps.test.ts -t 'claude: dictation'Contract impact
None. Test-only opt-in calls to an existing helper; no production API or shipped behavior changes.
2026-11-10 triage at main d79eeed0a: #2394 is closed as completed through #2609 (squash aa8c8966b, on main), so its Blocked by line moved here as history. No active blocker.
Activity
schlessera commentedon Oct 22, 2026
Unblocked: #2394 is closed, so
scripts/sync-project.tsis removing theblockedlabel.schlessera commentedon Nov 2, 2026
2026-11-02, another hosted instance: run 41477145795,
unit (4), on a candidate whoseci.ymlchange selects the full unit suite (#3279).TurnFixtureFreeSpaceError: the fixture brain filesystem had 2,618,241,024 bytes available and required 3,844,357,734.4 bytes, which is 5% of the total. Fourclaude-cancellationcases failed this way.a rejected subscription token > ends the turn with authentication_failed, withExpected: "error";claude/pidictation pauses, grants once…; andclaude: true voice stops without a grant. None of the four carries a low-space attribution.The same full selection passed on #3278's candidate earlier the same day, so this tracks how full the runner is rather than the code.
schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
d79eeed0a:priority: p2. Wanted: the unattributed low-space failures recurred on hosted CI on 2026-11-02, but there is no milestone or ruling, and nothing is blocked by it. #2394 is closed and its helper is the one this issue reuses.agent-readystays.The closed blocker named in the body is delivered (merged PR on main), so I moved its
Blocked byline into a dated historical note.schlessera commentedon Nov 10, 2026
Test-health run (batch
e3855-ui-react-06, commit4b1ac8c4eontest-health/e3855-ui-react-06-a, not yet merged) covers tracker-runtime.test.ts only:requireTurnFreeSpace(brain)now runs right aftercreateFixtureBrain(repo, brain), as inconnection-continuity-runtime.test.ts.Receipts, Bun 1.4.x, real Chrome, caller-owned private tmpfs (
unshare --user --map-current-user --keep-caps --mount,size=3g) underscripts/test-offline.sh --mount, selector-t '320.*left running':fallocate -l 1600M; total 3,221,225,472, available 1,543,503,872), before the call: 0 pass / 1 fail,TimeoutError: waitForFunction: Timeout 15000ms exceededfromuntil. This is the original signature.TurnFixtureFreeSpaceError: the brain path, 1,542,115,328 available bytes, 2,147,483,648 required, and the TMPDIR remedy.Still open for this issue: draft-runtime, subscription-login, subscription-status and ws-scope-caps. The batch PR will say
Refs #2551.schlessera commentedon Nov 10, 2026
Test-health push (epic #3855), batch
e3855-ui-server-04(runth-20261110174252-07efe9, clusters 6 and 41): the three ui-server suites in this issue now callrequireTurnFreeSpacefrompackages/ui-server/tests/helpers/turn-free-space.tsat their turn-running boundary. The two ui-react suites are not part of this batch, so the batch PR saysRefs #2551.subscription-login.test.tssendTurn(app.config.brainPath)subscription-status.test.tsturn(app.config.brainPath)turnws-scope-caps.test.tstry, so a refusal still restores every stand-inReceipts, at the epic base
0129244ad0781c426f7d3f2363c92d8993aefaeeplus these commits, Linux 6.18 WSL2. The filled-storage arm runs each named case underbwrap --unshare-user --bind / / --size 1073741824 --tmpfs <dir> --proc /proc --dev /dev env TMPDIR=<dir> bun run test <file> -t '<case>'(a 1 GiB tmpfs, about 1.07 GB available against the unchanged 2147483648-byte floor):a rejected subscription token > ends the turn with authentication_failedTurnFixtureFreeSpaceErrornaming the brain path,1071665152 available bytes,at least 2147483648 bytes, and the TMPDIR remedyExpected: "error"/Received: "cancelled"the last proof is a successful subscription turn from the storeTurnFixtureFreeSpaceError(1071661056 available bytes)expect(received).not.toBeNull()/Received: nullclaude: dictation pauses, grants once, …TurnFixtureFreeSpaceError(1073721344 available bytes)free_space_floor,cap: 2147483648instead of the tool-call capOn the ordinary filesystem every case passes:
bun scripts/test-health.ts measure <file> --runs 5 --shufflegives 10/10 runs without failure for each ofsubscription-login.test.ts,subscription-status.test.tsandws-scope-caps.test.ts. The production free-space guard, assertions and deadlines are unchanged.