Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ tests. The approved scope is the [Support Desk enhancement plan](https://github.
read batching; retain the [historical release receipt](docs/BOOTSTRAP.md#current-verified-015-release).
All four `0.1.6` packages completed verified trusted publication for MCP metadata
compatibility. Retain the [current release receipt](docs/BOOTSTRAP.md#current-verified-016-release).
The synchronized `0.1.7` source candidate remains unpublished.
All four `0.1.7` packages completed verified trusted publication for the staff
report-view canonical receipt. Retain the [verified release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The synchronized `0.1.8` source candidate remains unpublished.
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
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ and exact publication approval. It requires no GitHub connection or AI provider.
> for answering read batching, including strict registry/provenance and public-consumer
> verification. All four `0.1.6` packages completed
> [verified trusted publication](docs/BOOTSTRAP.md#current-verified-016-release)
> for MCP extension metadata compatibility. The `0.1.7` candidate remains unpublished.
> for MCP extension metadata compatibility. All four `0.1.7` packages completed
> [verified trusted publication](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7)
> for the staff report-view canonical receipt. The `0.1.8` candidate remains unpublished.
> 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.
Expand Down Expand Up @@ -173,7 +175,7 @@ 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 [retained `0.1.5` receipt](docs/BOOTSTRAP.md#current-verified-015-release)
binds the original artifact, exact manifest, authenticated original writers and
strict verification. The [current `0.1.6` receipt](docs/BOOTSTRAP.md#current-verified-016-release)
strict verification. The [historical `0.1.6` receipt](docs/BOOTSTRAP.md#current-verified-016-release)
records the later verified metadata compatibility release. Read batching establishes no universal backend query or
CPU budget. Neither registry publication nor synthetic proof satisfies real
host acceptance or approves activation.
Expand Down
2 changes: 1 addition & 1 deletion docs/AGENT_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ 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
[retained receipt](BOOTSTRAP.md#current-verified-015-release). The current verified
release is [`0.1.6`](BOOTSTRAP.md#current-verified-016-release). The `0.1.7` candidate
release is [`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7). The `0.1.8` candidate
remains unpublished. Changed source
requires its own review and current-head gates.
Agent Access's verified public `0.1.1` producer prerequisite is closed; see the
Expand Down
4 changes: 2 additions & 2 deletions docs/AGENT_WORKFLOW.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Agent authoring and test-evidence workflow

The current verified Knowledge Base release is
[`0.1.6`](BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

The [merged KB-04 source](https://github.com/pegma-dev/knowledge-base/pull/5)
adds optional authoring transports over the existing Knowledge Base
Expand Down
32 changes: 25 additions & 7 deletions docs/BOOTSTRAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.6`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.6); Agent Access
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7); 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`, `0.1.3`, `0.1.4` and `0.1.5`
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. The [current `0.1.6` receipt](#current-verified-016-release)
records the later MCP metadata compatibility release. The `0.1.7` source candidate
registry/consumer qualification. The [retained `0.1.6` receipt](#current-verified-016-release)
records the MCP metadata compatibility release. The `0.1.8` source candidate
remains unpublished and requires its own current-head gates and release.
Host dependency adoption and acceptance remain separate.

Expand Down Expand Up @@ -88,7 +88,25 @@ the approved dependency set or establishes real-host acceptance.

## Verified Knowledge Base release

### Current verified `0.1.6` release
### Verified `0.1.7` release

All four synchronized [`0.1.7` packages](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7)
completed exact-registry-byte, native signature, source-provenance and clean
consumer verification. Signed source is `27074b8bba76817ea6960606cf29d8fc239943b0`,
with annotated tag object `8cd14438d9dbff78eb0e1db288cfa09741e12e99`. The
[successful attempt 5](https://github.com/pegma-dev/knowledge-base/actions/runs/43271542639/attempts/5)
verified four identical existing packages and uploaded zero versions. Original
physical writers were attempts 1 through 4. The original preparation artifact
`13969137667` has ZIP SHA-256
`c683fb87be0351ce75d6a99921b5e4428c501f39e22cf6ce04aeba6ad962b75c`;
its manifest SHA-256 is
`514cbf58b297dd73939dc37d833254edfc39de561cd40f525717947d06491116`.
The release adds the canonical receipt to the staff report view. Its original
Comment thread
FlyOverCoderKY marked this conversation as resolved.
Resolved
package bytes and prior release receipts retain their identities.

<a id="current-verified-016-release"></a>

### Historical verified `0.1.6` release

All four synchronized KB `0.1.6` packages completed exact-registry-byte, native
signature, authenticated source-provenance and clean-consumer verification at
Expand Down Expand Up @@ -508,11 +526,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 current KB release is `0.1.6` with exact internal dependency
The synchronized current verified KB release is `0.1.7` 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` through `0.1.5` remain above alongside the
current verified `0.1.6` receipt.
retained verified `0.1.6` receipt and the `0.1.7` release.
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
Expand All @@ -528,6 +546,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.6` and Agent Access `0.1.1` public producer release
remains historical; KB `0.1.7` 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.
4 changes: 2 additions & 2 deletions docs/COLLECTIONS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Declared collections and durable layout

The current verified Knowledge Base release is
[`0.1.6`](BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

## Design status

Expand Down
50 changes: 48 additions & 2 deletions docs/EVIDENCE_REPORTS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Human-reviewed evidence reports

The current verified Knowledge Base release is
[`0.1.6`](BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

`createKnowledgeEvidenceReports` shipped in the four synchronized, verified
[`0.1.3` packages](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.3).
Expand Down Expand Up @@ -131,6 +131,52 @@ intact. This source change establishes no universal Workers Free 50-query, CPU
or wall-clock guarantee. Complete host invocations, real authorities, supported
histories, retries and cold composition require their own measured acceptance.

## Optional report observations (`0.1.8` candidate)

The unpublished `0.1.8` candidate adds `reports.observations` when the factory
receives the actual `authoringContext` pair. Legacy factories keep this property
absent. Existing `read`, owner-only `status`, decisions and the verifier retain
their contracts.

`observe(access, { articleId, ledgerEpoch, reportId })` returns
`{ view, context, observation }` for a confirmed report. The view has the existing
`KnowledgeReportView` shape. The context contains the actual governed draft,
narrow requirements and complete current accepted evidence/revocation history.
The configured human confirmation permission, draft/evidence reading and either
evidence-submit or draft-write authority remain required. Current staff authority
is checked again after all private reads before disclosure.

Treat the returned data as provisional until
`confirm(access, observation, verification?)` finishes. Its opaque handle belongs
to that report instance, exact effective actor and one operation. A clone or
another instance is invalid. A wrong actor cannot consume the original handle.
An actual confirmation consumes it before awaited work, including failed probes;
start a fresh observation after failure. Returned data is detached from the
retained observation, so changing a view cannot change its binding. Keep handles
out of wire DTOs, storage, command fingerprints and retained receipts.

The confirmation checks the real KB authoring resource versions before its
closing report read. Fresh actor and reviewer authority are checked in a settled
read-only wave with the exact report row. The observed reviewer authority and
report version must still match. The ledger head is the final data await, fencing
reset, resetting state and changed raw head versions. These separate observations
establish bounded freshness across collections; they hold no atomic lock.

The result is `{ receipt, attestation }`. Without `verification`, attestation is
`null`. A trusted host may supply the existing `EvidenceVerificationRequest` for
the actual original submitter. The method reuses the legacy verifier's receipt,
whole submission, article, configuration, revocation and freshness predicates
against the already-observed real context. Current original-owner evidence-submit
authority remains required. Another staff reader can confirm a private read while
owner-only status and attestation remain bound to the submitter. Hosts continue
to obtain privileged current governance through their existing intrinsic port;
the new context exposes the existing narrow requirements DTO only.

The pair adds no durable row, scope, tool, credential or host session check. Hosts
retain their current credential, Support/source/product and precommit/ACK fences.
Query count and CPU acceptance require complete physical host measurements with
the actual read scheduling and authority callbacks.

## Submit, review, then qualify evidence

`report(access, input)` accepts `SubmitKnowledgeReportInput`: `commandId`,
Expand Down
15 changes: 13 additions & 2 deletions docs/HOST_COMPOSITION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Application and retrieval host composition

The current verified Knowledge Base release is
[`0.1.6`](BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

## Status and ownership

Expand Down Expand Up @@ -220,6 +220,17 @@ requirements operation; legacy report trios retain their fallback. It returns
no draft body, private evidence, report details, reviewer or provenance. See
[evidence reports](EVIDENCE_REPORTS.md) for composition and exact privacy rules.

The unpublished `0.1.8` report observation capability reuses the real
evidence-bearing authoring context within one operation. Its private view remains
provisional until the paired confirmation checks resource versions, current
actor/reviewer authority, the exact report and final ledger head. Keep the
original effective caller and the host's current credential, governance,
Support/source/product and commit/ACK guards. A different staff reader receives
no submitter-bound verifier authority. The
[report contract](EVIDENCE_REPORTS.md#optional-report-observations-018-candidate)
defines the instance-bound, single-use handle and legacy fallback. Real host
query and CPU profiles remain pending acceptance work.

These are finite current observations across separate partitions, not a global
snapshot or policy lock. Evidence qualification, exact review/publication and
host credential freshness remain independent checks. Private record keys are
Expand Down
31 changes: 21 additions & 10 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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.6`
independently retained digests. The qualified release versions are KB `0.1.7`
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.

Expand Down Expand Up @@ -103,24 +103,35 @@ signature, source-provenance and clean-consumer verification.
Existing release receipts, tag links and tarballs retain their original
identities. Host and native-client acceptance remain separately gated.

## Unpublished 0.1.7 candidate
## Verified 0.1.7 release

All four source package versions and exact internal pins are synchronized at
`0.1.7`. The candidate adds the required `receipt: string` to the existing staff
All four released package versions and exact internal pins were synchronized at
`0.1.7`. The release added the required `receipt: string` to the existing staff
`KnowledgeReportView` for its authenticated canonical report receipt. The read
refuses observed concurrent report or ledger changes before returning the view.
A host can associate the receipt with Support test results after refreshing the
governed KB context and checking exact accepted evidence and revocation DTOs
through authorized public reads. Actual receipt verification and owner-only
status remain bound to the original submitter. These host association checks
leave existing KB evidence acceptance unchanged. The candidate adds no tool,
leave existing KB evidence acceptance unchanged. The release adds no tool,
scope, role or durable state.

The current qualified release remains `0.1.6`. Combined candidate source requires
current-head Node 22 and 24 gates, review, signed-tag preparation, trusted
publication and strict complete-set registry verification before adoption.
Host and native-client acceptance remain separately gated. Read the
[application upgrade note](../packages/application/README.md#unpublished-017-candidate) for the receipt boundary and synchronized graph.
The [qualified `0.1.7` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7) completed trusted
publication and strict complete-set registry and consumer verification. Host and
native-client acceptance remain separate. Read the
[application upgrade note](../packages/application/README.md#verified-017-release)
for the receipt boundary and synchronized graph.

## Unpublished 0.1.8 candidate

All four source versions and internal pins are synchronized at `0.1.8`. The
optional operation-local [report observation pair](EVIDENCE_REPORTS.md#optional-report-observations-018-candidate)
reuses the real governed context and confirms its resources, report, ledger and
current authorities. It adds no wire operation, scope, durable row or migration.
The candidate requires current-head Node 22 and 24 gates, configured review,
signed-tag preparation, trusted publication and complete-set registry verification
before public adoption. Host query and CPU profiles remain measured acceptance
work.

## Repository and development artifact gates

Expand Down
4 changes: 2 additions & 2 deletions docs/RETRIEVAL.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# KB-03 bounded retrieval

The current verified Knowledge Base release is
[`0.1.6`](BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

## Design status

Expand Down
4 changes: 2 additions & 2 deletions docs/SOURCE_PREPARATION.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# KB-05 source preparation

The current verified Knowledge Base release is
[`0.1.6`](BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

## Scope and readiness

Expand Down
4 changes: 2 additions & 2 deletions examples/agent/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Packed local agent protocol proof

The current verified Knowledge Base release is
[`0.1.6`](../../docs/BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

Run `pnpm run agent:proof` from the repository after
`pnpm install --frozen-lockfile`, on Node 22.6+ or Node 24. npm must be
Expand Down
4 changes: 2 additions & 2 deletions examples/composition/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Fictional Knowledge Base composition

The current verified Knowledge Base release is
[`0.1.6`](../../docs/BOOTSTRAP.md#current-verified-016-release).
The `0.1.7` source candidate remains unpublished.
[`0.1.7`](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.7).
The `0.1.8` source candidate remains unpublished.

This runnable Node example uses public package entry points and Storage Core's
real memory Store. It demonstrates authoring, bound synthetic verification
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"@cloudflare/workers-types": "5.20260730.1",
"@modelcontextprotocol/sdk": "1.32.2",
"@pegma/authorization-core": "0.4.0",
"@pegma/knowledge-base-application": "0.1.7",
"@pegma/knowledge-base-application": "0.1.8",
"@pegma/knowledge-base-application-previous": "npm:@pegma/knowledge-base-application@0.1.1",
"@pegma/knowledge-base-contracts": "0.1.7",
"@pegma/knowledge-base-core": "0.1.7",
"@pegma/knowledge-base-mcp": "0.1.7",
"@pegma/knowledge-base-contracts": "0.1.8",
"@pegma/knowledge-base-core": "0.1.8",
"@pegma/knowledge-base-mcp": "0.1.8",
"@pegma/spine": "0.1.2",
"@pegma/storage-azure-tables": "0.4.0",
"@pegma/storage-cloudflare-d1": "0.4.6",
Expand Down
Loading
Loading