feat(mcp): make the gateway operable by agents end-to-end #158
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 372 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.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #158"
general
weight: 0.35
sasan1200
What
An audit of every agent-facing surface (43 tool descriptions, 4 doc resources, 3 prompts, annotations, error envelopes) found ten evidence-backed friction points. This PR fixes all ten, including three behavior changes called out below.
Boundary flow was unusable over flat tools (behavior change)
The Boundary gate requires a pre-saved checkpoint naming the exact
commandId/attemptIdof the command — but flat tools minted both internally and never surfaced them, sointent_submit_and_verify/ boundaryclickcould never pass it over MCP (onlycommand_executewith hand-built envelopes worked).intent_*tools andclickaccept optionalcommandId/attemptId, threaded through unchanged.attemptIdalongsideworkflowId/commandId.fill_and_submit_formprompt rewritten to the only working order — snapshot → fill → pin ids → checkpoint → submit — and states the exactCompleteFormField/ExtractFieldshapes (verbatim compliance previously earned aschemaViolation).isErrormirrors outcome status (behavior change)Failed commands returned
isError: false, so any host pattern of "check isError, else continue" silently walked past failures. NowisError: trueforretryableFailure/needsReconciliation/policyDenied/resourceExhausted/failed;restarted/resumedstay success (recovery decisions). The one test pinning the old behavior updated.Repair docs ungated (behavior change)
bobby://capabilities|failure-taxonomy|intents|primitiveswere behindartifact:read— an agent that just gotmissingCapabilitycouldn't read why. Static docs are now readable by any authenticated principal;artifact://entries stay gated; revoked/expired principals are still denied (distinguished by error code, test-pinned).Schema/annotation accuracy
InterfaceErrorCodetable (all 14 codes with repairs).errorCodeenum: +targetObscured/targetOutOfBounds(29/29), pinned by a schemars parity test so it can't drift again.readOnlyHint: +wait_for,intent_locate,intent_wait_for_state,intent_extract.openWorldHint: +page_open,click,intent_follow,intent_submit_and_verify.network_logdescription names both real failure codes.checkpoint_save/intent_submit_and_verifydescriptions teach the pin mechanism; SKILL.md rules updated; docs guides synced (incl. regenerated v0.5.0 tree).tools/list budget
New schema fields pushed the list over the 128 KiB connect budget;
id()is now a `ref, netting 125,224 bytes with 5,848 headroom (was 167).Verification
: all 11 suites green, incl. new tests for pinned-id threading/echo, doc access withoutartifact:read(+ denial onartifact://), and errorCode wire parity.,cargo check --workspace --all-targets: clean.+docs:test`: 17/0.