Repository navigation
[Docs] Record merged KB transport and release preparation - #7
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 ( |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: issues
Scope: full-pr (full-pr)
Mode: initial
Commit: e86ff73e0fe09421f18077df8e62738c5040ea6e
Judge: openai/gpt-5.6-luna
Cost: $0.1991 (lanes $0.1956 + judge $0.0034)
Lanes
meta/muse-spark-1.2: ok (0 finding(s), 69.1s, 197958+3664 tokens (109508 cached), 6 tool round(s), via Meta, $0.14)z-ai/glm-5.3-flash: ok (6 finding(s), 557.2s, 1224074+70876 tokens (1087403 cached), 26 tool round(s), via OpenInference, $0.0531)
Warning
z-ai/glm-5.3-flash: coverage claims 1 finding(s) in 'AGENTS.md' but 0 were reported
Findings
🔵 Issue 1 — Stale 'later application services' source comment contradicts the PR's new ownership wording
packages/contracts/src/index.ts:194 · nit · identified by z-ai/glm-5.3-flash
A reader of the source code still sees Durable immutable revision history is owned by later application services. in the Article interface comment, which says revision history is a future application deliverable. This PR's own edits now state the opposite as current fact: packages/contracts/README.md says "The application retains bounded revision history separately and authorizes access to it", and packages/core/README.md says "Authorized DTO construction and evidence access belong to the application" (replacing the old "later application/host boundary" phrasing). The doc update thus made the shipped comment inconsistent with the documented ownership, which matters because these READMEs are the package contracts agents read alongside the source.
I grepped packages/ for later|future|KB-02 must and found this is the only remaining "owned by later ..." comment (the diff's packages/mcp/src/transport-common.ts:340 "later host mutation" is unrelated and still accurate). I could not falsify the staleness: nothing in the checkout shows a later slice that would rewrite this comment.
A one-line comment update in packages/contracts/src/index.ts would keep the source and the revised READMEs consistent.
🔵 Issue 2 — Broken grammar and sentence fragments in SOURCE_PREPARATION.md merge receipts
docs/SOURCE_PREPARATION.md:8 · nit · identified by z-ai/glm-5.3-flash
The receipt records a maintainer or agent will quote when checking release-preparation state are grammatically broken in three places:
- Line 8: "The earlier fixture slice is merged, and KB-04 source merged at [hash]." — the second clause is missing
is/was(the pre-diff text read "is merged at"), so the sentence parses as "KB-04 source merged at ..." with no finite verb. - Lines 13-15: "KB-05 release preparation merged at [hash]." — a standalone fragment with no verb.
- Lines 200-203: "Agent Access release preparation merged at [hash]." — the same fragment.
Concrete cost: this document is the designated record of merged-source receipts (other docs link to it for exactly that), and a reader skimming may mis-parse whether a commit is a merge commit or a reviewed head, or treat the fragments as formatting corruption in an otherwise receipts-grade document.
🟠 Issue 3 — New external receipt links, commit SHAs, and test counts cannot be validated from repository content
docs/SOURCE_PREPARATION.md:15 · risk · identified by z-ai/glm-5.3-flash
This PR records the release-preparation state through references that have no in-repository corroboration, so a wrong value would silently mis-state the state that gates publication:
docs/SOURCE_PREPARATION.md:15— KB-05 merge commit7f5eee68be692b5489de3965f3f5ede7ef7a812d(also cited indocs/RELEASING.md:18).docs/SOURCE_PREPARATION.md:207/docs/RELEASING.md:35— Agent Access release-preparation commiteddddd5e333ce16b6a4a8233b84656b3ac784947.docs/SOURCE_PREPARATION.md:19-20— review linkpull/6#pullrequestreview-5814111477and security receiptpull/6#issuecomment-6710997171.docs/SOURCE_PREPARATION.md:210-211— review linkpull/2#pullrequestreview-5814178148and receiptpull/2#issuecomment-6711125916.- The test-count claims (372 + 128 = 500; 123 + 136) exist only in prose.
Concrete failure scenario: if any SHA or receipt/comment ID is mistyped, downstream maintainers following RELEASING.md/SOURCE_PREPARATION.md would verify against a nonexistent commit or review and could treat release preparation as recorded when it is not; nothing in the repository can catch that.
Proof gap: I have no network access, so I cannot confirm or refute these external references. For contrast, the preserved AUTH-01 pin a444e2113db98455b638b2ef8aa7c2faccb16b62 is corroborated in-repo at scripts/agent-protocol-proof.mjs:19 and examples/agent/README.md:25, while the three new SHAs and four new receipt links are not — that asymmetry is the finding. A cheap mitigation would be stating the in-repo file/test counts that anchor the 372/128 and 123/136 claims.
🔵 Issue 4 — AGENT_WORKFLOW's KB-04 receipt claims gates the other two receipts do not record
docs/AGENT_WORKFLOW.md:113 · nit · identified by z-ai/glm-5.3-flash
docs/AGENT_WORKFLOW.md:113-116 now asserts as historical fact that "The merged KB-04 source exit passed format, type, tests, synthetic example, artifact checks, and agent:proof on Node 22 and 24, plus clean OpenRouter review with zero actionable findings and the applicable security checks." But the two receipts explicitly designated as the record for that same merge list a narrower gate set: docs/SOURCE_PREPARATION.md:10-11 records only "372 runtime tests on each Node 22/24 lane and the separate authenticated official-SDK protocol proof", and docs/RELEASING.md:14-15 records the same. Neither mentions format/type checks, the synthetic example, artifact checks, or the review/security receipts for KB-04.
Concrete failure scenario: a maintainer cross-checking the release record (this PR's stated purpose) sees two different recorded gate sets for the same merge — either AGENT_WORKFLOW overclaims gates KB-04's exit did not run, or the SOURCE_PREPARATION/RELEASING receipts under-record them; both readings undermine the receipts' role in the release boundary.
Note the pre-diff AGENT_WORKFLOW text stated the same list as a requirement ("KB-04 source exit requires ..."), not as a receipt, so this conversion is introduced by the PR. I could not falsify it from the checkout (no git history access); the proof gap is that no in-repo artifact distinguishes which gates the KB-04 merge actually executed.
🔵 Issue 5 — Inconsistent slice naming: 'KB-05 source preparation' vs 'KB-05 release preparation'
docs/SOURCE_PREPARATION.md:13 · nit · identified by z-ai/glm-5.3-flash
The same merged slice is labeled two ways across the PR's edits, including within one document: docs/SOURCE_PREPARATION.md is titled "# KB-05 source preparation" (line 1) and README.md:12 / AGENTS.md:18 say "Merged KB-05 source preparation", while docs/RELEASING.md:16, docs/HOST_COMPOSITION.md:7, and docs/AGENT_WORKFLOW.md:5 say "KB-05 release preparation". docs/SOURCE_PREPARATION.md itself switches: its heading says "source preparation" but its receipt paragraph (line 13) says "[KB-05 release preparation] merged at ...".
Concrete cost: maintainers and agents searching for the term used in one doc will not find the receipt under the other name, and the two labels could be read as two distinct slices (a preparation slice plus a later release-preparation slice) when they are the same merge. Picking one label (e.g., "KB-05 release-preparation source", which AGENT_WORKFLOW.md already uses) would remove the ambiguity.
🔵 Issue 6 — Registry-404 'unpublished' claim records no reproducible method or receipt
docs/SOURCE_PREPARATION.md:25 · nit · identified by z-ai/glm-5.3-flash
docs/SOURCE_PREPARATION.md:25 states "the 2026-11-07 registry check returned HTTP 404 for all four and for @pegma/agent-access@0.1.0" as recorded evidence, but the document gives no command, tool, or retained output for that check. The repository's own standard is stricter: docs/RELEASING.md insists only an exact version's HTTP 404 establishes absence, that preflight results be preserved in the release record, and that manual bootstrap results be recorded as receipts. A one-off registry lookup whose method is unrecorded cannot be reproduced or audited, and a cached/mirrored 404 would be a false negative for "unpublished" — the exact state this PR exists to pin.
Concrete failure scenario: a maintainer later re-deriving "all four names free at 0.1.0" from this sentence has no way to know what was actually queried, and any conflicting later finding (e.g., a name taken in the interim) cannot be reconciled against the recorded check.
I grepped the repo for the date and found only docs/RELEASING.md:154 (npm requirements) and docs/RELEASING.md:225 (audit-shape observation, which does record its command and shape) — the registry-404 claim is the only dated external check without a recorded method. One sentence naming the command (e.g., the preflight's registry probe or npm view) would fix it.
|
|
||
| [KB-05 release preparation](https://github.com/pegma-dev/knowledge-base/pull/6) | ||
| merged at | ||
| [`7f5eee68be692b5489de3965f3f5ede7ef7a812d`](https://github.com/pegma-dev/knowledge-base/commit/7f5eee68be692b5489de3965f3f5ede7ef7a812d). |
There was a problem hiding this comment.
🟠 New external receipt links, commit SHAs, and test counts cannot be validated from repository content (risk)
This PR records the release-preparation state through references that have no in-repository corroboration, so a wrong value would silently mis-state the state that gates publication:
docs/SOURCE_PREPARATION.md:15— KB-05 merge commit7f5eee68be692b5489de3965f3f5ede7ef7a812d(also cited indocs/RELEASING.md:18).docs/SOURCE_PREPARATION.md:207/docs/RELEASING.md:35— Agent Access release-preparation commiteddddd5e333ce16b6a4a8233b84656b3ac784947.docs/SOURCE_PREPARATION.md:19-20— review linkpull/6#pullrequestreview-5814111477and security receiptpull/6#issuecomment-6710997171.docs/SOURCE_PREPARATION.md:210-211— review linkpull/2#pullrequestreview-5814178148and receiptpull/2#issuecomment-6711125916.- The test-count claims (372 + 128 = 500; 123 + 136) exist only in prose.
Concrete failure scenario: if any SHA or receipt/comment ID is mistyped, downstream maintainers following RELEASING.md/SOURCE_PREPARATION.md would verify against a nonexistent commit or review and could treat release preparation as recorded when it is not; nothing in the repository can catch that.
Proof gap: I have no network access, so I cannot confirm or refute these external references. For contrast, the preserved AUTH-01 pin a444e2113db98455b638b2ef8aa7c2faccb16b62 is corroborated in-repo at scripts/agent-protocol-proof.mjs:19 and examples/agent/README.md:25, while the three new SHAs and four new receipt links are not — that asymmetry is the finding. A cheap mitigation would be stating the in-repo file/test counts that anchor the 372/128 and 123/136 claims.
There was a problem hiding this comment.
Verified against the primary GitHub API on 2026-11-07: KB PR6 merged as 7f5eee6 from reviewed head c8ef14a; CI42398508042 succeeded, review5814111477 is clean with zero open findings, security6710997171 explicitly reports no issues on that head. AA PR2 merged as eddddd5e333ce16b6a4a8233b84656b3ac784947 from reviewed head165e56ab19e9860d6c0bd17f419052b751394b9c; CI42399414623 succeeded, review5814178148 is clean/zero open, security6711125916 is explicitly clean on that head. The actual Node22/24 job logs established the documented per-lane counts. No incorrect SHA/link/count has been identified. Duplicating these strings in a local receipt would not independently verify external CI. Follow-up will make the as-of snapshot and reviewed-head/CI binding explicit; current-head release checks remain separate. Leaving the unsupported wrong-receipt risk disputed and visible.
| That source passed 372 runtime tests on each Node 22/24 lane and the separate | ||
| authenticated official-SDK protocol proof. | ||
|
|
||
| [KB-05 release preparation](https://github.com/pegma-dev/knowledge-base/pull/6) |
There was a problem hiding this comment.
🔵 Inconsistent slice naming: 'KB-05 source preparation' vs 'KB-05 release preparation' (nit)
The same merged slice is labeled two ways across the PR's edits, including within one document: docs/SOURCE_PREPARATION.md is titled "# KB-05 source preparation" (line 1) and README.md:12 / AGENTS.md:18 say "Merged KB-05 source preparation", while docs/RELEASING.md:16, docs/HOST_COMPOSITION.md:7, and docs/AGENT_WORKFLOW.md:5 say "KB-05 release preparation". docs/SOURCE_PREPARATION.md itself switches: its heading says "source preparation" but its receipt paragraph (line 13) says "[KB-05 release preparation] merged at ...".
Concrete cost: maintainers and agents searching for the term used in one doc will not find the receipt under the other name, and the two labels could be read as two distinct slices (a preparation slice plus a later release-preparation slice) when they are the same merge. Picking one label (e.g., "KB-05 release-preparation source", which AGENT_WORKFLOW.md already uses) would remove the ambiguity.
There was a problem hiding this comment.
The premise that these are the same merge is incorrect. PR4 is the earlier KB-05 partial fixture/composition slice (merge ed530cb); PR6 is the later exact-artifact release preparation (merge7f5eee68be692b5489de3965f3f5ede7ef7a812d). The Support Desk plan deliberately records both historical slices. The umbrella SOURCE_PREPARATION title covers both. I will make this distinction more explicit rather than collapse two real deliveries into one. Leaving the incorrect same-merge assertion visible.
|
@codex security review |
🛡️ 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. |
|
Follow-up 20859fe also addresses summary-only r1-1 by removing the stale temporal word from the contracts comment. No runtime behavior changed. The two disputed assertions remain visible with primary evidence: external receipt accuracy was independently verified, and PR4/PR6 are deliberately separate historical KB-05 slices. The canonical source-gate record now states dates, reviewed heads versus merge commits, actual review/security receipts, per-lane counts and exact CI runs. New-head CI and reviews are still required. |
|
@codex security review |
There was a problem hiding this comment.
OpenRouter pull-request review
Verdict: clean
Scope: latest-commit (commit-range)
Mode: verify
Commit: 20859fec36d4842db95c0f64312a24e2b0c5d055
Judge: openai/gpt-5.6-luna
Cost: $0.1263 (lanes $0.1262 + judge $0.0001)
Lanes
meta/muse-spark-1.2: ok (0 finding(s), 27.3s, 82930+2930 tokens (226 cached), 3 tool round(s), via Meta, $0.12)z-ai/glm-5.3-flash: ok (0 finding(s), 47.4s, 156873+6843 tokens (109568 cached), 7 tool round(s), via InferenceNet, $0.0103)
Round 2 resolution
- 🤝
r1-3disputed — New external receipt links, commit SHAs, and test counts cannot be validated from repository content: Reviewed HEAD now provides the requested binding: SOURCE_PREPARATION.md adds as-of 2026-11-07, separates reviewed heads (c897626..., c8ef14a..., 165e56ab19e9860d6...) from merge commits (7f5eee6..., eddddd5e33..., b61fc77...), links exact CI runs (42390433045, 42398508042, 42399414623), final OpenRouter reviews and security receipts, and adds a timestamped public-registr… - 5 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).
🛡️ 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. |
|
Merge gate record for 20859fe: CI42403682077 actually ran both Node22/24 lanes, each with372 runtime plus128 release tests and zero skips; formatting/types, example, all artifact checks and five-package authenticated agent proof passed. Both CodeQL checks passed. OpenRouter round2 review5814429619 is clean, both lanes successful and decoded ledger zero OPEN. Explicit security receipt6711654846 reports no issues for this head. Independent verification passed; rejected assertions remain visible with primary evidence. Correct Copilot requests were accepted around18:31UTC and retried after this fixup. After approximately30minutes there is still no observable Copilot review or work-start; its absence is not a passing result. Applying the documented bounded-wait fallback using the completed independent, OpenRouter, CodeQL and security reviews. No required CI, actual code review or security gate is skipped. Source readiness still authorizes no publication or host activation. |
Component docs still described implemented application/transport and local D1 work as future phases. Record KB-04 and the two distinct KB-05 source slices, with dated reviewed heads, separate merge commits, primary CI/review/security receipts, and a reproducible exact-version public registry snapshot. Centralize historical evidence in SOURCE_PREPARATION. Remove one stale temporal word from the contracts comment; runtime behavior is unchanged. Preserve the immutable a444 Agent Access protocol fixture pin.
The four KB packages and Agent Access remain unpublished at source 0.1.0. First publication, publisher setup, exact own-package registry/provenance verification, and both hosts' actual existing-login/client acceptance remain open. No future production pin or version is selected.
Validation: local formatting/types and actual four-package clean-consumer artifact/MCP metadata checks passed. Independent review checked factual state, primary GitHub evidence, links, and the five-package read-only registry method. Ten Markdown files and one source comment changed, with no forbidden control bytes. Current-head Node 22/24 full tests/protocol proof, actual clean code review, CodeQL and explicit security gates remain required. No runtime, manifest, test, publication, external setting or deployment change.