Repository navigation
Description
Parent
- epic: editor/LSP usable alpha — trustworthy saved-workspace evidence to bounded repair #1574 — editor/LSP usable alpha
- epic(lsp): make RIPR an excellent standards-compliant supplemental language server #1583 / spec(integration): ratify the standards boundary between LSP, MCP, shared services, and private compatibility #1599 — versioned headless-agent protocol (separate enhanced machine surface)
Problem
RIPR has substantial LSP mechanism, but “the LSP works” is not yet a closed product claim. The repository currently mixes three materially different client shapes:
- a standard LSP client that understands diagnostics, hover, related information, code actions, document sync, progress, cancellation, and server commands;
- the shipped VS Code extension, which adds server provisioning, status UI, clipboard/open-file commands, artifact inspection, and setup recovery;
- a headless agent client, which will negotiate the typed
riprAgentprotocol from spec(integration): ratify the standards boundary between LSP, MCP, shared services, and private compatibility #1599.
Those shapes must consume one analysis truth, but they do not have identical capabilities. Without a governed integration contract, VS Code-only commands can leak into generic clients, agent protocol work can be mistaken for standard LSP support, and release claims can outpace the actually exercised client matrix.
Required outcome
Ratify one standard-editor integration spec, linked from RIPR-SPEC-0069 or its successor, that defines the minimum useful contract and the optional enhanced layers.
Layer 1 — standard LSP baseline
A conforming ordinary LSP client must be able to:
initialize one explicit workspace root
→ receive honest saved-workspace status
→ save a supported file
→ receive current diagnostics or a disclosed limitation
→ inspect hover and related test locations
→ request refresh
→ observe stale/failed/limited states without a fake empty result
→ shut down cleanly
The baseline contract must define:
- initialization/root/config inputs and precedence;
- text synchronization and saved-workspace authority;
- position encoding and document-version semantics;
- push and pull diagnostic support and negotiation;
- hover, relatedInformation, CodeLens, and portable code-action behavior;
- progress, cancellation, supersession, and failure recovery;
- standard versus custom commands;
- client capability negotiation and graceful degradation;
- bounded output and overflow disclosure;
- privacy, workspace trust, and process/network boundaries;
- required exit/shutdown behavior.
A standard client must never be offered a command that only the VS Code extension knows how to execute unless the client explicitly advertised that command capability.
Layer 2 — enhanced human editor
The VS Code extension may additionally provide:
- managed server provisioning;
- status bar and setup diagnosis;
- open-related-test and clipboard actions;
- explicit position explanation;
- optional guarded test-only edits if design(lsp): evaluate fail-closed test-only WorkspaceEdit quick fixes for exact assertions #1571 is accepted;
- receipt/report navigation.
Every enhancement must be a projection over the same immutable snapshot and canonical item identities. The extension must not become a second analyzer, actionability engine, or artifact authority.
Layer 3 — headless agent
The riprAgent protocol owns typed snapshot/query/packet retrieval for agents. It is not required for standard diagnostics/hover usefulness, and it must not be inferred from client name. The standard LSP and agent layers must agree on canonical meaning and freshness while remaining independently negotiable.
Support matrix
Define a checked matrix with columns equivalent to:
client / harness
transport and protocol versions
standard diagnostic mode: push | pull
custom riprAgent support
client-side enhanced command support
source-edit capability
server provisioning path
workspace-trust behavior
root/config reload behavior
real-repository proof status
support tier and known limits
At minimum distinguish:
- shipped VS Code extension;
- repository generic framed client;
- one unenhanced standard-LSP profile;
- future explicitly exercised third-party editors;
- headless agent profile.
“Protocol fixture passes” and “real install-to-repair proven” are separate states.
Compatibility rules
- Unknown client capability means do not emit the optional client-only action.
- Unknown protocol major version fails visibly; additive optional fields follow the version contract.
- An older server/extension pair may run only when the negotiated protocol and required standard capabilities overlap.
- No silent CLI fallback may produce evidence under a different snapshot/input identity.
- Generic clients remain useful without clipboard APIs or
riprAgentsupport. - A client that supports only diagnostics/hover must not see broken quick fixes as if they were usable.
Acceptance
- The governed spec and support matrix are registered and fixture-checked.
- Every advertised LSP capability maps to an implementation owner, test, and fallback behavior.
- Standard-client initialization fixtures prove the server emits no unadvertised VS Code-only commands.
- VS Code and headless-agent capability blocks are explicit and independent.
- The matrix names exact clients/harnesses and versions actually tested; unsupported clients remain unclaimed.
- A saved-workspace end-to-end fixture covers initialize → dirty → save → current diagnostic/limitation → hover/related test → refresh → shutdown.
- All empty/no-action/limited states include scope and non-claims; none render as repository/test-suite clean.
- The spec links the child implementation issues for trust, provisioning, synchronization, positions, portable actions, single authority, and real-client proof.
Non-goals
- No requirement to support every editor.
- No semantic tokens, completion, formatting, or general Rust language-service features.
- No embedded model/provider.
- No automatic production edits or mutation execution.
- No support promotion from synthetic fixtures alone.
Relationships
- epic: editor/LSP usable alpha — trustworthy saved-workspace evidence to bounded repair #1574 remains the usable-alpha execution epic.
- spec(integration): ratify the standards boundary between LSP, MCP, shared services, and private compatibility #1599 owns the enhanced agent protocol schemas.
- dogfood(lsp): prove the standard RIPR language server through a generic framed client #1605 owns the generic headless-agent harness.
- dogfood(integration): prove real repair usefulness across CLI, standard LSP editors, and MCP agents #1579 owns governed real install-to-repair evidence.
- This issue owns the standard editor/LSP product contract and support-claim boundary, which those issues currently assume but do not fully define.
Activity
EffortlessSteven commentedon Jul 14, 2026
Implementation children opened from the integration audit
Existing dependencies consumed rather than duplicated:
The child set intentionally separates standard LSP portability, enhanced VS Code behavior, and headless agent queries so none of the three silently stands in for the others.
EffortlessSteven commentedon Jul 14, 2026
Method/capability conformance map for the spec PR
Use this as the initial audited inventory; verify each row against the implementation before ratification.
initializerootbaseRef/checkModedefaults; repo config may be shadowed--versionprobe and serverInfo exist; compatibility is not one contractinitialized/ dynamic registrationdidOpendidChangedidSavedidClosedidChangeConfigurationdidChangeWatchedFilesrelatedInformationcodeAction/resolveworkspace/executeCommandripr.collect*compatibility commandsno_limitation; client says cleanRatification rule
For each row, the spec should mark one of:
No capability should be advertised merely because a handler exists. Advertisement requires an owner, behavioral test, failure behavior, and at least fixture-level proof; support-tier language additionally requires the client/real-repo evidence named in #1579/#1630.
EffortlessSteven commentedon Jul 14, 2026
Fix-feedback implementation map added
The standard-editor contract now has three additional scoped implementation issues:
context.only/trigger handling, typed disabled reasons, capability filtering, and lazycodeAction/resolve.codeDescriptiondocumentation links, compatibility rules, recovery vocabulary, and static-evidence non-claims.riprAgent; no null/title/prose inference.Dependency-ordered path
Authority boundaries
Codex should plan/review these as bounded PR slices and may run documentation/catalog work in parallel with producer exactness where file ownership is disjoint. LSP backend/action changes should remain serialized or explicitly partitioned.
EffortlessSteven commentedon Jul 15, 2026
Issue update — 2026-07-14
Title: spec(lsp): define the standard editor integration contract and support matrix
Status
This issue is part of the LSP/editor/protocol improvement wave. Based on codebase research:
crates/ripr/src/lsp/) and VS Code extension (editors/vscode/) are the affected surfaces.Recommendations
EffortlessSteven commentedon Jul 15, 2026
Execution placement — 2026-07-15
#1622 is the Wave 1 contract authority under #1693. Ratify it before or alongside the first implementation slices so the three client layers stay distinct:
#1630 and #1702 are the real-client proof consumers. The support matrix must distinguish fixture/protocol proof, installed-client proof, and governed real repair proof.
EffortlessSteven commentedon Jul 17, 2026
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
The repository contains \docs/EDITOR_EXTENSION.md\ outlining VS Code specific usage and \docs/CAPABILITY_MATRIX.md. The LSP implementation in \crates/ripr/src/lsp/\ handles standard requests but does not strictly separate VS Code specific capabilities from a standard LSP baseline or a headless agent.
Relevant Files
Plan Review
The plan correctly identifies the need to formalize the difference between Layer 1 (standard LSP), Layer 2 (VS Code extensions), and Layer 3 (headless agent protocol). Without this, generic LSP clients might receive custom VS Code commands they can't handle. Creating a standard editor integration spec is a necessary governance step for #1574 usable alpha.
Blockers
None.
Readiness Assessment
ready-to-implement
Next Action
Draft the proposed spec document and update the capability matrix to explicitly define Layers 1, 2, and 3.
EffortlessSteven commentedon Jul 18, 2026
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
The codebase has a fully-featured VS Code extension (\�ditors/vscode/src/extension.ts, \client.ts, \serverResolver.ts, \downloader.ts) that handles managed provisioning and advanced command registration. However, the generic LSP boundaries (what is standard vs VS Code-specific) are not formalized in a single integration contract matrix.
Relevant Files
Plan Review
The plan correctly identifies the risk of VS Code-specific capabilities leaking into the headless agent protocol or standard LSP clients. Segmenting capabilities into Layer 1 (Standard LSP), Layer 2 (Enhanced Human Editor), and Layer 3 (Headless Agent) provides a clear governance structure.
Blockers
None.
Readiness Assessment
needs-spec-clarification
Next Action
Draft the standard editor integration spec document defining the matrix, capability negotiation degrades, and test harness requirements.
EffortlessSteven commentedon Jul 18, 2026
Codebase Context & Plan Review
Reviewed: 2026-07-17
Current Implementation State
The codebase has a fully-featured VS Code extension (
editors/vscode/src/extension.ts,client.ts,serverResolver.ts,downloader.ts) that handles managed provisioning and advanced command registration. However, the generic LSP boundaries (what is standard vs VS Code-specific) are not formalized in a single integration contract matrix.Relevant Files
editors/vscode/src/client.ts— Uses VS Code-specific commands and artifacts.crates/ripr/src/lsp/— Server implementation that currently serves both standard and enhanced features.docs/specs/RIPR-SPEC-0069.md(or equivalent successor) — Needs the formal support matrix.Plan Review
The plan correctly identifies the risk of VS Code-specific capabilities leaking into the headless agent protocol or standard LSP clients. Segmenting capabilities into Layer 1 (Standard LSP), Layer 2 (Enhanced Human Editor), and Layer 3 (Headless Agent) provides a clear governance structure.
Blockers
None.
Readiness Assessment
needs-spec-clarification
Next Action
Draft the standard editor integration spec document defining the matrix, capability negotiation degrades, and test harness requirements.
EffortlessSteven commentedon Jul 18, 2026
Status review (2026-07-17)
Current status:
not-started. No matrix/contract spec exists. The 2026-07-17 bot comments are inaccurate — they fabricate file paths (docs/CAPABILITY_MATRIX.md,docs/EDITOR_EXTENSION.md) that do not exist. Do not trust those citations.Evidence
find docs -iname "*integration*contract*" -o -iname "*support*matrix*" -o -iname "*editor*integration*"finds onlydocs/EDITOR_AGENT_INTEGRATION.md(a Campaign-10 agent-receipt loop narrative, not the standard-client/matrix contract) anddocs/handoffs/2026-05-07-editor-agent-integration-contract-audit.md(a handoff note).grep -rniE "support.matrix|integration.contract|client.matrix|capability.matrix" docs/→ zero matches.docs/specs/RIPR-SPEC-0069-lsp-agent-feedback-use-case.mdexists; the most recent specs are SPEC-0124/0125/0126 — none define the editor integration matrix.find docs -iname "CAPABILITY_MATRIX.md" -o -iname "EDITOR_EXTENSION.md"→ nothing. (The bot comments cite these as target locations; they're hallucinated.)Recommended next step
Draft a new spec (e.g.
docs/specs/RIPR-SPEC-0130-editor-integration-contract.mdor a successor to SPEC-0069) defining the three layers (Layer 1 standard LSP baseline; Layer 2 enhanced VS Code; Layer 3 headlessriprAgent) and the support-matrix columns (transport, diagnostic mode, custom-command support, source-edit capability, server provisioning path, trust behavior, reload, real-repo proof, tier/limits). Gate it on real-client proof from #1630/#1702. Verifydocs/inventory first — don't trust bot-cited file paths. This is the contract authority under #1574/#1693 and should ratify before/independent of #1623–#1626 implementation slices.docs(spec): add RIPR-SPEC-0129 editor integration contract (#1774) (#…
EffortlessSteven commentedon Jul 19, 2026
Parent capability update — 2026-07-19
PR #1834 landed RIPR-SPEC-0129, the three-layer editor integration contract and support-matrix authority. The specification slice is complete; the product acceptance in this parent remains open.
Remaining implementation/proof
riprAgentcapability blocks explicit and independent;#1774 is closeable as the spec slice. Keep this parent open until the matrix is backed by implementation and client evidence. See #1574, #1862, and #1863.
EffortlessSteven commentedon Jul 19, 2026
Spec hierarchy follow-up
#1925 now owns reconciliation of RIPR-SPEC-0069, SPEC-0129, and the
riprAgentwire spec. Keep this issue as the client-layer acceptance authority.The support matrix must remain evidence-based:
riprEditornegotiation;EffortlessSteven commentedon Jul 19, 2026
2026-07-19 implementation slices for the portable standard-client layer
SPEC-0129 defines the three client layers; the remaining standard-LSP negotiation/proof is now decomposed as:
These sit beside the existing lifecycle and real-client owners:
Claim boundary: #1994 is deterministic protocol coverage, not proof that every editor works. #1630/#1579 remain the real-client/support-claim authorities.
EffortlessSteven commentedon Jul 19, 2026
Standard-client contract completion children
The remaining standard-LSP gaps are now explicitly sliced:
workspace/configurationpull with generic-client fallback;These complement the existing capability/action/diagnostic/hover/navigation train (#1987–#1996), dirty-document/progress/cancellation work (#1970–#1972), and real-client proofs (#1630/#1930/#1900).
The Layer 1 closeout should require that these surfaces are either implemented and exercised or explicitly documented as unsupported. Contract-only or fixture-only work remains insufficient for a support claim.
EffortlessSteven commentedon Jul 23, 2026
Acceptance inventory complete (scout verified against
main@3c2c2dbe). Verdict per criterion:client.tsadvertisement parity; (4) riprEditor/riprAgent blocks explicit and independent — separate fail-closed parsers inclient_features.rs; (7) disclosed empty/limited states —seams_deferred,stale_snapshot, dirty-state disclosure all pinned per-surface.Status: proposed, traceabilityfixtures = []; (2) codeLens/hover/sync/encoding/folders advertised but missing from Test/Implementation Mapping; (8) Relationships links incomplete (positions lsp: negotiate position encoding and centralize Unicode-safe URI/range conversion #1626, single authority integration(vscode): make standard LSP server state the single authority and retire split-brain CLI/artifact fallbacks #1627, sync lsp: define incremental saved-workspace synchronization and dirty-document diagnostic semantics #1625 unlinked).Three-slice plan (lane in motion):
LspService, framed JSON-RPC over tower-lsp-server 0.23.0, VS Code extension 0.10.0 advertisement-parsed-not-e2e; off-the-shelf clients unclaimed, real proof pending dogfood(integration): prove real repair usefulness across CLI, standard LSP editors, and MCP agents #1579/dogfood(lsp): prove the portable standard baseline in an off-the-shelf non-VS Code client #1630), mapping gaps closed, Relationships section, traceability rows for the named pre-existing tests. No production code.Status: proposed → acceptedafter 1–2 land, keeping real-client proof (dogfood(integration): prove real repair usefulness across CLI, standard LSP editors, and MCP agents #1579/dogfood(lsp): prove the portable standard baseline in an off-the-shelf non-VS Code client #1630), riprAgent handlers (lifecycle(lsp): make standard diagnostics, result IDs, progress, cancellation, and refresh the currentness authority #1602/projection(lsp): deliver bounded RIPR evidence through standard diagnostics, hover, code actions, and commands #1603), trust (security(vscode): enforce Workspace Trust before server download, process launch, or repair actions #1623), provisioning (vscode: make managed server provisioning versioned, atomic, recoverable, and observable #1624) explicitly pending. No tier promotion from synthetic fixtures, per this issue's non-goals.docs(spec): name exercised harnesses and close mapping gaps in RIPR-S…
test(lsp): framed saved-workspace end-to-end session fixture (#1622)
test(lsp): framed saved-workspace end-to-end session fixture (#1622) (#…
docs(spec): ratify RIPR-SPEC-0129 editor integration contract (#1622) (…
EffortlessSteven commentedon Jul 23, 2026
Closing reconciliation — RIPR-SPEC-0129 is accepted as of the ratification merge (PR #2314). Delivered across the three slices:
LspService, framed JSON-RPC over tower-lsp-server 0.23.0, VS Code extension 0.10.0 advertisement-parsed; off-the-shelf clients unclaimed, real proof pending), codeLens/hover/sync mapping gaps closed, Relationships section.framed_lsp_saved_workspace_session_serves_saved_state_across_dirty_save: the full initialize → dirty → save → diagnostic/limitation → hover → refresh → shutdown journey over real wire framing (criteria 1 + 6).Acceptance criteria final state: 1 ✓ (registered + fixture-checked), 2 ✓ (every advertised capability mapped to owner/test/fallback), 3 ✓ (#1776 + client.ts parity), 4 ✓ (independent fail-closed blocks), 5 ✓ (exact harnesses/versions named; unexercised clients unclaimed), 6 ✓ (framed fixture), 7 ✓ (disclosed empty/limited states pinned per-surface), 8 ✓ (Relationships section).
Explicitly NOT claimed (stays open in their own issues): real install-to-repair proof #1579/#1630, riprAgent handlers #1602/#1603, trust #1623, provisioning #1624. All layers remain
preview/reserved— no tier promotion from synthetic fixtures.