Repository navigation
Open
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.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: testCoverage, harness or proof work with no behaviour change.
Description
Part of #4278. Found by the epic's native measurement run.
Context
The Claude native proof drives a real worker with a scripted SDK-query fixture. It does not exercise the Claude CLI's provider transport, MCP connection, SDK initialization or first provider request. Pi already runs its real SDK against an offline loopback SSE server.
As a result, none of these epic changes can be measured natively:
- the bridged brain reads (backends: serve the brain's MCP tools as host bridge tools that forward to a per-turn sandboxed server, so tool search survives non-blocking startup #4325, PR CONTRACT: feat(backends): bridge hosted brain reads before runtime startup #4394);
- tool search (backends: tool search is off behind the inference relay, so every tool definition is sent in every request #4306);
- the deferred freeze (ui-server: after each tool result the worker is stopped before it can send its next model request (0.8 s median per request) #4292, PR fix(ui-server): defer eligible result observations until inference dispatch #4395), whose post-tool hold is recorded for Pi only;
- the prompt gate and settings path from CONTRACT: fix(backends): enforce retained Claude request policy #4319;
- the first provider request's prefix and cache behaviour.
The epic's model-side claims stay unmeasured until the Claude proof reaches a provider.
Scope
Give the Claude native proof an offline loopback provider, like Pi's, and the production MCP path: the non-blocking brain MCP startup, or the #4325 bridge when enabled. Record:
- SDK init;
- MCP readiness;
- time to the first provider request;
- the post-tool hold to the next request.
No real network or API key.
Acceptance criteria
- The Claude proof sends real Messages requests to an offline loopback provider and records SDK init, MCP readiness, first-request dispatch and post-tool-hold-to-next-request spans.
- The proof's provider-history guard holds: the tools, system prompt and earlier messages are byte-identical across turns.
- The test preload's network guard stays in force: no request leaves loopback.
- The README documents the new spans and how to compare them across heads.
Metadata
Metadata
Assignees
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.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: testCoverage, harness or proof work with no behaviour change.
Activity
schlessera commentedon Nov 21, 2026
Decision (maintainer, 2026-11-21): when epic #4278 lands, the native-measurement acceptance criteria of its issues move here instead of keeping the issues open. One native rerun after landing settles all of them.
The rerun compares the epic tip against main on one VM, alternating the two, with at least 3 repeats and a disk I/O benchmark. It uses both trees, Claude and Pi, and both UIDs. It needs the Claude native proof to reach a provider and MCP (this issue's original scope), and the harness fixes in #4419 and #4414.
Native criteria moved here from:
The issues that land complete (#4283, #4285, #4289, #4298, #4307, #4367) close on merge. The others stay open only for their remaining non-native gaps, each tracked by a follow-up.