Repository navigation
Description
Context
an Actions-limit set-aside clears the details with the card (test, packages/ui-react/tests/browser/hygiene-review.layout.tsx:914-921) fails on hosted runners with expected null not to be null / Matcher did not succeed in time at its first poll (:918).
Attribution (receipt and measurements):
- The case calls
set({ fillActions: true })and at once polls for[data-hygiene-limit]with the default 1,000 ms budget. The server commits the fill before the browser has drained the Action burst, so the poll's clock starts too early. fillin the sibling file already handles this: it waits for the cap retirement to reach the browser before it polls the panel (fill,packages/ui-react/tests/browser/hygiene-actions-limit.layout.tsx:106-118, added by test(ui-react): await cap retirement before polling the limit panel #2002 for ui-react: Actions-limit panel stays absent after authoritative retirement in layout CI #1866). This case never got that wait.- Measured on a 4-CPU VM, the panel arrives 1,229 to 1,595 ms after
set()returns when idle, and 1,442 to 3,212 ms beside three busy loops. It is never inside the 1,000 ms budget there.
Hosted sightings. Both hosted failures of this file are this case: PR candidate run 42485190945 (2026-11-08) and main run 42928738203 (2026-11-11).
Scope
Give this one case the wait fill uses: start the presentation poll only after the cap retirement has reached the browser. Reuse or share the existing helper instead of writing a second one.
Out of scope
- Lengthening any poll or deadline, here or elsewhere in the file.
- The case's assertions: the limit panel appears, the private details clear, no private bytes remain.
- The three other cases this issue once listed (dark-1280 check-failed, disconnect cancellation, transient selection refresh). None has a hosted failure. A new sighting of one of them is a new issue.
- The fixture server (
hygiene-browser-server.ts) and product code.
Acceptance criteria
- The case waits for the retirement to reach the browser before its first presentation poll, through the same condition
filluses. - Failing-first: with delivery of the Action burst delayed by a controlled amount longer than 1,000 ms, the case fails on main at
:918and passes with the change. The PR records both runs. The delay lives in the test or its fixture and is not committed as a slowdown. - No timeout, poll interval or assertion in the file changes.
- The complete file passes in the pinned image.
Verification
node scripts/visual.mjs --project=ui-react-layout --filter=hygiene-review.layout
bun run check:pr --base origin/mainContract impact
None. Test only.
Triage 2026-11-14 at main c82e30ae4: rewrote the brief for the one attributed case, with a failing-first criterion. Added agent-ready. type: test, priority: p2, parent #2753 and no milestone are unchanged.
Earlier brief, receipts and triage history. The sections above replace it where they differ.
Context
On a shared host (load average 10–12), two existing scenes in packages/ui-react/tests/browser/hygiene-review.layout.tsx (pinned image, node scripts/visual.mjs --project=ui-react-layout --filter=hygiene-review.layout) each failed once and then passed on an immediate rerun of the same tree. Both failures were waits that ran out:
dark 1280: a managed-worktree card (check-failed) offers no file to open(packages/ui-react/tests/browser/hygiene-review.layout.tsx:305onmainc696f995c) failed withexpected 'applying' to be 'check_failed'/Matcher did not succeed in time. Itsexpect.pollondata-hygiene-stateuses the default timeout while it waits for a server round trip.disconnect cancels a scheduled selection read before it starts(packages/ui-react/tests/browser/hygiene-review.layout.tsx:502onmain) failed on its firstexpect.poll(...).toBeNull()after Snooze.
Both were seen while working on the stacked worktree-card PRs for #2734 and #2837. Neither failure involved a changed assertion, and the rerun passed 99/99. The remaining attribution question is whether each failed poll observed a delayed fixture-server round trip or a real ordering race. The later bounded controls below did not capture either original failure. The fix must not just lengthen a deadline that guards behaviour.
Out of scope
Weakening any deadline that guards behaviour. The scenes' assertions themselves.
Scope
Capture the two original poll failures, and the later ones recorded under "Hosted recurrence — 2026-11-08" below, in complete-file pinned-image runs under recorded parallel load. Correlate fixture identity, request/response completion, state transitions and teardown with the failed matcher; distinguish a server round-trip delay from a product or fixture ordering defect. Existing passing reruns are controls, not repairs. No deadline change is selected.
Acceptance criteria
- Retain a failed receipt with exact source/image/runtime, load, scene, elapsed poll time, request/response and state-transition timeline, or report finite attempts and the missing causal boundary.
- Attribute each failure separately, including the two 2026-11-08 cases (one hosted, one local). Do not infer a shared cause from the file or the default timeout, even though the maintainer classes them together as default-timeout polls running out under load.
- Select a correction only after attribution, retaining original behavior assertions and their deadlines; prove the targeted failure and restored mutation.
- Verify the complete file under the recorded load and affected current-candidate proof after any correction.
Verification
Repeated pinned-image runs of hygiene-review.layout.tsx under parallel load.
Contract impact
None.
2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: The two failed waits lack causal ordering/timing evidence; added a concrete reproduction brief and needs: repro, preserving original assertions. Wanted unscheduled verification is p2. The browser-verification outcome owns the complete investigation.
Bounded unchanged-source control — 2026-10-29
At main a8e80eea1ec045579ee7d69d6019bce5e78afa5e, one complete unchanged-file invocation of:
node scripts/visual.mjs --project=ui-react-layout --filter=hygiene-review.layout --proof-reportpassed 102/102, exit 0, 149.41 seconds Vitest / 154.715 seconds including the launcher. Used the repository's pinned Playwright image mcr.microsoft.com/playwright@sha256:eff16c30e6f3f4af0a03fa4b706120d5e9b0891c344a27d64559aff5900a4a27, independently installed frozen dependencies (lock SHA-256 5bbd5f6651f111db3fcfabeda512d44a21163cba54c58993f8878012d548cc14) and host Bun 1.4.4. The stock consumer runner retained its offline/preload/request/font guards, --network=none and --ipc=host; the log verifies the pinned font inputs. Only the launcher's temporary scratch location was redirected to an owned directory after a separate diagrams preparation attempt hit the default temporary volume's quota. No source, assertion, deadline, fixture response or schedule was changed. Raw log SHA-256: a3ebb497a73347e5c520597e8a675b81b0ee875c29f42a98009982821275e3f2.
Both originally reported scenes passed: dark-1280 check-failed (885 ms) and scheduled-selection cancellation (1,683 ms). Current test boundaries are test, packages/ui-react/tests/browser/hygiene-review.layout.tsx:381-404 and test, same file:579-592. This was one stock-runner invocation, without an induced or recorded parallel-load matrix; it does not reproduce the historical load condition or attribute either timeout. Same-failure request/state timing remains missing; retain needs: repro and the original assertions/deadlines.
Latest bounded investigation and remaining evidence — reconciled 2026-11-05
The 2026-11-04 investigator receipt records the following; this triage did not rerun it.
At 53b862123d7b8e4c9d039859fabdc9fc6ad4cd36, the investigator completed two unchanged full-file pinned-image controls: 102/102 cases passed in each, including both reported scenes, at ambient load and beside four owned CPU workers. The first launch stopped before collection on a rootless mount-permission setup error and is excluded. Whole-case durations are not failed-poll durations. Neither control captured the original failure; each scene still needs its own fixture-ID-correlated dispatch/response/stream/DOM/poll/teardown timeline before a correction is selected.
Historical failures and controls retain their original identities. Keep needs: repro and no agent-ready; no new causal repair, full-suite qualification or provider/device result is claimed.
Hosted recurrence — 2026-11-08
Recorded by the maintainer in this comment:
- Hosted candidate proof for test: finish the real-time wait census with a second re-census and its slices (#3332) #3719: CI run 42485190945, job 128745788828,
layout (1), on a 4-CPU GitHub-hosted runner. Checkoutba663398099012d3effc5a5fcdf0e2eb6d3c1d65, with parents main344d2dd47and head45667ba8c. 807 of 808 cases passed. - The failing case was
an Actions-limit set-aside clears the details with the card:expected null not to be null/Matcher did not succeed in time. That is the default-timeoutexpect.pollfor[data-hygiene-limit]afterset({ fillActions: true }). - test: finish the real-time wait census with a second re-census and its slices (#3332) #3719 does not change
hygiene-review.layout.tsx. Inhygiene-browser-server.tsit changes only theholdPlans/releasePlans/foreignPreviewpaths, which this case does not use.fillActionsis unchanged. - Three local pinned-image runs on the same head (
node scripts/visual.mjs --project=ui-react-layout --filter=hygiene-review): the hosted failing case passed all three times. One run failed a different case instead,transient selection refresh retries an unavailable REST read and stops at server completion(101/102). The other two passed 102/102. - The fix(ui-react): audit frame-scheduled focus and release held fixture requests before teardown #3671 teardown change (release every held fixture request before stop) is an ancestor of that main parent (
344d2dd47). It did not prevent this recurrence; its stated purpose is teardown after a held request, not poll timing.
The maintainer classes these with the original two: default-timeout polls in this file run out under load, and which case fails changes from run to run. Neither new failure has a request/state timeline either, so needs: repro stays. The three same-head controls are the reporter's runs, not triage executions; capture the scene/request/publication/poll timeline at the first natural failed invocation.
Current navigation at main fb999b8ba (packages/ui-react/tests/browser/hygiene-review.layout.tsx): dark-1280 check-failed test template at :382-403, its poll at :387; disconnect cancellation test at :580-593, first poll at :585; transient selection refresh test at :563-578; Actions-limit set-aside test at :914-921, its poll at :918. Historical line numbers above keep their original source identities.
Triage 2026-11-08 at main 1619741f291f525d17cde4970a5ada40644117c1: Reconciled the opening brief with its existing bounded investigation and remaining attribution evidence. Historical receipts, scope exclusions, priority and needs: repro remain; no new runtime result is claimed.
Triage 2026-11-09 at main fb999b8baeabbb3a9cb5756a19862eee45467ebf: Added the 2026-11-08 hosted recurrence and the two new failing cases from the maintainer's comment to the body, scope and acceptance criteria, and refreshed the line numbers. Each failure is still attributed separately. needs: repro, priority: p2, parent #2753 and no deadline change all stay. No new runtime result is claimed.
Triage 2026-11-10 at main 3aadc8df5: Merged a duplicate "Later hosted recurrence — 2026-11-08" section into "Hosted recurrence — 2026-11-08"; both described the same candidate run 42485190945. The current navigation in that section still holds at 3aadc8df5. No failure from hygiene-review.layout.tsx appears in failed main CI attempts from 2026-11-03 to 2026-11-10 (see the dated comment). needs: repro, p2 and #2753 membership are unchanged.
Attribution — 2026-11-13
Both hosted failures of this file are one case: an Actions-limit set-aside clears the details with the card, hygiene-review.layout.tsx:918 (PR candidate run 42485190945 on 2026-11-08; main run 42928738203 on 2026-11-11). Receipt and measurements.
It is the unfixed sibling of #1866. #2002 made fill in hygiene-actions-limit.layout.tsx wait for the cap retirement to reach the browser before polling the limit panel; this case still starts its default 1,000 ms poll when the server command returns. Measured on a 4-CPU VM, the panel arrives 1,229 to 1,595 ms after set() returns when idle and 1,442 to 3,212 ms beside three busy loops, never inside the budget.
Scope now: this one case. Apply #2002's wait to it, with a failing-first receipt from a controlled delivery delay. The other three cases above have no hosted failure and are not part of the remaining work; a new sighting of one of them is a new issue.
Triage 2026-11-13 at main 631bbae2c: attributed the two hosted failures, narrowed the scope to the Actions-limit case, removed needs: repro.
Activity
schlessera commentedon Oct 25, 2026
2026-10-25 triage at main
827861e1fa71cd4a26b52f1ef0f96b849381acdf: The two failed waits lack causal ordering/timing evidence; added a concrete reproduction brief and needs: repro, preserving original assertions. Wanted unscheduled verification is p2. The browser-verification outcome owns the complete investigation.schlessera commentedon Nov 4, 2026
Reproduction investigation — 2026-11-04
Verdict: inconclusive; retain
needs: repro. Two complete-file offline runs at the unchanged source below passed every collected case, including both reported scenes. They are passing controls, not a repair or an attribution of either historical timeout. No correction is selected.Inspected inputs and environment
origin/main:53b862123d7b8e4c9d039859fabdc9fc6ad4cd36; initially clean isolated checkout. Read the full issue and all comment pages, native parent Epic: browser verification is deterministic and attributable #2753 and its comments, the originating ui-server: owner-only detail view for private managed-worktree hygiene findings #2734/ui-react: the hygiene card's state copy describes a file edit for a managed-worktree finding #2837 work, and the separately delivered scene-owner correction ui-react: bind hygiene fixture socket callbacks to their owning scene #2754/test(ui-react): bind hygiene socket callbacks to scene owners #2914. That correction does not establish the cause of ui-react: the hygiene-review Actions-limit set-aside case polls the limit panel before the retirement reaches the browser #2855.--backend=copyfile, a private cache and umask022;bun run buildpassed.mcr.microsoft.com/playwright@sha256:eff16c30e6f3f4af0a03fa4b706120d5e9b0891c344a27d64559aff5900a4a27(locally inspected digest/image ID agree). Inside: Node 24.20.0, Playwright 1.63.0, Chromium 153.0.8010.12; installed Vitest 4.1.11.--network=none,--ipc=host, serial file scheduling, read-only verified fonts, child preload and original request/browser guards. Font lock verification:3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad. Only the existing fictional Odysseus fixture was used; no external provider calls or private-instance access.ecf6986227406c1fd9d835ae3c119d561e012df5a1bedcae599907332fc20a3e. Spec SHA-256:a78eeaa91ba08caa4b2b35f9292c14c09af71f747fa66c10868635025e6ca4bb. No authored file, assertion, deadline, fixture reply or schedule was changed.Setup failure, excluded from reproduction counts: the first stock launch could not read
/repo/scripts/visual.mjsand stopped withMODULE_NOT_FOUNDbefore collection. Rootless Docker maps container UID 0 to the invoking host user; the stock explicit host UID instead maps to a subordinate user, which cannot traverse this checkout's mode-700 directories. A temporary PATH shim outside the checkout changed only that pinned container's--userargument to0:0; it did not grant host-root authority, change file permissions or remove a guard. Both actual browser runs below used this mapping. The helper is included below so this setup adjustment is repeatable.Verified assertion boundaries and observed results
The historical
c696f995ccitations still identify the two reported tests at lines 305 and 502. At the inspected SHA their current boundaries are:test,packages/ui-react/tests/browser/hygiene-review.layout.tsx:381-402): dark 1280, check-failed must observedata-hygiene-state === "check_failed"after Apply, then retain the logical identity and offer no file-open action. Its original poll is at line 386.test,packages/ui-react/tests/browser/hygiene-review.layout.tsx:579-592): after Snooze the first poll must observe no[data-hygiene-id]element; after the explicit disconnect,reads.reviewReadsmust remain equal toreadsAtDisconnect. Its original first poll is at line 584.Installed Vitest confirms a 1,000 ms default timeout / 50 ms interval, with no override in either target (
createExpectPoll,node_modules/vitest/dist/chunks/test.DNmyFkvJ.js:3711-3720). The later selection refresh still registers 250 ms timers and cancels on cleanup (const selecting,packages/ui-react/src/components/activity/hygiene-review.tsx:175-189). This is source context, not measured attribution.Receipt SHA-256 (raw local logs/JSON, without publishing unscreened logs):
The case receipts independently enumerate exactly the selected file and all 102 collected/executed cases, with no skipped cases, module errors or unhandled errors. The durations above are whole-case durations, not elapsed poll durations. Load is the host's sampled one-minute average, not a measurement of fixture response latency.
Repeatable commands and finite load conditions
From a clean isolated checkout of the inspected SHA (Linux; the pinned image must be available):
For this rootless permission condition only, install the same narrow mapping helper (omit it on a rootful setup where the stock mapping already works):
This self-contained replay runs the same full-file command and bounds the CPU workers to its lifetime; it samples load every two seconds and preserves each case report before the next invocation overwrites it:
The actual sampler additionally saved host CPU/memory/IO pressure and allowed CPUs; the replay above retains the minimal load conditions. Admission and workspace leases were left enabled; no concurrency limit was raised. There were two real complete-file invocations, with no retries hidden inside either result and no test-name filtering. The second used four ordinary CPU-bound Python processes alongside the real browser/server workload, stopped and reaped afterward. Ambient host activity was uncontrolled.
Limits and next evidence needed
Neither original failure was observed: there is no new
expected 'applying' to be 'check_failed'timeout and no failed post-SnoozetoBeNull()receipt. Matching a load-average range on a different resource envelope does not recreate the historical scheduler or establish that a 1,000 ms round trip is safe. No same-failure request/response/stream/DOM-commit timeline or elapsed failing poll was captured. The current fixture also includes later owner-binding and focus work; these controls do not retroactively establish what happened on the historical tree.Next step: on a natural recurrence, preserve the failed complete-file receipt and add passive, fixture-ID-correlated observations of decision dispatch and Action version, server operation/response completion, stream receive, DOM state commit, poll start/end and teardown. For the disconnect case, also record the terminal Snooze transition, active/no-Action read, first scheduled read and disconnect. Attribute each target separately. Do not lengthen deadlines, inject artificial delayed replies, treat a held-order experiment as the original failure, or select a correction from passing reruns. This is an offline browser/server-fixture gap; a live model-provider call is not required for this path.
Leave
needs: repropresent andagent-readyabsent; preserve all other labels, milestone0.45.0, native parent, open state and assignments. No implementation, commit, push, PR, closure or assignment change was made. Tracked checkout remains clean.schlessera commentedon Nov 8, 2026
Another instance, in hosted candidate proof for #3719 (CI run 42485190945, job 128745788828,
layout (1)). The checkout wasba663398099012d3effc5a5fcdf0e2eb6d3c1d65, with parents main344d2dd47and head45667ba8c, on a 4-CPU runner.an Actions-limit set-aside clears the details with the card(packages/ui-react/tests/browser/hygiene-review.layout.tsx:918) failedexpected null not to be null/Matcher did not succeed in time. That is the default-timeoutexpect.pollfor[data-hygiene-limit]afterset({ fillActions: true }). 807 of 808 cases passed.hygiene-review.layout.tsx. It changeshygiene-browser-server.tsonly in theholdPlans/releasePlans/foreignPreviewpaths, and this case uses none of them.fillActionsis unchanged.node scripts/visual.mjs --project=ui-react-layout --filter=hygiene-review) on the same head, the file ran three times. The failing case passed all three runs. In one run a different case,transient selection refresh retries an unavailable REST read and stops at server completion, failed instead (101/102). The other two runs passed 102/102.So this is the same class as above: default-timeout polls in this file run out under load, and the case that fails changes from run to run.
[-]ui-react: two hygiene layout scenes' default polls time out under host load[/-][+]ui-react: hygiene-review layout default-timeout polls time out under host load[/+]schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: removed a duplicate 2026-11-08 recurrence section from the body. Both sections described candidate run 42485190945. The current line navigation still holds; this file is unchanged since #3671.Recurrence check on main: no new occurrence. Window checked: main
CIruns created 2026-11-03 00:00 UTC to 2026-11-10 09:15 UTC: 167 runs (102 green, 40 cancelled, 24 failed, 1 in progress). I read the failed-job logs of all 24 failed runs, plus the failed first attempts of reruns 42546211003 and 41737142970. None fails ahygiene-review.layout.tsxcase. For completeness, the earlier main failure in run 40933258405 (2026-10-29,light: changed, gone, offline, failed and refused replies show no detail rows) is an immediate focus-target equality,expected <body> to be <h3>. It is not a default-timeoutexpect.poll, so I have not folded it into this class. MainCIselects affected suites, so this loosely bounds hosted recurrence. It is not a flake rate, a reproduction or a repair.needs: reproand p2 are unchanged.schlessera commentedon Nov 10, 2026
2026-11-10, test-health audit
th-20261110115220-5ecaedat maina26e2546f. Not reproduced.What ran:
bun scripts/test-health.ts measureonhygiene-review.layout.tsx,hygiene-media-flow.layout.tsx,hygiene-media.layout.tsxandhygiene-actions-limit.layout.tsx,--runs 2 --together. That is the stocknode scripts/visual.mjs --project=ui-react-layoutpath in the pinned image, on a 32-CPU host at load average about 3.5, with no added load. Each file ran twice alone and twice with the other three. All eight file runs and both combined runs passed.hygiene-review.layout.tsxhad a median of 183 s. No--stressrun was made.So this adds a control and no attribution.
needs: reprostays.A lead for whoever captures the next failure, not a cause: the
an Actions-limit set-aside clears the details with the cardpoll (test,packages/ui-react/tests/browser/hygiene-review.layout.tsx:914-921, poll at:918) starts its default 1 s deadline as soon asset({ fillActions: true })returns. The sibling file waits for the retirement to reach the browser before it starts the same presentation deadline, with the comment "Filling commits on the server before the browser drains the Action burst" (fill,packages/ui-react/tests/browser/hygiene-actions-limit.layout.tsx:106-118). If the hosted failure was this burst still draining when the deadline ran out, a timeline will show the retirement arriving after the poll began. This lead covers that case only, not the other three.schlessera commentedon Nov 13, 2026
Both hosted failures are one case, and it has a known cause with a known fix (2026-11-13).
1. One case, one line. The file has failed on hosted runners twice, both times in
an Actions-limit set-aside clears the details with the cardathygiene-review.layout.tsx:918, withexpected null not to be null/Matcher did not succeed in time:layout (1)at60d7967f1, not recorded here until now. The case failed 4.7 s in.I read the failed-step log of every failed product job on main from 2026-10-28 to 2026-11-13 (84 jobs across 300 runs). This file fails in two of them: the 2026-11-11 one above, and run 40933258405 on 2026-10-29, which is the focus failure this issue already sets aside. The other three cases listed here have only ever failed locally.
2. Cause: the unfixed sibling of #1866. #2002 fixed this race in the other file on 2026-10-16. Its description: "The shared
fillhelper previously started its presentation deadline when the server command returned, while the browser still had the 60-Action burst to consume." The case here still has that shape:(
hygiene-review.layout.tsx:914-921.) The fixed helper waits for the retirement to reach the browser's inbox first (fill,hygiene-actions-limit.layout.tsx:106-118).3. Measurement. Main
631bbae2c, a 4-CPU Ubuntu 24.04 VM. I gave the two polls an explicit 20 s bound and timed fromset()returning to[data-hygiene-limit]being in the DOM:The panel never arrived inside the 1,000 ms budget, not even on an idle machine.
4. Why it still usually passes. This part is my inference, not a measurement. The unchanged case passed 2 of 2 idle on the same VM. Vitest's poll runs its timers in the page, so while the page is busy rendering the burst, the poll's own deadline is delayed along with it and the next sample finds the panel. The poll only expires when the delay is on the delivery side while the page sits idle, which is what a loaded runner produces now and then. That would explain two hosted failures in a few hundred runs.
What I did not get. The hosted signature itself. On this VM the unchanged case failed 4 of 30 under load, and 5 of the 30 measurement runs gave no timing, all as whole-test 15 s timeouts: the scene takes about 10 s to start here, far slower than on a hosted runner, so that is this environment and not the poll.
5. Fix. Apply #2002's change to this case: after
set({ fillActions: true }), wait for the retired Action to reachdroppedin the browser's inbox, then poll for the panel. A failing-first receipt needs the same controlled delivery delay #2002 used.Scope. I narrowed this issue to the Actions-limit case and removed
needs: repro. The other three cases stay recorded in the body as local-only sightings with no hosted failure.[-]ui-react: hygiene-review layout default-timeout polls time out under host load[/-][+]ui-react: the hygiene-review Actions-limit set-aside case polls the limit panel before the retirement reaches the browser[/+]