Repository navigation
Prepare agent-access 0.2.0 release source - #6
Conversation
|
OpenRouter review posted ( |
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. |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: 0360c9b0acce9e065f9700aed0946ab7d41c48e0
Judge: openai/gpt-5.6-luna (repaired(canonical+1): source coverage preserved before publication cap)
Cost: $0.3170 (lanes $0.3144 + judge $0.0027)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 43.7s, 212961+1722 tokens (150248 cached), 5 tool round(s), via Azure, $0.21)z-ai/glm-5.3-flash: ok (5 finding(s), 346.9s, 2387667+39143 tokens (2276608 cached), 35 tool round(s), via InferenceNet, $0.11)
Findings
🟠 Issue 1 — New 0.1.1 published-as-latest assertion has no retained release record in the repository
docs/RELEASING.md:6 · risk · identified by z-ai/glm-5.3-flash
If the claim that @pegma/agent-access@0.1.1 is already npm latest with tag v0.1.1 is inaccurate (for example, it was published without the trusted flow, or latest actually points elsewhere), then every 0.2.0 instruction this PR builds on it misdirects the maintainer: "do not reuse that version or tag" (RELEASING.md), "Knowledge Base advertisement waits for verified Agent Access 0.2.0" (README/BOOTSTRAP/PROJECT_PLAN), and the plan to tag v0.2.0. An operator following this repo cannot check the claim anywhere in it.
This repository's own doctrine requires retaining that evidence: RELEASING.md says "Preserve the artifact, independent digest, source identity, workflow run, and verification results in the release record", and the 0.1.0 bootstrap got a full receipt (artifact IDs, independent manifest digests, run links, timestamps) in docs/BOOTSTRAP.md. This PR introduces the 0.1.1 claim in five places but adds no receipt, no workflow-run link, no digest, and docs/PROJECT_PLAN.md's gate table has no completed row for 0.1.1's trusted release (it jumps from "First-publication bootstrap" to the pending "Next trusted publication" for 0.2.0).
Evidence and proof gap: I grepped the whole checkout for 0.1.1 — the only hits are the five new doc sentences, CHANGELOG's baseline entry, and an unrelated @pegma/spine@0.1.1 lockfile entry — and read docs/BOOTSTRAP.md, docs/PROJECT_PLAN.md, and docs/RELEASING.md in full; no 0.1.1 publication or verification record exists in-repo. If the receipt lives in a private maintainer system, at least a pointer comparable to the bootstrap receipt's role should be added; otherwise the release narrative now rests on an unverifiable external state.
🔵 Issue 2 — Shipped 0.2.0 changelog entry stays "Unreleased"; no release step ever flips it
CHANGELOG.md:3 · nit · identified by z-ai/glm-5.3-flash
When the maintainer tags v0.2.0 and publishes (exactly the flow this PR prepares), CHANGELOG.md at that tag will still read "## 0.2.0 - Unreleased", so the shipped release is permanently mislabeled in the tagged source that npm consumers and future audits read.
Nothing in the release procedure updates it: the strict prepare/publish/verify sections of docs/RELEASING.md never mention the changelog, and the release scripts (scripts/release-packages.mjs, scripts/release-manifest.mjs, scripts/release-registry.mjs) do not read it at all, so no gate reminds or enforces the flip.
Either date the 0.2.0 entry in this PR or add an explicit changelog step to the release procedure. I checked all release scripts and both release docs for changelog handling — none exists.
🔵 Issue 3 — Changelog and package README state a listGrants input shape that omits the documented statuses option
CHANGELOG.md:5 · nit · identified by z-ai/glm-5.3-flash
A host building a status-filtered connected-agents page from the changelog or package README alone will not learn that filtering exists, because both texts explicitly write the parameter object and both omit a shipped option.
CHANGELOG.mdbullet:listGrants(browserContext, { ownerPrincipal, cursor, limit }).packages/agent-access/README.mdrepeats the same{ ownerPrincipal, cursor, limit }shape.
The shipped API also accepts statuses (packages/agent-access/src/types.ts:193-201, enforced by onlyKeys(request, [... "statuses"]) in service.ts), and the canonical reference documents it: docs/API.md's operation table lists { ownerPrincipal, cursor?, limit?, statuses? } and the Owner grant listing section explains the statuses filter including the denied rejection rule.
Because the two summaries state a concrete input shape rather than gesturing at the API, the omission is a factual gap, not just brevity; add statuses? to both shapes or point at docs/API.md for the full input.
🔵 Issue 4 — Packed package README hardcodes pnpm add @pegma/agent-access@0.2.0 and "candidate" wording
packages/agent-access/README.md:5 · nit · identified by z-ai/glm-5.3-flash
This README is packed into every tarball (scripts/release-manifest.mjs requires README.md in each manifest inventory), so npm's package page will permanently display "Install the 0.2.0 candidate after its release has been verified" together with the pinned pnpm add @pegma/agent-access@0.2.0 command.
Once a later release (0.3.0+) ships, the npm page for that version will actively recommend installing 0.2.0 until someone remembers to edit the README, and no release check keeps README version text in sync with package.json — validateRepository in scripts/release-packages.mjs only requires a non-empty package-local README, and validateInventory only checks presence.
Prefer an unpinned form (@pegma/agent-access@latest) or drop the version from the packed README; as written, the published artifact bakes in a version-specific instruction with no consistency gate. Checked scripts/release-packages.mjs and scripts/release-manifest.mjs for any README/version validation — none exists.
🔵 Issue 5 — docs/API.md still opens with "The source package is not yet published"
docs/API.md:3 · nit · identified by z-ai/glm-5.3-flash
A reader of docs/API.md at the 0.2.0 tag sees "The source package is not yet published", while this PR establishes everywhere else that the package is on npm: README.md, AGENTS.md, docs/BOOTSTRAP.md, docs/RELEASING.md, and docs/PROJECT_PLAN.md all now state that 0.1.1 is already published as npm latest (and 0.2.0 will be once the prepared release lands).
The contradiction has a concrete cost: an operator who believes the package is unpublished may reach for the exact anti-pattern the docs forbid — substituting a source checkout or copied source for the registry package (AGENTS.md: "Unpublished source is never a production dependency substitute"). This PR's stated purpose is aligning candidate documentation with the 0.2.0 release state, and the API guide that both README and ARCHITECTURE link was left with the stale claim.
If the sentence is meant to say "this 0.2.0 source is not yet published", it should say so explicitly (and will still be false at the release tag); repo-wide grep for "not yet published" finds only this line, so nothing else carries the stale framing.
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: partial
Scope: latest-commit (commit-range)
Mode: verify
Commit: 712998d409957d3632e481c572381a8321b74a6f
Judge: openai/gpt-5.6-luna
Cost: $0.0722 (lanes $0.0721 + judge $0.0001)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 18.9s, 51725+701 tokens (35140 cached), 3 tool round(s), via Azure, $0.0572)z-ai/glm-5.3-flash: ok (0 finding(s), 151.6s, 200908+10701 tokens (171264 cached), 9 tool round(s), via Modal, $0.0149)
Round 2 resolution
- ✅
r1-1fixed correctly — New0.1.1published-as-latestassertion has no retained release record in the repository:docs/BOOTSTRAP.mdnow retains a dated observation of the0.1.1publication and distribution tags, links the GitHub release and Publish run, and supplies read-only commands for checking release metadata and job results.docs/RELEASING.mdlinks directly to that record.
The record explicitly distinguishes public metadata observations from an artifact-bound publication receipt, acknowledges the…
- 4 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is
risk). - Open findings after this round: 0 (0 bug-severity).
Warning
The PR head advanced after this review's diff was collected. This review is pinned to commit 712998d and does not cover the newest push.
No structured findings from the successful lane(s).
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: clean
Scope: latest-commit (commit-range)
Mode: verify
Commit: d991045e2a2d6753dc3e88a6f6df58be23a5fd39
Judge: openai/gpt-5.6-luna
Cost: $0.0669 (lanes $0.0668 + judge $0.0001)
Lanes
openai/gpt-6.1-sol: ok (0 finding(s), 23.4s, 49849+886 tokens (33991 cached), 3 tool round(s), via Azure, $0.0571)z-ai/glm-5.3-flash: ok (0 finding(s), 154.8s, 127691+13870 tokens (72856 cached), 8 tool round(s), via Relace, $0.0097)
Round 2 resolution
- ✅
r1-1fixed correctly — New0.1.1published-as-latestassertion has no retained release record in the repository:docs/BOOTSTRAP.mdnow retains dated observations, thev0.1.1GitHub release URL, the specific publication workflow run, and read-only commands for checking the release, jobs, registry version, and mutable distribution tags.docs/RELEASING.mdlinks directly to this evidence. The documentation explicitly distinguishes these metadata observations from an artifact-bound publication receipt and s… - 4 nit finding(s) from earlier rounds retired (severity floor for follow-up rounds is
risk). - Open findings after this round: 0 (0 bug-severity).
No structured findings from the successful lane(s).
Release source
Prepare
@pegma/agent-access@0.2.0for the additive owner-scopedlistGrantsAPI, package-maintained owner-index collection andbackfillGrantIndex, and opt-in multipart bearer transport already merged in #5. Runtime dependency pins and the packed-file allowlist remain unchanged. The frozen lockfile is already in sync because the workspace dependency is a link.Add a root changelog and host upgrade instructions: provision the owner-index collection where required, run bounded backfill once to completion for existing grants, and keep multipart disabled unless explicitly enabled (1 MiB default, 16 MiB ceiling). Align candidate documentation and release regression fixtures with 0.2.0 while retaining historical publication receipts. Wrong-version fixtures use 0.3.0 to preserve mismatch coverage.
Validation
Local Windows Node 24.18.0,
CI=1:pnpm install --frozen-lockfilepnpm run format:checkpnpm run checkpnpm test: 153 runtime passes; 133 release regression passes, zero failures, three Windows symlink skipspnpm run release:checkpnpm run exampleRead-only code/security review completed clean after correcting negative fixture identity collisions. Edited source has zero forbidden literal control bytes. Node 22 and 24 full gates and current-head OpenRouter review must pass in CI before maintainer handoff.
Maintainer steps after merge
Follow release operations, including its external ownership, protected branch/tag, approved SSH signer, trusted-publisher and environment requirements:
origin/mainand identify the exact merged commit. Create the approved SSH-signed annotated tagv0.2.0on that merge commit inorigin/main; verify its signature and exact target, then push the tag under the protected tag policy.gh release create v0.2.0 --verify-tag.npm-publishenvironment. Preserve the independent digest and immutable artifact ID.verifyjob passes exact registry bytes, signatures, source-bound provenance, and clean exact-version consumer checks before advertising the release.npm dist-tag ls @pegma/agent-access); confirmlatestpoints to the intended version and investigate unexpected defaults.This PR performs source preparation only. Tag creation, GitHub release creation, publishing, and merge remain maintainer actions.