Skip to content

fix(release): pin reviewed source publisher - #45

Merged
vincentkoc merged 1 commit into
mainfrom
fix/pin-source-release-workflow
Nov 9, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/pin-source-release-workflow

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Pin the shared source-release workflow to reviewed commit a3c83188f344414c993f6a5e4b43f16317ffc6f0 and update its guide reference and Unreleased note. This adopts guarded continuation of matching release drafts and read-only verification of matching published releases. Unexpected or mismatched assets still refuse publication or overwrite.

The caller is byte-identical after normalizing the workflow reference. Signed-tag requirements, strict independent push checks, source archives, test commands, permissions, versions, package-manager pin, lockfile, and deployment workflow are preserved. Both packages remain private; this change does not request a release or registry publication.

Validation

  • Strict duplicate-key/alias-rejecting YAML parsing passed for all five caller workflows and the complete old/new upstream source workflows.
  • All 15 legacy input contracts, secret/output contracts, and caller settings match. require-current-signer retains its false default.
  • Release-command shell syntax, exact three-file scope, preserved prior changelog/guide text, unchanged profiles, whitespace, and added-line privacy checks passed.
  • Existing upstream proof is reused only after matching the exact production source-workflow and loader blobs: 29 source publisher cases passed, including matching drafts, exact published replay, byte mismatches, ambiguous releases, and pagination/API failures. The separate 29 npm cases are not counted as source coverage. No live release was executed.
  • Local project builds/tests were not run: this managed checkout has no qualified dependencies. Normal PR CI passed the Node 22, 24, and 26 build/test jobs, and both CodeQL analyses passed on this candidate. The owner approval recorded below covers the merge-triggered production deployment.
  • Complete-context P0–P3 review is scoped-clean, covering all changed files, unchanged caller/deployment context, the full pinned source workflow, its complete upstream delta, and the workflow loader. This review does not authorize merge or deployment.

Deployment approval

On 2026-11-09, the owner explicitly approved the normal squash merge and its automatic production effects: applying remote D1 migrations and deploying the relay Worker through the existing main-push workflow. This approval covers the actual migration and deployment commands; it does not assume the current remote database has no pending migrations. The deployment workflow remains unchanged.

No manual workflow dispatch, retry, tag, release, or registry publication is authorized by this landing. Package releases remain owner-controlled.

Optional proof follow-up: defer a successful real-GitHub partial-draft completion trace to package-owner-authorized release validation. The existing 29 SOURCE production-body regression cases cover that path; producing an additional live trace would modify release assets or invoke a release workflow outside this landing. No live release is performed or claimed here.

@vincentkoc vincentkoc self-assigned this Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown

Codex review: blocked before merge.

What this changes

This PR pins Reef’s shared source-release workflow to a reviewed commit and updates the release guide and changelog.

Example: Retry v1.2.3 when draft release ID 71 already contains ASSET-INVENTORY.json.

  • Before: The published-only lookup misses the draft and attempts to create another release.
  • After: The publisher finds draft 71, checks existing bytes, uploads missing assets, and publishes the same release.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, useful, and source-reviewed with green exact-head checks; transport evidence is relevant but does not demonstrate successful authorized partial-draft recovery.
Proof confidence 🦐 gold shrimp (3/6) Maintainer authorship exempts this PR from the ordinary contributor-proof gate. The matching upstream publisher has a public redacted real-GitHub trace for approved publication and revoked retries, plus 29 source-publisher regression cases; successful authorized partial-draft completion remains harness-covered, and no Reef release was executed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Retrying a partially completed source release can miss its existing draft and attempt another release.
Reason: The maintainer-authored change adopts an upstream repair to the existing retry contract and freezes the reviewed implementation.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this maintainer-authored PR adopts a useful upstream release repair, with no introduced defect found; its explicit production deployment approval hold remains active.

Priority: P2
Reviewed head: d800e77eb7210e4075a18128837a4e819c6e3243

Before merge

  • Await maintainer action - The owner must explicitly approve the merge-triggered remote D1 migrations and relay deployment before lifting the PR’s deployment hold.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied live matrix does not show successful authorized completion of an already-partial draft; that scenario is covered by the upstream complete-publisher harness.
Agent review details

How this fits together

Reef’s release caller supplies signed-tag requirements, frozen-source checks, and build commands to a shared GitHub Actions workflow that verifies archives and publishes GitHub release assets.

flowchart TD
A[Signed tag or manual dispatch] --> B[Reef release caller]
B --> C[Pinned shared workflow]
C --> D[Frozen source and independent CI]
D --> E[Build and verify payload]
E --> F[Discover matching release]
F --> G[Resume draft or verify published bytes]
Loading

Technical review

Best possible solution:

Land the focused pin after the owner explicitly approves the existing merge-triggered production effects.

Do we have a high-confidence way to reproduce the issue?

The workflow currently referenced by main uses the published-only getReleaseByTag endpoint before its draft-resume branch, so an existing draft reaches the create path; no target code was executed during this review.

Is this the best way to solve the issue?

Pinning the repaired shared publisher uses the existing publication owner and preserves Reef’s caller contract without introducing another release path.

AGENTS.md: not found in the target repository.

Codex review notes: model internal, reasoning medium; reviewed against 0fd9ba4ad01e.

Provenance checked

  • Shared source-release workflow reference keeps the original intent (8f8714e: ci: automate reef source releases independently of deploys #37 established independently verified source releases through the shared workflow.)
  • Release guide reference keeps the original intent (8f8714e: The guide identifies the workflow implementing Reef’s automated release contract; its link now follows the exact caller pin.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Focused introduced change: The pinned introduction changes only the workflow reference, its guide link, and an Unreleased bullet; caller permissions, signed-tag requirements, strict push checks, and commands remain unchanged. (.github/workflows/release.yml:30, d800e77eb721)
  • Original release contract and ownership: ci: automate reef source releases independently of deploys #37 established the shared source-only release owner, signed tags, independent CI, archive verification, and separation from deployment; the pin preserves that contract. (.github/workflows/release.yml:30, 8f8714ed9290)
  • Executed dependency and complete behavioral delta: Reef directly executes this reusable workflow. Relative to v1, the source workflow adds an opt-in current-signer check, retains its false default, discovers drafts through strict paginated listings, rejects ambiguity and listing failures, preserves byte comparisons, and retains read-only published replay. (.github/workflows/release-source.yml:1182, a3c83188f344)
  • Matching upstream proof and its limits: fix(release): resume existing drafts before publication release-workflows#95 supplies source-publisher regression coverage and a redacted real-GitHub transport trace for approved publication and revoked partial-draft retries. Its reviewed source-workflow blob matches the pin at 5f6fbf5536f86fab5824dbdf75b8753f4d918208; loader blobs also match at fc65de42eee6bc594a6188e5bf7cc7fa32927b6a. Successful authorized partial-draft completion is covered by mocked transport cases rather than the live matrix. (scripts/test-release-resume.mjs:19, a3c83188f344)
  • Explicit deployment hold: The full PR body requires owner approval of production effects before merge. The unchanged main-push deployment applies remote D1 migrations and deploys the relay without an environment approval gate; no approving review was present. (.github/workflows/deploy-relay.yml:30, d800e77eb721)
  • Exact-head validation: All ten reported checks succeeded on the reviewed head, including the three supported Node build/test lanes and both CodeQL analyses; these checks do not exercise release publication. (.github/workflows/ci.yml:16, d800e77eb721)

Likely related people:

  • Josh Avant: Raw commit 23856a9 adds .github/workflows/release.yml:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 23856a9d505b; files: .github/workflows/release.yml)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs source-release retries after partial publication, with limited scope and no demonstrated urgent regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Label justifications:

  • P2: Repairs source-release retries after partial publication, with limited scope and no demonstrated urgent regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 8, 2026, 4:12 AM ET / 09:12 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review November 9, 2026 11:58
@vincentkoc
vincentkoc merged commit f95ea8f into main Nov 9, 2026
13 of 14 checks passed
@vincentkoc
vincentkoc deleted the fix/pin-source-release-workflow branch November 9, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

1 participant