Skip to content

test: stabilize worker and session fixtures and expose runtime prerequisites - #4084

Merged
schlessera merged 3 commits into
mainfrom
test/4005-nested-runtime-prerequisite
Nov 16, 2026
Merged

schlessera merged 3 commits into
mainfrom
test/4005-nested-runtime-prerequisite

Conversation

@schlessera

@schlessera schlessera commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Closes #4005
Closes #3995
Closes #3998

What changed

The maintenance abort fixture holds a real FIFO reader until after EOF and abort, so pool scheduling cannot accept the result ahead of the intended race. Parallel-session cases drain their host turns between cases; a held post-result Deny turn permanently exercises the predecessor window, and unexpected trackers print their identities. The offline runtime-placement experiment reports the real nested worker-host prerequisite and AppArmor label before capture, with both placement and network-isolation assertions preserved.

Why this shape

The issues' controlled reproductions attribute two failures to fixture ordering and one to the nested proof environment. These corrections follow that evidence and leave production behavior, tracker rules, timeouts, retries and worker/network boundaries unchanged. No consumer-visible package change or changeset is needed. The confirmed upcoming milestone is 0.45.0 (registry latest 0.44.0, live 0.45.0 milestone and current deliveries).

Proof

Source base: 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9. Bun 1.4.4.

  • test: offline runtime placement probe exits before producing its receipt #4005: original same-byte placement case reproduces the generic SDK exit on the bare host. The new controlled-refusal case fails first at NESTED_WORKER_HOST_FIRST_CAUSE; adding the real nested-host precondition passes it. Removing the precondition independently fails the same assertion, and restoration passes. A qualified Ubuntu 24.04 offline container passes both tests / 11 assertions: network interfaces ["lo"], 2 placements, 2 measured requests, installed/runtime SHA-256 8968405e26db478af44eabc4635ab5ca557057b702a54460a59c13e1b253e978, CLI versions 2.1.293 in both placements. The outer bubblewrap and real worker boundaries remain active. The test-only container uses its own same-byte bubblewrap copy to avoid the outer distribution AppArmor attachment described by the issue; host policy is unchanged.
  • ui-sdk: the abort-during-pipe-release case accepted a result once in a long run (ABORT_DURING_RELEASE_REFUSES) #3995: the issue's foreign-work forcing at four CPUs fails the original named case with ABORT_DURING_RELEASE_REFUSES, received undefined. The extra real FIFO reader orders EOF, abort and release without timers; the full file passes 6 tests / 22 assertions. Removing the production post-release throwIfAborted fails the same assertion; restored source passes 20/20 iterations on four CPUs. Production code is unchanged in the final diff.
  • ui-react: two 390 px parallel-session cases saw a tracker for a watched session once in a long run #3998: the permanent post-result Deny barrier reproduces the original case in real Chrome 153.0.8010.12: active odysseus-parallel-4, unexpected view odysseus-parallel-3, state running, actual predecessor turn ID retained in the local log. The actor case passes and its following parallel case fails. Removing the new per-case drain independently reproduces the same named assertion; the drain is restored afterward. This is fixture carry-over. The repair drains the real host after each case and retains the barrier and strict empty-view assertion. All 16 selected 390px cases / 752 assertions pass in real Chrome, including both originally reported sequences; no tracker rule or deadline changed.

The optional outer offline shell refused its UID mapping on this host; this is excluded from browser behavior evidence. The real-browser runs retain the repository preload and the fixture's origin-only request routing.

Local preflight passes: lint/leakage, environment docs, changeset gates, 1,208 affected fast tests / 7,893 assertions. Root tsc --noEmit passes with NODE_OPTIONS=--max-old-space-size=8192; its default 2 GB run exhausted the V8 heap and is excluded from successful proof.

bun run check:pr --base origin/main
{"version":1,"kind":"brain-check-pr-receipt","head":"3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9","base":"origin/main","mode":"focused","startedAt":"2026-11-16T12:58:15.486Z","finishedAt":"2026-11-16T12:59:53.351Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":14160.970242},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":119.85330400000021},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":86.57678600000145},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":17.519846999999572},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":83461.365063}]}

