Skip to content

Harden release publication transactions - #57

Merged
vriesd merged 1 commit into
mainfrom
codex/assurance-hardening-phase-9
Aug 28, 2026
Merged

Harden release publication transactions#57
vriesd merged 1 commit into
mainfrom
codex/assurance-hardening-phase-9

Conversation

@vriesd

@vriesd vriesd commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • require exact local, event, remote-tag, and current-main identity before irreversible npm publication
  • stage an exact GitHub draft as a durable recovery marker, then finalize under a fresh remote-tag proof
  • replace stderr-based npm and destructive asset retries with bounded postcondition reconciliation
  • bound release jobs, network commands, and release monitoring; use the latest workflow rerun

Verification

  • bun run check (619 pass, 1 intentional skip)
  • bun run replay (13/13)
  • pinned OpenCode 1.18.6 live smoke (14 pass)
  • actionlint .github/workflows/release.yml
  • 35 focused release publication, monitor, and workflow contract tests
  • three independent adversarial reviewers green
  • Flow commit and push preflights pass

Recovery contract

The exact draft is created only under the full current-main proof and remains invisible. If npm succeeds and main advances before GitHub finalization, a rerun reuses that exact draft, observes exact npm integrity, rechecks that the remote tag has not moved, and publishes only after every asset digest is exact. Conflicting metadata, assets, package integrity, prerelease state, and unknown remote state fail closed.

@vriesd
vriesd merged commit c00461a into main Aug 28, 2026
6 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d6b404655

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +208 to 211
const failed = [...byWorkflow.values()].filter(
(run) =>
run.status === "completed" && FAILURE_CONCLUSIONS.has(run.conclusion),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep separate workflow runs from masking failures

When a failed push-triggered CI run is followed by a newer workflow_dispatch run for the same commit and workflow name, latestByWorkflow selects the manual run and this filter drops the failed push run, so the monitor reports the release green. I reproduced this with distinct databaseId values and push/workflow_dispatch events. gh run list --help documents --event as filtering runs by the triggering event; use that field or the requested databaseId/attempt fields to distinguish an actual rerun from a separate run.

Useful? React with 👍 / 👎.

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.

2 participants