Skip to content

docs(mcp): t46.8 closure package — proof runs + surface report - #4020

Merged
Sinity merged 2 commits into
masterfrom
feature/mcp/t46-8-closure-package
Aug 19, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/mcp/t46-8-closure-package

Conversation

@Sinity

@Sinity Sinity commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

Closure package for the polylogue-t46.8 MCP verb-algebra epic's children:
polylogue-t46.8.2 (read migration) and polylogue-t46.8.3 (privileged
families). Both beads' 2026-08-19 pass-2 notes agreed the implementation is
done (103-tool-to-10-verb collapse shipped in PR #3095, dc6fa632a) and
what 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.2 AC#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 this
    audit".
  • t46.8.3 AC#5 (t8t coordination/context flows plus negative
    unauthorized/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.3 AC#6 (final surface/token-cost/usage report naming every
    retained exception) was flagged as "genuine unbuilt scope".
  • Both beads' AC#4 (per-tool production goldens/shadow telemetry proving
    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

  • Ran all eight named test files individually via devtools test,
    sequentially, in this freshly-provisioned worktree off origin/master.
    All green — see the results table below.
  • Wrote 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), the
    capability-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.
  • Registered the report in 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 all regenerated
    docs/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

Suite AC Result
tests/integration/test_cold_model_continuity_replay.py t46.8 AC#3 3 passed
tests/unit/devtools/test_cold_model_continuity_replay.py t46.8 AC#3 10 passed
tests/unit/mcp/test_tool_discovery.py t46.8.2 AC#2 9 passed
tests/unit/mcp/test_bounded_query_transport.py t46.8.2 AC#3 1 passed
tests/unit/mcp/test_privileged_tools.py t46.8.3 AC#5 60 passed
tests/unit/mcp/test_tool_error_isolation.py t46.8.3 AC#5 6 passed
tests/unit/mcp/test_context_delivery_tool.py t46.8.3 AC#5 6 passed
tests/unit/mcp/test_status_scope_coordination.py t46.8.3 AC#5 2 passed
Total 97 passed, 0 failed

devtools verify --quick — clean (format + lint + mypy + render-all-check,
including the new doc registration + regenerated docs/README.md index +
layering + schema policy + promotion audit).

Full devtools verify not run: no production code changed (docs + a
one-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.2 and t46.8.3 satisfied
per 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 (the
coordinator's own bookkeeping, not this PR's) has the complete picture.

t46.8.2:

  • AC#1 (equivalence coverage) — not re-verified this pass; prior sessions'
    notes claim it, not independently re-checked here.
  • AC#2 (continuity drills + Workflow replay) — satisfied, proof run above.
  • AC#3 (bounded pages, no row cap) — satisfied, proof run above.
  • AC#4 (pre-deletion goldens) — misframed, restated in the report
    (Section 5) with post-hoc parity evidence instead.
  • AC#5 (≤15-tool default profile) — satisfied, structurally (6 base
    tools), confirmed in the report (Section 1).
  • AC#6 (migration harness protects the shared transaction) — not
    evidenced by this pass
    ; no suite here specifically targets removal/
    mutation of the shared query transaction failing the harness.
  • AC#7 (concurrent incident-scale calls, cancellation/disconnect, bounded
    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:

  • AC#1 (every family maps onto a declared verb, no lost operation) —
    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 proof
    test class, and maintenance()'s entire operation surface has zero
    OperationExecutor routing (real, acknowledged, explicitly deferred to
    kwsb.2/t46.9) — not a silent gap, but also not a clean 100%.
  • AC#2 (prompt/resource content cannot acquire instruction/write
    authority) — not re-verified this pass.
  • AC#3 (candidate/judged state, idempotency, dry-run/authorization,
    receipts, status/recovery, role isolation) — satisfied by
    test_privileged_tools.py's 60 passing tests, which cover this ground
    directly (confirm-gates, actuator routing, role gating).
  • AC#4 (old tools/aliases removed) — satisfied: confirmed live in the
    report that the five old registrar modules are fully deleted.
  • AC#5 (t8t flows + negative fixtures) — satisfied, proof runs above.
  • AC#6 (final surface/token-cost/usage report) — satisfied, this PR's
    report.

Bead disposition matrix

Bead Disposition Evidence Notes
polylogue-t46.8.2 SATISFIED per dispatch criterion — close-candidate commit (this PR); 4 test files, 23 passed; docs/mcp-surface-report-2026-08.md AC#6/#7 (migration-harness protection, concurrent/leak-proof load test) not evidenced by this pass — see honesty breakdown above. Coordinator's call whether those warrant a residual bead before the parent closes.
polylogue-t46.8.3 SATISFIED per dispatch criterion — close-candidate commit (this PR); 4 test files, 74 passed; docs/mcp-surface-report-2026-08.md maintenance() executor-routing debt and 3 uncovered write() operations are real, named, and explicitly deferred to kwsb.2/t46.9 per the bead's own prior notes — not new information, not blocking this bead's own AC (which asks for the mapping + report, not for t46.9 to have landed).

The parent polylogue-t46.8's close is the coordinator's own bookkeeping,
per the dispatch — not attempted here.

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
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 19, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3a953a44-5083-470f-8da0-58a5bc43d999


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 7b67175 into master Aug 19, 2026
2 of 3 checks passed
@Sinity
Sinity deleted the feature/mcp/t46-8-closure-package branch August 19, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant