You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hosted proof whose merge ref contains this commit is refused or cancelled, and integrate.ts refuses ordinary confirmation and merges, until a main run that includes this failing set is green.
Declare a fix or targeted revert PR with bun scripts/integrate.ts declare-fix <pr>; the first confirmed fix wins. Only a green main run that includes this failing set clears the record, so a failure that does not reproduce still needs a declared fix to land.
One orchestrator owns the fix: it claims it with bun scripts/red-main-incident.ts claim --worker <id> --orchestrator <id>, which writes the claim into the red-main record. After a quick assessment the claimant chooses a fix PR or a targeted revert PR from causal and current-tree evidence, and records that choice and its rationale here as decision evidence; a red check or the latest squash alone is not proof of cause. Every other orchestrator adds evidence here with bun scripts/red-main-incident.ts evidence ... instead of opening another issue.
Fix claimed by worker claim-9f8287dc (orchestrator orch-431cf361).
Main red at 05bf0d6a02fb (record run 43892489696).
Claim term ends 2026-11-16T16:36:48.000Z; the claimant renews it with bun scripts/red-main-incident.ts renew. After it ends, any orchestrator may take the fix over with claim.
Everyone else: add evidence here with bun scripts/red-main-incident.ts evidence; do not open another incident.
Summary: Markup stories time out encoding a 12 MP layer on hosted runners; fix the stories
**Cause (browser).** `stories/images/MarkupEditor.stories.tsx` → Over The Cap (`Unable to find role="alert"`) and Submitted (`expected "onSubmit" to be called 1 times, but got 0 times`), introduced by #4093 (squash `43d73cbe6`). Both stories encode the 3024 × 4032 raft layer before asserting and wait with Testing Library's 1 s default. They failed at ~1.2–1.4 s on main runs 43892489696 (storybook-light), 43894354295 (both themes) and 43895025405 (storybook), and pass in ~0.3 s locally and on the PR's candidate run: a timing budget, not a behaviour regression. No other story or browser test failed in those runs.
**Fix, not revert.** The change is story-only: those two stories encode the same scene at a quarter size (1/16 of the pixels) and wait up to 4 s, inside Vitest's 5 s test limit. Reverting #4093 would remove the delivered markup components that later work (#3975) builds on; nothing else depends on the two stories.
**Unit (`packages/ui-server/tests/app-state-isolation.test.ts`, timeout signature).** Not reached by #4093 (ui-kit and the ui-react mask editor only). It passed on the later main runs 43894354295 and 43895025405. The fix PR does not touch it; the green main run that clears this record must include it.
Summary: Story projects lack NoIdleEncodingForWebTests; stub the encoder in the two stories
**Reassessment after #4099.** Main run 43903824165 (squash `de113bd82`) failed the same two stories in `storybook` at 4279/4405 ms with the quarter-size scene: 1/16 of the pixels and a 4 s wait, so encode size was not the cause and the first decision's timing diagnosis was wrong.
**Cause.** The story projects (`storyProject` in `packages/ui-kit/vitest.config.ts`) launch Chromium without `--enable-blink-features=NoIdleEncodingForWebTests`; the `visual` project sets it. Without it, `canvas.toBlob` defers PNG encoding to idle time (`packages/ui-kit/tests/visual/README.md`, "The `visual` project's Chromium uses `NoIdleEncodingForWebTests`"), which a loaded hosted runner does not reliably give. Supporting evidence: `tests/visual/markup-editor.visual.tsx`, which encodes for real under the flag, passed in every main run; only the two story cases that call the real encoder fail; they pass locally.
**Fix.** Those two stories pass an `exportLayer` that reports a fixed byte count and assert the exact over-cap message and the submitted layer's size, counts and notes. Real encoding stays proven under the flag in the visual project. Not a revert: #4093's product code is not implicated.
**Unit (`app-state-isolation.test.ts`).** Unchanged assessment: not reached by #4093, passed on later main runs; the clearing main run must include it.
Recovered.#4100 squashed as 04ac25983755d29c30f14fb57493616b5a7c34d4 (parent de113bd82, tree 0ade24f9 = its confirmed candidate checkout). Main CI run https://github.com/schlessera/brain-kit/actions/runs/43912992687 on that commit completed success, including the browser stories and packages/ui-server/tests/app-state-isolation.test.ts; main-status cleared the record from that run.
#4099 (quarter-size scene) merged first but did not fix the cause; #4100 replaced its approach. Cause: the story projects run Chromium without NoIdleEncodingForWebTests, so real toBlob encoding in two stories depended on runner idle time.
Activity
schlessera commentedon Nov 16, 2026
Fix claimed by worker
claim-9f8287dc(orchestratororch-431cf361).05bf0d6a02fb(record run 43892489696).bun scripts/red-main-incident.ts renew. After it ends, any orchestrator may take the fix over withclaim.bun scripts/red-main-incident.ts evidence; do not open another incident.schlessera commentedon Nov 16, 2026
Red-main evidence: decision
05bf0d6a02fb(record run 43892489696)claim-9f8287dc, orchestratororch-431cf361(claimant)43d73cbe618b49f0ce18807391c63606410a38dcgithub-actions commentedon Nov 16, 2026
Squash
5c9869caad2fd5fabf1ee8e5dd892344b1fa0dbcfrom #4051 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43894354295).github-actions commentedon Nov 16, 2026
Squash
524986d8a79d1cf593f9159fcaa43a07684cab1ffrom #4073 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43895025405).github-actions commentedon Nov 16, 2026
Squash
ba8980f78848acb348838b81db64e9169291e48afrom #4072 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43895768249).github-actions commentedon Nov 16, 2026
Squash
80e5d372f96eaece849d0fdfac95f5a84925845cfrom #4071 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43896380732).test(ui-kit): encode the quarter-size raft in the markup stories that…
schlessera commentedon Nov 16, 2026
Red-main evidence: decision
05bf0d6a02fb(record run 43892489696)claim-9f8287dc, orchestratororch-431cf361(claimant)de113bd8237646bda73a12d4b61d75ed4e92826dtest(ui-kit): give the markup stories a deterministic encoder (#4098) (…
github-actions commentedon Nov 16, 2026
Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/43912992687 at
04ac25983755d29c30f14fb57493616b5a7c34d4included the failing set and passed. The red-main record is cleared.schlessera commentedon Nov 16, 2026
Closed: recovery proof recorded above (main run 43912992687 green on 04ac259).
schlessera commentedon Nov 16, 2026
Recovered. #4100 squashed as
04ac25983755d29c30f14fb57493616b5a7c34d4(parentde113bd82, tree0ade24f9= its confirmed candidate checkout). Main CI run https://github.com/schlessera/brain-kit/actions/runs/43912992687 on that commit completedsuccess, including the browser stories andpackages/ui-server/tests/app-state-isolation.test.ts;main-statuscleared the record from that run.#4099 (quarter-size scene) merged first but did not fix the cause; #4100 replaced its approach. Cause: the story projects run Chromium without
NoIdleEncodingForWebTests, so realtoBlobencoding in two stories depended on runner idle time.