Skip to content

[KB-05] Prepare Agent Access 0.1.1 trusted release - #4

Merged
FlyOverCoderKY merged 2 commits into
mainfrom
claude/kb-05-first-release
Nov 7, 2026
Merged

FlyOverCoderKY merged 2 commits into
mainfrom
claude/kb-05-first-release

Conversation

@FlyOverCoderKY

Copy link
Copy Markdown
Contributor

Manual 0.1.0 bootstrap now exists, with exact registry bytes confirmed against the signed-tag artifact; it has no OIDC provenance and cannot serve as the first advertised trusted release. Prepare the separately reviewed 0.1.1 version, remove a stale version literal from dependency validation, and record the public bootstrap receipt while preserving historical source evidence and all host/client gates. Runtime OAuth/storage behavior and exact foundation pins are unchanged.

The bootstrap receipt binds signed v0.1.0 at d4db006 to prepare run https://github.com/pegma-dev/agent-access/actions/runs/42415787142, immutable artifact13591317099 and independently retained manifest SHA256885d5422930e2dd3435f0ebea02fb74238b946c962715b2b1d81954684a10312. Manual upload and post-publication full-byte preflight passed. Actual distribution tags require operator verification; no absence of latest or trusted publication is claimed. Both repos now have protected PR/CI paths, signed immutable tags, approved signers and protected publish environments; npm publisher/security settings and the actual 0.1.1 release remain separately verified operations.

Validation: frozen install, formatting, types,123 runtime tests,136 release regressions (133 passed,3 Windows symlink-permission skips; both Linux CI lanes must run all136), synthetic OAuth/device/official-SDK example and actual packed public type/API consumer checks passed locally. Independent adversarial review found no concrete issues;25 local links/anchors and control bytes verified. Require actual clean current-head OpenRouter ledger, explicit security receipt, CodeQL and complete Node22/24 CI before merge. No first trusted release or live host acceptance is claimed.

Copy link
Copy Markdown
Contributor Author

@codex security review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-07T22:06:48.733826Z 9fed93a Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

OpenRouter review posted (clean). #4 (review)

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 32fa858ea1

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: 32fa858ea1a555cae5b99470f29fcd0b96e8e2c4
Judge: openai/gpt-5.6-luna
Cost: $0.3787 (lanes $0.3753 + judge $0.0034)

Lanes

  • meta/muse-spark-1.2: ok (2 finding(s), 50.8s, 369553+6370 tokens (136516 cached), 6 tool round(s), via Meta, $0.34)
  • z-ai/glm-5.3-flash: ok (4 finding(s), 190.8s, 926542+19975 tokens (826176 cached), 24 tool round(s), via Wafer, $0.0365)

Findings

🔵 Issue 1 — Inconsistent version placeholders in RELEASING operator commands

docs/RELEASING.md:179 · nit · identified by meta/muse-spark-1.2

An operator copy-pasting from docs/RELEASING.md can publish/verify with the wrong tag: prepare/preflight examples now show concrete v0.1.1 but the publish and verify examples still show placeholder vX.Y.Z (around the protected OIDC job and registry verification sections).

Evidence: diff changed prepare --tag v0.1.0 to v0.1.1 and preflight --tag v0.1.0 to v0.1.1, but publish --prepared-dir ... --tag vX.Y.Z and verify --prepared-dir ... --tag vX.Y.Z were left generic. Historical precedent in docs/BOOTSTRAP.md explicitly retains v0.1.0 for the completed bootstrap procedure, so a mixed concrete/placeholder style is intentional in places, but within RELEASING.md the same release candidate is described and the placeholder invites a missing substitution.

Checked docs/RELEASING.md, docs/BOOTSTRAP.md, and .github/workflows/publish.yml — workflow correctly requires an exact stable tag and verifies it against the manifest, so the check would eventually fail, but only after a failed protected-environment attempt. No automated test validates documentation examples.

🟠 Issue 2 — Dependency validation now implicit via manifest version

scripts/release-packages.mjs:223 · risk · identified by meta/muse-spark-1.2

Future dependency-pin changes could land without an explicit diff line: validateRepository() now derives expected deps from manifest.version (releaseDependencies(PACKAGE.directory, manifest.version)) instead of the frozen RUNTIME_DEPENDENCIES = releaseDependencies(..., "0.1.0") constant.

