Skip to content

ci: main red at 4035f977e0cc: packages/ui-server/tests/apify-front-doors.test.ts #4026

Closed

Description

@github-actions

Main is red at 4035f977e0cc471a5fbe795f447237c15890d3dd (first failing main run: https://github.com/schlessera/brain-kit/actions/runs/43738678603).

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: #3689.

Activity

  1. added
    type: fix
    area: ci
    on Nov 15, 2026
  2. schlessera commented on Nov 15, 2026

    @schlessera
    Owner

    Red-main evidence: duplicate

  3. self-assigned this
    on Nov 15, 2026
  4. schlessera commented on Nov 15, 2026

    @schlessera
    Owner

    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.
  5. schlessera commented on Nov 15, 2026

    @schlessera
    Owner

    Red-main evidence: ruled-out

    • Incident: main red at 4035f977e0cc (record run 43738678603)
    • From: worker claim-fe97c28a, orchestrator orch-0450-run (contributor)
    • SHA: 4035f977e0cc471a5fbe795f447237c15890d3dd
    • 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.
  6. schlessera commented on Nov 15, 2026

    @schlessera
    Owner

    Red-main evidence: decision

    **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.
    
  7. added this to the 0.45.0 milestone on Nov 15, 2026
  8. schlessera commented on Nov 15, 2026

    @schlessera
    Owner

    Red-main evidence: fix-attempt

    `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.
    
  9. github-actions commented on Nov 15, 2026

    @github-actions
    Author

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

  10. schlessera commented on Nov 15, 2026

    @schlessera
    Owner

    Outcome

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

Metadata

Metadata

Assignees

Labels

area: citype: fix

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions