Skip to content

slice(compatibility): make collect* commands delegate to shared services and standard LSP projections #1901

Open

Description

@EffortlessSteven

Parents and prerequisites

Problem

The current ripr.collect* commands are useful owned compatibility surfaces for VS Code, but they must not remain an independent semantic implementation. They also must not be described as the public generic-agent protocol.

Standard LSP owns editor integration. Standard MCP owns coding-agent tools/resources. The collect commands may remain private/compatibility commands where standard LSP cannot yet express one owned UI interaction, but they consume the same application services and remain weaker than the standard public paths.

Required outcome

For every compatibility command:

ripr.collectWorkspaceStatus
ripr.collectRepairPacket
ripr.collectTopLimitation
ripr.collectReceiptStatus
ripr.collectContext
ripr.collectEvidenceContext

record one disposition:

replace_with_standard_lsp
private_vscode_compatibility
delegate_to_shared_service
deprecate
retire

Delegation contract

Every retained command routes through the same provider-neutral builders used by standard LSP and MCP for:

completed lifecycle/currentness
GapSummary and FixInstructionSummary
RepairPacket / RepairAttempt
limitations and recovery
CommandSpec
ReceiptStatus

No command may parse an LSP diagnostic, read the latest artifact, invoke a hidden CLI process, or reconstruct actionability independently.

Parity contract

For the same completed result, item, profile, and budget:

  • canonical identities agree;
  • freshness/staleness meaning agrees;
  • readiness/instruction state agrees;
  • target, edit boundary, limitations, command and receipt meaning agree;
  • selected/omitted/total counts agree where applicable;
  • only documented transport/presentation fields differ.

Failure contract

Compatibility commands preserve typed failures and recovery. They do not turn no-result, stale, limited, ambiguous, or unsupported states into null, empty success, or a stronger action.

Retention/deprecation policy

Every retained command names:

client/feature owner
supported server-version window
why standard LSP is insufficient today
weaker compatibility boundary
retirement condition

Clipboard/open-file commands remain user conveniences, not evidence or agent authority.

Required proof

  • one fixture per retained command compares it with the shared standard-LSP/MCP service result;
  • no compatibility command owns a duplicate builder;
  • typed failures translate deterministically without log parsing;
  • stale/static-limited states are never stronger;
  • VS Code tests pass with experimental public custom requests disabled;
  • generic standard-LSP and MCP clients do not invoke collect commands;
  • removal experiment restoring one independent compatibility decision fails parity checks.

Acceptance

  • Every collect command has a checked disposition.
  • Retained commands delegate to shared services.
  • Standard LSP remains the public editor interface.
  • Standard MCP remains the public agent interface.
  • Typed failures do not degrade to unexplained null.
  • Private compatibility is explicit, bounded, and retirement-owned.
  • VS Code behavior remains stable or is intentionally migrated.

Proof

cargo test -p ripr lsp_command_compatibility -- --nocapture
cargo test -p ripr --lib lsp::actions -- --nocapture
cargo test -p ripr --lib fix_instruction -- --nocapture
cargo test -p ripr --lib command_spec -- --nocapture
npm --prefix editors/vscode test
cargo xtask check-output-contracts
cargo xtask check-capabilities
cargo xtask check-traceability
cargo xtask check-pr
git diff --check

Non-goals

  • no new analysis or actionability rule;
  • no new custom public request;
  • no source edit or command execution;
  • no MCP implementation in the compatibility layer;
  • no support promotion.

Claim boundary

Completion eliminates semantic duplication in owned editor compatibility surfaces. It does not create a public agent protocol or prove real-repository usefulness.

Activity

  1. added
    vscode
    status/blocked-repo
    on Jul 19, 2026
  2. coderabbitai commented on Jul 19, 2026

    @coderabbitai
    🔗 Related PRs

    #3055 - fix(cli): give explain and context their flag suggestions [merged]
    #3064 - feat(output): disclose that generated workflow commands assume bash (#2963) [merged]
    #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]
    #3086 - fix(skills): resolve repaired review threads during merge prep (#3079) [open]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 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:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. EffortlessSteven commented on Jul 19, 2026

    @EffortlessSteven
    MemberAuthor

    Compatibility inventory additions

    Include ripr.refresh as the compatibility adapter for typed ripr/refreshAnalysis; it must delegate to the same application handler and lifecycle semantics.

    Resolve ripr.collectContext explicitly because the typed request vocabulary currently has getEvidenceContext but no exact getContext equivalent. Choose one documented disposition:

    1. map it to getEvidenceContext with a compatibility projection;
    2. add a typed ripr/getContext method to the registry/spec; or
    3. classify it as enhanced-editor-only and outside headless compatibility.

    Do not leave the mapping implicit. Update #1928's request/compatibility registry and #1925's command vocabulary accordingly.

  4. EffortlessSteven commented on Aug 1, 2026

    @EffortlessSteven
    MemberAuthor

    Earnest review (2026-08-01)

    STATUS: Open — bad premise (correctly dormant). No typed handlers exist to delegate to.
    PLAN QUALITY: Good (correctly framed as post-Phase-2 in parent #1907).
    ASSESSMENT: backend.rs:3940-3962 dispatches each collect command independently. No typed ripr/workspaceStatus handler exists. Correctly ordered as last step of Phase 2 in parent.
    ACTION: Keep, add explicit "blocked on #1898/#1899 typed handlers" note.

  5. changed the title [-]slice(#1605 PR C): prove collect* compatibility adapters delegate to typed riprAgent handlers[/-] [+]slice(compatibility): make collect* commands delegate to shared services and standard LSP projections[/+] on Aug 9, 2026
  6. added
    status/needs-work
    on Aug 9, 2026
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/blocked-repostatus/needs-workvscode

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions