Skip to content

test(vscode): rehearse packaged managed server download (#9469) - #12974

Merged
EffortlessSteven merged 5 commits into
mainfrom
codex/9469-packaged-managed-download
Nov 10, 2026
Merged

EffortlessSteven merged 5 commits into
mainfrom
codex/9469-packaged-managed-download

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Summary

Draft / REVIEW_INCOMPLETE. Adds #9469's Linux x64 non-publishing composition rehearsal to the existing read-only server-archive workflow. It consumes that run's archive and schema-4 receipt, binds a separate local HTTPS mirror manifest through the real descriptor command, packages/verifies one VSIX, installs it with the VS Code CLI, then exercises three fresh extension-host profiles.

The positive requires managed_download, exact archive/executable/manifest identities, completed installation and a real hover round trip after LSP initialization. Parseable raw-manifest tampering and archive tampering must expose their intended checksum failure without a running fallback or completed install. Original qualification inputs are preserved; descriptors and the normal package output are restored. Failed and unstarted case states remain distinct.

Swarm / Source Boundary

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

No tag, release, asset attachment, publication, credentials or repository settings are changed. The throwaway CA and trusted-workspace switch are scoped to new disposable test profiles, following the existing test host.

Source-of-truth Links

Proposal: none; bounded implementation of audit row R1-F2.
Spec: existing managed-server receipt and descriptor contract; no product contract change.
ADR: none.
Plan item: #9469 under #2769; adjacent hosted publishing proof stays with #9333.
Governing issue or accepted claim: #9469, preserving #3798 downloader trust and #2528 packaged-host authority.
Acceptance delta (one sentence): The read-only archive workflow gains an installed-VSIX managed-download composition with exact same-run archive custody and raw-manifest/archive refusal controls.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): codex/9469-packaged-managed-download
Stack parent or prerequisite PR (if any): none.
Proposed replacement of PR (if any; not yet accepted): none.
Acceptance retained from a replaced candidate (if any): none.
Accepted winner and losing candidate disposition (when decided): no competing #9469 candidate found in all-state and finding-specific open searches.

Scope

Production delta: none.
Evidence/support delta: dedicated TypeScript editor-test entrypoints, six admission/control tests, one existing read-only workflow hook, provisioning documentation, and one process-policy allowance.
Single acceptance criterion: actual installed VSIX plus real downloader plus same-run qualified Linux archive succeeds, while each fresh-cache tamper control refuses at its intended boundary and retains truthful execution evidence.
Non-goals: public retrieval, stable/RC placement, Windows/macOS coverage, #9333 publishing rehearsal, native compatibility promotion, release qualification or publication.
Rollback: remove this rehearsal hook and its test-only files/allowance.

Proof

Candidate: d4fb772
Basis: 05b9f30
Tree: 984c33c7bd75713f7d4831bd3551dad450b875fe

Observed locally on Linux x64 / Node 24.19.0 / Rust 1.95.0:

  • TypeScript compile and six node:test controls pass, zero skipped.
  • Removing the compiled raw-manifest digest assertion in an isolated wrong-implementation control produces the intended Missing expected exception failure (4 pass / 1 fail on the earlier five-test inventory). This is admission-oracle evidence, not production-host mutation proof.
  • npm run package passes: 426 VSIX entries, 3,430,709 unpacked bytes. This local packaging check used the ordinary empty descriptor; the bound-mirror package/host path is not yet executed.
  • Process policy, CLI-exit contract, network policy and workflow policy pass.
  • ci-policy and precommit pass (native exit 0). check-fast passes: 11 gates ran, 6 skipped, exactly the independently resolved 8 changed files; merge-base and recorded basis both 05b9f30. Clippy is skipped by selection because no Rust source changed. These are local checks, not hosted qualification.
  • git diff --check passes.

The first npm attempt used an unavailable default home cache and the first ci-policy attempt lacked Cargo on PATH. Both were environment setup failures, not candidate failures; subsequent commands use workspace-local caches and explicit toolchain paths. One initial mutation attempt missed the compiled call form and established no negative result; the corrected control above did run.

Missing: real extension-host execution, qualified archive consumption, bound-mirror package runtime and hosted checks. This local environment has no Xvfb and no current-source qualified archive bundle. No release qualification is claimed. The existing credential-free archive workflow is the intended runtime route; it has not been dispatched here.

Review

Independent source review inspected the workflow, instrument, downloader, resolver and client. Its two findings were repaired: failed execution is retained separately from success/unstarted cases, and the normal package output is restored. The sixth test exercises an intentional failed-host receipt. Follow-up source inspection found no remaining blocker to opening a Draft. This is source judgment; full native execution remains missing.

Changelog: changelog.d/9469-managed-download-rehearsal.md follows the canonical Internal / CI marker, bullet and issue reference.

CI Economics

The existing manifest job reuses its compiled descriptor/packaging instrument and existing same-run archive outputs. One VSIX is reused across three sequential fresh profiles. No new automatic trigger or qualification request is added; the existing dispatch/call remains read-only. Its manifest job now has a 45-minute cap. Evidence uploads include only aggregate/host JSON, excluding the temporary CA key, profiles and package payloads.

Continuation

Owner / claim: this delegated #9469 lane, parent release-readiness coordinator.
Candidate: d4fb772 on base 05b9f30.
Review: source findings repaired; REVIEW_INCOMPLETE for actual host/artifact execution and hosted proof.
Validation: local compile, six controls, packaging, ci-policy, check-fast and precommit pass.
Next: execute the existing non-publishing archive route on this exact candidate, inspect all three host receipts and archive/VSIX identities, and repair any runtime failure before Ready.
No merge or release authority is delegated to this lane.

@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 151 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 236bf905-a2fe-4e0c-9843-0fde8a871b53
Commits

Reviewing files that changed from the base of the PR and between 6bed9c1 and f8fcb65.

Files selected for processing: 9

  • .github/workflows/server-archive-qualification.yml
  • changelog.d/9469-managed-download-rehearsal.md
  • docs/SERVER_PROVISIONING.md
  • editors/vscode/test/managedDownload/contract.test.ts
  • editors/vscode/test/managedDownload/contract.ts
  • editors/vscode/test/managedDownload/host.ts
  • editors/vscode/test/managedDownload/rehearse.ts
  • policy/process_allowlist.d/9469-managed-download-rehearsal.txt
  • xtask/src/tests.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

gemini-code-assist[bot]

This comment was marked as resolved.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent source inspection: no blocking source defect found. Disposition: REVIEW_INCOMPLETE, not merge clearance.

  • Reviewed head: d4fb772e443e5346061501b9055e84dc41e640f9; live base: 73226d894fae0214cf21a15cb7e555b57e27a4d2. The reported local basis 05b9f30daab2c734d4eb7203d2fb95a8a08787bc predates one unrelated nesting-analysis commit.
  • Inspected all eight changed files plus the descriptor generator, VSIX packaging/verifier, downloader, managed installer, resolver and activation path. Source binds the original qualified identities, then separately binds the mirror manifest before packaging. The positive requires managed download and a real LSP response; fresh-profile negatives require their intended checksum diagnostic, no fallback/completed install and the expected request counts.
  • The workflow remains dispatch/call-only with read-only repository permissions. The inspected command path packages without publishing. Disposable TLS/profile state is excluded from uploaded evidence.

Existing comments:

  • Edition 2024: the compatibility premise does not apply to this lane, whose manifest job pins Rust 1.95.0. The suggested replacement also removes the fixture package name/version and should not be applied.
  • Workspace assertion: nonblocking diagnostic improvement. The harness supplies the workspace before activation, and the successful server path requires a workspace. Absence would fail the test rather than falsely pass it.

Evidence boundary: no tests were rerun in this inspection. Compile, six controls, mutation witness, packaging and policy passes are reported in the PR body, not independently observed here. Actual installed-host execution, same-run qualified archive custody, the three host receipts and hosted qualification remain unverified. Source inspection does not establish those runtime results. At inspection, CI/VSCode checks were skipped, CodeRabbit was quota-limited and ub-review was still running. Keep the candidate in flight until those claim-essential results are inspected.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bounded source review — 2026-11-05 UTC

  • reviewed_head_sha: d4fb772e443e5346061501b9055e84dc41e640f9.
  • integration_basis: Current PR base 73226d894fae0214cf21a15cb7e555b57e27a4d2; authored patch and immutable candidate source. No new combined-tree qualification.
  • claim_boundary: test(vscode): rehearse packaged managed server download (#9469)
  • changed_surfaces_and_semantic_owners_inspected: admitted exact source/archive/schema → rewritten test mirror descriptor → packaged VSIX install in fresh hosts → real LSP ready/refusal oracle Full500line rehearsal chain incl restore tail read. Valid and whitespace-manifest/archive-tamper cases use same immutable VSIX; observed receipt selected/executed/outcome and request counts asserted; negatives require no completed server receipt; descriptor/VSIX restoration and private key removal checked. Existing workspace assertion/edition portability comments do not establish bounded Linux host defect. No new finding.
  • blocking_findings: No additional actionable source finding established within this inspection. Existing review constraints and known proof gaps remain.
  • non_blocking_suggestions: None added.
  • refuted_or_stale_findings: Existing thread dispositions retained; specific source-verified repairs or deferrals are described above. No thread is resolved by this review.
  • proof_and_ci_observed: No local native VS Code/qualified archive execution; authored rehearsal does not alone qualify installed recovery; metadata/log receipt for this host scenario missing.
  • proof_or_review_missing: Exact-head final qualification/current integration synthesis not independently completed in this pass; only bounded inspection above claimed.
  • affected_currentness_dimensions: Source, test stimulus/oracle and producer-consumer claims bind to the head above. Historical execution remains bound to its original subject; no fresh base-composition or cross-platform execution is implied.
  • residual_assumptions_and_non_claims: Source reading and author reports are not new native passes. Existing Draft/hold boundaries remain; this is not merge clearance.
  • disposition: REVIEW_INCOMPLETE.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW

Copy link
Copy Markdown
Member Author

Claim: driving this PR to squash-merge.


Generated by Claude Code

…hover round trip

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 9, 2026 22:04

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Exact head 63d08f3 reviewed: workflow steps, rehearsal contract and host modules, docs and process allowlist entry, current main merged. Receipt admission asserts source, tree, archive and executable identities; the tamper controls separate raw-manifest from archive refusal. Both bot threads have replies and are resolved. No publication or credential surface is touched.


Generated by Claude Code

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit f8fcb654590e · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=6bed9c175b878e9ab2e2fc9d293c32eb381e0854 findings=0 gaps=0
analysis=incomplete|outcome=partial_with_limitations
limitation=language_adapter_unavailable|reason=typescript changed 4 file(s), but the preview adapter was not enabled or availab…|recovery=Enable the typescript preview adapter and re-run the analysis.
stop=analysis incomplete; zero findings is not a clean result
verify=refused|outcome=partial_with_limitations|findings=0|exposed=0|reason=analysis_incomplete

Took 8s.

…e workflow contract

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016EQRVk9uwnL9VvomuYVpuW

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Exact head f8fcb65 reviewed. Since the earlier source review, the xtask archive-workflow contract test now counts the sixth artifact upload that this PR adds, and current main is merged. All review threads are resolved.


Generated by Claude Code

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOURCE_REVIEW_READY

Exact head f8fcb65 reviewed after the last thread reply: workflow steps, rehearsal modules, xtask contract count, docs and allowlist. All threads have source-backed replies and are resolved.


Generated by Claude Code

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs reviewer attention before upstream: findings remain.

Confirmed findings

  • The workflow hardening packet cannot substantiate GitHub Actions supply-chain or expression-safety claims because zizmor was not installed.

Verification questions

  • Confirm the contract test proves admission and receipt-retention units but does not execute the installed extension-host path.
  • Confirm workflow validation failed before this review, so syntax or expression defects may remain despite the runtime-oriented TypeScript controls.

Evidence gaps

  • The actual installed-VSIX composition remains unproven until the hosted archive workflow completes successfully.
  • Model proof intent was rejected by deterministic validation.
  • Actual installed-extension success, tamper refusal, and request-count semantics remain runtime claims without a focused base-plus-tests receipt.
  • The acceptance claim still depends on a hosted same-run archive/VSIX execution that has not produced a receipt.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants