Skip to content

feat: add the verified candidate publication lane - #25

Merged
Blind-Striker merged 5 commits into
masterfrom
feat/release-lane
Nov 14, 2026
Merged

Blind-Striker merged 5 commits into
masterfrom
feat/release-lane

Conversation

@Blind-Striker

Copy link
Copy Markdown
Contributor

Summary

Add the manual release lane that publishes one verified Native candidate run, unchanged, to GitHub Packages, NuGet.org and a GitHub Release, and the read-only command that validates such a candidate.

  • publication subcommand 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 and SHA256SUMS, 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_dispatch only, targets github-packages, nuget, github-release and dry-run:
    • preflight (no environment; contents: read, actions: read, packages: read): master-only ref; full SHA contained in master; the Native run is a successful workflow_dispatch run of native.yml on master at that commit; the evaluated version; the candidate's .github/workflows tree 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 the publication check; inventories and digests recorded as outputs. A dry-run ends here.
    • Publish jobs run in the release environment (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 through git/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.
    • A partial publication blocks promotion; recovery of feed pushes uses the files input; nothing retries or deletes a tag, draft, release or package.
  • Canon: a publication pass in quality-gates.md, the publication procedure in workflow.md, the publication boundaries in hosting-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.json 10.0.403, latestPatch).

  • Operating system and architecture: Windows 11, x64.

  • Commands run, test counts and results: the complete local check at 747d22c with an owned ASPIRE_HOME: tool restore, Slopwatch, Release build with the analyzer wall, whitespace and style format checks, the tools/native.cs build, and the solution test run without the Package category: 862 tests, 862 passed, 0 failed, 0 skipped; the validate CLI smoke exited 2 with the six ordered Missing receipt lines. The two later commits (9329a4d, 26583a0) add six lines of tag checks to release.yml only; 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-run on 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 lists publication.

Suppression inventory

None.

  • Suppression changes follow the suppression policy
    and have maintainer approval; no warning or audit protection was weakened.
  • The change passes the slop-review rubric.
  • Commit messages use Conventional Commits; commits and this body have no AI-attribution
    trailers, co-author lines or session links.
  • This contribution is licensed under the MIT License.

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 with contents: write who 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 moving v* tags closes it and is proposed as a repository setting. Known open point: GitHub's documentation does not state that a job's GITHUB_TOKEN with packages: read can list the organization's package versions before a package exists; the check fails closed if it cannot, and the post-merge dry run decides.

@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 14, 2026
Merged via the queue into master with commit 7f694c0 Nov 14, 2026
29 of 31 checks passed
@Blind-Striker
Blind-Striker deleted the feat/release-lane branch November 14, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant