From ad484c60a56de8e619e5ad1a9ceb1ea5ac301b25 Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Tue, 10 Nov 2026 10:51:34 -0500 Subject: [PATCH 1/3] Record verified Knowledge Base 0.1.5 publication --- .prettierignore | 1 + AGENTS.md | 13 +- README.md | 20 +- docs/BOOTSTRAP.md | 112 +++- docs/HOST_COMPOSITION.md | 17 +- docs/RELEASING.md | 35 +- docs/releases/v0.1.5/package-manifest.json | 666 ++++++++++++++++++++ docs/releases/v0.1.5/prepared-artifact.json | 18 + docs/releases/v0.1.5/verification-job.json | 86 +++ 9 files changed, 910 insertions(+), 58 deletions(-) create mode 100644 docs/releases/v0.1.5/package-manifest.json create mode 100644 docs/releases/v0.1.5/prepared-artifact.json create mode 100644 docs/releases/v0.1.5/verification-job.json diff --git a/.prettierignore b/.prettierignore index 0e23e3f..39bf216 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,3 +2,4 @@ dist/ coverage/ artifacts/ pnpm-lock.yaml +/docs/releases/v0.1.5/package-manifest.json diff --git a/AGENTS.md b/AGENTS.md index defeccf..ab888b6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,10 +30,10 @@ tests. The approved scope is the [Support Desk enhancement plan](https://github. All four `0.1.4` packages completed verified trusted publication for governed authoring contexts, report queries and bounded resumable repair; retain the [public release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). - Synchronized `0.1.5` is the unpublished answering read-batching candidate and - requires its own review, current-head gates, trusted publication and strict - verification. Grouped reads establish no universal query or CPU budget. - Real-host acceptance remains separate. + All four `0.1.5` packages completed verified trusted publication for answering + read batching; retain the [current release receipt](docs/BOOTSTRAP.md#current-verified-015-release). + Grouped reads establish no universal query or CPU budget. Host dependency + adoption and real-host acceptance remain separate. - Never implement a database, authorization role model, identity/session/token system, audit log, request limiter, or durable scheduler here. Compose the corresponding Pegma package in the owning later task. @@ -143,8 +143,9 @@ packed KB candidate artifacts and the official SDK in a fresh temporary consumer with lifecycle scripts disabled. It accepts no source-producer fallback. Historical source-fixture evidence is not evidence for changed proof code; current-head Node 22/24 gates must execute the registry composition. The KB -`0.1.5` candidate's own review, trusted publication, and strict registry -verification remain open. Host acceptance remains open before activation. +`0.1.5` release has completed its own review, current-head gates, trusted +publication and strict registry verification. Changed source requires its own +gates and release. Host acceptance remains open before activation. Keep actual existing-login/Admin-consent and every requested client/mode proof open in P-00 and PG-01/RG-01 until both hosts record them before activation. diff --git a/README.md b/README.md index 5a032b0..cc0baaa 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,10 @@ and exact publication approval. It requires no GitHub connection or AI provider. > All four `0.1.4` packages completed > [verified trusted publication](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4) > for governed authoring-context reads, report queries and bounded resumable repair. -> Synchronized `0.1.5` is the **unpublished patch candidate** for answering read -> batching; its own review, current-head CI, trusted publication and strict -> consumer verification remain pending. +> All four `0.1.5` packages completed +> [verified trusted publication](docs/BOOTSTRAP.md#current-verified-015-release) +> for answering read batching, including strict registry/provenance and public-consumer +> verification. Host dependency adoption remains separate. > Actual two-host existing-login/client acceptance remains open. > Host activation remains separately gated; this repository supplies no hosted KB. @@ -163,12 +164,13 @@ Merging source does not publish a package. The `0.1.0` uploads and exact-byte postflight. All five KB/Agent Access trusted publishers are configured through the CLI. Agent Access's verified trusted `0.1.1` release and the four-package KB trusted -[`0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4) -are complete; prior exact receipts remain historical evidence. All four KB -packages currently have `latest: 0.1.4`; Agent Access has `latest: 0.1.1`; all -retain historical `bootstrap: 0.1.0`. Synchronized source `0.1.5` remains -unpublished and needs its own review, current-head CI, trusted release and strict -consumer verification. Read batching establishes no universal backend query or +[`0.1.5` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5) +are complete; prior exact receipts remain historical evidence. At the `0.1.5` +release checkpoint, all four KB packages had `latest: 0.1.5`; Agent Access +remained at `latest: 0.1.1`; all retained `bootstrap: 0.1.0`. Dist-tags are mutable +observations. The [current receipt](docs/BOOTSTRAP.md#current-verified-015-release) +binds the original artifact, exact manifest, authenticated original writers and +strict verification. Read batching establishes no universal backend query or CPU budget. Neither registry publication nor synthetic proof satisfies real host acceptance or approves activation. diff --git a/docs/BOOTSTRAP.md b/docs/BOOTSTRAP.md index 6546592..7fbedae 100644 --- a/docs/BOOTSTRAP.md +++ b/docs/BOOTSTRAP.md @@ -7,13 +7,13 @@ The maintainer owns npm publication and external configuration. All four KB postflight passed at **2026-11-07T21:56:24Z**. Agent Access `0.1.0` also completed manual bootstrap and postflight. Neither bootstrap has OIDC provenance. KB's current verified trusted release is -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4); Agent Access +[`0.1.5`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5); Agent Access remains verified at `0.1.1`. Their receipts close public producer release -prerequisites only. The dated trusted KB `0.1.1`, `0.1.2` and `0.1.3` receipts -remain below as history. Synchronized KB `0.1.5` is the unpublished internal -answering read-batching candidate; its own review, current-head CI, trusted -publication and strict consumer verification remain pending. Host acceptance -remains separate. +prerequisites only. The dated trusted KB `0.1.1`, `0.1.2`, `0.1.3` and `0.1.4` +receipts remain below as history. The answering read-batching `0.1.5` release +completed its own review, current-head gates, trusted publication and strict +registry/consumer qualification. Host dependency adoption and acceptance remain +separate. The five KB/Agent Access trusted-publisher entries have been configured through the CLI. An actual trusted release still requires the reviewed source and @@ -86,7 +86,77 @@ the approved dependency set or establishes real-host acceptance. ## Verified Knowledge Base release -### Current verified `0.1.4` release +### Current verified `0.1.5` release + +All four KB `0.1.5` packages completed exact-registry-byte, cryptographic +signature/Sigstore, authenticated source-provenance and public-consumer +qualification. The [`v0.1.5` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5) +binds signed source +[`6dae20df8dace50ad961d9c5fe8d28c90bf4918f`](https://github.com/pegma-dev/knowledge-base/commit/6dae20df8dace50ad961d9c5fe8d28c90bf4918f) +and signed annotated tag object `916c3880e5786c5293ed5423f81c4cc13b202ea6`. +The [final workflow attempt 5](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/attempts/5) +has six successful job records, including the separate unprivileged +[strict registry/consumer verification job](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129895026059), +which completed at **2026-11-10T14:32:38Z**. + +The original [Node 22](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129848540243) +and [Node 24](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129848540249) +release gates each executed 991 runtime tests across 22 files and 128 release +regressions, with zero failures or skips, plus the required format, type, example, +package and protocol steps. Their successful records and the original preparation +were carried into the final attempt, not executed again in attempt 5. + +| Field | Value | +| --------------------------------------- | ------------------------------------------------------------------ | +| Original prepared attempt | `1` | +| Original prepared artifact ID | `13767614004` | +| Original ZIP SHA-256 | `b87b16c0b6badb38dface2eb7e2c60a84eca6c0c0c70f83fb4b9432ee9546e41` | +| Independently retained manifest SHA-256 | `61739de9c3f1d65a481ec96a297cab63f6576787fdd4e01fbd4cea627b12d22d` | +| Successful final attempt | `5` | + +The [original prepared ZIP](https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/knowledge-base-v0.1.5-original-artifact-13767614004.zip), +[exact manifest](https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/manifest.json) +and [verification summary](https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/registry-verification.json) +are public release assets. Local public snapshots retain the same +[manifest bytes](releases/v0.1.5/package-manifest.json), the +[original artifact binding](releases/v0.1.5/prepared-artifact.json) and the +[final verification job](releases/v0.1.5/verification-job.json). The summary and +snapshots record evidence; they do not replace cryptographic verification. + +Authenticated source provenance binds each package to its original writer. +All four earlier publisher jobs remain failed records; an accepted write is +not rolled back by a later job failure: + +| Package | Original writer attempt | Original writer job | +| ----------- | ----------------------- | ----------------------------------------------------------------------------------------------------- | +| Contracts | `1` | [129854408848](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129854408848) | +| Core | `2` | [129866356239](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129866356239) | +| Application | `3` | [129874490043](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129874490043) | +| MCP | `4` | [129882202265](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129882202265) | + +The [final publisher](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129890032223) +uploaded zero packages and skipped four byte-identical existing versions. +Recovery preserved the original source, signed tag, manifest and tarballs; +it did not repack or replace a version. No cause for the earlier failures is +inferred from registry availability. + +The independent postflight checked exact original registry and installed +bytes/dependencies, genuine signatures and authenticated source/writer bindings, +then imported all four public roots and checked report-factory/MCP metadata. +Its controlled Memory composition admitted no actual host report and established +no durable host or requested-client run. At this checkpoint, all four KB +packages had `latest: 0.1.5` and `bootstrap: 0.1.0`; dist-tags remain mutable +observations. + +This patch groups independent answering reads while retaining authority, +publication, approved-evidence and configured work checks. Host dependency +adoption, existing-login/Admin consent, actual client/model runs, provider/privacy +controls, Workers Free query/CPU measurements, full workflows and pilots remain +separate open acceptance gates. + + + +### Historical verified `0.1.4` release All four synchronized KB packages completed qualified trusted publication at [`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). This release @@ -150,10 +220,10 @@ admission or establish a durable host or actual client/staging acceptance. This release provides optional human-reviewed evidence reports. The later verified `0.1.4` release adds governed authoring contexts and optional report -queries. Synchronized `0.1.5` is an unpublished internal read-batching candidate -with its own review, current-head gates, trusted publication and strict -verification still required. Producer releases do not close Workers Free -call/CPU acceptance, host activation or pilot gates. +queries. The separately verified `0.1.5` release adds answering read batching. +Its current receipt above retains its own source and artifact identity. +Producer releases do not close Workers Free call/CPU acceptance, host activation +or pilot gates. @@ -272,8 +342,8 @@ verification; no package version or artifact was replaced. This closes the verified public Agent Access `0.1.1` prerequisite. The KB protocol proof now composes that exact registry producer with four packed KB candidate artifacts in a fresh consumer. KB `0.1.3` has its separate verified -receipt above; the later `0.1.4` release is also verified. Source `0.1.5` retains -its own current-head gates, PR, trusted release, and strict verification. +receipt above; the later `0.1.4` and `0.1.5` releases are also verified. The +current `0.1.5` receipt retains its own gates, source and artifact identity. Existing-login, current-Admin consent, every requested client/mode, and both real hosts remain separately unproven. @@ -352,10 +422,11 @@ must name this repository's exact `publish.yml` workflow and environment and explicitly permit direct publishing. Time new configurations to the prepared trusted release so their first-use expiry does not strand the release. -The synchronized KB source candidate is `0.1.5` with exact internal dependency -pins. It still needs review and all current-head gates before release. The -historical first advertised trusted release is `0.1.1`; the `0.1.3` receipt -remains above, followed by the current verified `0.1.4` release record. +The synchronized current KB release is `0.1.5` with exact internal dependency +pins. Any changed source needs its own review and current-head gates before a +new release. The historical first advertised trusted release is `0.1.1`; its +receipt and those for `0.1.2`, `0.1.3` and `0.1.4` remain above alongside the +current verified `0.1.5` receipt. A previously manually published version cannot be republished through OIDC to add provenance. Run the full review/Node 22/24 gate for the newly reviewed commit, create its approved signed annotated version tag @@ -371,7 +442,6 @@ results with the release identity and independent manifest digest. The active KB protocol proof uses the verified registry producer `@pegma/agent-access@0.1.1`; historical source-producer evidence remains in [source preparation](SOURCE_PREPARATION.md). The verified KB `0.1.3` receipt -remains historical; KB `0.1.4` and Agent Access `0.1.1` public producer release -prerequisites are closed. This candidate -requires its own verified release, and both hosts still require their retained -actual login/Admin-consent/client/staging acceptance. +remains historical; KB `0.1.5` and Agent Access `0.1.1` public producer release +prerequisites are closed. Both hosts still require their retained actual +login/Admin-consent/client/staging acceptance. diff --git a/docs/HOST_COMPOSITION.md b/docs/HOST_COMPOSITION.md index c4b82a5..04f3c43 100644 --- a/docs/HOST_COMPOSITION.md +++ b/docs/HOST_COMPOSITION.md @@ -18,12 +18,13 @@ human-reviewed report packages subsequently completed [verified trusted publication](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.3). The governed authoring-context/report-query features shipped in the qualified [`0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). -Synchronized `0.1.5` is an unpublished internal answering read-batching candidate; -its own review, current-head gates, trusted release and strict registry/provenance -verification remain open. Internal read-wave changes preserve the public ports -and do not establish a universal Workers Free call/CPU allowance or live-host -acceptance. Supported invocation profiles require their own measurements. -Host acceptance remains separate. +All four answering read-batching `0.1.5` packages have completed +[qualified trusted publication](BOOTSTRAP.md#current-verified-015-release), including +strict registry/provenance and public-consumer verification. Internal read-wave +changes preserve the public ports and do not establish a universal Workers Free +call/CPU allowance or live-host acceptance. Publication does not update either +host's installed dependency pins. Host adoption, supported invocation-profile +measurements and acceptance remain separate. No package becomes an identity system or an operational hosted endpoint. See [declared collections](COLLECTIONS.md) for the required layout, CAS, admission, and replay design. @@ -49,8 +50,8 @@ provenance. Its trusted `0.1.1` release and strict registry verification have since closed the public producer prerequisite. Actual existing-login/client acceptance on both hosts remains open. See the [release ledger](BOOTSTRAP.md#verified-agent-access-prerequisite) for the exact -Agent Access receipt. The changed registry proof still needs current-head -execution; historical source-producer evidence does not validate it. +Agent Access receipt. Each changed registry proof needs current-head execution; +historical source-producer evidence does not validate changed proof code. The host owns identity verification, scoped local-agent credentials, current authorization resolution, browser/transport protections, store construction, diff --git a/docs/RELEASING.md b/docs/RELEASING.md index bce079d..a0501b5 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -31,21 +31,27 @@ the [receipt](BOOTSTRAP.md#current-verified-013-release) distinguishes original writer attempts 1–4 from the final successful attempt 5 and binds the unchanged original prepared artifact. -The current verified release is -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). All four +The historical verified `0.1.4` release is +[retained separately](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). All four packages were qualified against their signed-source preparation, with registry signatures, source provenance and public-consumer verification. The public release retains the original preparation archive and verification summary, including the original writer attempts and final recovery. It ships governed authoring-context reads, report queries and bounded resumable repair. -Source `0.1.5` is the synchronized **unpublished** patch candidate for answering -read batching. Its own review, current-head CI, signed tag, trusted publication -and strict consumer verification remain pending. Existing links to `v0.1.2` -and the released `0.1.3` report factory remain historical contracts; do not -relabel their source or artifact receipts as the new candidate. Grouped reads -establish no universal backend query or CPU budget, and host acceptance remains -separate. +The current verified release is +[`0.1.5`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5), the +synchronized answering read-batching patch at signed source +`6dae20df8dace50ad961d9c5fe8d28c90bf4918f`. All four registry packages completed +exact-byte, signature/source-provenance and public-consumer qualification. The +[final attempt-5 verification job](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129895026059) +and [current receipt](BOOTSTRAP.md#current-verified-015-release) bind the unchanged +original artifact and manifest. Original writer attempts 1 through 4 remain +failed records; the final publisher uploaded zero packages and skipped four +identical versions. The earlier gates/preparation were carried, not rerun in +attempt 5. Existing release receipts remain historical contracts; do not relabel +their source or artifacts as `0.1.5`. Grouped reads establish no universal backend +query or CPU budget. Host dependency adoption and acceptance remain separate. [KB-04 source](https://github.com/pegma-dev/knowledge-base/pull/5) and [KB-05 release preparation](https://github.com/pegma-dev/knowledge-base/pull/6) are merged. The separate earlier [partial KB-05 source slice](https://github.com/pegma-dev/knowledge-base/pull/4) @@ -58,7 +64,7 @@ Changed source still needs all current-head gates before release preparation. No source merge configures publishers, creates a tag/release, or publishes npm packages. The [maintainer bootstrap ledger](BOOTSTRAP.md) retains the actual manual commands/stdout, exact identities, preparation runs/artifacts, and -independently retained digests. The qualified release versions are KB `0.1.4` +independently retained digests. The qualified release versions are KB `0.1.5` and Agent Access `0.1.1`. The manual `0.1.0` bootstraps and their dated dist-tag observations remain historical integrity receipts without OIDC provenance. @@ -71,10 +77,11 @@ retains its exact artifact/digest, successful attempt-2 workflow, and unprivileg verification job. That public producer prerequisite is closed. The active `agent:proof` installs exact registry `@pegma/agent-access@0.1.1` with four packed KB artifacts and official MCP SDK `1.32.2` in a fresh consumer. -The KB `0.1.5` candidate still needs its own current-head gates, review, PR, publication, -and strict verification; historical source-proof results do not validate this -changed composition. Production hosts require verified trusted versions of -both components and their separately retained acceptance. +The KB `0.1.5` release has completed its own current-head gates, review, trusted +publication and strict verification. Future changed source and proof code require +their own current-head gates; historical results do not validate changed +composition. Production hosts require verified trusted versions of both +components and their separately retained acceptance. ## Repository and development artifact gates diff --git a/docs/releases/v0.1.5/package-manifest.json b/docs/releases/v0.1.5/package-manifest.json new file mode 100644 index 0000000..c7c231b --- /dev/null +++ b/docs/releases/v0.1.5/package-manifest.json @@ -0,0 +1,666 @@ +{ + "schemaVersion": 2, + "identity": { + "repository": "pegma-dev/knowledge-base", + "tag": "v0.1.5", + "commit": "6dae20df8dace50ad961d9c5fe8d28c90bf4918f", + "version": "0.1.5" + }, + "artifacts": [ + { + "name": "@pegma/knowledge-base-contracts", + "version": "0.1.5", + "filename": "pegma-knowledge-base-contracts-0.1.5.tgz", + "size": 5471, + "shasum": "b229f9a866833cbb3ff9fefbe2013e1bd7cef821", + "integrity": "sha512-TgK0HNLlBJ6a3EYS0aBmF+UO9v2ykK0xVYPo51Cmcn1ET15Fj90w3dpyzBX7dRomi1aGBAW3FX4X+djrayqbzg==", + "dependencies": { + "@pegma/spine": "0.1.2" + }, + "files": [ + { + "path": "dist/index.d.ts", + "size": 7069 + }, + { + "path": "dist/index.d.ts.map", + "size": 5443 + }, + { + "path": "dist/index.js", + "size": 1181 + }, + { + "path": "dist/index.js.map", + "size": 663 + }, + { + "path": "LICENSE", + "size": 1062 + }, + { + "path": "package.json", + "size": 888 + }, + { + "path": "README.md", + "size": 2579 + } + ] + }, + { + "name": "@pegma/knowledge-base-core", + "version": "0.1.5", + "filename": "pegma-knowledge-base-core-0.1.5.tgz", + "size": 21875, + "shasum": "3d1a968a9dd8bd8c536321de759ef6fbb6845625", + "integrity": "sha512-ZuaXkuuyuMN+n1xGfPcXvInvwdNsCQpjo8m9GhFmc0fu1reisj0oeVzF4i9DvYbhHqMA6QoZgIUBUCVijLd9ug==", + "dependencies": { + "@pegma/knowledge-base-contracts": "0.1.5" + }, + "files": [ + { + "path": "dist/articles.d.ts", + "size": 2916 + }, + { + "path": "dist/articles.d.ts.map", + "size": 2316 + }, + { + "path": "dist/articles.js", + "size": 17017 + }, + { + "path": "dist/articles.js.map", + "size": 15562 + }, + { + "path": "dist/collections.d.ts", + "size": 1685 + }, + { + "path": "dist/collections.d.ts.map", + "size": 1185 + }, + { + "path": "dist/collections.js", + "size": 6775 + }, + { + "path": "dist/collections.js.map", + "size": 6281 + }, + { + "path": "dist/index.d.ts", + "size": 571 + }, + { + "path": "dist/index.d.ts.map", + "size": 472 + }, + { + "path": "dist/index.js", + "size": 456 + }, + { + "path": "dist/index.js.map", + "size": 387 + }, + { + "path": "dist/validation.d.ts", + "size": 2400 + }, + { + "path": "dist/validation.d.ts.map", + "size": 1997 + }, + { + "path": "dist/validation.js", + "size": 10550 + }, + { + "path": "dist/validation.js.map", + "size": 9985 + }, + { + "path": "LICENSE", + "size": 1062 + }, + { + "path": "package.json", + "size": 875 + }, + { + "path": "README.md", + "size": 7687 + } + ] + }, + { + "name": "@pegma/knowledge-base-application", + "version": "0.1.5", + "filename": "pegma-knowledge-base-application-0.1.5.tgz", + "size": 126736, + "shasum": "946ce468d490d991a214f12d7ff6bcfdc06b334b", + "integrity": "sha512-tH9Hw+BSVmLzQPzdyhK9YaiAthWEwgYuG0Ef2kxT7FohMqYq4iaW/vDOHQdGa/gIMAlULqS/p0vCOPr7rPQfdA==", + "dependencies": { + "@pegma/audit": "0.2.0", + "@pegma/authorization-core": "0.4.0", + "@pegma/knowledge-base-contracts": "0.1.5", + "@pegma/knowledge-base-core": "0.1.5", + "@pegma/spine": "0.1.2", + "@pegma/storage-core": "0.4.0" + }, + "files": [ + { + "path": "dist/articles.d.ts", + "size": 698 + }, + { + "path": "dist/articles.d.ts.map", + "size": 471 + }, + { + "path": "dist/articles.js", + "size": 23462 + }, + { + "path": "dist/articles.js.map", + "size": 18811 + }, + { + "path": "dist/errors.d.ts", + "size": 846 + }, + { + "path": "dist/errors.d.ts.map", + "size": 561 + }, + { + "path": "dist/errors.js", + "size": 1317 + }, + { + "path": "dist/errors.js.map", + "size": 862 + }, + { + "path": "dist/evidence-reports-errors.d.ts", + "size": 1565 + }, + { + "path": "dist/evidence-reports-errors.d.ts.map", + "size": 939 + }, + { + "path": "dist/evidence-reports-errors.js", + "size": 750 + }, + { + "path": "dist/evidence-reports-errors.js.map", + "size": 501 + }, + { + "path": "dist/evidence-reports-types.d.ts", + "size": 7278 + }, + { + "path": "dist/evidence-reports-types.d.ts.map", + "size": 4998 + }, + { + "path": "dist/evidence-reports-types.js", + "size": 61 + }, + { + "path": "dist/evidence-reports-types.js.map", + "size": 136 + }, + { + "path": "dist/evidence-reports.d.ts", + "size": 689 + }, + { + "path": "dist/evidence-reports.d.ts.map", + "size": 270 + }, + { + "path": "dist/evidence-reports.js", + "size": 68337 + }, + { + "path": "dist/evidence-reports.js.map", + "size": 54967 + }, + { + "path": "dist/governance.d.ts", + "size": 2320 + }, + { + "path": "dist/governance.d.ts.map", + "size": 1537 + }, + { + "path": "dist/governance.js", + "size": 18912 + }, + { + "path": "dist/governance.js.map", + "size": 14586 + }, + { + "path": "dist/index.d.ts", + "size": 1327 + }, + { + "path": "dist/index.d.ts.map", + "size": 847 + }, + { + "path": "dist/index.js", + "size": 2656 + }, + { + "path": "dist/index.js.map", + "size": 2069 + }, + { + "path": "dist/lexical.d.ts", + "size": 804 + }, + { + "path": "dist/lexical.d.ts.map", + "size": 516 + }, + { + "path": "dist/lexical.js", + "size": 3278 + }, + { + "path": "dist/lexical.js.map", + "size": 3079 + }, + { + "path": "dist/publication.d.ts", + "size": 2482 + }, + { + "path": "dist/publication.d.ts.map", + "size": 1826 + }, + { + "path": "dist/publication.js", + "size": 12643 + }, + { + "path": "dist/publication.js.map", + "size": 9630 + }, + { + "path": "dist/reads.d.ts", + "size": 650 + }, + { + "path": "dist/reads.d.ts.map", + "size": 459 + }, + { + "path": "dist/reads.js", + "size": 15991 + }, + { + "path": "dist/reads.js.map", + "size": 12513 + }, + { + "path": "dist/records.d.ts", + "size": 1947 + }, + { + "path": "dist/records.d.ts.map", + "size": 1643 + }, + { + "path": "dist/records.js", + "size": 4586 + }, + { + "path": "dist/records.js.map", + "size": 4502 + }, + { + "path": "dist/repository.d.ts", + "size": 5386 + }, + { + "path": "dist/repository.d.ts.map", + "size": 4806 + }, + { + "path": "dist/repository.js", + "size": 49910 + }, + { + "path": "dist/repository.js.map", + "size": 42922 + }, + { + "path": "dist/retrieval-budget.d.ts", + "size": 1538 + }, + { + "path": "dist/retrieval-budget.d.ts.map", + "size": 1087 + }, + { + "path": "dist/retrieval-budget.js", + "size": 4551 + }, + { + "path": "dist/retrieval-budget.js.map", + "size": 3290 + }, + { + "path": "dist/retrieval-limits.d.ts", + "size": 321 + }, + { + "path": "dist/retrieval-limits.d.ts.map", + "size": 266 + }, + { + "path": "dist/retrieval-limits.js", + "size": 1058 + }, + { + "path": "dist/retrieval-limits.js.map", + "size": 945 + }, + { + "path": "dist/retrieval-maintenance.d.ts", + "size": 1178 + }, + { + "path": "dist/retrieval-maintenance.d.ts.map", + "size": 839 + }, + { + "path": "dist/retrieval-maintenance.js", + "size": 20088 + }, + { + "path": "dist/retrieval-maintenance.js.map", + "size": 15989 + }, + { + "path": "dist/retrieval-records.d.ts", + "size": 2375 + }, + { + "path": "dist/retrieval-records.d.ts.map", + "size": 1981 + }, + { + "path": "dist/retrieval-records.js", + "size": 5339 + }, + { + "path": "dist/retrieval-records.js.map", + "size": 5278 + }, + { + "path": "dist/retrieval-repository.d.ts", + "size": 2434 + }, + { + "path": "dist/retrieval-repository.d.ts.map", + "size": 1961 + }, + { + "path": "dist/retrieval-repository.js", + "size": 38618 + }, + { + "path": "dist/retrieval-repository.js.map", + "size": 35468 + }, + { + "path": "dist/retrieval-types.d.ts", + "size": 8466 + }, + { + "path": "dist/retrieval-types.d.ts.map", + "size": 5253 + }, + { + "path": "dist/retrieval-types.js", + "size": 777 + }, + { + "path": "dist/retrieval-types.js.map", + "size": 681 + }, + { + "path": "dist/retrieval.d.ts", + "size": 715 + }, + { + "path": "dist/retrieval.d.ts.map", + "size": 566 + }, + { + "path": "dist/retrieval.js", + "size": 26199 + }, + { + "path": "dist/retrieval.js.map", + "size": 20204 + }, + { + "path": "dist/storage-helpers.d.ts", + "size": 1096 + }, + { + "path": "dist/storage-helpers.d.ts.map", + "size": 854 + }, + { + "path": "dist/storage-helpers.js", + "size": 5524 + }, + { + "path": "dist/storage-helpers.js.map", + "size": 5299 + }, + { + "path": "dist/types.d.ts", + "size": 13802 + }, + { + "path": "dist/types.d.ts.map", + "size": 10394 + }, + { + "path": "dist/types.js", + "size": 44 + }, + { + "path": "dist/types.js.map", + "size": 102 + }, + { + "path": "LICENSE", + "size": 1062 + }, + { + "path": "package.json", + "size": 1089 + }, + { + "path": "README.md", + "size": 16844 + } + ] + }, + { + "name": "@pegma/knowledge-base-mcp", + "version": "0.1.5", + "filename": "pegma-knowledge-base-mcp-0.1.5.tgz", + "size": 40905, + "shasum": "58b7fb150f378e1c3fe5704dedfe2facfa39046a", + "integrity": "sha512-IBdsjzxVhGeMGViJpWLwzKTXGr2iOLeVylaBRnT9Bn+oSeAKxe1yMez+/eg7Nu19Ru/bweIrmUb0JuqIxem0Nw==", + "dependencies": { + "@cfworker/json-schema": "4.1.6", + "@modelcontextprotocol/sdk": "1.32.2", + "@pegma/authorization-core": "0.4.0", + "@pegma/knowledge-base-application": "0.1.5", + "@pegma/knowledge-base-contracts": "0.1.5", + "@pegma/knowledge-base-core": "0.1.5", + "zod": "4.6.7" + }, + "files": [ + { + "path": "dist/dispatcher.d.ts", + "size": 434 + }, + { + "path": "dist/dispatcher.d.ts.map", + "size": 256 + }, + { + "path": "dist/dispatcher.js", + "size": 21126 + }, + { + "path": "dist/dispatcher.js.map", + "size": 14463 + }, + { + "path": "dist/errors.d.ts", + "size": 724 + }, + { + "path": "dist/errors.d.ts.map", + "size": 472 + }, + { + "path": "dist/errors.js", + "size": 2753 + }, + { + "path": "dist/errors.js.map", + "size": 2086 + }, + { + "path": "dist/http.d.ts", + "size": 769 + }, + { + "path": "dist/http.d.ts.map", + "size": 513 + }, + { + "path": "dist/http.js", + "size": 1702 + }, + { + "path": "dist/http.js.map", + "size": 1288 + }, + { + "path": "dist/index.d.ts", + "size": 567 + }, + { + "path": "dist/index.d.ts.map", + "size": 457 + }, + { + "path": "dist/index.js", + "size": 337 + }, + { + "path": "dist/index.js.map", + "size": 314 + }, + { + "path": "dist/mcp.d.ts", + "size": 844 + }, + { + "path": "dist/mcp.d.ts.map", + "size": 514 + }, + { + "path": "dist/mcp.js", + "size": 13779 + }, + { + "path": "dist/mcp.js.map", + "size": 11635 + }, + { + "path": "dist/schemas.d.ts", + "size": 30919 + }, + { + "path": "dist/schemas.d.ts.map", + "size": 1543 + }, + { + "path": "dist/schemas.js", + "size": 17556 + }, + { + "path": "dist/schemas.js.map", + "size": 15973 + }, + { + "path": "dist/transport-common.d.ts", + "size": 4068 + }, + { + "path": "dist/transport-common.d.ts.map", + "size": 2390 + }, + { + "path": "dist/transport-common.js", + "size": 16128 + }, + { + "path": "dist/transport-common.js.map", + "size": 14452 + }, + { + "path": "dist/types.d.ts", + "size": 6857 + }, + { + "path": "dist/types.d.ts.map", + "size": 4341 + }, + { + "path": "dist/types.js", + "size": 2170 + }, + { + "path": "dist/types.js.map", + "size": 1270 + }, + { + "path": "LICENSE", + "size": 1062 + }, + { + "path": "package.json", + "size": 1124 + }, + { + "path": "README.md", + "size": 9766 + } + ] + } + ] +} diff --git a/docs/releases/v0.1.5/prepared-artifact.json b/docs/releases/v0.1.5/prepared-artifact.json new file mode 100644 index 0000000..cf29cce --- /dev/null +++ b/docs/releases/v0.1.5/prepared-artifact.json @@ -0,0 +1,18 @@ +{ + "schemaVersion": 1, + "repository": "pegma-dev/knowledge-base", + "tag": "v0.1.5", + "sourceCommit": "6dae20df8dace50ad961d9c5fe8d28c90bf4918f", + "runId": 42821672972, + "originalPreparedAttempt": 1, + "artifactId": 13767614004, + "archiveBytes": 197991, + "archiveSha256": "b87b16c0b6badb38dface2eb7e2c60a84eca6c0c0c70f83fb4b9432ee9546e41", + "manifestSha256": "61739de9c3f1d65a481ec96a297cab63f6576787fdd4e01fbd4cea627b12d22d", + "regularOuterFiles": 5, + "archiveUrl": "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/knowledge-base-v0.1.5-original-artifact-13767614004.zip", + "manifestUrl": "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/manifest.json", + "verificationSummaryUrl": "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/registry-verification.json", + "verificationSummarySha256": "300801d35942113bf36b9faea0366fe840d80d9554a2e1949312f850ed621577", + "scope": "Public artifact identity snapshot; not a cryptographic verification result or a host-acceptance receipt." +} diff --git a/docs/releases/v0.1.5/verification-job.json b/docs/releases/v0.1.5/verification-job.json new file mode 100644 index 0000000..8fe4484 --- /dev/null +++ b/docs/releases/v0.1.5/verification-job.json @@ -0,0 +1,86 @@ +{ + "id": 129895026059, + "run_id": 42821672972, + "run_attempt": 5, + "name": "Verify registry release and consumer", + "status": "completed", + "conclusion": "success", + "started_at": "2026-11-10T14:32:20Z", + "completed_at": "2026-11-10T14:32:38Z", + "html_url": "https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129895026059", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2026-11-10T14:32:21Z", + "completed_at": "2026-11-10T14:32:22Z" + }, + { + "name": "Check out the exact verified release source", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2026-11-10T14:32:22Z", + "completed_at": "2026-11-10T14:32:23Z" + }, + { + "name": "Set up Node.js", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2026-11-10T14:32:23Z", + "completed_at": "2026-11-10T14:32:27Z" + }, + { + "name": "Use the reviewed npm release", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2026-11-10T14:32:27Z", + "completed_at": "2026-11-10T14:32:27Z" + }, + { + "name": "Download the exact immutable prepared artifact", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2026-11-10T14:32:27Z", + "completed_at": "2026-11-10T14:32:28Z" + }, + { + "name": "Verify registry bytes, provenance, and the public consumer", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2026-11-10T14:32:28Z", + "completed_at": "2026-11-10T14:32:36Z" + }, + { + "name": "Post Set up Node.js", + "status": "completed", + "conclusion": "success", + "number": 11, + "started_at": "2026-11-10T14:32:36Z", + "completed_at": "2026-11-10T14:32:36Z" + }, + { + "name": "Post Check out the exact verified release source", + "status": "completed", + "conclusion": "success", + "number": 12, + "started_at": "2026-11-10T14:32:36Z", + "completed_at": "2026-11-10T14:32:36Z" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 13, + "started_at": "2026-11-10T14:32:36Z", + "completed_at": "2026-11-10T14:32:36Z" + } + ], + "head_sha": "6dae20df8dace50ad961d9c5fe8d28c90bf4918f" +} From 961e5e7352441716ab2fcb061c1fb046f311ade7 Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Tue, 10 Nov 2026 12:39:05 -0500 Subject: [PATCH 2/3] docs: bind current 0.1.5 guidance to immutable release evidence --- docs/AGENT_API.md | 13 +- docs/AGENT_WORKFLOW.md | 21 +-- docs/BOOTSTRAP.md | 69 ++++++++- docs/COLLECTIONS.md | 5 +- docs/EVIDENCE_REPORTS.md | 10 +- docs/RELEASING.md | 2 + docs/RETRIEVAL.md | 14 +- docs/SOURCE_PREPARATION.md | 28 ++-- docs/releases/v0.1.5/prepared-artifact.json | 14 ++ docs/releases/v0.1.5/verification-job.json | 7 + examples/agent/README.md | 10 +- examples/composition/README.md | 7 +- packages/application/README.md | 20 +-- packages/contracts/README.md | 9 +- packages/core/README.md | 9 +- packages/mcp/README.md | 20 +-- test/README.md | 11 +- tests/release-receipts.test.ts | 152 ++++++++++++++++++++ 18 files changed, 334 insertions(+), 87 deletions(-) create mode 100644 tests/release-receipts.test.ts diff --git a/docs/AGENT_API.md b/docs/AGENT_API.md index 807ae9c..9b3e69a 100644 --- a/docs/AGENT_API.md +++ b/docs/AGENT_API.md @@ -7,11 +7,12 @@ an authorization engine or another article lifecycle. The KB `0.1.0` packages completed manual bootstrap without OIDC provenance. All four `0.1.1` packages have since completed verified trusted publication. Optional human-reviewed report mode shipped in [`0.1.3`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.3). -All four KB packages are now verified published at -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4), including -the governed authoring-context pair and optional aggregate report query. The -synchronized `0.1.5` internal read-batching candidate remains unpublished; its -own review, gates, publication and strict verification remain open. +The governed authoring-context pair and optional aggregate report query shipped +in [`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). +All four synchronized `0.1.5` packages have completed verified trusted +publication for answering read batching; see the +[current receipt](BOOTSTRAP.md#current-verified-015-release). Changed source +requires its own review and current-head gates. Agent Access's verified public `0.1.1` producer prerequisite is closed; see the [release receipt](BOOTSTRAP.md#verified-agent-access-prerequisite). Passing synthetic transport tests does not establish live host login, protected staging @@ -225,7 +226,7 @@ The [public types](../packages/mcp/src/types.ts) and actual native-client/host acceptance remains separate. Reducing public-port calls does not establish a D1 query, CPU, physical-row or wall-clock allowance. Actual supported host profiles still require measurement; -neither the release nor the `0.1.5` candidate makes a universal Free-tier acceptance claim. +neither release makes a universal Free-tier acceptance claim. ## HTTP composition diff --git a/docs/AGENT_WORKFLOW.md b/docs/AGENT_WORKFLOW.md index 5995ab2..2905f5b 100644 --- a/docs/AGENT_WORKFLOW.md +++ b/docs/AGENT_WORKFLOW.md @@ -6,12 +6,13 @@ application. [KB-05 release-preparation source](https://github.com/pegma-dev/kno is also merged. All four KB `0.1.0` packages completed manual bootstrap and exact-byte postflight without OIDC provenance. All four `0.1.1` packages have since completed verified trusted publication. Optional human-report mode shipped -in [`0.1.3`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.3). All four -packages are now verified published at -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4), including -governed context reads and an optional aggregate report query. The synchronized -`0.1.5` internal read-batching candidate remains unpublished, with its own review, -gates, publication and strict verification open. This document +in [`0.1.3`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.3). +Governed context reads and an optional aggregate report query shipped in +[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). +All four synchronized `0.1.5` packages have completed verified trusted +publication for answering read batching; see the +[current receipt](BOOTSTRAP.md#current-verified-015-release). Changed source +requires its own review and current-head gates. This document describes the composition and retained acceptance contract, not a live service or a client-compatibility claim. The exact wire contract is in [AGENT_API.md](AGENT_API.md). @@ -214,9 +215,9 @@ trusted `0.1.1` release closed the public producer prerequisite at **2026-11-07T22:32:42Z**. The [release ledger](BOOTSTRAP.md#verified-agent-access-prerequisite) records exact identities, the successful attempt-2 workflow, and strict verification stdout. -KB `0.1.4` has since completed verified trusted publication. The `0.1.5` internal -read-batching candidate retains its own gates, PR, and verified trusted release -pending. Both verified trusted dependencies precede production host +KB `0.1.4` and the answering read-batching `0.1.5` release have since completed +verified trusted publication; see the [current KB receipt](BOOTSTRAP.md#current-verified-015-release). +Changed source still requires its own gates. Both verified trusted dependencies precede production host assembly. Branches, copied source, local paths, and unpublished production tarballs cannot substitute for them. @@ -253,4 +254,4 @@ full human-workflow acceptance remain prerequisites before activation, A-01, and either supervised pilot. Synthetic SDK success waives none of them. Fewer repeated reads do not prove a Free-tier D1 budget, CPU allowance or bounded physical-row cost. Measure the actual supported host invocation profiles before -claiming readiness; this candidate closes no such acceptance gate. +claiming readiness; the `0.1.5` release closes no such acceptance gate. diff --git a/docs/BOOTSTRAP.md b/docs/BOOTSTRAP.md index 7fbedae..87ebc7b 100644 --- a/docs/BOOTSTRAP.md +++ b/docs/BOOTSTRAP.md @@ -120,9 +120,46 @@ and [verification summary](https://github.com/pegma-dev/knowledge-base/releases/ are public release assets. Local public snapshots retain the same [manifest bytes](releases/v0.1.5/package-manifest.json), the [original artifact binding](releases/v0.1.5/prepared-artifact.json) and the -[final verification job](releases/v0.1.5/verification-job.json). The summary and +[final verification job projection](releases/v0.1.5/verification-job.json). +The manifest is retained byte-for-byte: **15,260 bytes**, with the independently +retained SHA-256 above. The offline +[release-receipt regression](../tests/release-receipts.test.ts) checks both +against fixed expectations, independently of the adjacent receipt JSON. +Formatting is excluded for that immutable manifest alone. The summary and snapshots record evidence; they do not replace cryptographic verification. +The artifact binding's `archiveBytes: 197991` measures the downloaded original +ZIP container, including ZIP metadata, rather than its expanded payload. +`regularOuterFiles: 5` counts non-directory root entries: `manifest.json` and +the four `.tgz` artifacts. Directory entries are excluded. Its `inspection` +object records those names and meanings. These are reproducible inspection +summary fields, not additions to the canonical schema-2 manifest, which still +contains only `schemaVersion`, `identity` and `artifacts`. To repeat inspection, +download the linked original ZIP without repacking, measure its file length, +and list the non-directory ZIP entries. For example, in PowerShell: + +```powershell +$archive = 'knowledge-base-v0.1.5-original-artifact-13767614004.zip' +(Get-Item -LiteralPath $archive).Length +$zip = [System.IO.Compression.ZipFile]::OpenRead((Resolve-Path -LiteralPath $archive).Path) +try { + $zip.Entries | Where-Object { $_.Name -ne '' } | Select-Object FullName, Length +} finally { + $zip.Dispose() +} +``` + +The verification-job file is a selected-field projection of the authoritative +[GitHub Jobs API record](https://api.github.com/repos/pegma-dev/knowledge-base/actions/jobs/129895026059), +with its returned step records preserved. The API returns the nine step +numbers `1,2,3,4,5,6,11,12,13`; these identifiers are retained exactly rather +than reconstructed from workflow YAML. Their gaps do not authorize inventing +steps `7` through `10` or renumbering the returned post steps. Consult the +[actual job and its logs](https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129895026059) +or the [job-log endpoint](https://api.github.com/repos/pegma-dev/knowledge-base/actions/jobs/129895026059/logs) +for the execution record. The offline regression preserves this exact API +projection; it performs no network check or inference of sequential numbering. + Authenticated source provenance binds each package to its original writer. All four earlier publisher jobs remain failed records; an accepted write is not rolled back by a later job failure: @@ -140,11 +177,27 @@ Recovery preserved the original source, signed tag, manifest and tarballs; it did not repack or replace a version. No cause for the earlier failures is inferred from registry availability. -The independent postflight checked exact original registry and installed -bytes/dependencies, genuine signatures and authenticated source/writer bindings, -then imported all four public roots and checked report-factory/MCP metadata. -Its controlled Memory composition admitted no actual host report and established -no durable host or requested-client run. At this checkpoint, all four KB +The successful GitHub strict verification job checked registry/installed +bytes and dependencies, signatures and authenticated provenance. Its registry +consumer then performed runtime `typeof` checks on four imported root exports: +`knowledgePermissions`, `createArticle`, `createKnowledgeBaseApplication` and +`createKnowledgeAgentDispatcher`. It did not construct a Memory store or +exercise report-factory construction or MCP metadata. The broader packed +consumer used during preparation is a separate check. + +A separately retained independent postflight checked exact original registry +and installed bytes/dependencies, genuine signatures and authenticated +source/writer bindings, then imported the four roots and checked the report +factory and MCP metadata in a controlled Memory composition. The public +[verification summary](https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/registry-verification.json) +records this distinct `independentPostflight` on Node `24.18.0` and npm +`11.18.0`, with result SHA-256 +`7d23957d576a49e4f637e983054b81a574952cc321450092e0443e73248542dd` +and independent peer SHA-256 +`530d18fdb620fdf0c930913bd3493fd84b7e6fd12ae1b7157c791e7994590e58`. +Those checks are not attributed to the GitHub verification job. The controlled +composition admitted no actual host report and established no durable host or +requested-client run. At this checkpoint, all four KB packages had `latest: 0.1.5` and `bootstrap: 0.1.0`; dist-tags remain mutable observations. @@ -154,6 +207,10 @@ adoption, existing-login/Admin consent, actual client/model runs, provider/priva controls, Workers Free query/CPU measurements, full workflows and pilots remain separate open acceptance gates. +The source package READMEs are corrected after publication to reflect this +status for future releases. The original `0.1.5` tarballs, their bundled README +bytes, the signed source, and the byte-exact manifest above remain immutable. + ### Historical verified `0.1.4` release diff --git a/docs/COLLECTIONS.md b/docs/COLLECTIONS.md index 9165d18..5141ae7 100644 --- a/docs/COLLECTIONS.md +++ b/docs/COLLECTIONS.md @@ -14,8 +14,9 @@ and its P-00 capacity/privacy requirements. KB-04's optional HTTP/MCP adapter source is [merged](https://github.com/pegma-dev/knowledge-base/pull/5). The [verified `0.1.3` release](BOOTSTRAP.md#current-verified-013-release) is complete, as is the later [`0.1.4` trusted release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). -The synchronized `0.1.5` internal read-batching candidate is unpublished; its own -release, real-host acceptance, and production readiness retain their gates. The earlier +The synchronized `0.1.5` answering read-batching release has completed verified +trusted publication; see its [current receipt](BOOTSTRAP.md#current-verified-015-release). +Changed-source gates, real-host acceptance, and production readiness remain separate. The earlier `0.1.1` release has a separate [historical receipt](BOOTSTRAP.md#historical-verified-011-release), as does [`0.1.2`](BOOTSTRAP.md#historical-verified-012-release). diff --git a/docs/EVIDENCE_REPORTS.md b/docs/EVIDENCE_REPORTS.md index d72c017..971e66b 100644 --- a/docs/EVIDENCE_REPORTS.md +++ b/docs/EVIDENCE_REPORTS.md @@ -4,11 +4,11 @@ [`0.1.3` packages](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.3). The optional governed context pair and body-free `query` described below shipped in the qualified [`0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). -Synchronized `0.1.5` is an **unpublished internal read-batching candidate** with -its own review, current-head CI, trusted publication and strict consumer -verification pending. Hosts must wait for exact verified publication before adopting new APIs; -source tests and local adapter fixtures do not establish host activation, -actual client acceptance, or a real staging test. +Synchronized `0.1.5` has completed verified trusted publication for answering +read batching; see the [current release receipt](BOOTSTRAP.md#current-verified-015-release). +Changed source still requires its own review and current-head gates. Source +tests and local adapter fixtures do not establish host activation, actual +client acceptance, or a real staging test. The factory stores bounded test reports for authorized human review and supplies an `EvidenceVerifier` to the existing KB application. It adds no login, roles, diff --git a/docs/RELEASING.md b/docs/RELEASING.md index a0501b5..a851c84 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -38,6 +38,8 @@ signatures, source provenance and public-consumer verification. The public release retains the original preparation archive and verification summary, including the original writer attempts and final recovery. It ships governed authoring-context reads, report queries and bounded resumable repair. +The [historical local receipt](BOOTSTRAP.md#current-verified-014-release) retains +that release's separate publication boundary under its preserved anchor. The current verified release is [`0.1.5`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5), the diff --git a/docs/RETRIEVAL.md b/docs/RETRIEVAL.md index dafa26e..8779cb1 100644 --- a/docs/RETRIEVAL.md +++ b/docs/RETRIEVAL.md @@ -13,12 +13,14 @@ followed by the [historical `0.1.2` release](BOOTSTRAP.md#historical-verified-01 and [verified `0.1.3` release](BOOTSTRAP.md#current-verified-013-release). The later qualified [`0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4) includes governed authoring contexts, optional report queries and the bounded -repair mode described below. Synchronized `0.1.5` is an unpublished internal -answering read-batching candidate. Source tests and repository gates, not this -document, determine changed-source completion. KB-04's optional HTTP/MCP adapter -source is [merged](https://github.com/pegma-dev/knowledge-base/pull/5). The candidate's -verified trusted release, real-host acceptance, and production activation retain -their own gates. This guide does not establish a passing host quota or CPU profile. +repair mode described below. Synchronized `0.1.5` has completed verified trusted +publication for answering read batching; see its +[current receipt](BOOTSTRAP.md#current-verified-015-release). Source tests and +repository gates, not this document, determine changed-source completion. +KB-04's optional HTTP/MCP adapter source is +[merged](https://github.com/pegma-dev/knowledge-base/pull/5). Real-host acceptance +and production activation retain their own gates. This guide does not establish +a passing host quota or CPU profile. Read [declared collections](COLLECTIONS.md) for the authoritative record layout and [host composition](HOST_COMPOSITION.md) for trusted access, diff --git a/docs/SOURCE_PREPARATION.md b/docs/SOURCE_PREPARATION.md index b828495..5ede7bf 100644 --- a/docs/SOURCE_PREPARATION.md +++ b/docs/SOURCE_PREPARATION.md @@ -57,15 +57,16 @@ The optional human-report `0.1.3` release is now [verified](BOOTSTRAP.md#current-verified-013-release). The governed context/query features subsequently shipped in the qualified [`0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). -Synchronized `0.1.5` is the unpublished internal read-batching candidate with its -own review, current-head gates, trusted publication and strict verification required. +Synchronized `0.1.5` has completed verified trusted publication for answering +read batching; see its [current receipt](BOOTSTRAP.md#current-verified-015-release). +Changed source still requires its own review and current-head gates. -| Evidence area | This source slice | Separate remaining proof | -| ---------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -| Storage consumer | Shared public KB suites on memory, local Azurite, and local Miniflare D1 | Production Azure/Workers configuration, operations, and host acceptance | -| Composition | Runnable fictional author/evidence/review/publication/retrieval flow | Real host identity, staging verification, existing-login/client acceptance, and UI | -| Artifacts | Four-package checks, schema-2 preparation, and manual `0.1.0` exact-byte postflight | Verified `0.1.1`/`0.1.2`/`0.1.3` receipts remain separate; `0.1.4` is qualified and `0.1.5` still needs its own verified release | -| Task readiness | Current-head repository gates establish source readiness | Verified trusted releases and two-host/client acceptance remain separately recorded | +| Evidence area | This source slice | Separate remaining proof | +| ---------------- | ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| Storage consumer | Shared public KB suites on memory, local Azurite, and local Miniflare D1 | Production Azure/Workers configuration, operations, and host acceptance | +| Composition | Runnable fictional author/evidence/review/publication/retrieval flow | Real host identity, staging verification, existing-login/client acceptance, and UI | +| Artifacts | Four-package checks, schema-2 preparation, and manual `0.1.0` exact-byte postflight | Verified `0.1.1` through `0.1.5` receipts remain separate; changed source and host acceptance require their own gates | +| Task readiness | Current-head repository gates establish source readiness | Verified trusted releases and two-host/client acceptance remain separately recorded | The merged-source results above do not certify this working tree. Record verified current-head gate results before treating changed source as validated. @@ -305,9 +306,9 @@ in [release operations](RELEASING.md) for the actual trusted release. The KB `0.1.3` trusted release completed complete-set registry integrity/signature/provenance verification and released-consumer proof; its [receipt](BOOTSTRAP.md#current-verified-013-release) is separate from these -historical source records. The later `0.1.4` release is also qualified. The -unpublished `0.1.5` internal read-batching candidate retains its own review, -current-head gates, trusted publication, strict verification and released-consumer proof. +historical source records. The later `0.1.4` and answering read-batching `0.1.5` +releases are also qualified; see the [current receipt](BOOTSTRAP.md#current-verified-015-release). +Changed source retains its own review and current-head gates. Manual bootstrap is not OIDC provenance. Agent Access has its own publication history: [Agent Access release preparation](https://github.com/pegma-dev/agent-access/pull/2) @@ -328,9 +329,8 @@ closed the public producer prerequisite; see the [exact receipt](BOOTSTRAP.md#verified-agent-access-prerequisite). The original source-producer proof remains historical evidence, while the changed registry composition requires its own current-head gates. -The verified KB `0.1.3` receipt remains historical; KB `0.1.4` and Agent Access -`0.1.1` producer release prerequisites are closed. The new `0.1.5` internal -read-batching candidate needs its own verified release before host adoption. Both hosts still require exact verified trusted +The verified KB `0.1.3` and `0.1.4` receipts remain historical; KB `0.1.5` and +Agent Access `0.1.1` producer release prerequisites are closed. Both hosts still require exact verified trusted dependencies and their retained acceptance before activation. Hosts must wait for exact released artifacts rather than adopting branches, copied source, local paths, or unpublished production tarballs. diff --git a/docs/releases/v0.1.5/prepared-artifact.json b/docs/releases/v0.1.5/prepared-artifact.json index cf29cce..f5cfbe6 100644 --- a/docs/releases/v0.1.5/prepared-artifact.json +++ b/docs/releases/v0.1.5/prepared-artifact.json @@ -9,7 +9,21 @@ "archiveBytes": 197991, "archiveSha256": "b87b16c0b6badb38dface2eb7e2c60a84eca6c0c0c70f83fb4b9432ee9546e41", "manifestSha256": "61739de9c3f1d65a481ec96a297cab63f6576787fdd4e01fbd4cea627b12d22d", + "manifestBytes": 15260, "regularOuterFiles": 5, + "inspection": { + "kind": "original-zip-inspection-projection", + "archiveBytes": "Length in bytes of the downloaded original ZIP container, including its ZIP metadata; not expanded payload bytes.", + "regularOuterFiles": "Count non-directory entries at the ZIP root: manifest.json plus four package tarballs. Directory entries are excluded.", + "regularOuterFileNames": [ + "manifest.json", + "pegma-knowledge-base-application-0.1.5.tgz", + "pegma-knowledge-base-contracts-0.1.5.tgz", + "pegma-knowledge-base-core-0.1.5.tgz", + "pegma-knowledge-base-mcp-0.1.5.tgz" + ], + "reproduce": "Download archiveUrl without repacking, measure the downloaded file length, and list its non-directory root ZIP entries. These are inspection-summary fields, not fields of the canonical schema-2 package manifest." + }, "archiveUrl": "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/knowledge-base-v0.1.5-original-artifact-13767614004.zip", "manifestUrl": "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/manifest.json", "verificationSummaryUrl": "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/registry-verification.json", diff --git a/docs/releases/v0.1.5/verification-job.json b/docs/releases/v0.1.5/verification-job.json index 8fe4484..78daa19 100644 --- a/docs/releases/v0.1.5/verification-job.json +++ b/docs/releases/v0.1.5/verification-job.json @@ -8,6 +8,13 @@ "started_at": "2026-11-10T14:32:20Z", "completed_at": "2026-11-10T14:32:38Z", "html_url": "https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129895026059", + "snapshot": { + "kind": "github-actions-jobs-api-field-projection", + "sourceUrl": "https://api.github.com/repos/pegma-dev/knowledge-base/actions/jobs/129895026059", + "logsUrl": "https://api.github.com/repos/pegma-dev/knowledge-base/actions/jobs/129895026059/logs", + "stepNumbers": "Preserved exactly as returned by the Jobs API: 1,2,3,4,5,6,11,12,13. They are source identifiers, not a sequence inferred from workflow YAML; no steps 7 through 10 are invented or renumbered.", + "scope": "Selected job identity, status, timing and complete returned step records; not the complete Jobs API response." + }, "steps": [ { "name": "Set up job", diff --git a/examples/agent/README.md b/examples/agent/README.md index e5d3a6a..e106dc3 100644 --- a/examples/agent/README.md +++ b/examples/agent/README.md @@ -20,12 +20,14 @@ not establish any of the four target client applications, a deployed host, real browser login, real staging execution, verified KB publication, or host activation. Real host/client acceptance and activation remain open. -The four packed KB artifacts in this working tree are unpublished `0.1.5` -answering read-batching candidates. The separate +All four answering read-batching `0.1.5` packages have completed verified trusted +publication; see the [current receipt](../../docs/BOOTSTRAP.md#current-verified-015-release). +This proof packs the current working tree for source qualification and does not +re-verify the immutable published `0.1.5` artifacts. The separate [qualified `0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4) shipped the governed context/query features; its verification does not validate -changed `0.1.5` source. The candidate requires its own review, current-head gates, -trusted publication and strict consumer verification. The +changed source. Changes after the `0.1.5` release require their own review and +current-head gates, followed by a separate verified release before host adoption. The [verified `0.1.3` receipt](../../docs/BOOTSTRAP.md#current-verified-013-release) remains historical. diff --git a/examples/composition/README.md b/examples/composition/README.md index b7975f9..8767f0a 100644 --- a/examples/composition/README.md +++ b/examples/composition/README.md @@ -29,9 +29,10 @@ The four-package `0.1.3` release has a [historical verified receipt](../../docs/BOOTSTRAP.md#current-verified-013-release). All four packages subsequently completed qualified trusted publication at [`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4) for the -governed context/query features. Source `0.1.5` is the unpublished internal -answering read-batching candidate requiring its own reviewed, verified trusted -release. +governed context/query features. The answering read-batching `0.1.5` release is +also verified; see its [current receipt](../../docs/BOOTSTRAP.md#current-verified-015-release). +Changed source requires its own review and current-head gates, followed by a +separate verified release before host adoption. Production hosts retain their separate acceptance gates. The flow creates a fictional workshop collection with portal use disabled and a diff --git a/packages/application/README.md b/packages/application/README.md index 7f20e90..d547435 100644 --- a/packages/application/README.md +++ b/packages/application/README.md @@ -20,10 +20,13 @@ The optional report service shipped in the verified Governed authoring contexts, report queries and bounded resumable repair shipped in the verified [`v0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). -Source here prepares the synchronized **unpublished `0.1.5` candidate** for -answering read batching. Its own review, current-head gates, trusted publication -and strict registry verification remain required. Backend query and CPU budgets -require actual host measurements. +The synchronized answering read-batching `0.1.5` release has completed verified +trusted publication; see its +[release receipt](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5). +Changed source still requires its own review and current-head gates. Backend +query and CPU budgets require actual host measurements. These source README +corrections apply to a future release. Published `0.1.5` tarballs, including +their bundled README bytes, remain unchanged. Source readers can use the explicitly moving [DEVELOPMENT documentation on main](https://github.com/pegma-dev/knowledge-base/blob/main/docs/HOST_COMPOSITION.md) while preparing a release. The versioned contract references remain tag-pinned; @@ -179,9 +182,8 @@ by the existing component limits, and real host profiles need measured proof. The application exports `createKnowledgeEvidenceReports` and its public option, input, view, acknowledgement and error types. The factory shipped in verified `0.1.3`; governed authoring-context and report-query support shipped in verified -`0.1.4`. The new `0.1.5` performance candidate requires its own review, -current-head CI, trusted publication and strict consumer verification. Host -acceptance remains separate. The +`0.1.4`. The answering read-batching `0.1.5` release is also verified. Changed +source requires its own review and current-head gates. Host acceptance remains separate. The [versioned evidence-report guide](https://github.com/pegma-dev/knowledge-base/blob/v0.1.4/docs/EVIDENCE_REPORTS.md) describes explicit Store namespace/current-authority ports, human confirmation before actual KB qualification, bounded epochs/retention, and the separate @@ -252,8 +254,8 @@ I/O, host checkpoints, CPU or elapsed time. Prepared read waves preserve all required approved proofs and revocation markers, and final current publication, audience, source and head checks. Retained history is unchanged. They add no authorization cache and do not establish -Workers Free quota acceptance. The `0.1.5` candidate's own gates, trusted -release and whole-host measurements remain separate. +Workers Free quota acceptance. The `0.1.5` trusted release is complete; +changed-source gates and whole-host measurements remain separate. ## Storage and limits diff --git a/packages/contracts/README.md b/packages/contracts/README.md index 7edbd38..2e51472 100644 --- a/packages/contracts/README.md +++ b/packages/contracts/README.md @@ -7,10 +7,11 @@ using host-resolved Authorization Core contexts. Identity and time types come from `@pegma/spine`. The current verified synchronized release is -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). Source -here prepares the unpublished `0.1.5` patch candidate alongside the application -answering read-batching work. Its own review, current-head gates, trusted -publication and strict registry verification remain required. +[`0.1.5`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5), including +the application answering read-batching patch. Changed source still requires +its own review and current-head gates; host acceptance remains separate. +These source README corrections apply to a future release. Published `0.1.5` +tarballs, including their bundled README bytes, remain unchanged. Collections independently enable portal and bot use for an explicit audience. Every article inherits its collection policy; there are no article-level access diff --git a/packages/core/README.md b/packages/core/README.md index 2ff3286..082e24d 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -5,10 +5,11 @@ transitions. It requires no Support Desk, GitHub, model, framework, database, or provider SDK. The current verified synchronized release is -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4). Source -here prepares the unpublished `0.1.5` patch candidate alongside the application -answering read-batching work. Its own review, current-head gates, trusted -publication and strict registry verification remain required. +[`0.1.5`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5), including +the application answering read-batching patch. Changed source still requires +its own review and current-head gates; host acceptance remains separate. +These source README corrections apply to a future release. Published `0.1.5` +tarballs, including their bundled README bytes, remain unchanged. Core owns domain invariants. The application service checks current named permissions, loads authoritative records, uses host-verified evidence facts, diff --git a/packages/mcp/README.md b/packages/mcp/README.md index 5cf319f..52678ad 100644 --- a/packages/mcp/README.md +++ b/packages/mcp/README.md @@ -6,11 +6,12 @@ Context Protocol. Hosts compose it with their protected Knowledge Base endpoints; the package does not supply a hosted service. All four Knowledge Base packages are verified published at -[`0.1.4`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4), including -the optional aggregate query over the existing report workflow. Source here -prepares the synchronized **unpublished `0.1.5` patch candidate** for answering -read batching; its own review, gates, trusted publication and strict verification -remain open. Host and actual client acceptance are separate. +[`0.1.5`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.5), including +answering read batching and the aggregate report query introduced in `0.1.4`. +Changed source requires its own review and current-head gates. Host and actual +client acceptance remain separate. These source README corrections apply to a +future release. Published `0.1.5` tarballs, including their bundled README bytes, +remain unchanged. The contracts, core, and application packages remain independent of MCP, HTTP, provider SDKs, and login flows. Hosts choose this adapter when exposing agent @@ -123,8 +124,8 @@ and [report lifecycle](https://github.com/pegma-dev/knowledge-base/blob/v0.1.3/d for the published report trio. The aggregate query and context/read-confirm pair shipped in verified `0.1.4`; see its [versioned guide](https://github.com/pegma-dev/knowledge-base/blob/v0.1.4/docs/EVIDENCE_REPORTS.md). -The new `0.1.5` candidate still requires its own verified publication. Actual -client/host acceptance remains open. +The answering read-batching `0.1.5` release is also verified. Actual client/host +acceptance remains open. ## Local verification and release @@ -156,8 +157,9 @@ exact internal dependency pins. Publishing, release tags, trusted-publisher conf host activation are separate maintainer operations in the [release procedure](https://github.com/pegma-dev/knowledge-base/blob/v0.1.3/docs/RELEASING.md). The report-trio contract links above retain verified `v0.1.3`; aggregate query -and context-pair support shipped in verified `v0.1.4`. The `0.1.5` candidate -retains its separate release gates. +and context-pair support shipped in verified `v0.1.4`. The answering +read-batching `0.1.5` release has its own verified receipt; changed source +requires its own review and current-head gates. Source readers can use the explicitly moving [DEVELOPMENT documentation on main](https://github.com/pegma-dev/knowledge-base/blob/main/docs/HOST_COMPOSITION.md) diff --git a/test/README.md b/test/README.md index 557bb4b..6e270af 100644 --- a/test/README.md +++ b/test/README.md @@ -22,8 +22,9 @@ Upgrade tests use the dev-only exact registry alias `npm:@pegma/knowledge-base-application@0.1.1` to write real legacy records before the candidate reads them. The lockfile integrity pin matches the previously verified `0.1.1` artifact; no copied source or branch supplies this writer. -The four unpublished candidate runtime packages are `0.1.5`, and the Agent Access -protocol-proof pin remains `0.1.1`. +The current four-package verified KB release is `0.1.5`, and the Agent Access +protocol-proof pin remains `0.1.1`. Tests exercise the current working tree; +changed-source gates are separate from immutable published-release evidence. `trace-store.ts` delegates every record operation to the supplied real store. Its transaction interception adds refusals or a manual race barrier; captured @@ -99,6 +100,6 @@ without OIDC provenance. The four-package KB `0.1.1` trusted release has a by the [historical verified `0.1.2` release](../docs/BOOTSTRAP.md#historical-verified-012-release) and [verified `0.1.3` release](../docs/BOOTSTRAP.md#current-verified-013-release). The later [`0.1.4` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.4) -is qualified. Synchronized `0.1.5` is an unpublished internal read-batching -candidate with its own gates and verified trusted release required; host -activation gates remain open. +is qualified. Synchronized `0.1.5` has also completed verified trusted publication +for answering read batching; see the [current receipt](../docs/BOOTSTRAP.md#current-verified-015-release). +Changed-source and host activation gates remain open. diff --git a/tests/release-receipts.test.ts b/tests/release-receipts.test.ts new file mode 100644 index 0000000..ca1604b --- /dev/null +++ b/tests/release-receipts.test.ts @@ -0,0 +1,152 @@ +import { createHash } from "node:crypto"; +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +const releaseDirectory = new URL("../docs/releases/v0.1.5/", import.meta.url); +// Independently retained at original preparation, not read from adjacent JSON. +const manifestSha256 = + "61739de9c3f1d65a481ec96a297cab63f6576787fdd4e01fbd4cea627b12d22d"; +const sourceCommit = "6dae20df8dace50ad961d9c5fe8d28c90bf4918f"; +const packageNames = [ + "@pegma/knowledge-base-contracts", + "@pegma/knowledge-base-core", + "@pegma/knowledge-base-application", + "@pegma/knowledge-base-mcp", +]; + +function readReceipt(name: string) { + return JSON.parse(readFileSync(new URL(name, releaseDirectory), "utf8")); +} + +describe("immutable published 0.1.5 release receipts", () => { + it("binds the local manifest's exact bytes to the independently retained digest and size", () => { + const bytes = readFileSync( + new URL("package-manifest.json", releaseDirectory), + ); + expect(bytes.byteLength).toBe(15_260); + expect(createHash("sha256").update(bytes).digest("hex")).toBe( + manifestSha256, + ); + const manifest = JSON.parse(bytes.toString("utf8")); + expect(Object.keys(manifest).sort()).toEqual([ + "artifacts", + "identity", + "schemaVersion", + ]); + expect(manifest.schemaVersion).toBe(2); + expect(manifest.identity).toEqual({ + repository: "pegma-dev/knowledge-base", + tag: "v0.1.5", + commit: sourceCommit, + version: "0.1.5", + }); + expect( + manifest.artifacts.map((artifact: { name: string }) => artifact.name), + ).toEqual(packageNames); + for (const artifact of manifest.artifacts) { + expect(artifact.version).toBe("0.1.5"); + expect(artifact.size).toBeGreaterThan(0); + expect( + artifact.files.map((file: { path: string }) => file.path), + ).toContain("README.md"); + for (const name of packageNames) + if (Object.hasOwn(artifact.dependencies, name)) + expect(artifact.dependencies[name]).toBe("0.1.5"); + } + // The snapshot binds shipped tarballs, not subsequently corrected source READMEs. + }); + + it("keeps the inspection projection tied to the same release and defines its ZIP counts", () => { + const prepared = readReceipt("prepared-artifact.json"); + const manifest = readReceipt("package-manifest.json"); + expect(prepared).toMatchObject({ + schemaVersion: 1, + repository: manifest.identity.repository, + tag: manifest.identity.tag, + sourceCommit, + runId: 42821672972, + originalPreparedAttempt: 1, + artifactId: 13767614004, + archiveBytes: 197_991, + archiveSha256: + "b87b16c0b6badb38dface2eb7e2c60a84eca6c0c0c70f83fb4b9432ee9546e41", + manifestSha256, + manifestBytes: 15_260, + regularOuterFiles: 5, + inspection: { kind: "original-zip-inspection-projection" }, + }); + const expectedFiles = [ + "manifest.json", + ...manifest.artifacts.map( + (artifact: { filename: string }) => artifact.filename, + ), + ].sort(); + expect([...prepared.inspection.regularOuterFileNames].sort()).toEqual( + expectedFiles, + ); + expect(prepared.regularOuterFiles).toBe(expectedFiles.length); + expect(new Set(prepared.inspection.regularOuterFileNames).size).toBe(5); + const expandedPayloadBytes = manifest.artifacts.reduce( + (total: number, artifact: { size: number }) => total + artifact.size, + prepared.manifestBytes, + ); + expect(prepared.archiveBytes).not.toBe(expandedPayloadBytes); + expect(prepared.archiveUrl).toBe( + "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/knowledge-base-v0.1.5-original-artifact-13767614004.zip", + ); + expect(prepared.manifestUrl).toBe( + "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/manifest.json", + ); + expect(prepared.verificationSummaryUrl).toBe( + "https://github.com/pegma-dev/knowledge-base/releases/download/v0.1.5/registry-verification.json", + ); + // This validates the committed projection without downloading or repacking a ZIP. + }); + + it("preserves the Jobs API's exact returned step identities instead of inferring sequential numbers", () => { + const job = readReceipt("verification-job.json"); + const prepared = readReceipt("prepared-artifact.json"); + const sourceUrl = + "https://api.github.com/repos/pegma-dev/knowledge-base/actions/jobs/129895026059"; + expect(job).toMatchObject({ + id: 129895026059, + run_id: prepared.runId, + run_attempt: 5, + name: "Verify registry release and consumer", + head_sha: prepared.sourceCommit, + status: "completed", + conclusion: "success", + snapshot: { + kind: "github-actions-jobs-api-field-projection", + sourceUrl, + logsUrl: sourceUrl + "/logs", + }, + }); + expect(job.html_url).toBe( + "https://github.com/pegma-dev/knowledge-base/actions/runs/42821672972/job/129895026059", + ); + // Frozen from the authoritative job response; the absent integers do not + // imply missing workflow records and must never be filled or renumbered. + expect( + job.steps.map((step: { number: number; name: string }) => [ + step.number, + step.name, + ]), + ).toEqual([ + [1, "Set up job"], + [2, "Check out the exact verified release source"], + [3, "Set up Node.js"], + [4, "Use the reviewed npm release"], + [5, "Download the exact immutable prepared artifact"], + [6, "Verify registry bytes, provenance, and the public consumer"], + [11, "Post Set up Node.js"], + [12, "Post Check out the exact verified release source"], + [13, "Complete job"], + ]); + for (const step of job.steps) + expect(step).toMatchObject({ + status: "completed", + conclusion: "success", + }); + }); +}); From 3b9c32a741ac8f2a95c38929e094c9e975fbc2be Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Tue, 10 Nov 2026 13:14:27 -0500 Subject: [PATCH 3/3] docs: clarify completed release proof and portable ZIP inspection --- docs/BOOTSTRAP.md | 1 + docs/SOURCE_PREPARATION.md | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/BOOTSTRAP.md b/docs/BOOTSTRAP.md index 87ebc7b..63da6ea 100644 --- a/docs/BOOTSTRAP.md +++ b/docs/BOOTSTRAP.md @@ -141,6 +141,7 @@ and list the non-directory ZIP entries. For example, in PowerShell: ```powershell $archive = 'knowledge-base-v0.1.5-original-artifact-13767614004.zip' (Get-Item -LiteralPath $archive).Length +Add-Type -AssemblyName System.IO.Compression.FileSystem $zip = [System.IO.Compression.ZipFile]::OpenRead((Resolve-Path -LiteralPath $archive).Path) try { $zip.Entries | Where-Object { $_.Name -ne '' } | Select-Object FullName, Length diff --git a/docs/SOURCE_PREPARATION.md b/docs/SOURCE_PREPARATION.md index 5ede7bf..6314e2b 100644 --- a/docs/SOURCE_PREPARATION.md +++ b/docs/SOURCE_PREPARATION.md @@ -268,8 +268,11 @@ A local candidate run on **2026-11-07** passed with `packedPackages: 4`, and five-operation positive/negative checks passed. It retained `liveHostsProven: false` and `targetClientAppsProven: 0`. A separate negative probe rejected a source override at stage 1 before external commands. -Current-head Node 22/24 CI and the candidate's remaining review/release gates -are still required. +That dated proof does not validate later source changes. The current `0.1.5` +release has since completed its own gates, review, trusted publication and +strict verification; see the [release receipt](BOOTSTRAP.md#current-verified-015-release). +Future changed source requires fresh current-head Node 22/24 CI and review; +each later release requires its own verified publication. That gate exercises OAuth and the exact five-tool draft/read/write/requirements/ evidence flow, shared HTTP/MCP behavior, and rejection cases. The evidence