Skip to content

backends: report Claude tool execution evidence where no project hook or brain MCP code can run #2875

Closed

Description

@schlessera

Blocked by #2834

Context

#2834 skips the journal observation after a call proven read-only in its actual execution path, from evidence the backend reports through the server-only StartTurnRequest.toolExecution. The Claude backend reports none, so every Claude result is observed as before. Its built-ins (Read, Grep, Glob) run in the worker next to project settings hooks and the brain's project MCP server (mcp__brain__*), which can run brain-owned code on any tool event; its host bridge tools (mcp__brain-ui__*) run in the host, but the same worker-side hooks still run around them.

Scope

  • Establish when a Claude worker provably runs no project hook and no brain-owned MCP code for a call: which settings sources the hosted turn loads, whether the CLI reloads them mid-session, and what the host can verify.
  • Report host_bridge for mcp__brain-ui__ reads, and worker_read for built-in reads, only under that proof.

Out of scope

Acceptance criteria

Verification

bun run test packages/ui-server packages/ui-backend-pi packages/ui-backend-claude, and bun scripts/prove-native-host.ts --observation-timing for the backend changed.

Contract impact

None expected: the evidence travels in the existing @internal StartTurnRequest.toolExecution.

Follow-up from #2834.

Evidence and conservative completion

#2834 is open: StartTurnRequest.toolExecution and the proposed evidence schedule are implementation-branch inputs, not a current-main API claim. Start from its delivered classification and verify the exact installed runtime/loader source; model documentation or a configured flag alone is not proof. Cover all settings sources, reload paths and code introduced during a turn. Missing or mutable evidence conservatively retains observation.

If the runtime cannot prove a stable empty code/hook set, a documented negative conclusion with source evidence is an acceptable investigation outcome; do not emit read evidence or weaken capture to meet latency targets. Any qualifying implementation must include a negative mutation proving configured or later-loadable code cannot be classified as a proven read. No provider-facing history change or new public seam is authorized.

2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: Completed the conservative, source-verifiable investigation/conditional implementation brief and documented a valid negative outcome. Added the real #2834 prerequisite; no capability or hook-free runtime proof is assumed. Preserve the existing priority.

Activity

  1. added
    type: featA new capability or a change in user-visible behaviour.
    area: backendsAgentBackend implementations and the seam they share.
    priority: p3Someday. Needs a driving use case before it starts.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Oct 25, 2026
  2. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    2026-10-25 triage at main 827861e1fa71cd4a26b52f1ef0f96b849381acdf: Completed the conservative, source-verifiable investigation/conditional implementation brief and documented a valid negative outcome. Added the real #2834 prerequisite; no capability or hook-free runtime proof is assumed. Preserve the existing priority.

  3. added this to the 0.45.0 milestone on Oct 25, 2026
  4. schlessera commented on Oct 25, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #2834 is closed, so scripts/sync-project.ts is removing the blocked label.

  5. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Oct 25, 2026
  6. self-assigned this
    on Nov 15, 2026
  7. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-71d40e77. Branch: docs/2875-claude-tool-evidence.

    path: docs/decisions/governed-writable-workers.md is also changed by open PRs #4002, #4018, #4041, #4050, #4056, #4060; the rest are closure reports only

  8. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Merged in #4074 as 4541b40ac through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: backendsAgentBackend implementations and the seam they share.priority: p3Someday. Needs a driving use case before it starts.type: featA new capability or a change in user-visible behaviour.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions