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
{{ message }}
Repository navigation
ci: main red at 4d376943c186: packages/ui-react/tests/dictation-selection-runtime.test.ts #3759
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 c3728-6de7 (orchestrator orch-6de750cb).
Main red at 4d376943c186 (record run 42563048531).
Claim term ends 2026-11-09T06:04:58.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: Unit (4) fails a radio check() postcondition in the deliberate 500 rollback path; audit the stale and failed-save interactions together.
The failing assertion in [unit (4), job 128983721784](https://github.com/schlessera/brain-kit/actions/runs/42563048531/job/128983721784) is:
```text
packages/ui-react/tests/dictation-selection-runtime.test.ts:472:61
error: check: Clicking the checkbox did not change its state
```
The call log resolves the Beta Live radio, reports it visible/enabled/stable, completes the click, then fails the checked-state postcondition. Package/client build, host start and real Chrome launch completed earlier in this same execution.
The test deliberately installs a PUT /api/voice/dictation/settings -> 500 interception at line 471, then calls `.check()` at line 472. Its following assertions require the save-failure alert and Alpha Transcribe to be selected again. The controlled radio reads pending choice, otherwise saved discovery (`packages/ui-react/src/components/settings/dictation-settings.tsx:123-126`); the failed-save path clears pending (`packages/ui-react/src/voice/dictation-settings-save.ts:129-132`). Thus the intended fast rollback can potentially finish before Playwright verifies that Beta remains checked.
The stale-revision path at line 465 also uses `.check()` while expecting Alpha to be restored after the refused change. Audit both refused-choice interactions together. A click followed by the existing outcome/reversion/Try again assertions would avoid requiring a transient checked state; those assertions should remain intact.
This is source/log evidence and a candidate ordering explanation, not a local failing-first reproduction. This checkout has no host Chrome executable, so no local runtime pass is claimed. No guards, test assertions or production sources were changed, and no refused proof was retried. #3726 and #3662 remain pending this incident's recovery.
Summary: Harness race: check() reads back a radio the pane correctly reverts after an instant 500; reproduced under CPU load; fix with click()
**Choice: fix (test harness), not a revert.**
**Cause evidence.** The failing step is `dictation-selection-runtime.test.ts:472`, "stale revision, a failed save with Try again…", in run 42563048531: `error: check: Clicking the checkbox did not change its state`. The fixture fulfils the PUT with a 500 at once, and the pane correctly reverts the choice to Alpha Transcribe. Playwright's `check()` clicks and then reads the radio back. When the revert commits before that read, `check()` throws, even though the app behaved as specified. Line 465 has the same shape: there, a stale-revision refusal reloads the current value.
**Reproduction.** On `4d376943c` the test passes 3 out of 3 runs on an idle host. With 20 CPU-burn loops on a 16-core host, it failed 2 out of 2 runs at line 472 with the same error.
**Why not a revert.** The first bad commit, #3732 (attachment reads), does not touch this test or the dictation settings code. The test and the pane come from #3724. The flake depends on timing, not on #3732, so reverting #3732 would not remove it.
**Fix.** At lines 465 and 472, use `click()` instead of `check()` where the choice is expected to be refused and to revert. The following waits (the stale status text, and the save-failed alert with the reverted radio) already assert the outcome. No other `check()` in the file expects a revert. At lines 609–610 the write is held at the browser, so the choice stays checked. The verification is a loaded rerun of the fixed test, recorded on the fix PR.
Three runs each of `packages/ui-react/tests/dictation-selection-runtime.test.ts`, in clean detached worktrees: `bun install --frozen-lockfile`, `bun run build --jobs=2`, then `bun test --timeout 30000`, real Chromium 1243.
| SHA | run 1 | run 2 | run 3 |
| --- | --- | --- | --- |
| `09a79f685` (parent of the named first-bad) | 14 pass | 14 pass | 13 pass, 1 fail |
| `4d376943c` (named first-bad, #3732) | 14 pass | 13 pass, 1 fail | 14 pass |
Both failures are the hosted one: "stale revision, a failed save with Try again, and the read-only view for a non-owner", with `error: check: Clicking the checkbox did not change its state`. The case fails intermittently at the parent too, so `4d376943c` is not its cause. #3732 changes sent-row read states and the client's `attachmentReads` hello flag; it touches no voice-settings code. The same test was also in #3744 (first-bad #3724's merge `8752570331`). The flake looks to have come with that change: a checkbox click in the Voice settings scene that sometimes does not toggle.
Recovery proof: the declared fix #3760 merged as edce87b2aa6ad89debb22f3910a944925a0df8e6 (a test-only change: click() instead of check() where the pane reverts the choice). Main run https://github.com/schlessera/brain-kit/actions/runs/42574363956 at that commit included packages/ui-react/tests/dictation-selection-runtime.test.ts and passed. Closing.
Activity
schlessera commentedon Nov 9, 2026
Fix claimed by worker
c3728-6de7(orchestratororch-6de750cb).4d376943c186(record run 42563048531).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 9, 2026
Red-main evidence: log
4d376943c186(record run 42563048531)safety-3725-binding-parent-20261108, orchestratororch-7c9068b428c36e6b(contributor)4d376943c18641e0eb746e28b49f47e6236e9312schlessera commentedon Nov 9, 2026
Red-main evidence: decision
4d376943c186(record run 42563048531)c3728-6de7, orchestratororch-6de750cb(claimant)4d376943c18641e0eb746e28b49f47e6236e9312schlessera commentedon Nov 9, 2026
Red-main evidence: ruled-out
4d376943c186(record run 42563048531)w3155-f64e, orchestratororch-3155f64e(contributor)4d376943c18641e0eb746e28b49f47e6236e9312test(ui-react): click, not check, a dictation choice the pane reverts…
github-actions commentedon Nov 9, 2026
Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/42574363956 at
edce87b2aa6ad89debb22f3910a944925a0df8e6included the failing set and passed. The red-main record is cleared.schlessera commentedon Nov 9, 2026
Recovery proof: the declared fix #3760 merged as
edce87b2aa6ad89debb22f3910a944925a0df8e6(a test-only change:click()instead ofcheck()where the pane reverts the choice). Main run https://github.com/schlessera/brain-kit/actions/runs/42574363956 at that commit includedpackages/ui-react/tests/dictation-selection-runtime.test.tsand passed. Closing.