Evidence: removed line const RUNTIME_DEPENDENCIES = releaseDependencies(PACKAGE.directory, "0.1.0") and changed assert.deepEqual(manifest.dependencies, RUNTIME_DEPENDENCIES) to assert.deepEqual(manifest.dependencies, releaseDependencies(PACKAGE.directory, manifest.version)). releaseDependencies() currently returns identical pins for any stable version (only validates semver and directory), so 0.1.1 still passes today. If a future release makes pins version-specific, a bumped package.json with altered dependencies would pass automatically without a second code change to review.

Checked scripts/release-contract.mjs (releaseDependencies ignores version except for validation), scripts/release-manifest.mjs, pnpm-lock.yaml importers, and tests/release/contract.test.mjs/fixtures.mjs which hardcode 0.1.0 fixtures — no test asserts that a version bump requires a separate pin-review step. Risk is low and the PR intent is to remove the stale literal, but explicit review surface is reduced.

🟠 Issue 3 — Bootstrap receipt asserts verifications it does not preserve evidence for (KB uploads, post-publication preflight)

docs/BOOTSTRAP.md:26 · risk · identified by z-ai/glm-5.3-flash

A future auditor following the canonical evidence chain (README → PROJECT_PLAN → BOOTSTRAP receipt) cannot re-verify two of the receipt's central claims from anything recorded in this repository.

Specifically:

  • docs/BOOTSTRAP.md:26 states "Strict post-publication preflight returned skip, confirming exact registry bytes match that prepared artifact," but the receipt records no run link, timestamp, command output, or retained result for that post-publication preflight — only the preparation run (42415787142), artifact ID (13591317099), and manifest digest. The Agent Access byte-match claim rests on prose alone.
  • docs/BOOTSTRAP.md:29-30 states all four Knowledge Base 0.1.0 uploads were accepted and "the full five-package set's exact registry bytes were confirmed" with no identifiers at all for the KB side — no runs, artifact IDs, or per-package digests, and no pointer to where the KB receipts live.

This matters because the repo's own standard (RELEASING.md "Preserve that result with the release identity and independent manifest digest"; BOOTSTRAP.md "Record manual publication receipts and bootstrap integrity") treats these receipts as the retained audit record, and README/PROJECT_PLAN/RELEASING/AGENTS all now cite this receipt as the canonical proof that the bootstrap completed with exact bytes. If the receipt's unsupported claims are later challenged (e.g., a disputed KB upload or a latest-tag incident), there is nothing in the repo to resolve them.

Falsification check: I grepped the repo for any other record of the KB bootstrap or the post-publication preflight (no .release/ directory is committed, no other doc references run IDs besides the ones in the table for source CI), so the gap is real; the PR body's claim that a "public bootstrap receipt" is recorded overstates what the receipt can substantiate for KB.

🔵 Issue 4 — Plan table's 'First advertised publication' row drops npm ownership, immutable tags, and environment approval from the gate list

docs/PROJECT_PLAN.md:47 · nit · identified by z-ai/glm-5.3-flash

The rewritten Evidence cell for the "First advertised publication" row (docs/PROJECT_PLAN.md:47) now lists only "fresh current-head gates/review, verified publisher settings, an approved signed tag and release, and strict exact-version registry/provenance verification." The previous cell explicitly enumerated npm ownership/organization publishing permission, immutable release-tag protection, and the approved npm-publish environment as separate required gates.

