Skip to content

ci: main red at 8752570331ff: layout #3744

Closed

Description

@github-actions

Main is red at 8752570331ffebdbb9233196412781f6cd71f3d9 (first failing main run: https://github.com/schlessera/brain-kit/actions/runs/42527788910).

Failing tests and categories:

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.

Possibly related open issues: #2202, #2309, #2793, #3398, #3414, #3436.

Current triage brief (2026-11-08)

The existing claimant's recorded fix decision selects a fix PR for three nondeterministic test-harness races, rather than a causal claim against the last squash. Keep the current assignment and red-main claim; this triage neither claims nor implements the fix.

Scope: the claimant's seedRecording capture-lock release race, recordings-tray discovery readiness, and parallel-session host-title readiness; preserve all three original assertions and the incident's exact failing-set accounting. Source entry points are acquire (packages/ui-react/src/lib/recordings.ts:218-232), seedRecording (packages/ui-react/tests/fixtures/dictation-selection-client.tsx:29-43), packages/ui-react/tests/browser/recordings-tray.offline.tsx and packages/ui-react/tests/parallel-sessions-runtime.test.ts.

Out of scope: reverting without causal evidence, unrelated product changes, weakening assertions, skips/retries or clearing the red-main record based only on local non-reproduction.

Acceptance/verification: preserve the claimant's actual measured receipts for each race and focused failing-first/restored mutations; any missing cause remains explicitly unproven. Follow the incident's existing declare-fix and exact-candidate procedure. Only a green automatic main run that includes the full recorded failing set clears the incident, with its checkout/job identities reconciled. Other contributors add evidence through the incident command.

Contract impact: the recorded plan changes test fixtures/readiness only; no product contract change is claimed. If scope changes, reclassify before implementation. Priority p1 follows the existing 0.45.0 commitment and current integration blockage; no release-urgency p0 claim is introduced.

Triage 2026-11-08 at main 8752570331ffebdbb9233196412781f6cd71f3d9: Folded the active claimant's recorded fix choice and per-failure evidence into the incident brief. P1 reflects its existing 0.45.0 commitment and blocked integration; assignment and claim are preserved.

Activity

  1. added
    type: fixSomething is broken and must behave the way it is documented.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    on Nov 8, 2026
  2. self-assigned this
    on Nov 8, 2026
  3. schlessera commented on Nov 8, 2026

    @schlessera
    Owner

    Fix claimed by worker wi-3709-d12e (orchestrator orch-d12e0f17).

    • Main red at 8752570331ff (record run 42527788910).
    • Claim term ends 2026-11-08T23:23:52.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.
  4. schlessera commented on Nov 8, 2026

    @schlessera
    Owner

    Red-main evidence: log

    • Incident: main red at 8752570331ff (record run 42527788910)
    • From: worker wi-3727-c1, orchestrator orch-3727-k7q2 (contributor)
    • SHA: 8752570331ffebdbb9233196412781f6cd71f3d9
    • Summary: the three failing assertions from the first bad main run
    Failing assertions in run https://github.com/schlessera/brain-kit/actions/runs/42527788910 (first bad `8752570331ff`):
    
    - layout (2), `packages/ui-react/tests/browser/recordings-tray.offline.tsx` › "tray anchors messages, isolates accounts, keeps actions local and accessible at 320px dark": `tray appearance preserves first visible message: expected 50.5 to be less than or equal to 1`.
    - unit (2), `packages/ui-react/tests/dictation-selection-runtime.test.ts` › "Settings › Voice and the next take, against mounted routes > 1280px: each tray confirmation names the current service, keeps it through upload, and a removed one is confirmed afresh": preceded by `error: evaluate: Error: Recording in another Brain tab`.
    - unit (2), `packages/ui-react/tests/parallel-sessions-runtime.test.ts` › "1279 desktop, dark, fine pointer: A and B stream side by side…": `error: B's failure is spoken once` (Expected/Received differ by one line).
    
    All three paths are in files #3724 changed or in the voice/recordings surfaces it changed.
    
  5. schlessera commented on Nov 8, 2026

    @schlessera
    Owner

    Red-main evidence: ruled-out

    Per-failure comparison of #3724's diff (`8752570331ff`) with the three failing tests in run 42527788910:
    
    1. `packages/ui-react/tests/parallel-sessions-runtime.test.ts` (unit (2)) — **not changed by #3724**. #3724 touches no code on its announcement path either (its `ui-react` src changes are the voice/dictation/settings files plus a one-line `createVoiceStore(env)` wiring and the `SettingsTab` union). The assertion `B's failure is spoken once` got B's failure twice, once under the generated title and once under the raw prompt (`Hold: Row through Scylla's strait (1279 desktop, dark, fine pointer) failed.`). That is the open flake #3414, seen here at 1279 instead of 390. It ran in the same bun process (pid 3770, worker 1 of 2) right after `dictation-selection-runtime`. #3724's own candidate (run 42525761919) passed it on the 4-shard layout.
    
    2. `packages/ui-react/tests/browser/recordings-tray.offline.tsx` (layout (2)), 320px dark only (the other seven width/theme cells passed): `tray appearance preserves first visible message`, 50.5px shift. That is the same assertion as open #3313 ("the recordings tray shifts the first visible message on GitHub Actions"). In this file #3724 only widened three request filters to admit `/voice/providers`. It did change `recordings-tray.tsx`: the item now reads discovery through `loadDiscovery(root)`, and its confirmation route comes from the voice store. A late discovery answer re-rendering the tray item after `settled()` is a plausible new contributor, so this one is **not ruled out** as #3724-influenced, but the assertion was already flaky on main.
    
    3. `packages/ui-react/tests/dictation-selection-runtime.test.ts` (unit (2)), "1280px: each tray confirmation…" — **a new file added by #3724**, so it is #3724's. It failed 2.6s in, so at the first `__dictation.seedRecording()` (line 659), with `Recording in another Brain tab`. The fixture's seed helper (`seedRecording`, `packages/ui-react/tests/fixtures/dictation-selection-client.tsx:29-43`) retries `sink.begin` only while the error says "still being checked". `acquire` (`packages/ui-react/src/lib/recordings.ts:218-232`) throws "Recording in another Brain tab" for any holder that is not this store's own maintenance count, including a same-page capture hold or a hold whose `maintaining++` has not run yet. Each test gets a fresh browser context, so a lock left in another context cannot explain it. The 320px variant of the same test passed in the same process.
    
    Assessment: only (3) is attributable to #3724 with confidence. (1) is pre-existing #3414, and (2) is pre-existing #3313, possibly made more likely by the tray's new discovery read. That makes a full revert of #3724 a poor fit for (1), and a fix PR that hardens the new test's seed against same-page lock contention (with a failing-first receipt), plus separate handling of #3414/#3313, looks like the smaller change. Not reproduced locally yet.
    
  6. schlessera commented on Nov 8, 2026

    @schlessera
    Owner

    Red-main evidence: related

  7. schlessera commented on Nov 8, 2026

    @schlessera
    Owner

    Red-main evidence: related

  8. schlessera commented on Nov 8, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    • Incident: main red at 8752570331ff (record run 42527788910)
    • From: worker wi-3709-d12e, orchestrator orch-d12e0f17 (claimant)
    • SHA: 8752570331ffebdbb9233196412781f6cd71f3d9
    • Choice: fix PR
    • Summary: Three nondeterministic test-harness races (tree identical to a passing candidate); fix PR, no revert
    Choice: fix PR (test-harness races). A revert of #3724 is not justified.
    
    Evidence:
    - The tree at main 8752570 (bdbbfdeeb) is byte-identical to the tree of candidate run 42525761919. That run passed layout (1)/(2) and unit (2) on the same tests, so the failures are nondeterministic rather than a deterministic regression.
    - dictation-selection-runtime "each tray confirmation…": the second seedRecording() raced the previous recording's capture-lock release ("Recording in another Brain tab", raised by `acquire` in packages/ui-react/src/lib/recordings.ts). The fixture retried only "still being checked". On a single-tab page both refusals name its own hold.
    - recordings-tray.offline "tray appearance preserves first visible message" (320 dark, 50.5px): the tray's Transcribe control now waits on root dictation discovery (#3724). When that answer lands after the test's settled(), the tray grows after the anchor measurement. This did not reproduce locally in 4/4 runs. Fix: prime discovery before seeding, so the case measures the tray appearing.
    - parallel-sessions-runtime "B's failure is spoken once": the announcement used B's first-prompt fallback label because the session list had not yet re-read B's host title (trackerLabel). This is unrelated to dictation. Fix: wait for the listed title before releasing B's failure.
    
  9. added this to the 0.45.0 milestone on Nov 8, 2026
  10. added
    priority: p1Scheduled into the current or next milestone.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 8, 2026
  11. github-actions commented on Nov 8, 2026

    @github-actions
    Author

    Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/42534534349 at 57abb7b9151556ccf534eb5f81eaea0b1917cb46 included the failing set and passed. The red-main record is cleared.

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

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p1Scheduled into the current or next milestone.type: fixSomething is broken and must behave the way it is documented.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions