Repository navigation
Description
Parents / ordering
#1300 publication-byte integrity; #1339 next release. First bounded implementation slice under #1300. The following workflow-promotion slice consumes this validator; #1300 retains the complete integration acceptance and #817 retains exclusive release authorization.
The defect is already evidenced in #1300: dispatch and tag builds can package different bytes, and the tag run currently checks only its own rebuilt receipt. This is not a speculative repair.
One-PR outcome
A small Rust/xtask value contract and offline validator binds independently authorized candidate identity to the exact archive/checksum bytes, emitting an immutable verified-publication input or a typed rejection. It performs no GitHub write, tagging, upload, model call, arbitrary command or binary execution.
Prefer promotion of the exact prepared archive rather than a second build. Retain the durable #1300 design decision before wiring production; an alternative reproducible-rebuild design must still compare against independently authorized bytes before exposure and cannot weaken this identity contract.
Contract
Reuse ub-review.release_candidate.v1 fields where applicable, keeping producer facts separate from authorization. Do not relabel a branch-dispatch ref/tag into a tag-push receipt.
Inputs must bind:
repository + candidate commit/tree
actual producer workflow/ref/run/attempt/artifact identity
proposed unused tag + peeled commit expectation
fixed archive/checksum asset names
archive/checksum byte lengths and SHA-256 digests
binary/package version + selected target/toolchain provenance
independent authorization record identity + authorized packet digest
retention/expiry and verifier identity
An artifact manifest is not its own authorization. A candidate-authored file, matching version string, successful build or arbitrary comment cannot authorize release. Define the trusted handoff verification the later workflow must perform; pure fixtures inject trusted/untrusted authority explicitly.
Reject missing, malformed, duplicate or unknown mandatory fields, unsupported versions, inconsistent source/tag/version/asset identities, wrong digest/length, replay from another attempt, unavailable/expired source artifacts, mismatched authorization and path escape. Fixed filename/layout validation and bounded archive inventory must not execute archive contents.
Return a verified digest/identity object that the downstream publisher binds to the same bytes; do not permit a mutable path to be validated and later replaced unnoticed. Publication must recheck/use a private immutable staging copy or equivalently capture the verified bytes at the side-effect boundary.
Acceptance / negative proof
- Matching candidate + independently trusted exact authorization + bytes yields one deterministic verified input.
- Each individual SHA/ref/tag/run/attempt/artifact/version/asset/digest/length/authorization mutation is rejected independently with a stable reason.
- Missing/expired metadata and unsuccessful API observations cannot prove availability, absence or authorization.
- A self-authorized candidate manifest and unrelated authorized packet cannot pass.
- Path traversal, duplicate archive members, wrong root layout, symlink substitution and changed bytes after validation fail at the selected boundary.
- Deterministic serialization/semantic digest remains stable under permissible input ordering; unsupported schema does not get coerced.
- Recording fake publisher receives zero calls for all rejection cases; no actual publication adapter is enabled in this PR.
- Existing candidate receipt semantics remain backward-compatible or explicitly versioned, with producer/consumer fixtures.
- Focused tests, fmt/check/Clippy/policy, artifact/workflow contract tests and ordinary exact-head required checks pass.
Non-goals / handoff
No production release trigger change, new signing service, credential change, package/tag/release mutation, download of arbitrary repository-controlled executables, or general artifact registry. Handoff to the next #1300 slice includes exact validator revision, accepted schema, negative corpus and safe verified-byte consumption contract. Close this leaf only on merged reviewed source and executed tests; #1300 stays open until the production path is wired and non-publishing integration proof passes.
Rollback
Keep publication closed when validation is unavailable or rejected. Preserve failed candidate packets. Never fall back to source-SHA-only acceptance or the unchecked rebuild-and-clobber path.
Activity
EffortlessSteven commentedon Oct 11, 2026
Bounded reservation for Steven's cloud sprint: implement the pure offline authorized-byte validator and adversarial fixtures on current main, in an isolated task branch. Fresh lookup shows no assignee, reservation comments or matching implementation PR. Scope is immutable verified byte capture, strict identity/authorization and bounded archive inventory; no production workflow wiring, runtime containment writers, publication adapter, tagging/upload, credentials/settings/gates or merge. #1344/#1300 integration and #817 release authorization remain separate. Draft PR and exact-head local validation receipts will follow; this does not claim release readiness.
EffortlessSteven commentedon Oct 11, 2026
Bounded reservation delivered as draft PR #1379: #1379 . Exact head 9b223f1, tree 0db5501a505205dd9f1e2a3c5854373ed7d3aeaf, base main411d68f9591e56c708e5083278907c0bd8388f96; remote SHA matches and checkout is clean. Strict authorized_release.v1 pure validator captures verified bytes, binds independently injected trusted authorization plus producer/artifact/tag observations, rejects identity/byte/layout/replay/expiry defects with typed reasons, and retains boundary expiry checks. Nine focused tests, real GNU producer byte fixture, independent digest golden vector, all seven exact-commit local baseline checks, 36 publication and 19 Action tests pass. Independent Luna review found no remaining validator blocker. Hosted gate38110637015 is in progress; no required-green/readiness claim, merge or publication. #1344 owns trusted API/authorization adapter, fresh tag collision checks and production promotion using only captured bytes; existing release_candidate.v1/workflows/runtime containment/policy remain untouched. #1343/#1300 remain open pending reviewed merge and their respective acceptance.
EffortlessSteven commentedon Oct 11, 2026
PR1379 follow-up now at25686bcacb86d441ce08c82de1b79cb7e61486b0 (remote matches; checkout clean). Original9b223f1 retained as frozen analyzer source. Reproduced scanner blocker arises from private Rust authority-field syntax echoed into diff context, not an invented bearer fixture. Only that private field name changed; schema/API/security scanner/renderer/actual canaries unchanged. Complete regenerated model-off dry-run packet passes full artifact verifier; three runtime credential-marker injections still reject specifically at the scanner and restoration passes. This does not establish hosted or integrated containment.
Compiled expiry-bypass and empty-capture controls survived original tests; strengthened direct admission rejection and exact-input-byte oracles now kill both. Digest-bypass control fails before/after. Nine focused tests and all seven exact-head local baseline commands pass. Local pinned RIPR replay remains164/max0 (original161); both corpora and bounded source-role/negative-control evidence handed to #813 #813 (comment) . No rows waived, analyzer/suppression/policy/pin change or competing upstream work. Updated hosted gate38111640441 is running. Artifact11691448317 download403 prevents local archive-row comparison; parent retains hosted review. #1344 remains blocked on reviewed validator merge and concrete production integration; no release/merge performed.
feat(release): validate independently authorized archive bytes (#1343)
feat(release): validate independently authorized archive bytes (#1343) (
feat(release): publish only independently authorized candidate bytes
feat(release): publish only independently authorized candidate bytes (#…