Concrete failure scenario: a maintainer gating the first advertised release from the plan table alone (the table is the document's stated canonical gate inventory) could skip verifying npm organization publishing permission, immutable v* tag protection, or environment approval — gates that docs/RELEASING.md still requires in its "Before trusted publication, verify these external maintainer settings" checklist and that AGENTS.md still names. The docs thereby drift on what the release requires.

Counterevidence checked: RELEASING.md's checklist and AGENTS.md retain the full list, so the requirements themselves are not lost — the defect is the inconsistency/staleness within the canonical plan table.

🔵 Issue 5 — RELEASING.md re-introduces hardcoded version literals ('v0.1.1') that the PR removes elsewhere

docs/RELEASING.md:95 · nit · identified by z-ai/glm-5.3-flash

docs/RELEASING.md:95 and docs/RELEASING.md:164 hardcode --tag v0.1.1 in the prepare and preflight examples, while the publish and verify examples on the same page deliberately use the stable vX.Y.Z placeholder. The stated purpose of this PR's script change is to remove a stale version literal so future bumps don't require synchronization; the same staleness hazard is now baked into these two command examples.

Concrete failure scenario: the next candidate bump (or a re-run of this procedure after a rejected 0.1.1) requires an editor to remember to update both literals; forgetting one leaves operator-facing instructions preparing/preflighting the wrong tag, which verifyReleaseIdentity will then reject at run time — a confusing late failure rather than a doc error caught by any check. Unlike the script literal, doc literals are not covered by any test or gate.

Checked counterevidence: no format check or test pins these doc commands (prettier uses default proseWrap: preserve, and no release test parses RELEASING.md), so nothing catches the drift.

🔵 Issue 6 — releaseDependencies ignores its version argument, making the de-staled call cosmetically equivalent

scripts/release-packages.mjs:225 · nit · identified by z-ai/glm-5.3-flash

The changed assertion in scripts/release-packages.mjs:225 (releaseDependencies(PACKAGE.directory, manifest.version)) is behaviorally identical to the removed RUNTIME_DEPENDENCIES literal: scripts/release-contract.mjs:17-33 validates that version is stable semver and then returns a hardcoded, frozen dependency map that never references the version. The "stale version literal" the PR body describes is therefore only removed cosmetically — the parameter remains a dead input that suggests (but does not provide) version-dependent pin derivation.

Concrete cost: a future editor reasoning from the signature could assume the passed version drives the returned pins (e.g., expecting self-version pinning for multi-package sets, as the KB repo's naming implies) and rely on behavior that does not exist; the function also still cannot distinguish a 0.1.0 manifest from a 0.1.1 manifest, so this assertion would pass unchanged even if the dependency contract ever needed to vary by release.

Falsification check: I read the full function; only directory and the semver format of version affect its output, and tests/release/contract.test.mjs:25-37 pins the map as version-independent. No correctness regression is introduced by this PR; this is a residual-dead-parameter observation.

Workflow run

fail(`${PACKAGE.name} has invalid public package metadata`);
}
assert.deepEqual(manifest.dependencies, RUNTIME_DEPENDENCIES);
assert.deepEqual(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟠 Dependency validation now implicit via manifest version (risk)

Future dependency-pin changes could land without an explicit diff line: validateRepository() now derives expected deps from manifest.version (releaseDependencies(PACKAGE.directory, manifest.version)) instead of the frozen RUNTIME_DEPENDENCIES = releaseDependencies(..., "0.1.0") constant.

Evidence: removed line const RUNTIME_DEPENDENCIES = releaseDependencies(PACKAGE.directory, "0.1.0") and changed assert.deepEqual(manifest.dependencies, RUNTIME_DEPENDENCIES) to assert.deepEqual(manifest.dependencies, releaseDependencies(PACKAGE.directory, manifest.version)). releaseDependencies() currently returns identical pins for any stable version (only validates semver and directory), so 0.1.1 still passes today. If a future release makes pins version-specific, a bumped package.json with altered dependencies would pass automatically without a second code change to review.

Checked scripts/release-contract.mjs (releaseDependencies ignores version except for validation), scripts/release-manifest.mjs, pnpm-lock.yaml importers, and tests/release/contract.test.mjs/fixtures.mjs which hardcode 0.1.0 fixtures — no test asserts that a version bump requires a separate pin-review step. Risk is low and the PR intent is to remove the stale literal, but explicit review surface is reduced.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No pin-review enforcement was removed. releaseDependencies still validates the stable version and returns the same frozen explicit foundation-pin map in release-contract.mjs; the manifest dependencies must deep-equal that map. Every actual dependency change remains an explicit package.json/lockfile diff, and changing releaseDependencies to return version-specific pins would itself be a reviewed source change. A manifest version bump alone cannot authorize altered pins. Strict preparation additionally binds the clean source commit, signed tag/version and artifact dependencies. Reading the already validated manifest version removes a stale unrelated literal; it does not derive arbitrary pins from package metadata or bypass review. No current incorrect acceptance case was identified. Leaving this hypothetical future-policy concern disputed and visible.

Comment thread docs/BOOTSTRAP.md Resolved
Comment thread docs/PROJECT_PLAN.md Resolved
Comment thread docs/RELEASING.md Resolved
assert.deepEqual(manifest.dependencies, RUNTIME_DEPENDENCIES);
assert.deepEqual(
manifest.dependencies,
releaseDependencies(PACKAGE.directory, manifest.version),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 releaseDependencies ignores its version argument, making the de-staled call cosmetically equivalent (nit)

The changed assertion in scripts/release-packages.mjs:225 (releaseDependencies(PACKAGE.directory, manifest.version)) is behaviorally identical to the removed RUNTIME_DEPENDENCIES literal: scripts/release-contract.mjs:17-33 validates that version is stable semver and then returns a hardcoded, frozen dependency map that never references the version. The "stale version literal" the PR body describes is therefore only removed cosmetically — the parameter remains a dead input that suggests (but does not provide) version-dependent pin derivation.

Concrete cost: a future editor reasoning from the signature could assume the passed version drives the returned pins (e.g., expecting self-version pinning for multi-package sets, as the KB repo's naming implies) and rely on behavior that does not exist; the function also still cannot distinguish a 0.1.0 manifest from a 0.1.1 manifest, so this assertion would pass unchanged even if the dependency contract ever needed to vary by release.

Falsification check: I read the full function; only directory and the semver format of version affect its output, and tests/release/contract.test.mjs:25-37 pins the map as version-independent. No correctness regression is introduced by this PR; this is a residual-dead-parameter observation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The version is not dead input: releaseDependencies rejects non-stable versions, and validateRepository validates manifest.version before calling it. Its version-independent foundation map is intentional because Agent Access has no internally versioned package dependencies. The current helper contract and its pin tests are preserved; this patch removes the stale caller literal and makes no claim that dependency pins vary by version. Refactoring the existing helper signature is unnecessary for this release candidate. Leaving this non-regression observation visible.

Copy link
Copy Markdown
Contributor Author

Fixup 9fed93a also addresses summary-only r1-1 with consistent current command placeholders and an explicit same-tag/same-commit substitution instruction. Bootstrap results are preserved as dated manual operator observations with both producers' immutable artifact identities and complete skip outputs. Actual dependency pins and source/helper behavior are unchanged. The hypothetical future pin-policy and existing helper-contract observations remain visible with technical rebuttals. Independent targeted documentation review and formatting passed; new-head CI/security and code-review verdict remain required.

Copy link
Copy Markdown
Contributor Author

@codex security review

@github-actions github-actions 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.

OpenRouter pull-request review

Verdict: clean
Scope: latest-commit (commit-range)
Mode: verify
Commit: 9fed93a7c6dc4cb32740ceda8325188ed715af23
Judge: openai/gpt-5.6-luna
Cost: $0.1464 (lanes $0.1463 + judge $0.0001)

Lanes

  • meta/muse-spark-1.2: ok (0 finding(s), 17.3s, 111691+2522 tokens (30434 cached), 4 tool round(s), via Meta, $0.12)
  • z-ai/glm-5.3-flash: ok (0 finding(s), 80.2s, 508077+14033 tokens (371584 cached), 20 tool round(s), via CoreWeave, $0.0294)

Round 2 resolution

  • 🤝 r1-2 disputed — Dependency validation now implicit via manifest version: Current code confirms disputed: scripts/release-contract.mjs:17-27 releaseDependencies validates stable semver and returns frozen explicit map with no version branching; scripts/release-packages.mjs:223 validateRepository deep-equals that map, so manifest.version does not select pins. Future version-specific branching would itself be a reviewed source diff and package/lockfile change; no…
  • ✅ r1-3 fixed correctly — Bootstrap receipt asserts verifications it does not preserve evidence for (KB uploads, post-publication preflight): Fixed in 9fed93a: docs/BOOTSTRAP.md:20-73 now preserves both producers' preparation run IDs, artifact IDs, independent manifest SHA-256s, timestamped 2026-11-07T21:56:24Z manual postflight commands and full skip outputs, explicitly marking them operator observations not CI, and docs/RELEASING.md:10 and docs/PROJECT_PLAN.md:46 updated accordingly.
  • 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).

Workflow run

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 9fed93a7c6

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Copy link
Copy Markdown
Contributor Author

Merge gate for 9fed93a: OpenRouter round2 review5815211004 is clean with both lanes successful and a matching current-head ledger containing zero OPEN findings. Explicit security receipt6713640120 reports no issues on this head. Fresh CI42418732894 actually ran Node22/24, each with123 runtime+136 release tests, zero failures/skips, formatting/types/example and packed public API/types consumer; CodeQL passed. Independent source and targeted receipt/checklist verification passed. Fixed threads are resolved, and the rejected future-policy/helper-contract observations remain visible with technical rebuttals.

Correct Copilot requests were accepted at21:49:38UTC and again after the fixup. After approximately30minutes there is still no actual Copilot review or work-start. Applying the documented bounded-wait fallback using the reviews that completed; absence is not counted as a passing review and no required CI or actual code/security gate was bypassed. Tags/publication remain subject to the separate signed identity, prepared-artifact and registry/provenance gates.

@FlyOverCoderKY
FlyOverCoderKY merged commit ffe4d86 into main Nov 7, 2026
5 checks passed
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.

1 participant