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 69e45194f3b1: packages/ui-react/tests/runtime-hook-phases.test.ts #3734
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 wi-20261108-94d3ec75 (orchestrator orch-c2803d8b).
Main red at 69e45194f3b1 (record run 42496318379).
Claim term ends 2026-11-08T17:13:34.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.
Choice: fix PR (test-harness readiness protocol). A revert of #3722 is not justified.
Cause (from source):
- packages/ui-react/tests/runtime-hook-phases.test.ts:199 (at 69e45194f) has the child publish readiness with
writeFileSync(path, "Odysseus ready"). That opens with O_CREAT|O_TRUNC and only then writes, so for a
moment the file exists and is empty.
- The parent loop (lines 204-211) retries only on ENOENT. A read in that window returns "", the
toBe("Odysseus ready") assertion throws an error with no errno code, and the catch rethrows at once.
- The hosted failure fits this exactly: Received "" after 20.65 ms. That is far inside the 1 s deadline,
so the deadline was never reached and is not the defect.
- The race has been latent since 92028fcbe (#3173) and depends only on scheduling.
Ruled out #3722 (69e45194f):
- It changes 16 files under core, ui-server, ui-react/tests/browser + fixtures/hygiene-browser-server.ts,
scripts/native-proof and docs.
- The failing test imports only node:fs/promises, node:os, node:path and ./fixtures/runtime-hook-phases.ts.
Neither the test nor that fixture is in #3722's diff, and its last change predates #3722.
- No causal path. The same test passed in #3722's candidate run 42494314232 and on 37123c8e5.
Reproduction on unchanged 69e45194f (local, 16 cores, 24 busy-loop burners):
- 2/40 runs failed on OWNED_CHILD_ACKNOWLEDGED_READINESS with Received "" (96 ms and 44 ms).
- Forced order: the child opens the file, pauses 100 ms, then writes. This fails deterministically on the
same assertion (17.61 ms).
Fix: the child writes `<ready>.partial` and renames it to `<ready>`. rename(2) is atomic within one
directory, so absent means not ready and present means complete. The assertion, the 1 s deadline and
every other assertion are unchanged.
- Same forced 100 ms pause before the rename: passes.
- Same CPU burn: 0/120 failures.
Dependency and conflict assessment: the change is test-only, in one file, and no later squash depends on it.
No docs cite runtime-hook-phases.test.ts lines.
The expedited fix probe on the bad base 69e45194f (run 42499737085) passed the failing file, so
`confirm --fixes-main-run` refused, as designed. This is consistent with the established mechanism.
The empty-file window from a non-atomic writeFileSync is a scheduling race that failed 2/40 local runs
under CPU load and passed in #3722's candidate and on 37123c8e5. The deterministic evidence is the
forced-order receipt in the decision comment and on PR #3736. #3736 now goes through ordinary
declared-fix confirmation with fresh, complete candidate proof under a new lease.
Recovered by declared fix #3736, squash 7006bdb7c9a6b65307866c640e05433301b3f324 (parent 69e45194f, tree 84a2748bb4e0 = candidate run 42500177607's tree). Main run https://github.com/schlessera/brain-kit/actions/runs/42502193526 at that SHA included the failing set and passed; every job succeeded (pack skipped by design) and the red-main record is cleared.
Activity
schlessera commentedon Nov 8, 2026
Fix claimed by worker
wi-20261108-94d3ec75(orchestratororch-c2803d8b).69e45194f3b1(record run 42496318379).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 8, 2026
Red-main evidence: decision
69e45194f3b1(record run 42496318379)wi-20261108-94d3ec75, orchestratororch-c2803d8b(claimant)69e45194f3b17f9de4b43b91f8af732bb78bcfc1schlessera commentedon Nov 8, 2026
Red-main evidence: reproduction
69e45194f3b1(record run 42496318379)wi-20261108-94d3ec75, orchestratororch-c2803d8b(claimant)69e45194f3b17f9de4b43b91f8af732bb78bcfc1test(ui-react): publish owned-child readiness atomically so an empty …
github-actions commentedon Nov 8, 2026
Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/42502193526 at
7006bdb7c9a6b65307866c640e05433301b3f324included the failing set and passed. The red-main record is cleared.schlessera commentedon Nov 8, 2026
Recovered by declared fix #3736, squash
7006bdb7c9a6b65307866c640e05433301b3f324(parent69e45194f, tree84a2748bb4e0= candidate run 42500177607's tree). Main run https://github.com/schlessera/brain-kit/actions/runs/42502193526 at that SHA included the failing set and passed; every job succeeded (pack skipped by design) and the red-main record is cleared.