Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c2f854b
fix(vscode): admit exact RC manifest fallback
EffortlessSteven Sep 29, 2026
e00e98b
fix(vscode): retain selected manifest observation
EffortlessSteven Sep 29, 2026
43c1a01
test(vscode): pin admitted RC fallback law
EffortlessSteven Sep 29, 2026
523a6b5
test(vscode): retain manifest placement observation
EffortlessSteven Sep 29, 2026
678f9b0
fix(vscode): retain manifest placement observations
EffortlessSteven Sep 29, 2026
9684b48
fix(vscode): bind placement observation to install receipt
EffortlessSteven Sep 29, 2026
e049d08
fix(vscode): surface exact manifest placement
EffortlessSteven Sep 29, 2026
73ae0e6
test(vscode): retain trusted placement observations
EffortlessSteven Sep 29, 2026
71c146f
test(vscode): prove placement evidence stays outside cache identity
EffortlessSteven Sep 29, 2026
2a71995
test(vscode): surface selected manifest placement
EffortlessSteven Sep 29, 2026
0041bfd
Merge remote-tracking branch 'origin/main' into fix/1765-admitted-rc-…
EffortlessSteven Oct 3, 2026
0428f1c
test(vscode): exercise RC fallback through real manifest admission
EffortlessSteven Oct 3, 2026
affb789
test(vscode): preserve producer identity after source catalog integra…
EffortlessSteven Oct 3, 2026
1cee021
ci(vscode): qualify selected editor candidates without duplicate Rust…
EffortlessSteven Oct 3, 2026
c56a816
policy(vscode): bind deterministic manifest transport mock references
EffortlessSteven Oct 3, 2026
0f5392c
fix(ci): bind routed proof controls to their YAML scopes
EffortlessSteven Oct 3, 2026
63e6062
fix(test): qualify routed workflow helper from child module
EffortlessSteven Oct 3, 2026
d5d04a9
fix(test): propagate workflow fixture lookup errors
EffortlessSteven Oct 3, 2026
5c76101
fix(ci): exclude YAML comments from concurrency isolation proof
EffortlessSteven Oct 3, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ jobs:
- run: cargo check --workspace --all-targets

vscode:
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'full-ci')
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'full-ci') || contains(github.event.pull_request.labels.*.name, 'vscode')
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/routed-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ permissions:
# Cancelling on `synchronize` would destroy a nearly finished proof every time a
# branch is pushed, which is the opposite of the repository's CI economics rule.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ github.event_name == 'pull_request' && (github.event.action == 'unlabeled' || (github.event.action == 'labeled' && github.event.label.name != 'full-ci')) && '-label-ignore' || '' }}
cancel-in-progress: false

env:
CARGO_TERM_COLOR: always

jobs:
route:
# Unrelated label events cannot launch proof or replace pending proof.
if: github.event_name != 'pull_request' || contains(fromJSON('["opened", "synchronize", "reopened"]'), github.event.action) || (github.event.action == 'labeled' && github.event.label.name == 'full-ci')
name: Route Ripr Rust Small
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down Expand Up @@ -119,6 +121,7 @@ jobs:
} >> "$GITHUB_STEP_SUMMARY"

detect-docs-only:
if: github.event_name != 'pull_request' || contains(fromJSON('["opened", "synchronize", "reopened"]'), github.event.action) || (github.event.action == 'labeled' && github.event.label.name == 'full-ci')
name: Detect Docs-Only Surface
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down Expand Up @@ -553,9 +556,10 @@ jobs:
retention-days: 5

result:
name: Ripr Rust Small Result
# Even a skipped job must never use the required context on ignored events.
name: ${{ github.event_name == 'pull_request' && (github.event.action == 'unlabeled' || (github.event.action == 'labeled' && github.event.label.name != 'full-ci')) && 'Ripr Rust Small Ignored Label Event' || 'Ripr Rust Small Result' }}
needs: [route, detect-docs-only, rust-github, docs-gate]
if: always()
if: always() && (github.event_name != 'pull_request' || contains(fromJSON('["opened", "synchronize", "reopened"]'), github.event.action) || (github.event.action == 'labeled' && github.event.label.name == 'full-ci'))
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -716,3 +720,13 @@ jobs:
name: ripr-routed-rust-result-${{ github.run_id }}-${{ github.run_attempt }}
path: target/ripr/reports/routed-rust-result.json
if-no-files-found: error

