Skip to content

ci: diagnose the approval capture concurrent-rendering fault #1322

Closed as not planned

Description

@schlessera

Tested diagnostics; original rendering cause remains unresolved — 2026-10-09

PR #1317, final head e41a4687c5e76d67cc74a1a225812aab65061ed8, contains the completed diagnostic slice under claim 1235-blockers-20261009-c71a. The original recovered React exception remains unreproduced. No rendering repair or closure is claimed; retain needs: repro and no agent-ready.

The final complete local command passes on source head 23fb9611698dbced2ab30af16051ba35fafc1b47 / base a6ae1c38ec11bf280c223b8fef87b38991d91216, including all five recipes/13 exact-file comparisons, all ten original paint-history pairs/60 exact PNGs, and both permanent native fault-evidence controls. The only later commit changes the monitoring recipe; all capture/runtime inputs and their digest remain identical. Merged as 65215fbfdceed874a4063bbc15df788e6e4ec6a7 in PR #1317. Ready-PR CI and automatic main-push CI 37889047653 pass; main metadata/pack/verify jobs 113685566716, 113685641745, 113686240606 each check out the exact squash SHA. Its immutable parent a6ae1c38ec11bf280c223b8fef87b38991d91216 and tree 723cb3f72f8effd5cb5296f63068a9907844e70e match the tested combined state, and its ancestry on remote main is verified. #1235 and #1158 are closed; #1322 remains open with the original cause unresolved.

Diagnostics retain nested window/console Error causes/stacks, detection phase, actual DOM/approval state, fixture-host observations and the original failure PNG. Both actual reportError and fixed-clock console transports are tested with a nonempty fictional Error/TypeError cause chain. Every injected fault must be rejected; unexpected genuine faults still fail. Removing window retention, console retention or the fault gate fails the named native assertion, and restored controls pass. These controls prove diagnostics and rejection, not the original React cause. Bounded 16ms event-gap and CPU-rate-4 controls each passed 12 paired captures without identifying that cause.

Preserve the original seventh-pair first-capture artifact and all six earlier matching pairs. On recurrence, read the failure JSON's actual cause/stack and DOM/host state, reduce that evidenced ordering, then repair and mutate the demonstrated cause. Passing comparisons do not erase the original fault or satisfy the remaining causal-repair criteria. Capture builds use an isolated checkout when full suites rebuild shared outputs; those separate setup failures are not diagnoses of this rendering exception.

Context

Found during #1235 / draft PR #1317's required local proof. At head 7ceb722189e7a62b63315277bab9bcfca8e270f7, base c2bda1de069a7bb387840ab2254c599d43641a51, bun run capture:verify stops in the native approval paint-history check. Six complete pairs agree (six exact files each, with the established per-run principal correlation). The seventh pair's first capture fails after the Deny action, before a deny-after PNG is admitted. The retained failure screenshot visibly shows the expected fictional refusal and no-file-written message; that does not make the capture valid.

The fault gate reports: “There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.” It is a browser pageerror, not a reported unequal-pixel comparison. At that recorded head, the capture handler retained only error.message (scripts/captures/browser.ts:71-72); the original cause/component stack and precise transition were not captured. save rejects any collected fault before admitting output (scripts/captures/runtime.ts:61), and the catch retains the failure PNG (scripts/captures/runtime.ts:104-107). Do not infer the underlying exception, a product rendering cause, or a shared cause with #1235's independently demonstrated startup-principal race.

The retained first-browser profile is Chrome for Testing 153.0.8010.12, executable SHA-256 8c599d43aec53f2460a31ae2f4af6bd863f8258b34ff519564bc5d4726bfaa1e, --disable-partial-raster, Node v24.20.0 / Linux x64, in the pinned mcr.microsoft.com/playwright:v1.63.0-noble image with network disabled and locked fonts. Observations remain in the original checkout's ignored tmp/feature-capture-verification/paint-history/pair-6/first/ and browser-first.json; these are local retained paths, not uploaded artifacts. The main log records all six earlier matching pairs. No unchanged rerun was used to obtain green.

Out of scope

Skipping recovered React faults, adding screenshot tolerances, reducing the ten-pair regression, disabling offline/network or font guards, changing approval/receipt policy, refreshing visual baselines without an evidenced product change, or claiming #1235/another capture issue owns this unobserved cause.

Scope

Capture the original React exception and relevant fixture/render transition, reduce the failing ordered approval/native-paint control, and repair only the evidenced source or fixture premise. Keep the fault gate and original failed artifacts.

Acceptance criteria

  • Retain the original cause/stack and available component/render context at the browser fault, with the exact ordered approval action and current actual DOM/host evidence; all data remains fictional and keyless.
  • Establish a controlled reproduction that fails on the claimed render/fixture behavior, separating the application failure from the later capture refusal.
  • Correct that demonstrated cause and show the intended mutation/failing assertion before restoration; do not hide recovery events or bypass the fault gate.
  • Complete all ten original native paint-history pairs, unchanged exact-file/principal-correlation checks and the complete selected recipe reproducibility on the recorded resulting head/base.

Verification

Run the locked-font, network-denied pinned capture commands. Preserve the failed seventh-pair first capture and the six matching pairs. Add bounded diagnostics or reduce the recorded sequence before another attempt; an isolated success or a generic recovered-root message does not identify the cause. Keep needs: repro and no agent-ready until the original exception/causal ordering is established.

Contract impact

None planned. Public CLI/MCP/frontmatter and approval semantics remain unchanged. A consumer-visible repair needs its normal changeset; a capture-harness correction must preserve the existing proof.

2026-10-09 correction: folded current proof, relevant provider refresh and the exact remaining scope into the active specification; historical failed receipts remain retained.

2026-10-09 triage at main a6ae1c38ec11bf280c223b8fef87b38991d91216: Native parent #736 owns this keyless approval-capture verification investigation. Its full deliverable directly verifies the epic’s controlled browser state and valid-output outcome. Preserve the active diagnostic claim and needs: repro: passing controls and retained nested fault evidence do not yet reproduce or causally resolve the original recovered-rendering exception. Membership establishes neither a common cause with other children nor epic completion.

