Repository navigation
fix(ci): mark the retained-namespace control's designed failure in runtime_host logs (#2921) - #4020
Merged
Merged
Conversation
…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>
This was referenced Nov 15, 2026
…abort-attribution
schlessera
marked this pull request as ready for review
November 15, 2026 14:52
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2921
What changed
Every
runtime_hostrun ends its native hosted admission with the retained-namespace negative control (#1977). That control must failNATIVE_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, andpr-status --failureslisted 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).failingLinescounts those lines instead of listing them. The parent's verdict (Verified …or a thrownNATIVE_INDEX_RELEASE_REPRO_*) stays plain.scripts/native-proof/README.mdexplains how to read a failedruntime_hostlog.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/main5af68976988140d8d916f74d7342959a4cc4e66d, headb8f36b62bd3067bf25b9e94fd2689b34d268bac2.failingLinescase, with the realfailingLineson the tree before the change. It failed on the assertion, because the received lines also contained bothexpected-failure control | …lines and lacked the count line. 17 pass, 1 fail.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.failingLinesfilter. Both log tests fail ontoEqual, because the control lines are listed.… | at Ogygiais missing.stdout: "inherit"again. The source test fails ontoContain.runtime_host, which runs on the squash's main run.Collisions (
bun scripts/collisions.ts --paths): path overlap with drafts #3806, #4002 and #4012 onscripts/native-proof/README.mdonly. 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
docs/reflect the change, or nothing documented moved.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