Send MCP string successes and declared errors as raw text #80
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 328 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #80"
general
weight: 0.35
gjermundgaraba
An MCP tool returning file contents or command output sent a model JSON-escaped text (
\",\t), so a model copying it into an edit'sold_stringmissed. This is a breaking wire change; nothing is released.What changes
Schema.String, a string literal,Schema.DateTimeUtc) is now one raw text block on every MCP revision, with nostructuredContentand nooutputSchema. Other successes are unchanged. A union holding a string, such asNullOr(String), is still sent like any other success.isError: truewith itsmessageas the text. The error itself is the text when it is a string, and its JSON when it has no non-empty message. Its encoding goes in_meta["io.github.gjermundgaraba.effect-actions/error"].ActionMcp.clientdecodes a string success from the text block and a declared error from that_metaonly; it no longer falls back to parsing the text. Against a 0.37.0 endpoint it fails loudly:UnexpectedContentfor a string success,UndeclaredErrorfor an error.McpCallError'sNoStructuredContentreason is renamedUnexpectedContent.structuredContentthrough, and Claude Code (2.1.330) shows a model serializedstructuredContentin place of every text block. LeavingstructuredContentout is the only way the text reaches the model raw. Amp and Claude Code's v2 client both negotiate 2026-07-28.Commits
1.
dfcce54is the fix, with tests, docs, the CHANGELOG and AGENTS.md recheck entries.2.
799d422moves the_metakeys (field,progress,error) to a reverse-DNS prefix, as the MCP spec says a prefix should. It can be dropped independently.3.
c724427tidies up after a deslop review: a structural listing comparison inmedia.test.ts, and the version note kept in the CHANGELOG only.Unrelated docs line: AGENTS.md gains a note that
tests/cli/cli.test.tsfails in an Amp orb (NO_COLOR=1), so runenv -u NO_COLOR vp testthere. It is environmental and fails the same way onmain.Verification
Done locally only.
vp check,vp test(1694/1694) andvp run test:packagepass, and the fix commit alone passesvp checkandvp test. Two planted violations each failed their tests: error text always JSON failed surfaces-agree, and Effect dropping stringstructuredContentfailed themedia.testparity tests. No CI had run on the branch before this PR.Consumer migration is in CHANGELOG.md under Unreleased.