Repository navigation
Description
Out of scope
Do not raise deadlines, weaken queued-refresh or cleanup assertions, change merge gates, retry a failed proof into green, or assume that the historical checkpoint-holder explanation applies to these runs. This issue selects diagnosis, not a product repair or a new release commitment.
Context
Classification of 49 failed first-main attempts from the October 21–25 delivery cohort found three automatic-index abort receipts in runtime_host:
- PR test(ci): shorten continuity reconnect preparation #2808, squash
c636aacceb60779a92f23bf99d66815466d2822c: run 40082818803, job 120839856433. - PR CONTRACT: fix(ui-server): skip the per-result journal observation only for proven reads (#2834) #2882, squash
1c5666e7a9a682e8290b82cfc39942391b1d72de: run 40157659182, job 121062538544. - PR CONTRACT: fix(ui-server): read a type selector's taxonomy only from protected paths (#2699) #2886, squash
d9f4405ceeb142b438f90c4ecff01bb0cae93bb2: run 40157912094, job 121063333192.
Each failed the native Pi UID-0 hosted cell while draining queued refresh, with NATIVE_AUTOMATIC_INDEX_COMPLETED, NativeBrainManagerError, unknown checkpoint outcome and AbortError [ABORT_ERR]. The receipt reports an actual automatic-index failure; it is not merely a wait-function timeout. Other retained-reference controls in those same command receipts passed.
On inspected main 6814f2ce5d3ea7f626284ab28b3c230428d06630, the drain explicitly throws on the recorded failure (const failed, scripts/native-proof/hosted-app.test.ts:404-405). Historical job lines differ; use each immutable squash for attribution.
Closed #1967 documents an earlier matching outer signature and a bounded release correction, but its historical holder remained unknown. These later receipts do not prove the same mechanism or that its correction was absent. Open #2878 concerns different database/sidecar publication-stamp failures; matching the outer automatic-refresh phase does not establish a shared cause. Delivered #2880/#2929 concerns cancellation before a Pi prompt; it is a lifecycle lead whose presence and relevant behavior must be checked at each historical squash, not an attributed explanation or proof that these aborts are repaired.
Duplicate searches covered the exact assertion, automatic/native/abort, and existing checkpoint/publication issues. No open issue was found owning these three abort receipts as a distinct attribution task.
Scope
Preserve the three source-bound receipts and inspect their retained native operation, worker-exit, queued-refresh, checkpoint identity and cancellation evidence. Determine which operation was aborted, which cancellation authority or deadline caused it, whether a worker/reference survived the relevant completion boundary, and whether the occurrences share a cause. If evidence is insufficient, identify the precise missing boundary and specify bounded diagnostics for the next natural occurrence.
Acceptance criteria
- Each occurrence has an evidence-backed operation/cancellation sequence, or an explicit statement of the missing evidence; the outer error string alone is not a cause.
- Correlation with ui-sdk: native checkpoint release sync aborts automatic-index completion #1967, ui-sdk: native index publication intermittently refuses changed database or sidecar stamps #2878 or backends: a pi turn cancelled before its prompt reports done before its worker exits #2880 is claimed only if the operation and lifecycle evidence establish it.
- Product, fixture, infrastructure and unresolved classifications remain distinct. Later passing runs do not retroactively clear these failures.
- Any proposed correction has a source-bound failing-first/control plan and preserves the existing authority, offline containment, cleanup and deadline requirements.
Verification
Start from the listed job logs and their existing runtime-proof artifacts. Do not start with a new native fixture allocation or broad rerun. Retain normalized excerpts, artifact identities and digests. If additional execution is later justified, use the repository's guarded native proof entry point with an explicit finite observation bound.
Contract impact
None selected. Diagnosis only; any eventual consumer-visible correction must assess its own contract impact.
2026-10-25 triage at main dcd3b336dbade5e29e8a131eeeb5a0d9cffe60ff: The finite artifact-first attribution spike already has complete scope, evidence inputs, exclusions and a valid unresolved-evidence deliverable, so it is ready without a causal reproduction prerequisite. Corrected #2880 to delivered lifecycle context; preserve the explicit prohibition on starting with a new native fixture/broad rerun. p2 is wanted unscheduled diagnosis, not a release commitment.
2026-11-15 correction, at main 5af68976988140d8d916f74d7342959a4cc4e66d: the premise above, "The receipt reports an actual automatic-index failure", is wrong. All six recorded occurrences (the three above, plus 2026-10-30, 2026-11-06 and 2026-11-10 in the comments) come from the deliberate --retain-index-namespace negative control (#1977). That control must fail with exactly this signature, and it prints the same lines in green runs. Each job failed for a different reason, and each reason has an owner: #2420/#3202, #2897/#2895, #3655/#3664 and #3966. The attribution comment has the per-run evidence and the operation sequence of the 2026-11-10 artifact. #4020 marks the control's lines in the log, so they are no longer read as the job's failure.
Activity
schlessera commentedon Oct 25, 2026
2026-10-25 triage at main
dcd3b336dbade5e29e8a131eeeb5a0d9cffe60ff: The finite artifact-first attribution spike already has complete scope, evidence inputs, exclusions and a valid unresolved-evidence deliverable, so it is ready without a causal reproduction prerequisite. Corrected #2880 to delivered lifecycle context; preserve the explicit prohibition on starting with a new native fixture/broad rerun. p2 is wanted unscheduled diagnosis, not a release commitment.schlessera commentedon Nov 6, 2026
Recurrence — 2026-11-06, PR #3652 ready proof
A fresh occurrence of the same outer signature, on a PR that does not touch the native, index, worker or turn paths.
runtime_host), artifactruntime-host-proof(id 13488580112).c91bb565f216cd028c86893c0d33182a06d18db5, tree3f432dba6fb0071f37ed3a08974ff65ba948418f, parents1f5c6eb75c31f88c2808c62d890e11c75ce26184(epic/3150-attachments) andc73db5a108cbcbf3bb416fbe2586f05263c95c1a(PR head), as the job'sBRAIN_RESOURCE_RECEIPTrecords it.scripts/native-proof/hosted-app.test.ts, "native hosted pi uid 0 first/warm admission, health, WebSocket, Stop and cancellation", at the queued-refresh drain (const failed,scripts/native-proof/hosted-app.test.ts:449-450at this checkout). It threwNATIVE_AUTOMATIC_INDEX_COMPLETED: NativeBrainManagerError: Native manager outcome is unknown; reconcile the same checkpoint identity. AbortError [ABORT_ERR]: The operation was aborted. The test failed after 76.0 s and its command after 140.9 s, with 4 pass and 1 fail in the file. The four retained-checkpoint reproduction and identity-inspector tests in the same command passed.run-pi-uid0-pKRdEa, 112.5 s) all exited 0. Only the second Pi uid 0 run failed (run-pi-uid0-ca08B8, exit 1). Owned-loop cleanup reported no remaining mount, loop or backing file, and the parent namespace quota was unchanged.run/events.jsonlornative-operations.jsonl. Each holds onlynative-fixture.json,native-environment.jsonandrunner-quota.json. The aborted manager operation, itssubvolume syncinterval (if there was one) and the cancellation source therefore cannot be recovered from this run. Retaining both logs for the failed cell is the boundary this spike needs for the next occurrence.read_attachmentrecord wrapper, which runs only when that tool is called. The fixture's scripted turns call onlybrain_search,brain_read_baseandbrain_ui_session. On the same epic, CONTRACT: feat(ui-react): offer an unrestricted Files source with honest upload states and draft-bound originals (#3155) #3590's proof and main's last three runs passedruntime_host.Not rerun. Priority raised to p1 and milestone 0.45.0: this signature now blocks an 0.45.0 epic merge (#3652).
schlessera commentedon Nov 13, 2026
Two more occurrences on main, found while triaging #3966 (2026-11-13). Neither is recorded here yet. Both are in the Pi UID 0 cell of
native hosted pi uid 0 first/warm admission, ….8cb45cc0bNATIVE_AUTOMATIC_INDEX_COMPLETED: NativeBrainManagerError: Native manager outcome is unknown; reconcile the same checkpoint identity. AbortError [ABORT_ERR], case failed after 83.9 sb77987afbREAL_ISOLATED_WORKER_WROTE_FIRST_AND_WARM_NOTESafter 54.8 s, thenNATIVE_INDEX_RELEASE_REPRO_EXACT_HOSTED_ASSERTIONFrom the 2026-11-10 artifact (
runtime-host-proof,tmp/native-host-proof/run-pi-uid0-IUqS6i/run/events.jsonl, downloadable until 2026-11-17):automatic_index_startedautomatic_index_started, ordinal 1, right after the first turn endsbackend_log:worker scratch area is read-only this turn: .brain/scratch/ could not be checked (Maintenance temporary storage is busy: … (held by: index) …)automatic_index_failed:Native manager outcome is unknown; reconcile the same checkpoint identity. AbortError [ABORT_ERR]: The operation was abortedSo the index held its maintenance reservation for the whole 47.9 s before the abort, and the next turn ran with scratch read-only because of it. Both turns still entered the provider and returned
success.The 2026-10-30 artifact has expired; only the job log remains.
Rate, for scale. From 2026-10-28 to 2026-11-13,
runtime_hoston main passed 256 times and failed 4 times. These two are half of the failures.The failure recorded in #3966 (2026-11-11) is in the same cell but is a different one: its first turn's inference request was refused at network admission.
schlessera commentedon Nov 15, 2026
Claimed for implementation. Claim token:
claim-77ee3ac2. Branch:ci/2921-native-index-abort-attribution.path: draft #4012 (scripts/native-proof/hosted-app.test.ts); closure-only reports: #3054 #3056 #3059 #3069 #3116 #3437 #3581 #3622 #3806 #4002 #4007 #4008 #4013
schlessera commentedon Nov 15, 2026
Attribution — 2026-11-15, at main
5af68976988140d8d916f74d7342959a4cc4e66dResult: every recorded occurrence is the deliberate retained-namespace negative control. None is a product automatic-index failure. Each job failed for a different reason, and an existing issue covers each one.
Where the error line comes from
With no selectors,
scripts/prove-native-host.tsfirst qualifies the four healthy cells. It then runs a fifth invocation,--backend=pi --app-uid=0 --retain-index-namespace(if (selected.length === 0),scripts/prove-native-host.ts:90-102). That invocation's fixture keeps a descriptor to the index worker's mount namespace (retainMountNamespace,scripts/native-proof/native-worker-lifetime.ts:31). This invocation must failNATIVE_AUTOMATIC_INDEX_COMPLETED … Native manager outcome is unknown … AbortError.verifyIndexReleaseReproduction(scripts/native-proof/verify-index-release-repro.ts:13-50) refuses any other outcome. #1977 added this control and documented it inscripts/native-proof/README.md("Expected exit: 1.").All six jobs print the line from this fifth invocation, which follows
Verifying the deliberately retained index namespace reproduces the expected failure.It is followed byerror: Native hosted proof failed (1)and a stack. The same lines appear in green runs.bun scripts/pr-status.ts --failureslisted them first, ahead of the real failure, and nothing marked them as expected. That is how they were recorded here. #2895 already noted this for the two 2026-10-25 runs.Each occurrence
c636aacce(#2808)NATIVE_INDEX_RELEASE_REPRO_OWNED_CLEANUP: the control's own loop removal hit[Errno 16] Device or resource busy9cf9bfb49, 2026-10-30)1c5666e7a(#2882)Verified expected automatic-index failure …; receipt phasenative managed hosted admission"success":truenative separate-UID worker identity:Identity fixture mutation anchor changed(scripts/prove-worker-identity.ts:107). #2882 moved thehosted-app.test.tsrun line infixture.py(fixture)d9f4405ce(#2886)8cb45cc0b[Errno 16] Device or resource busy,Native proof cleanup failed.8cb45cc0bpredates #3202 (fixture, infrastructure)c91bb565f(#3652)exitCode 0)worker_identity_setup_timed_outincaptureMaintenanceStage(product boundary, cause unresolved)b77987afbNATIVE_INDEX_RELEASE_REPRO_EXACT_HOSTED_ASSERTION: the control failed earlier than designed, atREAL_ISOLATED_WORKER_WROTE_FIRST_AND_WARM_NOTESHTTP Error 403: Forbiddenon its egress probe and never wrotenotes/worker-1.md. The warm turn's probe then needed network approval and timed out. Both ENOENT cases follow from the missing note. The healthy Pi UID 0 cell (run-pi-uid0-cI2wRz) printedworker-passtwice, with no traceback (unresolved)The 2026-11-06 comment's "two outcomes on the same tree" are the healthy Pi UID 0 cell (
run-pi-uid0-pKRdEa, passed) and this control (run-pi-uid0-ca08B8, failed as designed and verified). The PR it blocked failed on #3655.Operation and cancellation sequence (the only artifact still retained)
The
runtime-host-proofartifact 13792106997 from run 42875027911 (sha256:55132850b2ab5ca92e5f0d8aa165e8738714822c4f322198c73317b0c70cdf6a) hasrun-pi-uid0-IUqS6i/run/{events,native-operations}.jsonlandindex-descendant-lifetime.json. Offsets are fromautomatic_index_started(wall1794335580263):subvolume snapshot -r … checkpoints/252e26f5…(root 267), the index's checkpointmnt:[4026532506](pinned.openedWallAt)subvolume delete --commit-afterroot 267, code 0subvolume sync /brain-fixture 267starts. The manager's 1 sfilesystem syncwake (#1994) runs 29 times, all code 0automatic_index_failed:Native manager outcome is unknown … AbortErrorclosedReason: "native-sync-failed")subvolume sync … 267completes in 1.4 mssubvolume sync.NATIVE_MANAGER_OPERATION_TIMEOUT_MS = 30_000(packages/ui-sdk/src/server/native-brain-manager-protocol.ts:201), applied atAbortSignal.timeout(options.timeoutMs)(packages/ui-sdk/src/server/native-brain-manager-client.ts:105).The job logs alone show the same control verdicts for the five runs whose artifacts have expired.
Correlations checked
stale maintenance outputorNative output changed before copy. fix(ui-sdk): a read-only index connection no longer refuses native publication #4011's sidecar change explains none of them.brain.dbbefore-copy refusal is a different signature.success, and no Pi prompt was cancelled.Classification
Later green runs clear none of these. Product and fixture code are unchanged, and no deadline, assertion or gate changes.
Correction
#4020 marks the control's output instead of changing it. Every line the control prints stays in the job log, prefixed
expected-failure control |, andpr-status --failurescounts those lines instead of listing them. The parent's verdict (Verified …orNATIVE_INDEX_RELEASE_REPRO_*) stays plain. The README now explains how to read a failedruntime_hostlog.fix(ci): mark the retained-namespace control's designed failure in ru…
schlessera commentedon Nov 15, 2026
Delivered by #4020, squash
c6f98e8d9d2f63d144ff82d6d1d6ff0db128547con main (verified as an ancestor oforigin/main). Candidate run 43726726734 passed. The squash's main run 43729104640 was still in progress at merge.expected-failure control |in the job log, andpr-status --failurescounts those lines instead of listing them.scripts/native-proof/README.mdexplains how to read a failedruntime_hostlog. The PR has the failing-first and mutation receipts.