ignored-label:
name: Summarize Ignored Rust Label Event
if: github.event_name == 'pull_request' && (github.event.action == 'unlabeled' || (github.event.action == 'labeled' && github.event.label.name != 'full-ci'))
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Retain the non-proof disposition
run: |
echo "Unrelated label event: no Rust proof started; required result not posted." >> "$GITHUB_STEP_SUMMARY"
18 changes: 16 additions & 2 deletions docs/CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ implement and validate the lane-selection logic.
| --- | --- |
| `full-ci` | Run required, advisory, and release-like lanes. Demotes `ripr-waive` for this PR. Expected to cost more. |
| `release-check` | Run the currently wired release-surface proof without opting into every `full-ci` lane: package list, publish dry-run, and release-readiness. |
| `vscode` | Run editor extension lanes even when no editor path changed. |
| `vscode` | Run the existing hosted editor compile, admitted VSIX package, and editor-host test job without opting into the other `full-ci` jobs. |
| `coverage` | Run coverage lanes and upload coverage artifacts. |
| `ripr-waive` | Acknowledge a soft static exposure finding for this PR. Does not skip CI and does not apply when `full-ci` is present. |
| `ci-budget-ack` | Acknowledge that this PR intentionally exceeds the expected LEM band. |
Expand All @@ -281,7 +281,7 @@ budget/risk-pack policy files in the same PR.

These labels are the documented target vocabulary. Today, `release-check` and
`full-ci` activate the Rust workflow's package list, publish dry-run, and
release-readiness steps on pull requests. Other label effects remain target vocabulary until a later PR
release-readiness steps on pull requests. `vscode` now activates only the CI editor job. Other label effects remain target vocabulary until a later PR
wires them into a PR plan or workflow condition. The GitHub Settings App
contract in `.github/settings.yml` codifies these label names, descriptions,
and colors so the reviewable vocabulary does not drift in the GitHub UI.
Expand Down Expand Up @@ -2516,3 +2516,17 @@ A branch is ready to merge when:
Local `--allow-dirty` packaging checks are useful during review but are not a
substitute for plain package and publish dry-run checks on the final committed
branch.

### Scoped source editor qualification

Use the existing `vscode` label for a selected source editor candidate. The
`ci.yml` editor job runs its existing compile, admitted-package and editor-host
commands. Rust, MSRV and release-check conditions are unchanged; the label is
not an integrated release qualification or publication decision.

