Repository navigation
Description
Parents and current foundation
- security(vscode): enforce Workspace Trust before server download, process launch, or repair actions #1623 — Workspace Trust security boundary
- slice(#1623 PR A): declare vscode trust posture + gate server spawn on isWorkspaceTrusted #1741 — first trust-gate slice
- test(vscode): add multi-root workspace e2e fixture (#1577 editor-side acceptance) #1735 — editor extension-host acceptance
- program(convergence): drain the current PR queue, reconcile partial slices, and prove one real repair #1862 — convergence program
- PR fix(vscode): enforce restricted settings in Workspace Trust manifest #1867 — correct manifest restrictions plus injected-runtime no-execution proof
PR #1867 proves the controller's injected runtime does not reach server resolution, subprocess execution, watcher creation, or client creation while untrusted. That is necessary, but it is not the extension-host acceptance required by #1623: a real VS Code activation still needs an adversarial test proving that configured executable and network sentinels remain untouched.
Scope — one PR
Add a real @vscode/test-electron fixture for untrusted activation only.
The fixture must:
- launch VS Code with Workspace Trust enabled and the test workspace deterministically untrusted;
- configure
ripr.server.pathto a sentinel executable that records any invocation; - configure
ripr.server.downloadBaseUrlto a loopback request counter or another deterministic network sentinel; - activate the real extension through its normal activation events;
- assert that no sentinel process ran, no request was received, no language client/server process exists, and the user-facing state is the typed untrusted pause state;
- prove copy/open/repair/CLI-fallback commands do not cross the trust boundary.
If the VS Code test API cannot create an untrusted workspace deterministically, add the narrowest test-only launch hook or test profile necessary. Do not add a product setting that lets a workspace spoof trust.
Suggested seams
editors/vscode/src/test/runTest.tseditors/vscode/src/test/suite/editors/vscode/src/client.ts- test fixture workspace and sentinel assets under the existing approved editor-test surface
Proof
cd editors/vscode && npm cicd editors/vscode && npm run compilecd editors/vscode && npm testcd editors/vscode && npm run test:e2ecd editors/vscode && npm run package- existing file/process/network policy gates
The test must fail before the trust boundary or manifest correction and pass with PR #1867's behavior.
Dependencies
- PR fix(vscode): enforce restricted settings in Workspace Trust manifest #1867 merged or used as the explicit stack base.
Acceptance
- Real extension activation in an untrusted workspace produces zero child-process launches.
- Real extension activation produces zero requests to the configured network sentinel.
- Workspace-provided executable, args, version, auto-download, and mirror values do not reach runtime services.
- Commands that can copy, open, verify, receive, or run RIPR return a trust blocker without side effects.
- The fixture runs in the existing VS Code lane; no new CI job is added.
Non-goals
- No trust-grant transition; slice(#1623 PR B): trust-grant recovery — one controlled start after onDidGrantWorkspaceTrust #1742 / PR feat(vscode): start one server session after Workspace Trust is granted #1869 owns that.
- No loss-of-trust or reload teardown.
- No multi-root transition matrix.
- No analyzer, protocol, or release behavior change.
Activity
coderabbitai commentedon Jul 19, 2026
🔗 Related PRs
#1612 - fix(lsp): reject ambiguous workspace roots [merged]
#1659 - feat(lsp): reload repository configuration safely [merged]
#1691 - specs(ripr): materialize first RIPR-SPEC v2 requirement [open]
#1714 - audit(goals): add fail-closed authority audit framework [merged]
#1845 - fix(ci): unblock authority and policy gates [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)
STATUS: Open — premise correct, not resolved.
PLAN QUALITY: Good. Acceptance criteria are crisp, falsifiable, correctly scoped.
ASSESSMENT: A real
@vscode/test-electronharness exists (test/runTest.ts) andworkspace_trust_runtime.test.tsproves zero resolver/process/watcher calls — but via injected mockRiprClientRuntime, not real activation against a real sentinel executable. The mock proof is necessary, not sufficient.NEXT STEP: Build the deterministic untrusted fixture harness that activates the real extension and asserts zero real process/network. The test infrastructure exists; the gap is the real-activation layer.