Repository navigation
[PG-01] Fix approved signer trust for 0.3.1 packaging - #10
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
OpenRouter review posted ( |
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: dbc236dfd54f64ccd7d629352d4c6728eac80823
Judge: openai/gpt-5.6-luna
Cost: $0.1521 (lanes $0.1500 + judge $0.0022)
Lanes
openai/gpt-6.1-sol: ok (2 finding(s), 27.1s, 113256+1412 tokens (82112 cached), 4 tool round(s), via Azure, $0.11)z-ai/glm-5.3-flash: ok (2 finding(s), 154.7s, 603196+24980 tokens (415168 cached), 15 tool round(s), via CoreWeave, $0.0398)
Findings
🟠 Issue 1 — Missing regression coverage for packaging-checkout signer trust
.github/workflows/publish.yml:77 · risk · identified by openai/gpt-6.1-sol
Removing the new checkout-local configuration, moving it before checkout, or pointing it at the wrong allowed-signers file would pass the current PR gates and fail again only when a signed release reaches preparation—the same late failure this patch repairs.
test/release-package.test.ts checks authentication in the two bare repositories but never checks the packaging checkout's signing configuration. The CI workflow runs release:check, not signed release preparation, so it does not exercise validateReleaseTag() with --require-release-tag. Add a retained regression that demonstrates failure without checkout trust and success with the approved trust, ideally also rejection of an unapproved signer.
I checked the complete release test file, searched test/ and packages/ for signer configuration and signed-tag tests, and followed prepareRelease() through validateRepository() to validateReleaseTag() in scripts/release-package.mjs. No tracked regression covers this boundary; any separately retained local regression is not available to the repository gates.
🔵 Issue 2 — Release-history link escapes the published package
packages/rate-limit/README.md:28 · nit · identified by openai/gpt-6.1-sol
A consumer reading the installed package README cannot follow the new release-history link: ../../docs/RELEASING.md points outside the package, where the referenced document is not shipped.
The manifest allowlists only dist files, and the release inventory permits only those files plus package.json, README.md, and LICENSE. Use an absolute GitHub URL for this release-operations reference so it remains useful outside the repository checkout.
I checked packages/rate-limit/package.json and verifyPackedFiles() in scripts/release-package.mjs. The relative link works in the source repository, but the packed artifact contains no docs/RELEASING.md.
🟠 Issue 3 — No automated pin or existence guard for the packing-checkout signing trust, so the 0.3.0 failure can silently resurface at release time
.github/workflows/publish.yml:77 · risk · identified by z-ai/glm-5.3-flash
The next release fails in the prepare job exactly like 0.3.0 did if a future edit reorders, removes, or breaks the new trust step, and every local and CI gate stays green when that happens.
test/release-package.test.ts is this repository's mechanism for pinning publish.yml invariants (it asserts git init --bare ×2, verify-tag ×2, merge-base --is-ancestor ×2, checkout placement, artifact sealing), but it contains no assertion that the packing checkout configures gpg.format ssh / gpg.ssh.allowedSignersFile before release:pack runs. pnpm run release:check (validateRepository without requireReleaseTag) never verifies a tag, so a workflow regression is invisible until a real v0.3.x GitHub release triggers the workflow and validateReleaseTag in scripts/release-package.mjs fails again — another burned release identity.
Two specific drift triggers inside the added step:
- The step references the signers file as a re-typed literal (
${RUNNER_TEMP}/release-allowed-signers), duplicating the path that step 1 (allowed_signers=...) and the publish job's re-authentication step each define independently; renaming the file in step 1 leaves this step pointing at a nonexistent path. - The run block has no
test -f "${RUNNER_TEMP}/release-allowed-signers"guard before writing the config, so a broken path surfaces only as the downstreamverify-tagfailure rather than at the misconfigured step.
Checked: the only test files are test/release-package.test.ts and test/azurite.ts, and no src test touches the workflow, so nothing currently pins the fix. Proof gap: the PR body says the isolated signed-pack negative/positive regression is "being retained separately", which may be a deliberate deferral — but given AGENTS.md's principle of mechanizing correctness for the exact failure class that already cost a release cycle, an assertion in the existing "publish workflow boundaries" test (trust step precedes the gate/pack in prepare) plus a test -f guard would close it cheaply.
🔵 Issue 4 — Published package README gains a repo-relative link that cannot resolve in the npm artifact
packages/rate-limit/README.md:28 · nit · identified by z-ai/glm-5.3-flash
After 0.3.1 is published, a reader of @pegma/rate-limit on npmjs.com clicks the new "release operations" link and gets a broken/404 target.
The tarball ships only dist/** plus the implicit package.json/README.md/LICENSE (the files allowlist in packages/rate-limit/package.json, enforced by verifyPackedFiles in scripts/release-package.mjs), so ../../docs/RELEASING.md does not exist in the published artifact; even where a renderer rewrites relative links against the repository root, ../../ escapes the repo and 404s. The root README.md's equivalent link (docs/RELEASING.md#...) is not shipped to npm, so it is unaffected.
Checked: a grep for \]\((?:\.\./|\.\./\.\./) in packages/rate-limit/README.md returns only this one relative link, so the pattern is newly introduced by this diff. Proof gap: I cannot render npm's README pipeline from this checkout, so the exact 404 shape on npmjs.com is inferred from the files allowlist rather than observed.
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: issues
Scope: latest-commit (commit-range)
Mode: verify
Commit: 6fd45fc573c1d17cd0e69b65c8faf310a973cd78
Judge: openai/gpt-5.6-luna
Cost: $0.1031 (lanes $0.1030 + judge $0.0001)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 29.0s, 64623+1354 tokens (45136 cached), 3 tool round(s), via Azure, $0.0734)z-ai/glm-5.3-flash: ok (0 finding(s), 152.2s, 374732+29567 tokens (274496 cached), 11 tool round(s), via CoreWeave, $0.0295)
Round 2 resolution
⚠️ r1-1fixed incorrectly — Missing regression coverage for packaging-checkout signer trust: The new regression exercises a real SSH-signed tag: verification fails without checkout trust, succeeds afterconfigureReleaseSigning(), and rejects an unapproved key.pnpm testnow runs this coverage in CI.
However, it tests the helper independently, not the workflow wiring or signed release preparation. Removing the helper invocation from publish.yml, moving it before checkout, or changin…
⚠️ r1-3fixed incorrectly — No automated pin or existence guard for the packing-checkout signing trust, so the 0.3.0 failure can silently resurface at release time: The helper now validates that its allowed-signers argument names a nonempty regular file and verifies the actual release tag after writing checkout-local signing configuration. Its retained tests cover successful configuration and several failure cases.
The automated workflow pin is still missing. Neither test/release-package.test.ts nor the new helper tests assert that publish.yml invokes `s…
- 2 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is
risk). - Open findings after this round: 2 (0 bug-severity).
No structured findings from the successful lane(s).
|
@codex review |
|
@codex security review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
🛡️ Codex Security ReviewSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: clean
Scope: latest-commit (commit-range)
Mode: verify
Commit: a76b107f462e501f6c6f1ac570c42d46aebeb537
Judge: openai/gpt-5.6-luna
Cost: $0.0780 (lanes $0.0779 + judge $0.0001) + at least $0.0472 (incomplete)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 20.3s, 92818+760 tokens (70336 cached), 4 tool round(s), via Azure, $0.0779)z-ai/glm-5.3-flash: ok (0 finding(s), 773.1s, 858840+72269 tokens (754157 cached), 19 tool round(s), 1 retried request(s), salvaged finish, via OpenInference, at least $0.0472 (incomplete))
Round 3 resolution
- ✅
r1-1fixed correctly — Missing regression coverage for packaging-checkout signer trust: The retained workflow regression reads the actualpublish.yml, creates a fresh signed-tag checkout, invokes the signing CLI from the YAML, and exercisesgit verify-tag --rawwith the same arguments used byvalidateReleaseTag(). Negative cases demonstrate failure when the trust step is removed, moved before checkout, or given a missing allowed-signers path.package.jsonincludes these tests… - ✅
r1-3fixed correctly — No automated pin or existence guard for the packing-checkout signing trust, so the 0.3.0 failure can silently resurface at release time: The new replay pins the authenticator's public-file producer, consumes the actual signing-step invocation in workflow order, and checks checkout-localgpg.formatandgpg.ssh.allowedSignersFileat the pack stage. Its negative tests cover removal, incorrect ordering, and an incorrect file path. The regression is wired into the existing automated test gate. - Open findings after this round: 0 (0 bug-severity).
No structured findings from the successful lane(s).
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: clean
Scope: full-pr (full-pr)
Mode: verify
Commit: a76b107f462e501f6c6f1ac570c42d46aebeb537
Judge: openai/gpt-5.6-luna
Cost: $0.2047 (lanes $0.2045 + judge $0.0001)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 26.5s, 143844+1216 tokens (102644 cached), 4 tool round(s), via Azure, $0.14)z-ai/glm-5.3-flash: ok (0 finding(s), 335.5s, 1289053+37908 tokens (1134080 cached), 22 tool round(s), via InferenceNet, $0.0666)
Round 4 resolution
- No prior findings were open.
- Open findings after this round: 0 (0 bug-severity).
No structured findings from the successful lane(s).
|
Merge gate for a76b107:
This merges source only. The failed signed 0.3.0 tag/release remains immutable. The separate 0.3.1 signed-tag/OIDC release and exact registry/provenance/consumer verification must complete before host adoption. |
The 0.3.0 release authenticated its signed tag in a temporary Git repository, then failed before packing because the separate packaging checkout had no approved SSH signer configuration. Configure that checkout with the same approved allowed-signers file before its independent tag check.
Keep the failed 0.3.0 tag and release immutable, record the failed preparation, and select a new unpublished 0.3.1 identity. A narrow signing helper applies the approved public trust to the packaging checkout and independently verifies the tag. Limiter admission, paged cleanup, runtime dependencies, publisher permissions and signature gates are unchanged. Hosts must wait for verified registry publication.
Validation: formatting, types, release metadata, all 138 Memory/Azurite tests across four files, and 17 real-Git signing/workflow tests passed locally. The workflow tests parse the actual YAML, replay its signing invocation in a fresh checkout, and prove removal, ordering and path regressions fail. YAML is an exactly pinned development dependency. An isolated regression also reproduced the original signed 0.3.0 packing failure without trust, then packed the same immutable source successfully with trust. Clean packed-artifact consumer, current-head Node 22/24 CI, complete full-PR review and code/security review remain merge gates.