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 132505f0bdac: tests/test-invocation-lifetime.test.ts #4081
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-20261116-6298f1d4 (orchestrator 0.45.0-orchestrator).
Main red at 132505f0bdac (record run 43858822733).
Claim term ends 2026-11-16T13:02:53.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 (test-only), not revert.** This is a flake in the test's own timing, not a regression from #4064.
Cause evidence
- Failing case: `wrapper watch reruns rebuild instead of borrowing live outer authority` (unit (3), run 43858822733). The first watch run printed `WATCH_CONSUMER 1`, and for the next 10 s no rerun printed `WATCH_CONSUMER 2` (`SECOND_WATCH_CONSUMER`, `tests/test-invocation-lifetime.test.ts:182`).
- #4064 cannot reach this test. The test builds a private fixture checkout from a fixed list of `scripts/*` files plus `packages/core/tests/cli-harness.ts` and two `packages/ui-react/tests/fixtures/runtime-*` files (`invocationFixture`, `tests/helpers/test-invocation-fixture.ts:6-37`). #4064 changes none of them. Under `scripts/` it changes only `scripts/native-proof/*`. Its other changes are in ui-sdk's native reference pool, docs and the api-report. The verdict was `closure-unknown`, not a traced dependency.
- The same case passed in 2.4–3.8 s on the four main runs before the bad SHA (43849565555, 43844647238, 43840844397, 43836699141).
- It did not reproduce locally: 3 runs with Bun 1.4.4, 8 more under a 20-loop CPU burn, and 5 with CI's Bun 1.4.2 all passed. A minimal `bun test --watch` probe always reran after an edit made immediately after the test's last statement (40/40 on Bun 1.4.2), including an edit made while the test body was still running.
- The failure label is built when `until` is called, so the output in the CI annotation was captured before the 10 s wait began. It shows nothing about what happened during the wait. The root cause inside Bun's watch reload is therefore not established.
Fix
- Wait for the first watch run's own summary (`Ran 1 test across 1 file`), not only its marker line, before editing. The edit then cannot land inside that run's teardown, and the rerun it starts is the only one the test waits for. The claim under test is unchanged: the rerun must rebuild and consume `cargo = 2` without borrowing the outer authority.
- Labels that report output are now built when the wait ends, so a recurrence shows what actually arrived. The same bug class at the survivor-fallback wait (`:84`) is fixed too.
Dependency and conflict assessment
- A revert of #4064 would remove unrelated good work (the read-only pool growth status and its contract docs) and would not touch the failing test, so it is not supportable.
- The fix changes only `tests/test-invocation-lifetime.test.ts`. No later squash on main touches that file.
Route
- The expedited `--fixes-main-run` path needs the failing file shown red at the exact base. A flake that does not reproduce cannot supply that (`scripts/red-main-expedite.ts:59`), so the fix lands as a declared fix through ordinary candidate confirmation.
Candidate run: 43865497678. Checkout 96d9a3c80a2c, parents e66cf4c8f9d7 and 9b6ca0d718bd, tree e64c41d05fe8.
Squash 3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9: parent e66cf4c8f9d7, the same tree.
Recovery proof: main run 43869683807 at 3b104890f84e succeeded and cleared the record (main-status: red: false, last action clear). Both watch-rerun cases passed in it, in 3.53 s and 3.42 s.
Activity
schlessera commentedon Nov 16, 2026
Fix claimed by worker
wi-20261116-6298f1d4(orchestrator0.45.0-orchestrator).132505f0bdac(record run 43858822733).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
132505f0bdac(record run 43858822733)wi-20261116-6298f1d4, orchestrator0.45.0-orchestrator(claimant)132505f0bdacd8a69748efce2ff572cbe763e2e7schlessera commentedon Nov 16, 2026
Red-main evidence: related
132505f0bdac(record run 43858822733)wi-20261116-6298f1d4, orchestrator0.45.0-orchestrator(claimant)github-actions commentedon Nov 16, 2026
Squash
e66cf4c8f9d7d6b3085361902a90f8f2bda827eafrom #4065 landed while red without being a declared fix (main run https://github.com/schlessera/brain-kit/actions/runs/43862590255).test(ci): edit only after the first watch run finishes in the watch-r…
github-actions commentedon Nov 16, 2026
Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/43869683807 at
3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9included the failing set and passed. The red-main record is cleared.schlessera commentedon Nov 16, 2026
Outcome: main is green, and the record is cleared.
tests/test-invocation-lifetime.test.ts's watch-rerun case, not a regression from CONTRACT: feat(ui-sdk): read-only reference pool growth status (#3515) #4064. The decision comment above has the evidence.96d9a3c80a2c, parentse66cf4c8f9d7and9b6ca0d718bd, treee64c41d05fe8.3b104890f84e2eeca687d3c4fbdd1dbb02fb3ae9: parente66cf4c8f9d7, the same tree.3b104890f84esucceeded and cleared the record (main-status:red: false, last actionclear). Both watch-rerun cases passed in it, in 3.53 s and 3.42 s.needs: repro, no milestone).