Skip to content

native-proof: reference efficiency worktree release hits the manager client timeout under load #4048

Open

Description

@schlessera

Context

The reference efficiency phase of the native reference pool proof releases the first managed worktree and expects its cleanup assessment (REFERENCE_EFFICIENCY_LOCAL_COMMIT, scripts/native-proof/reference-efficiency.ts:221). Under parallel host load, the release did not return. Instead the native manager client threw on its own operation timeout (NATIVE_MANAGER_OPERATION_TIMEOUT_MS, 30 s, packages/ui-sdk/src/server/native-brain-manager-protocol.ts:282; abort handling at packages/ui-sdk/src/server/native-brain-manager-client.ts:105-124):

NativeBrainManagerError: Native manager outcome is unknown; reconcile the same checkpoint identity. AbortError [ABORT_ERR]: The operation was aborted
 code: "unknown"

This happened in 5 of 6 loaded clean runs in draft heavy feedback run 43756278174, job 132945961843 (PR #4040 head f77a2dde7e9df4777ae317cd573813884a50cd88). Each loaded run took about 140 s, against about 50 s unloaded. Load came from a temporary #2819 receipt driver: two niced CPU spinners and a continuous 256 MiB dd ... conv=fsync writer on the runner's disk, which also backs the loop devices. That load is heavier than a normal proof run, and unloaded runs on the same head passed this phase.

Scope

Find out whether the release really takes more than 30 s under IO contention, or the client stalls for another reason. Then either bound the proof's expectation honestly or record why the timeout is right and the load unrepresentative.

Out of scope

Changing the production operation timeout without a ruling; the release or cleanup semantics.

Acceptance criteria

  1. The cause of the timeout under load is named, with evidence from the run's artifacts or a reproduction.
  2. Either ten consecutive loaded native runs pass REFERENCE_EFFICIENCY_LOCAL_COMMIT, or the issue records why that load lies outside the proof's qualified envelope.

Verification

bun scripts/prove-reference-pool.ts repeated under the stated load on hosted heavy feedback.

Contract impact

None.

2026-11-16 triage at main 3b104890f8: Verified REFERENCE_EFFICIENCY_LOCAL_COMMIT at :221 and the unchanged 30 s operation bound at protocol :282. Classified this measured cause/qualified-load-envelope decision as type: spike, p2 wanted unscheduled work. The recorded five-of-six loaded failures supply a concrete condition; retain release request/start/response/timeout and host-load evidence to distinguish manager work from client scheduling. A supported no-change conclusion is valid. Changing the production timeout still needs its own ruling, so this investigation does not wait for that optional choice. Existing native harness/guards remain; no unrelated epic is used to bypass #736's 100-child limit.

Activity

  1. added
    type: testCoverage, harness or proof work with no behaviour change.
    area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    type: spikeTime-boxed investigation. The deliverable is a written decision, not code.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    and removed
    type: testCoverage, harness or proof work with no behaviour change.
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.area: ui-sdkWire protocol, runtime schemas, the server and client SDK surfaces.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: spikeTime-boxed investigation. The deliverable is a written decision, not code.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions