Repository navigation
Description
Summary
PR #116 makes resumed-draft notes deterministic, but its current publisher branch still has four fail-closed gaps across immutable publication, release lookup, remote asset inventory, and explicit note bytes.
Two root policies already have canonical open issues: #99 owns deterministic resumed notes and #100 owns release immutability. This draft is a branch-composition issue, not a replacement for either one. PR #117 independently fixes the immutability and non-404 lookup gaps, but PR #116 does not contain those fixes.
Current behavior at PR #116's head
- A newly published or already-published release is accepted when
isImmutableis false or missing; the value is only printed. - Any
release_viewfailure—including authentication, permissions, rate limits, schema errors, or transport failures—is treated as “release not found.” - A failed remote asset-list request can leave an empty manifest that passes subset validation because Bash disables
errexitinside a function used in an||conditional context. - An explicit
--notes-fileremains an external path. The draft body is verified, but the file can change before the final publish edit rereads it.
Expected behavior
One composed publisher branch should satisfy #99 and #100 while treating every inconclusive API/filesystem state as a hard failure. The exact notes and artifacts verified before publication must be the bytes locked into the release.
Acceptance criteria
- Incorporate Fail release publication when GitHub release immutability is not enforced #100's strict
isImmutable=truechecks for both newly published and existing published releases, including false, missing, and delayed cases. - Treat only an explicit release-by-tag HTTP 404 as absence; abort on authentication, permission, API, schema, rate-limit, and transport failures.
- Check every remote asset-list request explicitly before comparing manifests; never compare a truncated or empty file after a failed fetch.
- Test persistent and transient asset API failures separately from temporarily missing digest values.
- Snapshot an explicit notes file once into the private work directory, or bind it by digest, and use the same bytes for verification and publication.
- Verify the final release body matches the expected notes bytes.
- Retain Make resumed release-draft notes deterministic before publication #99's deterministic new/resumed-draft behavior and the prior fixed validation-preview/digest-retry regressions.
- Add behavioral tests for all failure paths using the fake
ghharness. - Require publication to leave the remote tag, release state, notes, and complete asset digest set mutually consistent.
Consensus impact
Consensus-adjacent. This is the release path binding signed source, validator-approved assets, release metadata, and immutable public state.
References
- Deterministic notes issue: Make resumed release-draft notes deterministic before publication #99
- Immutability issue: Fail release publication when GitHub release immutability is not enforced #100
- Reviewed branch: PR Make resumed release draft notes deterministic #116 at
3d751bcf10a91652420c9c4c803886d33b2a9fe6 - Parallel hardening branch: PR Enforce immutable local release publication #117
Activity
kiwidream commentedon Sep 18, 2026
Re-audited at
a2efbc19d6(the publisher is identical onmainand1.x.x). Seven of the nine criteria are satisfied by the merged #116/#117 work: strict immutability checks, inconclusive release lookup aborting, notes snapshot plus byte-exact body verification, deterministic resumed drafts, and end-state consistency, all with fake-ghtests. Two remain open and are now the whole scope of this issue:write_remote_asset_manifestdoes not check thegh apiexit status. When reached throughwait_for_subset_assets || diein the resume-draft path,set -eis suspended, so a failed asset listing yields an empty manifest that passes the subset comparison and the run continues as if the draft had no assets. The exact-mode and validate-only calls happen to fail closed, but not by an explicit check.Suggested fix: make
write_remote_asset_manifestfail explicitly (|| return/die) and havewait_for_asset_manifest_matchtreat a fetch failure as a retryable error that never reaches the comparison; add the two harness tests. Keeping this open with the narrowed scope; the deterministic-notes and immutability parts are done.release: fail closed when the release asset list cannot be read (#170)
kiwidream commentedon Sep 23, 2026
The two criteria left open by the 2026-09-18 re-audit are now met on
1.x.xby #170 (mergee58ea02871); the other seven were evidenced in that comment. Closing by hand because merges into a non-default branch do not fire closing keywords.write_remote_asset_manifestwrites to a temporary file and moves it into place only when the whole paginated request succeeds, removing any previous manifest on failure, and all four call sites (draft resume, pre-upload, draft exact, post-publication exact) plus validation-only mode go throughrequire_asset_manifest_match, which stops the run with an error naming the asset-list request before any create, upload, edit or publish.test_resume_aborts_when_asset_list_persistently_fails,test_resume_retries_transient_asset_list_failure,test_resume_does_not_compare_partial_paginated_asset_list,test_publish_final_verification_reports_persistent_asset_list_failure,test_validation_only_aborts_when_published_asset_list_fails,test_validation_only_aborts_when_draft_asset_list_fails(39 tests inci/release/test_publish_local_release.py, the three digest-retry tests unchanged).Note for the release owner: the publisher is identical on
main, so #170 must reachmainbefore the next release is published from there. All three gates were green on the merge commit. Closing.release: fail closed when the release asset list cannot be read (#170)