Repository navigation
feat: assemble native release assets in the Native run - #24
Merged
Merged
Conversation
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
Assemble the native release assets inside the candidate's own
Nativerun, so that a later release publishes exactly the verified bytes and never renames, repacks or re-archives them.assetssubcommand of the native tool copies the six staged archives byte for byte toopencode-mcp-<version>-<rid>.zip/.tar.gz, checks each copy's SHA-256 against its receipt, and writesSHA256SUMS(six lines in manifest order,sha256sum -cformat, UTF-8 without BOM, LF, no self-entry). It requires the complete coherent receipt set, the requested version on every receipt, and matching staged evidence before it touches the output; the output must be absent or empty, and any later failure deletes it.NativeEvidenceStore, shared byvalidate,pack-root,pack-childandassets; the existing commands keep their order, messages and cleanup behaviour.release-assetsjob inNativeneedsvalidate, downloads the same run's completed evidence, runsassetsand uploadsnative-release-assets. It publishes nothing.native-*artifact keeps 90 days onworkflow_dispatchruns (candidate runs) and 7 days otherwise.Related issue: none. (#20's measurement decides the README install command in a later change.)
Transport and protocol impact
None. The server, its packages and its payloads are unchanged; this is repository tooling, a workflow job and canon text.
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
ee7c3ebwith 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: 844 tests, 844 passed, 0 failed, 0 skipped. ThevalidateCLI smoke against an empty receipt directory exited 2 with the six orderedMissing receiptlines.Mutation proofs on the committed tree, one at a time with a clean rebuild and a clean tree after each revert; each named row failed at its assertion: removing the copied-archive digest comparison; ordering assets by receipt discovery instead of the manifest; skipping the owned-output deletion; validating evidence before the version check; dropping the ordinal order of receipt discovery; moving the version check inside the owned-output operation.
Managed / AppHost / native / package evidence (state what was not run): managed, AppHost and tool tests ran locally on Windows. The
release-assetsjob, the six-RID inputs, the seven-file artifact and the seven-day retention are proven only by this pull request'sNativerun. The 90-day retention of dispatch runs is confirmed on the first manual candidate run.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
No dependency change.
Documentation:
docs/architecture/hosting-and-packaging.md(theassetscontract, therelease-assetsjob, the release-archive rule) anddocs/engineering/quality-gates.md(the job, retention, release-asset acceptance, package-pass acceptance). One existing expectation changes: the tool's no-argument suggestion now listsassets.Suppression inventory
None.
and have maintainer approval; no warning or audit protection was weakened.
trailers, co-author lines or session links.
Reviewer focus
Data deletion: the owned-output transaction now shared by four commands (only an output the command accepted as absent or empty is ever deleted;
pack-childstill checks its ownership marker first). Therelease-assetsjob's artifact layout withmerge-multiple: false, and the retention expression inwith:.