Repository navigation
feat: add the verified candidate publication lane - #25
Merged
Merged
Conversation
Collect the complete feed-stage diagnostics before refusing publication.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the manual release lane that publishes one verified
Nativecandidate run, unchanged, to GitHub Packages, NuGet.org and a GitHub Release, and the read-only command that validates such a candidate.publicationsubcommand of the native tool (read-only): validates a downloaded candidate in stages and stops at the first failing stage with its complete ordered diagnostics: the complete native receipt set; every receipt naming the requested version and commit with an empty source status; the seven-package feed (McpPackageFeed) and its retained evidence byte-equal to the completed evidence; the release assets (exactly six versioned archives andSHA256SUMS, each archive digest equal to its receipt, the checksum bytes rebuilt from the receipts). It writes, copies, extracts and starts nothing..github/workflows/release.yml,workflow_dispatchonly, targetsgithub-packages,nuget,github-releaseanddry-run:preflight(no environment;contents: read,actions: read,packages: read): master-only ref; full SHA contained in master; theNativerun is a successfulworkflow_dispatchrun ofnative.ymlon master at that commit; the evaluated version; the candidate's.github/workflowstree equals master's; target absence (GitHub Packages through the packages API, NuGet.org through the flat container, published releases and the tag); cross-run download of the candidate artifacts and thepublicationcheck; inventories and digests recorded as outputs. Adry-runends here.releaseenvironment (required reviewer) with only the permission they need. Each re-downloads the candidate and requires the preflight inventory, re-checks the workflow tree and master ancestry and the target absence after approval, then acts once: feeds push the six children in manifest order and the root last, one file per push, never--skip-duplicate, after comparing every file's SHA-256 with the preflight inventory; NuGet.org uses Trusted Publishing (NuGet/login, OIDC). The release job creates the tag at the candidate commit throughgit/refs(refusing if it exists), checks the tag's commit, creates a draft, uploads the assets unchanged, reads them back by SHA-256, checks the tag's commit again, publishes, and checks the peeled tag.filesinput; nothing retries or deletes a tag, draft, release or package.quality-gates.md, the publication procedure inworkflow.md, the publication boundaries inhosting-and-packaging.md.Related issue: none.
Transport and protocol impact
None. The server, its packages and payloads are unchanged.
Verification
SDK version: 10.0.404 (
global.json10.0.403,latestPatch).Operating system and architecture: Windows 11, x64.
Commands run, test counts and results: the complete local check at
747d22cwith an ownedASPIRE_HOME: tool restore, Slopwatch, Release build with the analyzer wall, whitespace and style format checks, thetools/native.csbuild, and the solution test run without the Package category: 862 tests, 862 passed, 0 failed, 0 skipped; thevalidateCLI smoke exited 2 with the six orderedMissing receiptlines. The two later commits (9329a4d,26583a0) add six lines of tag checks torelease.ymlonly; the workflow parses as YAML, and the changed PowerShell body parses.Managed / AppHost / native / package evidence (state what was not run): the workflow cannot run before it is on the default branch. Its first run after merge is a
dry-runon master, which proves the preflight path, the cross-run downloads and the candidate validation, and publishes nothing. No publication, no environment approval and no live install is part of this change.The local check passed, or this change
is limited to Markdown and
LICENSE.No tests were skipped, weakened, retried or deleted to make checks pass.
Dependencies and documentation
One new action in
release.yml:NuGet/login@v1(Trusted Publishing). No package change.Documentation:
docs/engineering/quality-gates.md,docs/engineering/workflow.md,docs/architecture/hosting-and-packaging.md. One existing expectation changes: the tool's no-argument suggestion now listspublication.Suppression inventory
None.
and have maintainer approval; no warning or audit protection was weakened.
trailers, co-author lines or session links.
Reviewer focus
Irreversible actions: every path to a push, a tag, a draft or a published release; the checks repeated after the environment approval; permissions per job; no input expression inside a
run:body. A writer withcontents: writewho force-moves the release tag between a tag check and the release call could still bind the release to another commit; GitHub has no compare-and-swap there. A tag ruleset that forbids movingv*tags closes it and is proposed as a repository setting. Known open point: GitHub's documentation does not state that a job'sGITHUB_TOKENwithpackages: readcan list the organization's package versions before a package exists; the check fails closed if it cannot, and the post-merge dry run decides.