Candidate: head bb23e28df83c3afa1edbb982cbdd1ecbd7d16ca5, live base 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9, synthetic merge 620cbd8eab58f34272ee7f294e4e19d38a82d02c with those exact parents. Local receipts retain their actual pre-commit HEAD and cover the committed working-tree content.

Current-head collision report: Closure-only overlaps with #3054, #3056, #3059, #3069, #3581, #3622, #4002, #4036, #4060, #4068, #4070, #4071, #4072, #4073, #4074, #4075, #4080. No direct path collision was reported. Candidate confirmation passed in run 43873943931, attempt 1. Every selected job's checkout log names 620cbd8eab58f34272ee7f294e4e19d38a82d02c: metadata 133321990394, verify 133322591165, pack 133322591120, unit 1–4 (133322591175, 133322591227, 133322591112, 133322591148), and proof 133334366339. Heavy jobs are intentionally deferred under the hybrid ruling. The main incident cleared before confirmation.

Merged through the reservation-managed squash as ad3611ae15f3af82eba14ac9aaf4a8727b3920eb, verified on origin/main, with the same candidate tree 0349a85538ba58bf0c39aadb6bced3e25a6f381a. All three issues closed and the PR/issues retain milestone 0.45.0.

Checklist

  • Complete selected hosted proof passed; actual head/base/job checkout evidence is recorded.
  • All three issues' scoped corrections and focused failing-first/restored proof are complete.
  • The PR and completed/advanced issues have verified 0.45.0 release milestones.
  • This changes nothing a package consumer can see; no changeset is required.
  • The leakage gate passes.
  • No machine surface or provider-facing turn path changed.
  • The testing instructions document the nested namespace prerequisite.
  • No production guard changed. The experiment precondition fails only its own capture, preserves its first cause in stderr and succeeds automatically on a qualified host; the original worker probe and both offline boundaries remain enforced.

Anything left open

Required post-merge proof is running on the actual squash in main run 43877725319; full completion is not yet claimed. The separate production recovery issue #3994 and descriptor-table question #4078 retain their own scope.

@schlessera schlessera added this to the 0.45.0 milestone Nov 16, 2026
@schlessera schlessera added type: test Coverage, harness or proof work with no behaviour change. area: ui-sdk Wire protocol, runtime schemas, the server and client SDK surfaces. area: ui-react React chat/files/voice components, stores, WebSocket transport. area: ci CI workflows, the gates they run, release scripts, packaging. labels Nov 16, 2026
@schlessera

Copy link
Copy Markdown
Owner Author

Candidate confirmation — 2026-11-16. Main recovered in run 43869683807 at 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9: the metadata includes the exact open red set, and unit job 133307721138 runs the watch-rerun case successfully. Coordinator 43873352863 clears the record; main-status now reports red: false.

The current draft checks passed; they are draft feedback rather than candidate proof. Requesting the repository's reservation-managed confirmation and merge for head bb23e28df83c3afa1edbb982cbdd1ecbd7d16ca5, base 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9, merge ref 620cbd8eab58f34272ee7f294e4e19d38a82d02c, tree 0349a85538ba58bf0c39aadb6bced3e25a6f381a.

The fresh current-head collision report remains closure-only: #3054, #3056, #3059, #3069, #3581, #3622, #4002, #4036, #4060, #4068, #4070, #4071, #4072, #4073, #4074, #4075 and #4080. No direct path or unknown collision is reported. The PR and all three closing issues read back milestone 0.45.0. No review requests or actionable comments are present. All local receipts retain their original tested identities; no earlier draft result is relabelled as candidate proof.

@schlessera
schlessera marked this pull request as ready for review November 16, 2026 13:14
@schlessera
schlessera merged commit ad3611a into main Nov 16, 2026
43 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. area: ui-react React chat/files/voice components, stores, WebSocket transport. area: ui-sdk Wire protocol, runtime schemas, the server and client SDK surfaces. type: test Coverage, harness or proof work with no behaviour change.

Projects

None yet

1 participant