Repository navigation
Description
Parents and current authority
- spec(integration): ratify the standards boundary between LSP, MCP, shared services, and private compatibility #1599 / slice(integration): fence experimental riprAgent schemas as private compatibility and remove public agent claims #1896 — standards boundary and experimental-schema disposition
- slice(contracts): bind live standard LSP and MCP surfaces to producer-backed schemas and capability receipts #3009 — live standard LSP/MCP producer contracts
- epic(mcp): expose RIPR evidence and repair workflows through a standard MCP server #3087–test(mcp): prove standard lifecycle, tool/resource contracts, bounded failures, and cross-surface parity #3091 — standard MCP tools/resources and conformance
- PR feat(lsp): define versioned agent protocol contract #1861 — landed experimental schema foundation
Problem
The review finding behind this issue was valid: individually closed vocabularies can still permit invalid cross-field combinations. The original examples were custom riprAgent request/success envelopes. That custom public protocol is no longer the product architecture.
The durable contract rule applies to:
standard MCP tool inputs/results and resources
RIPR-owned data carried inside standard LSP messages/commands
any retained private compatibility schema
Invalid combinations must fail at the live producer/consumer boundary rather than being accepted because each field is independently valid.
Required outcome
After #1599/#1896 disposition the experimental schemas, enforce cross-field relationships only on contracts that survive.
Standard MCP examples
Pin the applicable relationships such as:
tool name ↔ input schema
result kind ↔ tool name
resource URI/template ↔ resource content kind
snapshot/item/attempt identity required by the selected operation
readiness state ↔ presence/absence of repair fields
execution_mode ↔ required/forbidden CommandSpec fields
receipt state ↔ before/after/verify bindings
pagination token ↔ snapshot/profile/budget identity
Use JSON Schema if/then, oneOf, or domain validation where schema alone cannot express the invariant.
Standard LSP examples
Contract only RIPR-owned payloads inside standard messages:
Diagnostic.code ↔ data kind/recovery
CodeAction kind ↔ data/command role
command identifier ↔ argument object
resultId ↔ selected diagnostic payload identity
Do not respecify the complete LSP protocol.
Private compatibility
If any custom request/response schema survives under #3080:
- label it
private_compatibility; - retain version/request-kind/mode/result-kind constraints;
- ensure it cannot appear in public standard support;
- remove it when the last private consumer retires.
Analyzer fixture separation
Re-check the structured-versus-prose discriminator consistency in the original lsp_agent_protocol fixture. If that fixture becomes historical/private, move the analyzer assertion to the canonical producer fixture rather than preserving it solely to support a retired transport.
Required proof
- wrong MCP result kind for a tool fails;
- tool input missing operation-specific identity fails;
- invalid CommandSpec field combination fails;
- wrong resource content kind/URI pairing fails;
- standard LSP command/action mismatch fails;
- private custom request mode/kind mismatch fails only if that contract survives;
- retired schemas are absent from live validation and discovery;
- schema pointer resolving no producer bytes fails;
- mutation removing one relationship makes the contract suite fail.
Acceptance
- Every live standard MCP contract enforces its cross-field relationships.
- RIPR-owned standard LSP payloads enforce their bounded relationships.
- Retained private compatibility remains constrained and non-public.
- Retired custom schemas do not remain artificial implementation blockers.
- Analyzer discriminator consistency is owned by producer evidence, not retired transport prose.
- slice(contracts): bind live standard LSP and MCP surfaces to producer-backed schemas and capability receipts #3009’s live contract registry names every relationship owner.
Proof
cargo test -p ripr --test mcp_conformance -- --nocapture
cargo test -p ripr --test lsp_standard_client -- --nocapture
cargo test -p xtask verification_contracts -- --nocapture
cargo xtask check-verification-contracts --check
cargo xtask check-output-contracts
cargo xtask check-capabilities
cargo xtask check-fixture-contracts
cargo xtask check-traceability
cargo xtask check-pr
git diff --checkNon-goals
- no new custom public request protocol;
- no redefinition of complete LSP/MCP standards;
- no new handler merely to satisfy a design-only schema;
- no source edit or command execution;
- no support promotion.
Claim boundary
Completion makes surviving standard and private integration contracts reject invalid field combinations. It does not prove transport behavior or real repair usefulness.
Activity
coderabbitai commentedon Jul 20, 2026
🔗 Related PRs
#3069 - test(release): negative corpus harness with artifact-family cases (
#2824) [merged]#3071 - test(release): verify and receipt negative cases complete the corpus (
#2824) [merged]#3078 - release(denominator): adjudicate P..C to zero decisions for the 0.11.0 hard cut (
#2825) [merged]#3086 - fix(skills): resolve repaired review threads during merge prep (
#3079) [open]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Aug 1, 2026
Earnest review (2026-08-01)
Open: there are zero if/then cross-field constraints in the riprAgent schemas, even though the pattern is already established elsewhere (repair-assurance, review-comments). This is a small, well-bounded PR with an existing in-repo precedent to copy. Recommend lifting the constraint helper from an existing schema and applying it here as a single focused change.
[-]spec(lsp): enforce cross-field discriminator relationships in riprAgent schemas[/-][+]spec(contracts): enforce cross-field relationships in standard MCP and retained private compatibility schemas[/+]EffortlessSteven commentedon Nov 11, 2026
Reconciled against main
cb95c5b0: partial. The 2026-08-01 review ("zero if/then cross-field constraints in the riprAgent schemas") no longer matches source.Landed (retained riprAgent contract only)
schemas/ripr/ripr-agent-success.schema.jsonnow has 14if/thenclauses underallOf. The first one read in this pass:verify_route_readinessintyped_direct | typed_shell_required | manualrequires an objectverify_command_spec(the "readiness state ↔ repair fields" relationship named in the body). I could not name the landing PR and SHA: the path-scoped history query did not finish in this checkout, so treat this as a source anchor without a merge receipt.experimental_not_publicinpolicy/ripr-agent-disposition.toml(schema:ripr-agent-success; fix(lsp): disposition experimental riprAgent as private compatibility (#1896) #12403,05678623), which bears on the "retained private compatibility remains constrained and non-public" item.-request,-error,-capability) have noif/oneOf/allOf.Residual
schemas/ripr/, and no"if"incrates/ripr/src/mcp/*.rs. The proof targetmcp_conformancenamed in the body does not exist undercrates/ripr/tests/(existing MCP targets:mcp_stdio,mcp_sdk,mcp_cli_repair_parity,mcp_interrupts,mcp_workspace_config,agentic_bench_mcp).lsp_standard_clienttest target does not exist.Label set to
status/partial(dropping the contradictorystatus/needs-work).Generated by Claude Code