Skip to content

spec(lsp): define the standard editor integration contract and support matrix #1622

Description

@EffortlessSteven

Parent

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:

  1. a standard LSP client that understands diagnostics, hover, related information, code actions, document sync, progress, cancellation, and server commands;
  2. the shipped VS Code extension, which adds server provisioning, status UI, clipboard/open-file commands, artifact inspection, and setup recovery;
  3. a headless agent client, which will negotiate the typed riprAgent protocol 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:

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 riprAgent support.
  • 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

Activity

  1. added
    vscode
    on Jul 14, 2026
  2. EffortlessSteven commented on Jul 14, 2026

    @EffortlessSteven
    MemberAuthor

    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.

  3. EffortlessSteven commented on Jul 14, 2026

    @EffortlessSteven
    MemberAuthor

    Method/capability conformance map for the spec PR

    Use this as the initial audited inventory; verify each row against the implementation before ratification.

    LSP/client surface Current repository shape Target authority / issue
    initialize root Server can select the first workspace folder; VS Code refuses ambiguous multi-root One explicit root, typed ambiguity/containment: #1597
    config/init options VS Code always sends contributed baseRef/checkMode defaults; repo config may be shadowed Effective-value source + input identity: #1598 (see comment there)
    position encoding Implicit/default; ranges are assembled in several modules Explicit negotiation + shared conversion: #1626
    server/extension capability versions --version probe and serverInfo exist; compatibility is not one contract Agent protocol #1599; standard/editor support #1622/#1628; managed lifecycle #1624
    initialized / dynamic registration No governed dynamic-registration contract Spec should state static vs dynamic registration per feature
    workspace trust Trust is displayed in status context but does not gate startup/download #1623
    server resolution/process Configured/bundled/cache/download/PATH; no atomic compatibility/crash state machine #1624
    didOpen Starts an interactive saved-workspace refresh Preserve, but bind to explicit sync/version contract: #1625
    didChange Full document sync; stores state, no analysis Incremental dirty/version state, no analysis: #1625
    didSave Advances workspace revision and refreshes Version/read-confirmed latest saved state: #1625/#1575
    didClose Advances revision and refreshes Pin close-with-unsaved/on-disk behavior: #1625
    didChangeConfiguration VS Code restarts on selected settings; no generic server hot-reload contract #1598
    didChangeWatchedFiles VS Code watches Cargo manifests; server handler/relevance contract incomplete #1598
    workspace-folder changes Client/server behavior differs #1597/#1598
    push diagnostics Implemented; unchanged payload suppression landed in #1565 Add document-version/dirty semantics: #1625
    pull diagnostics Not yet landed #1566 over #1602/#1582 identities
    diagnostic selection/profile Raw/current policies are being converged #1568/#1569/#1570/#1582
    diagnostic witness/fix site Richer data exists elsewhere; passive parity incomplete #1567/#1601
    hover Evidence-rich when a diagnostic covers the position Snapshot-bound arbitrary-position explanation: #1615
    relatedInformation Finding diagnostics can cite related tests Exact fix-site parity + Unicode-safe positions: #1567/#1626
    CodeLens Advisory cached display Retain only if portable/current; include in #1622 matrix
    code actions Implemented, but many command IDs are VS Code client commands emitted unconditionally Capability negotiation/portable fallback: #1628
    codeAction/resolve Resolve disabled #1628 decides whether bounded lazy resolution is useful
    WorkspaceEdit Explicitly forbidden today Optional guarded test-only design: #1571, dependent on #1626
    workspace/executeCommand Refresh and ripr.collect* compatibility commands Typed handlers #1599/#1602/#1603; adapter parity #1605
    progress Custom analysis status/logging exists Standard work-done progress + typed status: #1602
    cancellation/supersession Latest-state scheduler/cooperative cancellation landed through #1575 Request-level typed behavior in #1599/#1602/#1605
    stale/last-known-good Typed analysis health is landing #1576/#1602
    top limitation No snapshot currently becomes no_limitation; client says clean Immediate #1629
    output budget/overflow Planned #1582
    single client authority VS Code combines LSP, logs, direct artifact parsing, and CLI fallback #1627
    verify/receipt command representation Primarily shell strings Typed CommandSpec: #1617
    shutdown/exit Server shutdown exists; real client/process cleanup not a product receipt #1624/#1605/#1630
    standard-client proof Repository framed harness only #1605 fixture baseline; #1630 actual client
    real usefulness Synthetic/protocol proof exists; governed route attempts remain the boundary #1560/#1579

    Ratification rule

    For each row, the spec should mark one of:

    required_stable
    required_preview
    optional_negotiated
    compatibility_only
    deferred_with_named_limitation
    not_supported
    

    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.

  4. EffortlessSteven commented on Jul 14, 2026

    @EffortlessSteven
    MemberAuthor

    Fix-feedback implementation map added

    The standard-editor contract now has three additional scoped implementation issues:

    Issue Owns
    #1661 Correct LSP code-action kinds, context.only/trigger handling, typed disabled reasons, capability filtering, and lazy codeAction/resolve.
    #1662 One versioned diagnostic-code catalog, codeDescription documentation links, compatibility rules, recovery vocabulary, and static-evidence non-claims.
    #1663 One producer-backed fix-instruction state shared by diagnostic data, hover, actions, packets, CLI, and riprAgent; no null/title/prose inference.

    Dependency-ordered path

    Immediate honesty/noise
      #1629 false-all-clear fix
      #1568 actionable/full profile
    
    Standard action portability
      #1628 enhanced-editor capability negotiation
        -> #1661 action semantics + resolve
    
    Producer exactness and one action state
      #1658 assertion/observable summary
      #1660 targeted preflight + evidence delta
        -> #1663 shared fix-instruction state
           -> #1571 optional guarded test-only edit
    
    Diagnostic discoverability
      #1662 code catalog + codeDescription + recovery metadata
    
    Transport and bounded machine use
      #1566 pull diagnostics
      #1582 passive budgets/overflow
      #1599 -> #1602 -> #1603 typed agent queries
    
    Proof
      #1630 off-the-shelf standard client
      #1579 governed install-to-repair dogfood
    

    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.

  5. EffortlessSteven commented on Jul 15, 2026

    @EffortlessSteven
    MemberAuthor

    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:

    Recommendations

    1. Priority: medium (unless the issue body specifies higher).
    2. Depends on the LSP usable-alpha epic (epic: editor/LSP usable alpha — trustworthy saved-workspace evidence to bounded repair #1574) for protocol-level issues; standalone for UX/security issues.
    3. Adversarial review: Any LSP/editor change must preserve fail-closed discipline — no new authority surface, no silent state changes. Security issues (security(vscode): enforce Workspace Trust before server download, process launch, or repair actions #1623) must enforce Workspace Trust before any download/launch.
    4. Testing: Unit tests for new behavior + goldens/check-output-contracts verification.
  6. EffortlessSteven commented on Jul 15, 2026

    @EffortlessSteven
    MemberAuthor

    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:

    standard LSP baseline
      → #1625 saved/dirty semantics
      → #1626 position/URI authority
      → #1628 enhanced editor negotiation
      → #1661 code-action semantics
    
    enhanced VS Code
      → same snapshot/canonical authority, optional negotiated UI commands
    
    headless agent
      → #1599/#1602/#1603/#1698
    

    #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.

  7. EffortlessSteven commented on Jul 17, 2026

    @EffortlessSteven
    MemberAuthor

    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

    • \docs/EDITOR_EXTENSION.md\ — Current VS Code specific docs.
    • \crates/ripr/src/lsp/backend.rs\ — The LSP server implementation where capabilities are negotiated.
    • \docs/CAPABILITY_MATRIX.md\ — Target location for the support matrix.

    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.

  8. EffortlessSteven commented on Jul 18, 2026

    @EffortlessSteven
    MemberAuthor

    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

    • \�ditors/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.

  9. EffortlessSteven commented on Jul 18, 2026

    @EffortlessSteven
    MemberAuthor

    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.

  10. EffortlessSteven commented on Jul 18, 2026

    @EffortlessSteven
    MemberAuthor

    Status review (2026-07-17)

    Codebase review against current main (be4a33d1). Read-only; no code changed.

    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 only docs/EDITOR_AGENT_INTEGRATION.md (a Campaign-10 agent-receipt loop narrative, not the standard-client/matrix contract) and docs/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.
    • No successor to docs/specs/RIPR-SPEC-0069-lsp-agent-feedback-use-case.md exists; 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.md or a successor to SPEC-0069) defining the three layers (Layer 1 standard LSP baseline; Layer 2 enhanced VS Code; Layer 3 headless riprAgent) 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. Verify docs/ 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.

  11. added
    status/needs-work
    on Jul 18, 2026
  12. EffortlessSteven commented on Jul 19, 2026

    @EffortlessSteven
    MemberAuthor

    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

    • map every advertised capability to one implementation owner, test, and graceful fallback;
    • prove standard clients receive no unadvertised VS Code-only commands;
    • keep VS Code and riprAgent capability blocks explicit and independent;
    • complete saved-workspace initialize → save → diagnostic/limitation → hover/related test → refresh → shutdown e2e;
    • prove root/config reload, trust, position encoding, push/pull, budget, and stale/failure behavior under exact client versions;
    • distinguish protocol-fixture proof from real install-to-repair proof;
    • update the support matrix only from measured client receipts.

    #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.

  13. EffortlessSteven commented on Jul 19, 2026

    @EffortlessSteven
    MemberAuthor

    Spec hierarchy follow-up

    #1925 now owns reconciliation of RIPR-SPEC-0069, SPEC-0129, and the riprAgent wire spec. Keep this issue as the client-layer acceptance authority.

    The support matrix must remain evidence-based:

  14. EffortlessSteven commented on Jul 19, 2026

    @EffortlessSteven
    MemberAuthor

    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:

    #1987  ClientFeatureProfile from InitializeParams
    #1989  code-action literal/data/disabled/resolve/edit capability negotiation
    #1990  relatedInformation/data/codeDescription/tag/version diagnostic negotiation
    #1991  hover Markdown/plaintext fallback
    #1992  portable window/showDocument navigation
    #1993  catalog-backed codeDescription docs
    #1996  action-kind documentation and tag provenance policy
    #1994  capability permutation matrix and negotiated-surface receipt
    #1995  generated surface-manifest drift gate
    

    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.

  15. EffortlessSteven commented on Jul 19, 2026

    @EffortlessSteven
    MemberAuthor

    Standard-client contract completion children

    The remaining standard-LSP gaps are now explicitly sliced:

    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.

  16. EffortlessSteven commented on Jul 23, 2026

    @EffortlessSteven
    MemberAuthor

    Acceptance inventory complete (scout verified against main @ 3c2c2dbe). Verdict per criterion:

    Three-slice plan (lane in motion):

    1. PR docs(spec): name exercised harnesses and close mapping gaps in RIPR-SPEC-0129 (#1622) #2312 (open) — spec amendment: exercised-harnesses table (in-process 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.
    2. Building — framed saved-workspace end-to-end session test (initialize → didOpen → didChange → didSave → pull diagnostic/limitation → hover → refresh → shutdown/exit) closing criteria 1 (fixture-checked) and 6.
    3. Ratification — flip Status: proposed → accepted after 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.
  17. EffortlessSteven commented on Jul 23, 2026

    @EffortlessSteven
    MemberAuthor

    Closing reconciliation — RIPR-SPEC-0129 is accepted as of the ratification merge (PR #2314). Delivered across the three slices:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-workvscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions