Repository navigation
docs(mcp): t46.8 closure package — proof runs + surface report - #4020
Merged
Merged
Conversation
polylogue-t46.8.2/t46.8.3's 2026-08-19 pass-2 notes named the remaining work as proof runs plus one documentary report (AC#6), not implementation: the 103-tool-to-10-verb collapse already shipped in PR #3095. This adds docs/mcp-surface-report-2026-08.md: the final 10-tool + 15-URI-resource surface with per-tool declared operations, the capability-flag role-gating matrix (no role ladder -- three independent write/judge/maintenance opt-ins, off by default), measured token cost of the serialized tool declarations under each capability combination, every retained exception with its reason, and AC#4 (pre-deletion goldens) restated as unsatisfiable post-hoc rather than left as a permanently-open impossible criterion. Registered the report in devtools/docs_surface.py's tiered doc index (archive tier, matching the existing dated-retro precedent) and linked it from docs/mcp-reference.md. Ref polylogue-t46.8, polylogue-t46.8.2, polylogue-t46.8.3
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Summary
Closure package for the
polylogue-t46.8MCP verb-algebra epic's children:polylogue-t46.8.2(read migration) andpolylogue-t46.8.3(privilegedfamilies). Both beads' 2026-08-19 pass-2 notes agreed the implementation is
done (103-tool-to-10-verb collapse shipped in PR #3095,
dc6fa632a) andwhat remains is proof runs plus one documentary report. This PR is exactly
that: no production code changed.
Problem
Both beads' AC lists were last touched before the collapse's supporting
test harnesses existed or were last run together. The 2026-08-19 pass-2
notes named specific unrun/unmeasured items:
t46.8.2AC#2 (seven continuity drills + z9gh Workflow incident replay)and AC#3 (bounded pages/continuation for oversized cases) had harnesses
(
test_cold_model_continuity_replay.py×2,test_tool_discovery.py,test_bounded_query_transport.py) that existed but were "unrun in thisaudit".
t46.8.3AC#5 (t8t coordination/context flows plus negativeunauthorized/injection/retry fixtures) named four fixture files
(
test_privileged_tools.py,test_tool_error_isolation.py,test_context_delivery_tool.py,test_status_scope_coordination.py)in the same unrun state.
t46.8.3AC#6 (final surface/token-cost/usage report naming everyretained exception) was flagged as "genuine unbuilt scope".
no capability loss before deletion) is structurally unsatisfiable
now — the old surface is already deleted, so there is no "before" left
to shadow against.
Solution
devtools test,sequentially, in this freshly-provisioned worktree off
origin/master.All green — see the results table below.
docs/mcp-surface-report-2026-08.md: the final 10-tool + 15-URI-resource surface, per-tool declared operations (measured live against
polylogue/mcp/declarations/registry.py/server_cutover.py), thecapability-flag role-gating matrix, measured token cost of the serialized
tool declarations under each capability combination (via a real
build_server()+list_tools()call, not an estimate from memory),every retained exception with its reason, and AC#4 restated as
misframed-not-satisfiable with the post-hoc parity evidence available
instead.
devtools/docs_surface.py's tiered doc index(archive tier, same precedent as the existing dated retros) and linked it
from
docs/mcp-reference.md.devtools render allregenerateddocs/README.md's index entry as a result — included in the diff.No MCP production code was touched. If any suite had been red, per the
dispatch instructions this PR would have stopped at classification
(pre-existing vs. revealing) rather than fixing MCP internals here — none
were.
Verification
tests/integration/test_cold_model_continuity_replay.pytests/unit/devtools/test_cold_model_continuity_replay.pytests/unit/mcp/test_tool_discovery.pytests/unit/mcp/test_bounded_query_transport.pytests/unit/mcp/test_privileged_tools.pytests/unit/mcp/test_tool_error_isolation.pytests/unit/mcp/test_context_delivery_tool.pytests/unit/mcp/test_status_scope_coordination.pydevtools verify --quick— clean (format + lint + mypy + render-all-check,including the new doc registration + regenerated
docs/README.mdindex +layering + schema policy + promotion audit).
Full
devtools verifynot run: no production code changed (docs + aone-line devtools registry entry only), and this worktree's testmon graph
would need a full bootstrap with nothing to gain from it — same
digest-drift reasoning as the concurrent #4013 PR's gate substitution.
Per-AC honesty breakdown (for the coordinator's own closing bookkeeping)
This PR's pr-scope carrier marks both
t46.8.2andt46.8.3satisfiedper the dispatch's stated criterion ("SATISFIED if suites green + report
lands"). That criterion covers the ACs this task was actually scoped to
prove. It does not mean every AC on either bead's full text is proven
by this PR — listed honestly below so the parent
t46.8's close (thecoordinator's own bookkeeping, not this PR's) has the complete picture.
t46.8.2:
notes claim it, not independently re-checked here.
(Section 5) with post-hoc parity evidence instead.
tools), confirmed in the report (Section 1).
evidenced by this pass; no suite here specifically targets removal/
mutation of the shared query transaction failing the harness.
RSS/PSS/swap/temp, zero leaks) — not evidenced by this pass; none of
the eight suites run here are a load/leak-proof harness. If this AC needs
its own proof run, it is a residual, not covered by "SATISFIED" per the
dispatch's own naming of what this task covers.
t46.8.3:
substantially evidenced: the report's Section 4 names three
operations (
delete_saved_view,import_annotation_batch,deliver_context) not covered by the specific executor-routing prooftest class, and
maintenance()'s entire operation surface has zeroOperationExecutorrouting (real, acknowledged, explicitly deferred tokwsb.2/t46.9) — not a silent gap, but also not a clean 100%.authority) — not re-verified this pass.
receipts, status/recovery, role isolation) — satisfied by
test_privileged_tools.py's 60 passing tests, which cover this grounddirectly (confirm-gates, actuator routing, role gating).
report that the five old registrar modules are fully deleted.
report.
Bead disposition matrix
docs/mcp-surface-report-2026-08.mddocs/mcp-surface-report-2026-08.mdmaintenance()executor-routing debt and 3 uncoveredwrite()operations are real, named, and explicitly deferred tokwsb.2/t46.9per the bead's own prior notes — not new information, not blocking this bead's own AC (which asks for the mapping + report, not fort46.9to have landed).The parent
polylogue-t46.8's close is the coordinator's own bookkeeping,per the dispatch — not attempted here.