Skip to content

feat: assemble native release assets in the Native run - #24

Merged
Blind-Striker merged 3 commits into
masterfrom
feat/release-assets
Nov 14, 2026
Merged

Blind-Striker merged 3 commits into
masterfrom
feat/release-assets

Conversation

@Blind-Striker

Copy link
Copy Markdown
Contributor

Summary

Assemble the native release assets inside the candidate's own Native run, so that a later release publishes exactly the verified bytes and never renames, repacks or re-archives them.

  • A new assets subcommand of the native tool copies the six staged archives byte for byte to opencode-mcp-<version>-<rid>.zip / .tar.gz, checks each copy's SHA-256 against its receipt, and writes SHA256SUMS (six lines in manifest order, sha256sum -c format, 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.
  • Receipt discovery and the owned-output transaction move into NativeEvidenceStore, shared by validate, pack-root, pack-child and assets; the existing commands keep their order, messages and cleanup behaviour.
  • A new release-assets job in Native needs validate, downloads the same run's completed evidence, runs assets and uploads native-release-assets. It publishes nothing.
  • Every native-* artifact keeps 90 days on workflow_dispatch runs (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.json 10.0.403, latestPatch).

  • Operating system and architecture: Windows 11, x64.

  • Commands run, test counts and results: the complete local check at ee7c3eb 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: 844 tests, 844 passed, 0 failed, 0 skipped. The validate CLI smoke against an empty receipt directory exited 2 with the six ordered Missing receipt lines.

  • 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-assets job, the six-RID inputs, the seven-file artifact and the seven-day retention are proven only by this pull request's Native run. 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 (the assets contract, the release-assets job, the release-archive rule) and docs/engineering/quality-gates.md (the job, retention, release-asset acceptance, package-pass acceptance). One existing expectation changes: the tool's no-argument suggestion now lists assets.

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

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-child still checks its ownership marker first). The release-assets job's artifact layout with merge-multiple: false, and the retention expression in with:.

@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 14, 2026
Merged via the queue into master with commit 3d36f7f Nov 14, 2026
46 of 49 checks passed
@Blind-Striker
Blind-Striker deleted the feat/release-assets branch November 14, 2026 14:14
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