Skip to content

fix(ci): mark the retained-namespace control's designed failure in runtime_host logs (#2921) - #4020

Merged
schlessera merged 2 commits into
mainfrom
ci/2921-native-index-abort-attribution
Nov 15, 2026
Merged

schlessera merged 2 commits into
mainfrom
ci/2921-native-index-abort-attribution

Conversation

@schlessera

Copy link
Copy Markdown
Owner

Closes #2921

What changed

Every runtime_host run ends its native hosted admission with the retained-namespace negative control (#1977). That control must fail NATIVE_AUTOMATIC_INDEX_COMPLETED … Native manager outcome is unknown … AbortError, and its parent then verifies that failure. Its output used to look like a real failure, and pr-status --failures listed it first. As a result, six jobs that failed for other, separately owned reasons were recorded on #2921 as automatic-index aborts. The full attribution is on the issue.

Now the control's output stays in the job log with every line marked expected-failure control | (scripts/expected-failure-log.ts). failingLines counts those lines instead of listing them. The parent's verdict (Verified … or a thrown NATIVE_INDEX_RELEASE_REPRO_*) stays plain. scripts/native-proof/README.md explains how to read a failed runtime_host log.

Why this shape

I did not move the control's output into an artifact file. Artifacts expire within days, and the 2026-10-30 one already has, while job logs last much longer. Marking the lines keeps that evidence and stops it being read as the job's failure. The control, its verifier, its deadline and every gate are unchanged. If the control fails for any other reason, it still fails the job in plain text. That follows the issue's diagnosis-only scope.

Proof

Base origin/main 5af68976988140d8d916f74d7342959a4cc4e66d, head b8f36b62bd3067bf25b9e94fd2689b34d268bac2.

  • Failing first: the new failingLines case, with the real failingLines on the tree before the change. It failed on the assertion, because the received lines also contained both expected-failure control | … lines and lacked the count line. 17 pass, 1 fail.
  • After: bun run test scripts/skill-tests/pr-status.test.ts tests/expected-failure-log.test.ts: 20 pass, 0 fail. The relay test runs a real parent and child process. The child writes to both streams, splits a line across chunks, ends without a newline and exits 1.
  • Mutations (each restored):
    • M1: drop the failingLines filter. Both log tests fail on toEqual, because the control lines are listed.
    • M2: drop the relay's prefix. The relay test fails, because the lines are unprefixed.
    • M3: drop the flush of the unterminated last line. The relay test fails, because … | at Ogygia is missing.
    • M4: spawn the control with stdout: "inherit" again. The source test fails on toContain.
  • The real native control runs only in hosted runtime_host, which runs on the squash's main run.
bun run check:pr --base origin/main

Collisions (bun scripts/collisions.ts --paths): path overlap with drafts #3806, #4002 and #4012 on scripts/native-proof/README.md only. The rest are closure-only reports.

{"version":1,"kind":"brain-check-pr-receipt","head":"b8f36b62bd3067bf25b9e94fd2689b34d268bac2","base":"origin/main","mode":"focused","startedAt":"2026-11-15T14:29:53.295Z","finishedAt":"2026-11-15T14:31:35.099Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13542.947671},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":115.77144300000145},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":128.42319299999872},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":19.784535999999207},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":87980.133277}]}

Checklist

  • Focused local preflight/behavioral receipts and complete selected hosted proof passed; actual head/base/job checkout evidence is in Proof.
  • Acceptance criteria from the issue are all met, or the gap is named below.
  • The PR and completed/advanced issues have verified release milestones under docs/process/github.md.
  • A changeset is included, or this changes nothing a consumer can see. (Repository scripts only.)
  • No personal data anywhere in the diff — the leakage gate covers the whole tree.
  • The integration contract index or relevant component is updated in this same commit, or nothing in the machine surface moved.
  • Docs under docs/ reflect the change, or nothing documented moved.
  • A fail-closed guard added or changed answers the proportionate-containment checklist in this body, or no guard changed.
  • Provider history stays append-only (docs/decisions/provider-history.md): the provider-history guard passes, or nothing on a turn's path changed.

Anything left open

No new issues. Each real failure already has an owner: #2420/#3202 (owned-loop EBUSY), #2897/#2895 (moved fixture anchor), #3655/#3664 (identity setup timeout) and #3966 (the control's first-turn egress 403 on 2026-11-10, with evidence added there). #4010 and #2878 explain none of these occurrences.

🤖 Generated with Claude Code

…ntime_host logs (#2921)

Every runtime_host run ends its native hosted admission with a deliberate
negative control that must fail NATIVE_AUTOMATIC_INDEX_COMPLETED with an
AbortError. Its lines were indistinguishable from a real failure and
`pr-status --failures` listed them first, so six jobs that failed for other,
separately owned reasons were recorded as automatic-index aborts.

The control's output now stays in the log with every line marked
`expected-failure control | `, and failingLines counts those lines instead of
listing them. The parent's verdict stays plain. The README says how to read a
failed runtime_host log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera
schlessera marked this pull request as ready for review November 15, 2026 14:52
@schlessera
schlessera merged commit c6f98e8 into main Nov 15, 2026
39 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. type: fix Something is broken and must behave the way it is documented.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: attribute recurring native automatic-index aborts on main

1 participant