In Routed Rust, opened/synchronize/reopened, `full-ci` label additions, pushes
and manual dispatches retain the existing typed receipt/aggregate path. Other
label additions and removals use a separate concurrency group, skip proof
selection, and never post `Ripr Rust Small Result`, including as a skipped job.
Their cheap ignored-event summary proves no Rust subject. Existing proof for an
exact head remains its own evidence and cannot be replaced by a label event.
83 changes: 66 additions & 17 deletions editors/vscode/src/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,12 @@ async function downloadAdmittedAsset(
progress: vscode.Progress<{ message?: string; increment?: number }>
): Promise<ResolvedArchive> {
const expectedDigest = distribution.manifestSha256 as string;
const [preferred, ...fallbacks] = manifestCandidatesForDistribution(config.downloadBaseUrl, distribution, version);
let admitted: { manifest: AdmittedServerManifest; manifestUrl: string };
try {
admitted = {
manifest: await fetchAdmittedManifest(preferred, expectedDigest),
manifestUrl: preferred
};
} catch (error) {
const fallback = fallbacks[0];
if (fallback === undefined || !isDirectManifestNotFound(error)) {
throw error;
}
throw new Error(
`Preferred placement manifest is unpublished and the fallback carries no admitted digest; refusing unadmitted fallback ${fallback}.`
);
}
const admitted = await fetchAdmittedManifestForDistribution(
config.downloadBaseUrl,
distribution,
version,
expectedDigest
);
if (admitted.manifest.productVersion !== version) {
throw new Error(
`Admitted manifest product version ${admitted.manifest.productVersion} does not match requested version ${version}.`
Expand All @@ -190,7 +180,66 @@ async function downloadAdmittedAsset(
progress.report({ message: `Downloading ${platform.executableName}…` });
const { body: bytes } = await fetchBuffer(assetUrl, asset.archiveSize, fetchPolicyFor(assetUrl));
progress.report({ message: 'Verifying checksum…' });
return { manifestVersion: admitted.manifest.productVersion, expectedSha256: asset.sha256, bytes, admittedManifestSha256: expectedDigest };
return {
manifestVersion: admitted.manifest.productVersion,
expectedSha256: asset.sha256,
bytes,
admittedManifestSha256: expectedDigest,
selectedManifestUrl: admitted.manifestUrl,
manifestSelection: admitted.manifestSelection,
preferredManifestObservation: admitted.preferredManifestObservation,
fallbackManifestObservation: admitted.fallbackManifestObservation
};
}

export type FetchAdmittedManifest = (
url: string,
expectedDigest: string
) => Promise<AdmittedServerManifest>;

export interface AdmittedManifestSelection {
readonly manifest: AdmittedServerManifest;
readonly manifestUrl: string;
readonly manifestSelection: 'preferred_exact' | 'fallback_exact_after_preferred_absent';
readonly preferredManifestObservation: 'accepted' | 'direct_not_found';
readonly fallbackManifestObservation: 'not_requested' | 'accepted';
}

/**
* Fetches the descriptor-bound manifest from the preferred exact placement.
* Only an authoritative direct 404 may select the one predeclared fallback.
* Both placements are admitted against the same embedded manifest digest, so
* fallback changes the observed location without changing content authority.
*/
export async function fetchAdmittedManifestForDistribution(
baseUrl: string,
distribution: ResolvedDistributionRequest,
version: string,
expectedDigest: string,
fetchImpl: FetchAdmittedManifest = fetchAdmittedManifest
): Promise<AdmittedManifestSelection> {
const [preferred, ...fallbacks] = manifestCandidatesForDistribution(baseUrl, distribution, version);
try {
return {
manifest: await fetchImpl(preferred, expectedDigest),
manifestUrl: preferred,
manifestSelection: 'preferred_exact',
preferredManifestObservation: 'accepted',
fallbackManifestObservation: 'not_requested'
};
} catch (error) {
const fallback = fallbacks[0];
if (fallback === undefined || !isDirectManifestNotFound(error)) {
throw error;
}
return {
manifest: await fetchImpl(fallback, expectedDigest),
manifestUrl: fallback,
manifestSelection: 'fallback_exact_after_preferred_absent',
preferredManifestObservation: 'direct_not_found',
fallbackManifestObservation: 'accepted'
};
}
}

export async function fetchAdmittedManifest(url: string, expectedDigest: string): Promise<AdmittedServerManifest> {
Expand Down
52 changes: 51 additions & 1 deletion editors/vscode/src/managedServerInstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ const LOCK_POLL_MS = 50;
const LOCK_HEARTBEAT_MS = 30_000;
const MANAGED_VERSION_PATTERN = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|[0-9A-Za-z-]*[A-Za-z-][0-9A-Za-z-]*))*)?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;

export type ManagedManifestSelection = 'preferred_exact' | 'fallback_exact_after_preferred_absent';
export type PreferredManifestObservation = 'accepted' | 'direct_not_found';
export type FallbackManifestObservation = 'not_requested' | 'accepted';

export interface InstallReceiptV1 {
readonly schemaVersion: 1;
readonly installationState: 'complete';
Expand All @@ -25,6 +29,16 @@ export interface InstallReceiptV1 {
* admitted under a different manifest cannot be reused.
*/
readonly manifestSha256?: string;
/**
* Exact manifest location observed when these bytes were admitted.
* This is provenance/observation evidence only: cache currentness remains
* bound to distributionIdentity + manifestSha256, so identical RC bytes are
* not redownloaded merely to relabel them as stable.
*/
readonly selectedManifestUrl?: string;
readonly manifestSelection?: ManagedManifestSelection;
readonly preferredManifestObservation?: PreferredManifestObservation;
readonly fallbackManifestObservation?: FallbackManifestObservation;
/**
* Placement-neutral identity of the distribution descriptor that produced
* this install. Absent on legacy receipts; a distribution-bound request
Expand Down Expand Up @@ -71,6 +85,14 @@ export interface ResolvedArchive {
* the resolved distribution; the staged receipt binds to it below.
*/
readonly admittedManifestSha256?: string;
/**
* Exact manifest URL used to select this archive. Observation only; it is
* retained in the completed receipt but is deliberately not a cache key.
*/
readonly selectedManifestUrl?: string;
readonly manifestSelection?: ManagedManifestSelection;
readonly preferredManifestObservation?: PreferredManifestObservation;
readonly fallbackManifestObservation?: FallbackManifestObservation;
}

export interface ManagedServerInstallOperations {
Expand All @@ -84,6 +106,10 @@ export interface ManagedServerInstallOperations {
export interface ManagedServerReceiptIdentity {
readonly assetDigest: string;
readonly installationState: 'complete';
readonly selectedManifestUrl?: string;
readonly manifestSelection?: ManagedManifestSelection;
readonly preferredManifestObservation?: PreferredManifestObservation;
readonly fallbackManifestObservation?: FallbackManifestObservation;
}

export function validateManagedServerVersion(version: string): string {
Expand All @@ -102,7 +128,19 @@ export function combineActiveManagedServerIdentity<T extends { readonly binaryVe
return {
...active,
assetDigest: installation.receipt.archiveSha256,
installationState: 'complete'
installationState: 'complete',
...(installation.receipt.selectedManifestUrl !== undefined
? { selectedManifestUrl: installation.receipt.selectedManifestUrl }
: {}),
...(installation.receipt.manifestSelection !== undefined
? { manifestSelection: installation.receipt.manifestSelection }
: {}),
...(installation.receipt.preferredManifestObservation !== undefined
? { preferredManifestObservation: installation.receipt.preferredManifestObservation }
: {}),
...(installation.receipt.fallbackManifestObservation !== undefined
? { fallbackManifestObservation: installation.receipt.fallbackManifestObservation }
: {})
};
}

Expand Down Expand Up @@ -278,6 +316,18 @@ async function stageAndPromote(
: {}),
...(resolved.admittedManifestSha256 !== undefined
? { manifestSha256: resolved.admittedManifestSha256 }
: {}),
...(resolved.selectedManifestUrl !== undefined
? { selectedManifestUrl: resolved.selectedManifestUrl }
: {}),
...(resolved.manifestSelection !== undefined
? { manifestSelection: resolved.manifestSelection }
: {}),
...(resolved.preferredManifestObservation !== undefined
? { preferredManifestObservation: resolved.preferredManifestObservation }
: {}),
...(resolved.fallbackManifestObservation !== undefined
? { fallbackManifestObservation: resolved.fallbackManifestObservation }
: {})
};
await fs.promises.rm(archivePath, { force: true });
Expand Down
22 changes: 21 additions & 1 deletion editors/vscode/src/serverResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,27 @@ function withManagedIdentity(
resolved: ResolvedServer,
installation: ManagedServerInstallation
): ResolvedServer {
return combineActiveManagedServerIdentity(resolved, installation);
const combined = combineActiveManagedServerIdentity(resolved, installation);
const placement = managedManifestPlacementDetail(installation);
return placement === undefined
? combined
: { ...combined, detail: `${combined.detail}; ${placement}` };
}

export function managedManifestPlacementDetail(
installation: ManagedServerInstallation
): string | undefined {
const receipt = installation.receipt;
if (
receipt.manifestSelection === undefined ||
receipt.selectedManifestUrl === undefined
) {
return undefined;
}
if (receipt.manifestSelection === 'preferred_exact') {
return `manifest placement: preferred exact (${receipt.selectedManifestUrl}); preferred=accepted; fallback=not requested`;
}
return `manifest placement: exact fallback after preferred absence (${receipt.selectedManifestUrl}); preferred=direct 404; fallback=accepted`;
}

function isResolved(result: ResolvedServer | ResolveFailure): result is ResolvedServer {
Expand Down
Loading
Loading