Repository navigation
docs(backends): record why Claude reports no tool execution evidence (#2875) - #4074
Merged
Merged
Conversation
…2875) A journaled Claude turn loads project settings and .mcp.json, the default brain runs the brain MCP server for the whole session, the CLI reloads settings, skills and plugins mid-session, and the host cannot read the effective hook set. No call is proven to have run no project hook or brain-owned MCP code, so every Claude result stays observed. Guard both sides: the backend reports no evidence with or without a project hook and brain MCP server configured, and the host classifies any evidence for a Claude tool name as unproven. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
This was referenced Nov 16, 2026
Merged
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 #2875
What changed
The investigation outcome is negative, and it is recorded beside the #2834 classification in
docs/decisions/governed-writable-workers.md("Claude tool execution evidence — 2026-11-15 (#2875)"). No condition the host can check proves that a journaled Claude call ran no project hook and no brain-owned MCP code, so the Claude backend still reports notoolExecutionevidence and every Claude result stays observed. Two tests now pin this. One is a backend test: a Claude turn with a projectPostToolUsehook and the brain's.mcp.jsonserver, or with neither at turn start, runsRead,Grep,Glob, twomcp__brain-ui__reads andmcp__brain__brain_searchto their results. It fails if any of them reports evidence. The other is a host test: the schedule classification treats evidence reported for any Claude tool name as unproven.Why this shape
The issue's brief accepts a documented negative conclusion with source evidence, and it forbids emitting read evidence without proof. I checked the installed SDK 0.3.293 and its bundled CLI against the proof conditions:
settingSources: ["project"]and nostrictMcpConfig..mcp.jsonrunsbrain mcpfor the whole session. That server evaluatesbrain.config.tsand its modules, opensbrain.dband drives compute jobs.disableAllHooks.QueryAPI returns no effective hook set..claude/skills/agentsare not protected.A positive path would need either a runtime-verified, session-stable empty hook and MCP set, or a maintainer ruling to turn hooks or the brain MCP server off for interactive turns. The decision record names both as the conditions for reopening this. Neither is authorized here.
Proof
Mutation receipts. Each mutation was restored afterwards, with
git diff --statempty:(inputs.req as StartTurnRequest).toolExecution?.(serverMsg.toolUseId, "worker_read")toforwardFramesinpackages/ui-backend-claude/src/turn-stream.ts. Both cases fail onCLAUDE_REPORTS_NO_TOOL_EXECUTION_EVIDENCE(0 pass, 2 fail).toolObservationto acceptname === "Read"forworker_read. The test fails onTOOL_OBSERVATION_CLASS(8 pass, 1 fail).scripts/prove-native-host.ts --observation-timingwas not run, because no Claude read qualifies, so there is no proven read to time. This is recorded in the decision entry.Collisions (
bun scripts/collisions.ts --json --pr 4074, headf07e9f2e3): closure reports only, nopathorunknownreport. The details are in a PR comment.{"version":1,"kind":"brain-check-pr-receipt","head":"75be389c19415ba085cc8e4065ebbb9c7978dc68","base":"origin/main","mode":"focused","startedAt":"2026-11-16T21:03:54.544Z","finishedAt":"2026-11-16T21:04:47.002Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13071.154937999998},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":143.03626799999984},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":121.35486300000048},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":19.796644000001834},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":39084.509815}]}Checklist
toolExecutionstays@internaland unchanged.Anything left open
Nothing. Reopening needs a runtime capability or a maintainer ruling, and the decision record names both.
🤖 Generated with Claude Code