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 4035f977e0cc: packages/ui-server/tests/apify-front-doors.test.ts #4026
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-2026-11-15-269c361f (orchestrator 0.45.0-orchestrator).
Main red at 4035f977e0cc (record run 43738678603).
Claim term ends 2026-11-15T18:29:07.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: PR fix(backends): clean host context from Claude session titles #4022 title cleanup is not on the first-bad main SHA; its confirmation was refused before taking a lease. The already-linked leading-dash Apify reference failure is outside this assigned title fix.
**Choice: fix (forward), not a revert of #4023.**
Cause evidence:
- Run 43738678603, unit shard 3: `packages/ui-server/tests/apify-front-doors.test.ts:184` (`cli(["run", prepared.proposal])`) throws `Unknown flag: --dqYdZ-o38E…` from `parseArgs` (`packages/core/src/cli/io.ts:115`), called by `apifyCommand.run` (`packages/core/src/cli/commands/apify.ts:97`). The proposal reference is `randomBytes(32).toString("base64url")` (`packages/common/src/apify/consent.ts:412`), and about 1 in 4,096 such values starts with `--`. The CLI parser reads it as a flag. Every other test in the file passed.
- This is exactly the defect #3689 tracks, already observed in hosted CI on an unrelated PR.
- #4023 (`4035f977e0cc`) changes only `packages/ui-backend-claude/src/transcript-archive.ts`, its test, a README, a plan doc and a changeset. None of them is imported by the Apify CLI, the consent store or the ledger, and the selected candidate run for #4023 passed. Reverting it would not change the failure probability, and it would throw away good work.
Dependency and conflict assessment: no revert is proposed, so later work is unaffected. The fix stays within the Apify CLI adapter, as #3689's scope allows ("Apify argument handling"). It leaves the general parser, reference entropy, reference shape, stored records and the MCP and bridge doors unchanged.
Fix: `brain apify` takes a 43-character reference or run handle in its positional slot even when the value starts with `--`. Newly generated and existing stored values then work in the documented direct form, and the `--` separator keeps working. The new deterministic tests force leading-`--` generator output through a `randomBytes` spy at both generators (consent references and ledger run handles), drive inspect, prepare, run, status, results and abort, and fail on the base. PR closes #3689.
`confirm 4027 --fixes-main-run 43738678603` dispatched fix probe [43742065148](https://github.com/schlessera/brain-kit/actions/runs/43742065148) at the exact base `4035f977e0cc`. It printed `BRAIN_RED_MAIN_PROBE {"purpose":"fix","sha":"4035f977e0cc…","tests":["packages/ui-server/tests/apify-front-doors.test.ts"],"absent":[],"exitCode":0}`, so the expedited route refused because the base was not shown red. That is expected for this failure. The base's own copy of the test file fails only when a generated reference happens to start with `--`, about once in 4,096 draws, and the deterministic forcing test exists only at the PR head. The base passing confirms the failure is intermittent and not caused by #4023. It does not contradict the cause.
No probe or job was rerun. Next step, on the documented declared-fix route (red-main.md step 11): ordinary exact-candidate confirmation of #4027 (`confirm 4027 --issues schlessera/brain-kit#3689`). The failing-first receipt is the deterministic test that forces a leading `--` at both generators: it fails on the base code with `Unknown flag` and passes with the fix (recorded in the PR body). The next main run that includes the failing set is the backstop that clears the record.
Squash:23d6af880fd13819b69403875fa804d4bd339605. Its parent is 4035f977e0cc and its tree is 075d9abb820d2458faae02ac45ed79f8637b41dd, the same tree the candidate run tested.
Recovery proof: main run 43745190044 at 23d6af880fd1 included the failing set and passed. The red-main record was cleared by that run.
The new test forces a leading -- at both generators, so this path now has deterministic coverage. No job was rerun, and no test or gate was skipped or weakened. No follow-ups were needed.
Activity
schlessera commentedon Nov 15, 2026
Red-main evidence: duplicate
4035f977e0cc(record run 43738678603)claim-95914f30, orchestratororch-0450-run(contributor)schlessera commentedon Nov 15, 2026
Fix claimed by worker
wi-2026-11-15-269c361f(orchestrator0.45.0-orchestrator).4035f977e0cc(record run 43738678603).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 15, 2026
Red-main evidence: ruled-out
4035f977e0cc(record run 43738678603)claim-fe97c28a, orchestratororch-0450-run(contributor)4035f977e0cc471a5fbe795f447237c15890d3ddschlessera commentedon Nov 15, 2026
Red-main evidence: decision
4035f977e0cc(record run 43738678603)wi-2026-11-15-269c361f, orchestrator0.45.0-orchestrator(claimant)4035f977e0cc471a5fbe795f447237c15890d3ddschlessera commentedon Nov 15, 2026
Red-main evidence: fix-attempt
4035f977e0cc(record run 43738678603)wi-2026-11-15-269c361f, orchestrator0.45.0-orchestrator(claimant)4035f977e0cc471a5fbe795f447237c15890d3ddfix(core): take a leading-dash Apify reference as the positional value (
github-actions commentedon Nov 15, 2026
Main is green again: run https://github.com/schlessera/brain-kit/actions/runs/43745190044 at
23d6af880fd13819b69403875fa804d4bd339605included the failing set and passed. The red-main record is cleared.schlessera commentedon Nov 15, 2026
Outcome
--, andbrain apifyread such a value as an unknown flag. It had nothing to do with fix(backends): preserve archived Claude activity on restore #4023 (4035f977e0cc), which was not reverted.Closes #3689). The expedited probe 43742065148 could not show the base red because the failure is intermittent at the base. fix(core): take a leading-dash Apify reference as the positional value (#3689) #4027 therefore landed through ordinary exact-candidate confirmation: candidate run 43742608681, merge checkout9df7736c394cwith tree075d9abb820d.23d6af880fd13819b69403875fa804d4bd339605. Its parent is4035f977e0ccand its tree is075d9abb820d2458faae02ac45ed79f8637b41dd, the same tree the candidate run tested.23d6af880fd1included the failing set and passed. The red-main record was cleared by that run.--at both generators, so this path now has deterministic coverage. No job was rerun, and no test or gate was skipped or weakened. No follow-ups were needed.