Repository navigation
feat(proof): commit MCP tool schema and BlobStore witnesses - #459
Conversation
Ref #448. First two of the five witnesses identified by the proof-coverage-audit (swarm 2026-04-26). The remaining three (TUI mutation, site publication, browser-extension messaging) are deferred as separate work. mcp.tool-schemas - Snapshot of every registered MCP tool: {name, parameters JSON Schema}. - Drift here silently invalidates clients consuming the wire schema. - Regression test diffs build_server() output against the witness. storage.blob-store-layout - Synthetic 3-blob fixture with content-bytes, expected SHA-256, and expected on-disk relative path. - Catches changes to addressing scheme or directory split. - Also asserts content-only addressing (same bytes → same path). Both witnesses validate per WitnessMetadata.validation_errors() == (). Verification: devtools verify (full) — all checks pass; 6 new tests pass.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 16 minutes and 42 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1baf3f8282
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
## Summary Ref #448. Lands the first two committed witnesses identified by the proof-coverage-audit (swarm 2026-04-26). Remaining three (TUI mutation, site publication, browser-extension messaging) are deferred as separate work — they each need a substantial harness, which the issue notes. ## Problem `tests/witnesses/` had exactly one committed witness. The `WitnessMetadata` lifecycle infrastructure was built out but underused. Two surfaces with high regression value were missing snapshots: - The MCP tool wire schema — drift here silently invalidates client integrations that consume the published JSON Schema. - The BlobStore on-disk layout — any change to the addressing scheme or directory split silently invalidates every blob ever written. ## Solution - ``mcp.tool-schemas`` — snapshot of ``build_server()._tool_manager._tools`` reduced to ``{name, parameters}`` per tool. Regression test diffs the current registration against the committed JSON. - ``storage.blob-store-layout`` — three synthetic fixtures with their base64-encoded content bytes, expected SHA-256, expected size, and expected on-disk relative path. Regression test re-writes them into a fresh ``BlobStore`` and asserts every field. Both witnesses validate per ``WitnessMetadata.validation_errors() == ()`` and link the test file in their provenance. ## Verification - ``devtools verify`` (full, with pytest): all checks pass. - 6 new tests across both surfaces.
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
Summary
Ref #448. Lands the first two committed witnesses identified by the
proof-coverage-audit (swarm 2026-04-26). Remaining three (TUI mutation,
site publication, browser-extension messaging) are deferred as separate
work — they each need a substantial harness, which the issue notes.
Problem
tests/witnesses/had exactly one committed witness. TheWitnessMetadatalifecycle infrastructure was built out but underused.Two surfaces with high regression value were missing snapshots:
integrations that consume the published JSON Schema.
or directory split silently invalidates every blob ever written.
Solution
mcp.tool-schemas— snapshot ofbuild_server()._tool_manager._toolsreduced to
{name, parameters}per tool. Regression test diffs thecurrent registration against the committed JSON.
storage.blob-store-layout— three synthetic fixtures with theirbase64-encoded content bytes, expected SHA-256, expected size, and
expected on-disk relative path. Regression test re-writes them into a
fresh
BlobStoreand asserts every field.Both witnesses validate per
WitnessMetadata.validation_errors() == ()and link the test file in their provenance.
Verification
devtools verify(full, with pytest): all checks pass.