Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,5 @@ jobs:
- run: npm ci
- run: npm run compile
- run: npm run package
- name: Build local ripr server for e2e
working-directory: .
run: cargo build -p ripr
- run: sudo apt-get update && sudo apt-get install -y xvfb
- run: xvfb-run -a npm run test:e2e
env:
RIPR_TEST_SERVER_PATH: ${{ github.workspace }}/target/debug/ripr
6 changes: 6 additions & 0 deletions .ripr/traceability.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7491,6 +7491,9 @@ tests = [
"crates/ripr/src/lsp/tests.rs::hover_for_position_shows_snapshot_age_and_refresh_duration",
"crates/ripr/src/lsp/tests.rs::hover_for_position_adds_snapshot_status_to_seam_hover",
"crates/ripr/src/lsp/tests.rs::framed_lsp_saved_workspace_session_serves_saved_state_across_dirty_save",
"editors/vscode/test/suite/lsp_compatibility.test.ts",
"editors/vscode/test/suite/server_resolver_compatibility.test.ts",
"editors/vscode/test/suite/workspace_trust_runtime.test.ts",
]
fixtures = []
code = [
Expand All @@ -7502,6 +7505,9 @@ code = [
"editors/vscode/package.json",
"crates/ripr/src/lsp/client_features.rs",
"crates/ripr/src/lsp/backend.rs",
"editors/vscode/src/lspCompatibility.ts",
"editors/vscode/src/serverResolver.ts",
"xtask/src/main.rs",
]
outputs = [
"docs/specs/RIPR-SPEC-0129-editor-integration-contract.md",
Expand Down
17 changes: 17 additions & 0 deletions docs/SERVER_PROVISIONING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,23 @@ The VS Code/Open VSX extension resolves the server in this order:
`ripr.server.path` is an override for pinned or enterprise-managed binaries. The
PATH fallback remains useful for local development and offline installs.

Before activation commits to any candidate, the extension first checks
`ripr --version`, then runs a bounded standard-LSP compatibility session over
`ripr lsp --stdio`: framed `initialize`, `initialized`, `shutdown`, and `exit`.
The initialize result must identify a versioned `ripr` server, select UTF-16,
and advertise the synchronization, hover, and code-action surface exercised by
the extension. Pull diagnostics, code-action resolve, execute commands, workspace
folders, and work-done progress are retained as typed optional evidence; their
absence does not inflate or reject the standard baseline. A failed probe never
becomes the active client, and resolver fallback continues only along the
existing order above. Workspace Trust remains outside and above resolution, so
an untrusted workspace spawns neither this probe nor the active server.

This compatibility evidence is activation state, separate from the completed
install receipt and its byte-integrity evidence. It does not attest producer
provenance or use a private/experimental capability as the standard-LSP
baseline.

## Downloaded Server Cache

Downloaded servers are stored under the VS Code global storage directory:
Expand Down
2 changes: 1 addition & 1 deletion docs/specs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ observable behavior.
| [RIPR-SPEC-0126](RIPR-SPEC-0126-lsp-diagnostic-delivery-budget.md) | accepted | Pure deterministic finite LSP delivery budget over producer-owned canonical actionable items; explicit selected/omitted identities, byte limits, and overflow reasons |
| [RIPR-SPEC-0127](RIPR-SPEC-0127-lsp-diagnostic-code-catalog.md) | accepted | Governed catalog of every emitted RIPR LSP diagnostic code (finding, seam, gap); single-source constructors, fail-closed gap emission, and resolution validation; byte-identical wire output for known kinds (#1662 slice A) |
| [RIPR-SPEC-0128](RIPR-SPEC-0128-retired-active-goal-authority-audit.md) | deprecated | Reserved historical identifier for the removed active-goal-authority-audit framework (#1701) |
| [RIPR-SPEC-0129](RIPR-SPEC-0129-editor-integration-contract.md) | accepted | Three-layer editor integration contract (standard LSP, enhanced VS Code, headless riprAgent) and support matrix |
| [RIPR-SPEC-0129](RIPR-SPEC-0129-editor-integration-contract.md) | accepted | Three-layer editor integration contract, support matrix, and bounded VS Code pre-activation compatibility admission |
| [RIPR-SPEC-0130](RIPR-SPEC-0130-ripr-authority-map.md) | proposed | RIPR source-of-truth authority map: canonical paths for every artifact category, plus a legacy-dialect conformance fixture |
| [RIPR-SPEC-0131](RIPR-SPEC-0131-ripr-agent-protocol-contract.md) | proposed | Versioned, capability-only riprAgent protocol, DTO envelopes, closed vocabularies, schemas, and recovery rules |
| [RIPR-SPEC-0132](RIPR-SPEC-0132-spec-v2-runtime-promotion.md) | proposed | First RIPR-SPEC v2 requirement and spec/governance runtime-promotion boundary |
Expand Down
29 changes: 29 additions & 0 deletions docs/specs/RIPR-SPEC-0129-editor-integration-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,24 @@ Consumes everything in Layer 1, plus:
- Managed server provisioning (#1624)
- Workspace Trust enforcement (#1623)

Before activation, the trusted VS Code extension admits a resolved server only
after a bounded, standard JSON-RPC 2.0 `initialize` → `initialized` →
`shutdown` → `exit` exchange over LSP stdio. Admission requires the exact
surface the active client consumes: full saved-document synchronization,
UTF-16 positions, hover, code actions, pull diagnostics, workspace folders,
and the complete current server-executed `ripr.collect*`/refresh command set.
`codeAction/resolve` and work-done progress remain optional because their
absence has an existing client fallback. Missing or wrong JSON-RPC envelopes,
framing errors, timeouts, crashes, identity mismatch, and omitted required
capabilities fail closed so resolution can try the next allowed channel.

The probe never runs for an untrusted workspace. Both the preceding version
probe and the LSP session own platform-correct process-tree cleanup: a fresh
POSIX process group or Windows tree termination, followed by reaping. The real
packaged proof stages the worktree-built server through the release archive
shape, extracts it, verifies digest identity, and probes that extracted member;
an arbitrary `RIPR_TEST_SERVER_PATH` is not packaged-identity evidence.

### Layer 3 — Headless `riprAgent`

A programmatic agent client (Codex, CI tooling) that drives the typed
Expand Down Expand Up @@ -269,6 +287,14 @@ does not advertise fails the parity tests.
the unsaved buffer as the current diagnostics authority.
- `agent_protocol.rs` tests verify the fail-closed `supported_requests: []`
invariant.
- `editors/vscode/test/suite/lsp_compatibility.test.ts` rejects invalid
framing/envelopes and each active-client capability omission, exercises
timeout/crash/shutdown cleanup, and admits the digest-verified server member
extracted from the test release archive.
- `editors/vscode/test/suite/server_resolver_compatibility.test.ts` proves an
incompatible candidate falls through to the next allowed channel;
`workspace_trust_runtime.test.ts` proves an untrusted activation performs
zero resolver or process work.

## Implementation Mapping

Expand All @@ -286,6 +312,9 @@ does not advertise fails the parity tests.
- `crates/ripr/src/lsp/client_features.rs` — negotiated
`ClientFeatureProfile` consumed by the code-action command filter (#1776)
- `editors/vscode/src/client.ts` — VS Code client capability advertisement
- `editors/vscode/src/lspCompatibility.ts` — bounded standard-LSP admission
- `editors/vscode/src/serverResolver.ts` — version/protocol sequencing and
fallback across allowed server channels
- `editors/vscode/package.json` — `capabilities.untrustedWorkspaces`

## Metrics
Expand Down
Loading
Loading