2026-10-14 bounded repro pass at clean main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd: the unchanged pinned offline native regression passes ten fresh-browser paint-history pairs / 60 exact PNG comparisons and both injected cause-retention/rejection controls (exit 0). No genuine recovered React exception recurred; this does not identify or repair the historical cause. Current diagnostic anchors: (capturePage, scripts/captures/browser.ts:44-117) and (captureRuntime, scripts/captures/runtime.ts:15-137). Original Context citations remain tied to the recorded historical head. Retain needs: repro and no agent-ready; recurrence still requires the genuine cause/stack and evidenced ordered transition. The companion dated comment records command/environment, artifact identities and bounded-run limits.

2026-10-14 additional repro control at clean main 5cf1d548f7bd3a314eb36394dc5db0268db97da6: three concurrent native approval captures on one browser, repeated for three waves, pass nine complete captures / 54 PNGs and six stock comparisons / 36 exact PNG comparisons in approximately 35 seconds. This differs from prior sequential browser-reuse/CPU controls. No genuine rendering exception recurred; no causal repair or complete-suite claim is made. Setup-only export/module-identity failures were excluded after correcting isolated dependency links. Retain needs: repro and no agent-ready; the companion dated evidence comment records overlap, commands, environment and remaining cause/ordering gap. Original failed artifacts and historical source pointers remain preserved.

Activity

  1. added
    type: fix
    area: ui-react
    area: ci
    priority: p2
    needs: repro
    on Oct 9, 2026
  2. self-assigned this
    on Oct 9, 2026
  3. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Resuming PR #1317 under the maintainer's explicit request to work through #1158 and #1322 with the goal of merging #1235. Claim 1235-blockers-20261009-c71a owns branch fix/1235-queued-state-20261009-8f61. Both blockers are currently open and unassigned with no competing repair PR. Preserve the original failures and all assertions, fault gates, offline guards and budgets; identify each causal boundary before repair, then revalidate required proof and current-head CI.

  4. schlessera commented on Oct 9, 2026

    @schlessera
    OwnerAuthor

    Merged PR #1317 as 65215fbfdceed874a4063bbc15df788e6e4ec6a7, verified on remote main. Immutable parent a6ae1c38ec11bf280c223b8fef87b38991d91216 and tree 723cb3f72f8effd5cb5296f63068a9907844e70e match the passing combined-state inspection.

    Complete local bun run check:pr --base origin/main at 23fb9611698dbced2ab30af16051ba35fafc1b47 / a6ae1c38ec11bf280c223b8fef87b38991d91216 passed every selected category: 11,739 unit/integration/runtime cases (28 unchanged intentional skips), 7,162 pinned browser cases (10 documented pointer exclusions), 400 network-disabled layout/offline/endurance cases, five editorial recipes/13 exact files, ten paint pairs/60 PNGs, both native fault controls, native probes, shared-process Chrome cleanup and all packed-consumer checks. Final head e41a4687c5e76d67cc74a1a225812aab65061ed8 changed only the verified log-export recipe; runtime/test/harness/dependency bytes and capture inputs are identical, and final metadata/skill validation pass.

    Automatic ready-PR CI 37888528470, attempt 1, passed metadata 113683922929, pack 113684025021, verify 113684567158, all on 4a64b88ccb28f2a8418eda8a87c27c03536f8c7a with the expected base/head parents and matching tree. The final contract run 37888934023 / job 113685204890 passed on the actual head.

    Automatic main-push CI 37889047653, attempt 1, passed metadata 113685566716, pack 113685641745 and verify 113686240606; every actual checkout log names the exact squash SHA. #1235 and #1158 are closed. #1322 remains open under needs: repro: its original rendering cause is not repaired, and original failed artifacts plus tested diagnostics are retained. No red-check waiver, test deletion, relaxed deadline or paid inference was used. Claim 1235-blockers-20261009-c71a is complete; release its assignment only on the remaining open diagnostic finding.

  5. removed their assignment
    on Oct 9, 2026
  6. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    2026-10-14 bounded reproduction pass at clean detached main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd.

    Ran the unchanged dedicated native paint-history regression once, with frozen installed dependencies and idle build outputs:

    bun scripts/captures/check-runtime-raster.ts "$CAPTURE_OUTPUT" "$FONT_CACHE"

    CAPTURE_OUTPUT was a dedicated external artifact directory; FONT_CACHE was the existing checksum-verified cache for lock 3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad. Source input digest: 4d5dfa433826cec190d87f7978bd0ea5b8dd2c89b42425ed2e09cff889dd0b3a. Bun 1.4.2; pinned mcr.microsoft.com/playwright:v1.63.0-noble, image digest sha256:eff16c30e6f3f4af0a03fa4b706120d5e9b0891c344a27d64559aff5900a4a27; Node v24.20.0/Linux x64; Chrome for Testing 153.0.8010.12, executable hash 8c599d43aec53f2460a31ae2f4af6bd863f8258b34ff519564bc5d4726bfaa1e, --disable-partial-raster. The stock launcher retains --network=none, read-only source/font mounts and the fictional fixed-clock approval fixture. Other investigations used separate checkouts; this is no claim of a load-free machine.

    Result: exit 0. All ten fresh-browser pairs passed all 60 original exact PNG comparisons, correlated nonempty principal/effect/history checks and allow/deny/reload assertions. No genuine recovered-rendering fault occurred. Both permanent native injected window/console controls rejected their faults and retained the nonempty two-error cause/stack chains, actual populated approval state, host observations and failure PNGs. The expected original-fault outcome would be rejection before output admission plus retained cause/state evidence; this invocation instead completed the ordinary captures and rejected only the two intended injected controls. Passing this bounded control neither disproves the historical flake nor establishes its cause.

    Historical citations in Context still match the explicitly recorded 7ceb722189e7a62b63315277bab9bcfca8e270f7 source. On inspected main, console and window cause collection is in capturePage, scripts/captures/browser.ts:44-117; the rejection and failure JSON/PNG retention are in captureRuntime, scripts/captures/runtime.ts:15-137. Preserve the historical pointers as historical evidence rather than relabeling them current source. #1235 and #1158 are closed through merged #1317; native parent #736 remains open and there is no current dependency blocker declared for this issue.

    The missing evidence remains the original genuine recovered React exception/cause and the ordered transition that triggers it. On recurrence, retain failure JSON and PNG, detection phase, nested cause/stack, actual DOM/approval and host state, then reduce that observed ordering before selecting a repair. Synthetic nested-error injections establish diagnostic sensitivity only. This pass ran no full editorial five-recipe prelude or complete suite and made no repair, mutation, baseline change or historical-cause claim. Retain needs: repro, priority: p2 and no agent-ready.

    Artifacts retained locally (not uploaded): run log, source provenance, per-pair browser profiles/manifests/original PNGs, native style/font observations, comparison receipt and injected-fault evidence. Both source checkouts remain clean; original failed evidence is not replaced by these new artifacts.

  7. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    2026-10-14 additional bounded repro control on clean detached main 4af7b2f20a43d23260c2ee5e3bac3896aee971bd.

    This changes two conditions from the earlier same-day unchanged ten-pair run: reuse one native Chrome browser for six complete approval captures, and apply CDP Emulation.setCPUThrottlingRate({rate: 8}) to each page before navigation. Historical controls used rate 4 or a 16ms event gap; this attempt uses neither message injection nor a synthetic React exception. Each capture still creates the stock independent allow/deny contexts and actual fixture host, runs real native decisions, checks executor/principal/history evidence, captures before/after/reload and preserves the existing font, visibility, paint stability and genuine-fault rejection gates.

    Temporary ignored runner imports the unchanged launchCaptureBrowser, readCatalogue and captureRuntime, wraps only browser.newContext/context.newPage to set the native CPU rate, and invokes captureRuntime six times on that shared browser. Run commands:

    bun build tmp/repro-1322.ts --target=node --external=playwright --outfile=tmp/repro-1322.mjs
    docker run --rm --network=none --read-only --ipc=host   --user "$UID:$GID" --tmpfs /tmp:rw,exec,nosuid,mode=1777   -v "$REPRO:/repo:ro" -v "$FONT_CACHE:/fonts:ro"   -v "$CAPTURE_OUTPUT:/captures" -v "$BUN_BINARY:/capture-bun:ro"   -w /repo mcr.microsoft.com/playwright:v1.63.0-noble   node /repo/tmp/repro-1322.mjs
    bun tmp/compare-1322.ts

    The comparator wraps each returned stock manifest as one approval artifact and calls unchanged compareCaptures for runs 0/1, 2/3 and 4/5. It permits only the original correlated principal nonce difference.

    Result: container exit 0; all six complete captures passed (12 populated approval contexts, 36 original PNGs and six actual evidence files). No genuine page/window/console React fault was observed. Stock comparator exit 0: all three paired comparisons pass 18 exact PNG comparisons and the unchanged nonempty correlated principal/effect/history comparison. No failure JSON/PNG was produced because no genuine fault occurred. Clean source provenance and input digest are unchanged after the run.

    Environment: Bun 1.4.2; pinned image digest sha256:eff16c30e6f3f4af0a03fa4b706120d5e9b0891c344a27d64559aff5900a4a27; Node v24.20.0/Linux x64; Chrome for Testing 153.0.8010.12, executable SHA-256 8c599d43aec53f2460a31ae2f4af6bd863f8258b34ff519564bc5d4726bfaa1e; original --disable-partial-raster arguments. Checksum-verified font lock 3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad; clean stock source-input digest 4d5dfa433826cec190d87f7978bd0ea5b8dd2c89b42425ed2e09cff889dd0b3a. Dependencies/builds were copied from an inactive exact-SHA checkout into this separate checkout; no shared build was changed. The temporary runner is not a product or capture-source repair.

    Expected if the original bug recurred: the existing fault gate rejects before admitting the affected capture and retains genuine nested cause/stack, phase, DOM/approval and host evidence plus the failure PNG. Passing this limited slowdown/browser-reuse control identifies no historical cause and does not prove the fault impossible. It is not the full editorial prelude, ten original paint-history pairs, synthetic diagnostic control suite or complete proof. Original failed artifacts remain preserved; no deadline, tolerance, baseline or fault assertion changes.

    Retain needs: repro, priority: p2 and no agent-ready. Remaining completion evidence is a genuine recovered React exception with its nested cause/stack and demonstrated ordered transition, then reduction and causal repair proof under the unchanged acceptance criteria. New log, profile, manifests, original PNGs, receipt and comparator output are retained locally, not uploaded.

  8. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    2026-10-14 different bounded reproduction control at inspected main 5cf1d548f7bd3a314eb36394dc5db0268db97da6 (clean detached isolated checkout).

    Prior attempts covered fresh-browser paint pairs, a 16ms event gap, CPU rate 4, and six sequential captures on a reused browser at CPU rate 8. This attempt changes scheduling through three concurrent stock approval captures on one native browser, repeated for three waves. Each lane owns its independent fixture server, temporary brain, output directory and allow/deny contexts. No CPU throttle, synthetic exception or event injection is applied.

    The temporary ignored runner calls unchanged launchCaptureBrowser, readCatalogue and captureRuntime. It awaits Promise.allSettled for all three lanes before advancing a wave; every rejected lane fails the run. Within each wave it compares lane 0 with lanes 1 and 2 through unchanged compareCaptures, including actual nonempty principal/effect/history evidence and the original correlated principal exception. Expected recurrence: genuine browser fault rejection before admitting the affected output, with nested cause/stack, detection phase, actual DOM/approval and host state plus failure PNG retained by the stock runtime.

    TMPDIR="$SCRATCH" bun build tmp/repro1322.ts --target=node --external=playwright --outfile=tmp/repro1322.mjs
    timeout 300 docker run --rm --network=none --read-only --ipc=host \
      --user "$UID:$GID" --tmpfs /tmp:rw,exec,nosuid,mode=1777 \
      -v "$REPRO:/repo:ro" -v "$DEPENDENCIES:$DEPENDENCIES:ro" \
      -v "$FONT_CACHE:/fonts:ro" -v "$CAPTURE_OUTPUT:/captures" \
      -v "$BUN_BINARY:/capture-bun:ro" -w /repo \
      mcr.microsoft.com/playwright:v1.63.0-noble node /repo/tmp/repro1322.mjs

    REPRO is the isolated checkout; cached dependencies have byte-identical resolved package entries to the inspected lockfile, while lock format/workspace version metadata differs; workspace links resolve relatively inside /repo; font inputs use the existing checksum-verified cache. Required render-template/ui-sdk/ui-kit/ui-react exports and the two CSS files were built only in that checkout. Setup attempts before the actual run lacked exports or duplicated SDK module identities through absolute links; they never reached rendering and are excluded from the runtime result. The existing named fixture acquisition replacement remains intact; no native-storage or product guard was bypassed.

    Result: exit 0 in approximately 35 seconds. Nine complete approval captures pass: 18 populated allow/deny contexts, 54 original PNGs, nine evidence files and manifests. Six stock paired comparisons pass 36 exact PNG comparisons with the unchanged nonempty correlated principal/effect/history comparison. Each wave starts its three lanes within 0–2ms, and each lane takes approximately 10.8–11.8s; this is actual overlap rather than a sequential reuse rerun. No genuine React browser fault or failure artifact occurs. Font, text visibility, native Allow/Deny, executor effects, persistence/reload, three-identical-frame paint and fault gates remain unchanged.

    Environment: Bun 1.4.2; pinned Playwright 1.63.0 image, Node v24.20.0/Linux x64; Chrome for Testing 153.0.8010.12, executable SHA-256 8c599d43aec53f2460a31ae2f4af6bd863f8258b34ff519564bc5d4726bfaa1e, original --disable-partial-raster. Font lock 3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad; clean source input digest 24910324584b798410186e043eb0c7ebca99acd349fcfa2cfbf2d27a0de589cf.

    This bounded contention control does not reproduce or explain the historical recovered rendering exception, prove its absence, replace the original ten paint-history pairs, run the editorial prelude/full suite, or satisfy causal repair criteria. Original failed evidence stays preserved. Retain needs: repro, priority: p2, both existing areas and type: fix; no label change and no agent-ready. No design/decision/human prerequisite is established by this result. Remaining evidence is the genuine original cause/stack and demonstrated ordered transition, followed by its reduction and repair proof. Runner, build/setup logs, successful run log, profile, source provenance and nine artifact directories remain local, not uploaded.

  9. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    2026-10-14 distinct bounded scheduling control at inspected main 5cf1d548f7bd3a314eb36394dc5db0268db97da6.

    Ran two concurrent unchanged native approval captures in one pinned container with Docker --cpus=0.5. The runner read actual cgroup cpu.max: 50000 100000 (50ms CPU budget per 100ms period). Unlike earlier CDP renderer-only slowdown or unrestricted overlapping captures, this constrains Chrome, the Node controller and both Bun fixture hosts together. No synthetic exception, message injection, product change or guard alteration was applied.

    bun build tmp/quota.ts --target=node --external=playwright --outfile=tmp/quota.mjs
    timeout 180 docker run --rm --network=none --read-only --ipc=host --cpus=0.5 \
      --user "$RUN_UID:$RUN_GID" --tmpfs /tmp:rw,exec,nosuid,mode=1777 \
      -v "$REPRO:/repo:ro" -v "$DEPENDENCIES:$DEPENDENCIES:ro" \
      -v "$FONT_CACHE:/fonts:ro" -v "$CAPTURE_OUTPUT:/captures" \
      -v "$BUN_BINARY:/capture-bun:ro" -w /repo \
      mcr.microsoft.com/playwright:v1.63.0-noble node /repo/tmp/quota.mjs

    The temporary runner imports unchanged launchCaptureBrowser, readCatalogue, captureRuntime and compareCaptures, starts two lanes through Promise.allSettled, fails for any rejection, and compares their stock manifests. Each lane owns independent fixture state and Allow/Deny contexts. The disk-backed isolated source copy matches all 4,084 tracked files of the clean exact-SHA cached checkout; its existing local builds and dependency links were copied without mutating the cache. This reuses the prior control's resolved dependencies and build inputs, not a fresh-install claim. An initial temporary checkout write failure occurred before runtime and is excluded from the result.

    Observed: both lanes started in the same millisecond, completed in 50,691ms and 51,195ms, and returned all seven original files each: twelve total PNGs and two nonempty approval evidence files. The stock comparison passed all six exact PNG comparisons and its unchanged correlated principal/effect/history check. No genuine browser rendering fault or failure JSON/PNG occurred. All original native decisions, executor effects, persistence/reload, font/text visibility, three-identical-frame paint, fault rejection and deadlines remained active. The coordinated browser slot had no competing browser or deliberate host CPU-contender run.

    Environment: Bun 1.4.2; pinned Playwright 1.63.0 image; Node v24.20.0/Linux x64; Chrome for Testing 153.0.8010.12, executable SHA-256 8c599d43aec53f2460a31ae2f4af6bd863f8258b34ff519564bc5d4726bfaa1e, original --disable-partial-raster; checksum-verified font lock 3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad. Runner, log, browser profile, manifests and original output files remain local, not uploaded.

    Expected recurrence would reject output admission and retain the genuine nested cause/stack, detection phase, actual DOM/approval and host observations plus failure PNG through the delivered diagnostics (capturePage, scripts/captures/browser.ts:44-117; captureRuntime, scripts/captures/runtime.ts:15-137). This limited resource-quota control did not reproduce the original recovered React exception and does not identify a repair or prove its absence. It does not replace the ten-pair regression, editorial prelude or complete suite. Original failed artifacts and historical citations remain preserved.

    Retain needs: repro, priority: p2, type: fix, both existing areas and no agent-ready; no new prerequisite is established. Remaining evidence is the genuine cause/stack and demonstrated ordered transition, then reduction and causal repair proof. Parent #736 remains appropriate and #1235/#1158 remain closed through merged #1317. No body correction or label change is warranted by this result.

  10. schlessera commented on Oct 14, 2026

    @schlessera
    OwnerAuthor

    2026-10-14 distinct bounded WebSocket delivery control at main snapshot 5dc2595ca07042f2e2024c95bbc361f31637559f.

    Unlike prior CPU/resource/concurrency controls, this temporary runner wraps only the stock local WebSocket route: real server-to-page messages are queued for 80ms and forwarded unchanged, in received order, as a batch. Native page-to-server decisions remain automatically forwarded. Original origin/font guards, fixed clock, actual fixture/backend/store, Allow/Deny effects, persisted history/reload, text visibility, three-identical-frame paint and fault rejection remain active. Delivery task boundaries change without synthetic errors or fabricated messages. Installed Playwright source/types were checked before using WebSocketRoute.connectToServer and server-side onMessage.

    Commands: bun build tmp/ws-burst.ts --target=node --external=playwright --outfile=tmp/ws-burst.mjs; bounded timeout 180 docker run --rm --network=none --read-only --ipc=host in the pinned image, with read-only isolated /repo and /fonts mounts, dedicated /captures, disk-backed /tmp scratch and mounted Bun binary; node /repo/tmp/ws-burst.mjs executes the runner.

    Two complete captures returned seven original files each (12 PNGs, two populated evidence files), taking 6,567ms and 6,470ms. Actual batches included approval setup and post-decision tool_result/text_delta/result/journal/status frames; the largest held 16 frames. No genuine recovered React error occurred and no runtime failure JSON/PNG was generated.

    The run then exited 1 at the unchanged stock comparator: approval-roundtrip: approval-allow-before-dark.png differs between unchanged runs. Inspection of original PNGs shows a semantic difference: first has a live waiting approval/stop composer; second labels the pending card restored and shows an idle composer. Allow-after also differs; the other four PNGs and populated actual evidence JSON agree exactly. This is neither a passing paired run nor recurrence of the historical recovered-rendering exception. It establishes no raster cause or relationship with #1322. The planned 250ms pair was not reached; no unchanged rerun, relaxed comparator or deadline was used to obtain green.

    Environment: Bun 1.4.2; pinned Playwright 1.63.0 image; Node v24.20.0; Chrome for Testing 153.0.8010.12, executable SHA-256 8c599d43aec53f2460a31ae2f4af6bd863f8258b34ff519564bc5d4726bfaa1e, unchanged --disable-partial-raster; verified font lock 3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad. Independent disk-backed source/dependencies/builds were copied from a same-snapshot frozen-install/build checkout; all 4,082 tracked source files compare byte-for-byte with the clean snapshot. Workspace links resolve within the copy; no shared output was rebuilt. Other agents used separate concurrent checkouts; no load-free claim. A later provenance-helper invocation failed solely on the copied Git worktree pointer after the original checkout was disposed; direct tracked-byte identity/browser receipts are retained instead, without claiming that helper succeeded.

    Runner, failed comparator log, message-type/batch inventory, browser profile, both manifests and original outputs remain local, not uploaded. Original historical failed evidence remains preserved. No full editorial prelude, ten-pair regression or synthetic fault-control suite ran, and no rendering repair is established.

    Retain needs: repro, priority: p2, type: fix, both areas and no agent-ready. Parent #736 remains appropriate; #1235/#1158 remain closed through #1317. Remaining evidence is the genuine recovered-rendering cause/stack and demonstrated ordered transition, followed by reduction and causal repair proof. No body correction or label delta is warranted.

  11. 7 remaining items

  12. schlessera commented on Oct 16, 2026

    @schlessera
    OwnerAuthor

    Another pass targeted the remaining application-handler boundary, rather than another scheduler slowdown, transport batch, or viewport variation.

    At independently installed/built main 55dbf1cf5e92cc084d3fde99c6e5c409854f7465, pinned offline Playwright 1.63.0 / Chromium 153.0.8010.12, two complete approval-roundtrip captures used native loopback WebSockets. A temporary diagnostic wrapped actual onmessage callbacks to record entry, exit, synchronous throws and holder-state snapshots, preserving callback arguments, this, return values and exception propagation. The native socket was retained; the capture helper's Playwright WebSocket route was replaced with a same-origin loopback constructor guard. This is an instrumented native-transport control, not the unchanged production harness.

    Both captures passed (6.447 s and 6.077 s), each producing six PNGs plus approval evidence. The stock comparator found all six images identical and only its allowed per-run principal-ID variation in evidence. No application-handler throw or browser fault was recorded, and the original recovered React error did not recur. Entry/exit logging also wraps the passive message recorder, so raw event totals are not presented as application-dispatch counts. The temporary holder accessor was restored afterward.

    This adds a passing application-handler trace, not a failing handler-to-React lifecycle trace or historical diagnosis. Keep needs: repro; no repair or readiness claim follows from two passing captures.

  13. schlessera commented on Oct 16, 2026

    @schlessera
    OwnerAuthor

    The new observer is native caught-exception/async-stack tracing, rather than another transport timing variation or application-handler entry/exit logger. At main 7d1a31d09b96739a85bff5151cc2e1300c9ac4d0, each real page enables CDP Debugger with async-call-stack depth 16 and pause-on-all-exceptions. Each pause records the exception, actual call-frame locations and available async stack, then resumes immediately. This can observe a throw that React later recovers, even when pageerror stays empty.

    Two complete stock approval-roundtrip captures use native same-origin loopback WebSockets and the existing local constructor guard instead of Playwright's WebSocket route. Pinned offline Playwright 1.63.0 / Chromium 153.0.8010.12, readonly checkout/fonts, disposable state and original recipe gates/deadlines remain. Readonly holder access and diagnostic source are restored afterward.

    Both captures pass, 7.418 s and 7.680 s, exit 0, each six PNGs plus approval evidence. The stock comparator finds all six final images identical and only its allowed principal-ID variation. No recovered concurrent-rendering fault or browser pageerror occurs; the observer reports no protocol failures.

    The observer did capture eight real caught throws, two per allow/deny context across initial load and reload: Dynamic require of "@emotion/is-prop-valid" is not supported, with actual bundled-script frames. Thus the caught-exception channel was exercised; a zero pageerror count was not mistaken for absence of caught throws. These throws were handled and the complete recipe continued; they are not the issue's reported React error or a failed module-load receipt. No new product defect is inferred from caught fallback behavior.

    Debugger observation pauses execution and can alter scheduling, so this is not an unchanged timing control or historical diagnosis. Keep needs: repro: still missing is the reported recovered React throw with its causal handler/lifecycle stack and comparison. This probe can retain that stack if it recurs, but these passing captures do not select a repair or complete the required broader proof.

  14. schlessera commented on Oct 17, 2026

    @schlessera
    OwnerAuthor

    2026-10-17 — NOT REPRODUCED.

    New dimension: native Firefox/Gecko rendering and event-loop scheduling. All recorded #1322 native attempts used Chromium; the linked #1840 WebKit control is also a different engine. Hypothesis: different scheduling/layout could expose the transient pending→denied render exception that Chromium timing controls missed. No exception, frame or application state was injected.

    Prior approaches reviewed: full editorial/paint-history sequence; nested-error diagnostic controls; 16ms event gaps; CPU rates 4/8; browser reuse/concurrent captures; container CPU quota; 80ms WebSocket batching; GC; viewport; click pauses; lifecycle commands; media cycles; ordered CDP tracing; native handler logging; caught-exception/async-stack tracing.

    Executed source: original failing 7ceb722189e7a62b63315277bab9bcfca8e270f7, independently frozen-installed/full-built with Bun 1.4.2+744846f84, React/React DOM 19.3.0. Working main b9805a455ea8c62b238034f873859f21560006e3 was inspected. Only its shipped browser.ts/runtime.ts cause/phase/DOM/host collectors were overlaid; reviewed diffs contain diagnostic additions only. These were the sole differences among 3,238 regular snapshot files; symlink targets were checked too. The temporary runner launches pinned-image Firefox, invokes actual captureRuntime four times serially, and calls unchanged compareCaptures for 0/1 and 2/3.

    Result: exit 0 in 69.426s. Captures take 15,987 / 16,740 / 14,358 / 16,928ms, producing 24 admitted PNGs and four populated evidence files. Both stock comparisons pass 12 exact PNG comparisons and the correlated nonempty principal/effect/history checks. All eight native Allow/Deny paths, executor effects, persistence/reload, stock WebSocket routing, HTTP/font/fault guards, visible text and three-identical-frame painting remain active. Observer fault lists are empty; no recovered React error or runtime failure JSON/PNG occurs.

    Commands run inside the historical scratch copy, with Bun 1.4.2 selected; runner and diagnostic overlay are retained under <scratch>:

    timeout 240s bun install --frozen-lockfile
    timeout 300s taskset -c 0-3 bun run build
    timeout 15s bun build tmp/firefox1322.ts --target=node --external=playwright --outfile=tmp/firefox1322.mjs
    timeout --signal=TERM --kill-after=10s 180s docker run --rm --name brain-repro-1322-firefox --security-opt seccomp=unconfined --security-opt apparmor=unconfined --cpuset-cpus 0-3 --network=none --read-only --ipc=host --user "$RUN_UID:$RUN_GID" --env HOME=/tmp/odysseus-home --tmpfs /tmp:rw,exec,nosuid,mode=1777 -v "$REPLAY:/repo:ro" -v "$FONT_CACHE:/fonts:ro" -v "$OUTPUT:/captures" -v "$BUN_BINARY:/capture-bun:ro" -w /repo mcr.microsoft.com/playwright:v1.63.0-noble sh -c 'mkdir -p /tmp/odysseus-home && exec node /repo/tmp/firefox1322.mjs'

    Two initial launch invocations exit 1 before page creation (0.825s / 0.744s): namespace restrictions, then “Could not find profile folder.” Command-scoped sandbox escalation removes the namespace error; a writable disposable browser home resolves profile creation. These are retained setup failures, not reproductions. Offline networking and capture assertions remain intact.

    Supporting Chromium control: build scripts/captures/raster-regression.ts to tmp/historical-raster.mjs with the same build flags; execute node /repo/tmp/historical-raster.mjs with the original offline mounts/launcher and four-CPU limit. It passes 10 pairs / 60 exact PNG comparisons, 20 captures / 120 admitted PNGs / 20 populated evidence files, exit 0 in 187.681s. This is not counted as novel: a diff audit found its executed inputs match the early diagnostic slice at 23fb9611698dbced2ab30af16051ba35fafc1b47. An earlier absent timing utility stopped before browser launch (exit 127); shell timing supplied the recorded runtime.

    Runtime: Playwright 1.63.0, actual Firefox 155.0, revision 1543, Node v24.20.0, Linux x64; pinned image ID sha256:eff16c30e6f3f4af0a03fa4b706120d5e9b0891c344a27d64559aff5900a4a27. Firefox executable SHA-256 062272ac4d851eade5b75db2dc7c14569d96cb3ca38f949337cdc1b74367e35b. Chromium control: 153.0.8010.12, original --disable-partial-raster and historical executable hash. All twelve font/notice inputs pass lock 3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad. Firefox uses native launch defaults without the Chromium-specific flag.

    Conclusion: no historical cause or repair established. Preserve the original failure and missing genuine cause/stack/ordered-transition requirement. Full editorial prelude/combined suite and injected diagnostic controls were not repeated. Historical citations and current capturePage (scripts/captures/browser.ts:44-117) / captureRuntime (scripts/captures/runtime.ts:15-137) were verified.

    Logs, originals/manifests, profiles, observations and diagnostic sources remain local under <scratch>. Diagnostic edits are restored; all historical snapshot inputs compare unchanged afterward and working main is clean. No branch, hosted run, PR or container remains. Labels unchanged, including needs: repro; no body statement was disproved, so no body correction.

  15. schlessera commented on Oct 17, 2026

    @schlessera
    OwnerAuthor

    2026-10-17 — NOT REPRODUCED; local native capture control.

    New dimension: disable V8 JIT compilation for the actual editorial capture browser (--js-flags=--jitless), retaining --disable-partial-raster. This varies compilation/tiering policy rather than prior CPU/GC, browser reuse/concurrency, WebSocket delivery, viewport, input or suspension controls. The original native raster-regression runner and fault controls execute unchanged.

    Command: TMPDIR=<disk-backed scratch> timeout --signal=TERM --kill-after=10s 360s bun scripts/captures/check-runtime-raster.ts <owned-output> <verified-font-cache>.

    Exit 0; ten complete native approval paint-history pairs / 60 exact-file comparisons pass. All twenty captures complete their decision/principal/executor/history/reload assertions. Existing native fault-evidence controls complete; the historical recovered React exception does not recur. Original PNGs, populated evidence, browser profiles, provenance and comparison logs are retained. Temporary launch-argument edit restored byte-for-byte.

    Environment: Local testing in a network-disabled, read-only pinned Playwright 1.63.0 container on the shared Linux host; Chromium 153.0.8010.12 / Node 24.20.0 / Bun 1.4.3, verified locked fonts. Isolated source 9d5cd00b7646ffee951c7a29a38717989f7fd868 with explicit temporary browser-argument diff, independent frozen dependencies and successful full build. No CPU/memory quota was imposed; unrelated host work overlapped and instantaneous pressure was unmeasured. These are not remote-CI or production receipts.

    Keep needs: repro. This passing local compilation-policy control does not establish historical cause, resource starvation, a rendering correction or selected hosted qualification. Full command/log/exit receipts and any diagnostic source are retained in this pass's local artifact directory.

  16. schlessera commented on Oct 17, 2026

    @schlessera
    OwnerAuthor

    2026-10-17 — Not reproduced, same-task draft-input/approval interaction at main bfaf3be35408e7983f6b525430118fa867c19d6a.

    New approach: an init-script capture-phase listener on each actual approval control's native click sets the real composer value through its prototype setter and dispatches a bubbling input event before the approval handler runs. This tests editor-input and approval updates sharing a task, unlike prior transport, scheduling/resource, media, lifecycle and exception-observation probes. The input event is deliberately synthetic; the approval click is native/trusted. No artificial React exception or socket frame is injected.

    Two complete stock captureRuntime invocations pass, returning 12 PNGs and two populated evidence files. All four actual Allow/Deny clicks record trusted=true and the intended fictional draft value. The unchanged stock comparator passes six exact PNG comparisons and correlated principal/effect/history checks. No recovered React error or runtime failure artifact occurs. Original executor/reload, font/visibility/paint stability and fault rejection gates remain.

    Commands: bun build tmp/repro1322.ts --target=node --external=playwright --outfile=tmp/repro1322.mjs, then the pinned offline/read-only capture container runs node /repo/tmp/repro1322.mjs. Own frozen install/full build, Bun 1.4.3 / Node24.20.0 / Playwright1.63.0; locked fonts, original Chromium launch arguments, shared local host. No hosted or full ten-pair/editorial proof claimed.

    Two earlier observer preparations completed captures but matched no intended clicks because kit controls use role=button and include key hints. Their successful comparisons are excluded from evidence that the new input condition ran. Correcting the diagnostic selector yields the four explicit markers above; no source assertion or gate changed. Runner, logs and outputs retained locally; tracked source unchanged.

    Keep needs: repro. This induced interaction does not supply the historical genuine cause/stack or causal correction.

  17. schlessera commented on Oct 17, 2026

    @schlessera
    OwnerAuthor

    2026-10-17 — Second round: Not reproduced. Two complete approval captures return 12 PNGs and two evidence files; the stock comparison passes all six exact PNGs plus its correlated principal/effect/history checks. Four native contexts each report 68 scripts / 16,228 functions. Bundled script URLs contain no react substring, so the report does not identify React-specific branch execution. at main 33cc244ea9f4f92114201a29d0d27edf24f89ce1.

    New approach: Enable native CDP Profiler precise coverage with call counts/detailed ranges before the real capture navigation; collect it immediately before context close. This observes execution rather than injecting draft input, exceptions or changing event delivery.

    Not reproduced. Two complete approval captures return 12 PNGs and two evidence files; the stock comparison passes all six exact PNGs plus its correlated principal/effect/history checks. Four native contexts each report 68 scripts / 16,228 functions. Bundled script URLs contain no react substring, so the report does not identify React-specific branch execution.

    Command: bun build tmp/repro1322-round2.ts --target=node --external=playwright; node /repo/tmp/repro1322-round2.mjs. Own isolated frozen dependencies and successful full build; Bun 1.4.3, shared local Linux host. Browser controls use the unchanged pinned Playwright 1.63.0 noble image, Vitest 4.1.11 and verified locked fonts with network disabled. Original offline guards and deadlines retained. Initial font-cache mount pointed at its parent and was rejected before capture; corrected locked-cache mount supplies qualified results. Precise coverage adds runtime overhead; it does not diagnose an unreproduced exception.

    Keep needs: repro: no historical cause or correction established. Temporary source edits restored; diagnostic inputs and output retained locally. No fix, PR or hosted dispatch.

  18. schlessera commented on Oct 17, 2026

    @schlessera
    OwnerAuthor

    2026-10-17 — Third round: Not reproduced: two complete captures produce 12 PNGs plus two evidence files; the stock comparison passes all six exact PNGs and correlated decision/principal/effect/history checks.

    New approach: Populate the browser native DOM Selection with the real pending approval card text immediately before each original Allow/Deny click, after the before-decision screenshot. This exercises selection/focus state at the application action boundary, rather than previous draft-input, transport, tracing or compilation probes. No provider frames or draft text change.

    Command: bun build tmp/repro1322-round3.ts --target=node --external=playwright; node tmp/repro1322-round3.mjs.

    Local test at main 2a0b77f675da2f01c32adba3f4920650a5ee09fa, isolated checkout with its own successful frozen install and full build, Bun 1.4.3. Browser probes use the pinned Playwright 1.63.0 noble image, Vitest 4.1.11, verified offline fonts and network disabled. Existing offline guards, assertions and deadlines retained. Shared Linux host; no historical runner equivalence or measured starvation claimed. An initial launcher omitted the required /capture-bun mount and was cancelled as setup-only; no application result is used from it. The qualified launch mounts the installed Bun at that exact path. Selection is set by the native DOM API, not a trusted drag gesture; no claim about historical selection state. Both source edits were restored before the bundled probe ran.

    Keep needs: repro: this does not establish the historical cause or a correction. Diagnostic source restored; command, input and complete output retained locally. No implementation, PR, push or hosted dispatch.

  19. schlessera commented on Oct 18, 2026

    @schlessera
    OwnerAuthor

    2026-10-18 — reproduction pass at 775eb17aab740fa759c2182f306c38fc17acbcbe.

    Different approach: Attempt pinned capture-image admission for a new capture control with Node TurboFan optimization disabled, rather than prior Chromium-renderer JIT/scheduling/input/transport changes. Preserve the capture image guard and recovered-React-fault gate.

    Observed: Blocked before capture execution: read-only pinned-image admission query times out after 8 s with no Docker server response. No native editorial capture, approval transition, recovered React fault or exact-image comparison executes. Outer invocation exit 124, elapsed 8.031 s; outer watchdog fired: false.

    Command (working directory: repository root; any diagnostic source changes are described above):

    timeout 8s docker image inspect mcr.microsoft.com/playwright:v1.63.0-noble --format '{{.Id}}'

    The planned Node TurboFan orchestration comparison was not applied or executed. The strict shared-image requirement and recovered-fault gate are retained; native host-browser controls cannot qualify this capture path. No source instrumentation or capture guard change was made.

    This is focused local evidence, not historical-run equivalence, a repair or full candidate proof. Existing assertions, deadlines and offline guards were retained. Temporary source instrumentation was restored byte for byte. Keep needs: repro; no readiness or closure change. Full log, command/exit receipt and diagnostic patch are retained in task-owned scratch.

  20. schlessera commented on Oct 18, 2026

    @schlessera
    OwnerAuthor

    2026-10-18 — second reproduction pass at 775eb17aab740fa759c2182f306c38fc17acbcbe.

    Different approach: Check the prerequisite through a direct read-only HTTP /_ping on the configured Docker Unix transport, instead of another hanging docker version/image command. Planned runtime probe: Exact capture verification stage and child lifetime under default Node optimization with owned output. The transport check is not an executed product test.

    Observed: BLOCKED before native tests or captures: direct Docker Unix transport connects, but HTTP /_ping returns no bytes before its four-second socket deadline (exit 124). This is prerequisite evidence only; zero product cases execute. Outer invocation exit 124, elapsed 4.073 s; outer watchdog fired: false.

    Command (working directory: repository root; any diagnostic source changes are described above):

    python3 /tmp/brain-repro-audit-2/docker-admission.py

    The new admission route avoids relying on the previously hanging Docker CLI command and distinguishes accepted transport from an answering engine. Pinned-image execution remains unavailable; no native capture/SDK/WebKit result, historical recurrence or green proof is claimed. The product probe described above is planned, not run.

    This is focused local evidence, not historical-run equivalence, a repair or full candidate proof. Existing assertions, deadlines and offline guards were retained. Temporary source instrumentation was restored byte for byte. Keep needs: repro; no readiness or closure change. Full log, command/exit receipt and diagnostic patch are retained in task-owned scratch.

  21. schlessera commented on Oct 18, 2026

    @schlessera
    OwnerAuthor

    2026-10-18 — third reproduction pass at 775eb17aab740fa759c2182f306c38fc17acbcbe.

    Different approach: Run the actual pinned offline approval-roundtrip capture with passive Long Animation Frame attribution installed at page creation and a complete received/sent native WebSocket frame census. Preserve strict launch/font/stability/native-effect/history/reload checks. One stock capture retains any real React-fault artifact, rather than earlier heap/GC interventions.

    Observed: The real pinned offline approval capture completes all allow/deny/effect/history/reload checks and produces six PNGs plus approval evidence; no recovered React-fault artifact or console failure occurs. Outer invocation exit 0, elapsed 5.426 s; outer watchdog fired: false.

    Command (working directory: repository root; any diagnostic source changes are described above):

    docker run --rm --pull=never --network=none --read-only --ipc=host --tmpfs /tmp:rw,exec,nosuid,size=4g,mode=1777 --user 1000:1000 -v "$REPRO_ROOT:/repo:ro" -v /tmp/brain-repro-audit-3/1322-captures:/captures -v /tmp/brain-repro-audit-3/cache/brain-kit-feature-capture-fonts/3ec58a552059527131bda0277703425243a63aa311d58b67201a7b2c9fe136ad:/fonts:ro -v "$BUN_EXECUTABLE:/capture-bun:ro" -w /repo -e HOME=/tmp mcr.microsoft.com/playwright:v1.63.0-noble node tmp/repro3-capture.mjs 1322

    REPRO_ROOT denotes the checkout root; executable variables denote the recorded local runtimes.

    Original historical failure and broad qualification remain unresolved.

    This is focused local evidence, not historical-run equivalence, a repair or full candidate proof. Existing assertions, deadlines and offline guards were retained. Temporary source instrumentation was restored byte for byte. Keep needs: repro; no readiness or closure change. Full log, command/exit receipt and diagnostic patch are retained in task-owned scratch.

  22. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24: moved from #736 to its nested browser-verification epic #2753. #736 hit GitHub's 100-direct-sub-issue limit, so its browser children now sit under #2753. This issue's scope, labels and readiness are unchanged.

  23. schlessera commented on Nov 13, 2026

    @schlessera
    OwnerAuthor

    Closing as not planned (maintainer-requested triage, 2026-11-13). This is one local sighting from about 2026-10-09 that roughly 185 complete captures since have not reproduced, across CPU throttling, concurrency, GC, viewport, engine and transport variations.

    Recurrence sweep (2026-11-13). I read the failed-step log of every failed product job on main CI from 2026-10-28 to 2026-11-13: 84 jobs across 300 runs. In the same window 1,005 unit, 764 browser, 501 layout and 256 runtime_host jobs passed. The React message error during concurrent rendering appears in none of them.

    React recovered and the capture showed the correct refusal UI. The diagnostics from #1317 are on main, so a recurrence will carry the nested cause, stack, phase and host state that this sighting lacked.

    On recurrence: file a new issue with that retained cause and stack, and link it here. The batched-delivery discrepancy found along the way stays with #1840.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ciarea: ui-reactneeds: repropriority: p2type: fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions