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
24 changes: 17 additions & 7 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ tests. The approved scope is the [Support Desk enhancement plan](https://github.
slices are merged. The partial slice adds local D1 conformance and a public
synthetic composition; the release slice adds exact-artifact tooling. All four
`0.1.0` packages completed manual maintainer bootstrap with exact-byte
postflight on 2026-11-07, without OIDC provenance. Source `0.1.1` is a candidate
for the first advertised trusted release; its review, publication, strict
registry/provenance verification, and host acceptance remain gates.
postflight on 2026-11-07, without OIDC provenance. All four `0.1.1` packages
subsequently completed verified trusted publication; retain the
[release receipt](docs/BOOTSTRAP.md#verified-knowledge-base-release).
Source `0.1.2` is the SD-03 atomic draft/source candidate and still requires
its own review, current-head gates, trusted publication, and strict verification.
Real-host acceptance remains 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.
Expand All @@ -39,6 +42,13 @@ tests. The approved scope is the [Support Desk enhancement plan](https://github.
enforces named permissions and current KB resources; the host authenticates
access contexts and evidence/source facts. Caller-supplied proof fields do
not establish that trust.
- Direct host `createDraft`/`updateDraft` may supply complete `sourceReferences`
atomically with content. Presence, including `[]`, requires `draftWrite` and
`provenanceWrite`; every reference needs current source-read authority on
conflict retry and replay. Initial HTTP/MCP schemas reject the field and
expose no new scope or tool. SD-03 hosts must always supply a complete
nonempty set; omission retains legacy behavior and does not close its source
window. Readability does not establish publication eligibility/currentness.
- KB-02 article heads are normalized; content/evidence/publication history is
immutable and bounded. Application generation fences every state change,
independently of content revision. Same-partition CAS, Audit, receipts, and
Expand Down Expand Up @@ -99,8 +109,8 @@ tarballs. Independently retain its SHA-256 digest; never trust a digest taken
only from the downloaded artifact. Preflight all four registry versions before
any publish, and recover only by accepting byte-identical existing artifacts.
See [release operations](docs/RELEASING.md) and the
[first-publication handoff](docs/BOOTSTRAP.md) for the completed manual bootstrap
receipt and pending trusted release. All five KB/Agent Access trusted publishers
[publication ledger](docs/BOOTSTRAP.md) for the completed manual bootstrap
and verified trusted `0.1.1` receipts. All five KB/Agent Access trusted publishers
have been configured through the CLI; that configuration does not prove a
trusted publish. Recheck ownership, signer, tag, approval environment, direct
publishing, and 2FA/token restrictions for the release. OIDC publishing receives only verified prepared
Expand All @@ -116,8 +126,8 @@ 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.1` candidate's own review, publication, strict registry verification, and
host acceptance remain open before real host assembly.
`0.1.2` candidate's own review, trusted publication, and strict registry
verification remain open. 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.

Expand Down
34 changes: 22 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ and exact publication approval. It requires no GitHub connection or AI provider.
> [release-preparation source](https://github.com/pegma-dev/knowledge-base/pull/6)
> supplies exact-artifact tooling. Both are merged. All four `0.1.0` packages
> completed manual bootstrap with exact-byte postflight on 2026-11-07, without
> OIDC provenance. Source `0.1.1` is a candidate for the first advertised trusted
> release. Its review, publication, strict registry/provenance verification,
> and actual two-host existing-login/client acceptance remain separate gates.
> This repository is not an operational hosted KB or a production dependency.
> OIDC provenance. All four `0.1.1` packages subsequently completed
> [verified trusted publication](docs/BOOTSTRAP.md#verified-knowledge-base-release).
> Source `0.1.2` is the SD-03 atomic draft/source candidate; its own review,
> current-head gates, trusted release, and strict registry/provenance verification
> remain required. Actual two-host existing-login/client acceptance remains open.
> Host activation remains separately gated; this repository supplies no hosted KB.

| Package | Scope |
| --------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
Expand Down Expand Up @@ -68,6 +70,17 @@ Read [declared collections](docs/COLLECTIONS.md) and
[host composition](docs/HOST_COMPOSITION.md) for the layout, limits, verifier
contract, and safe read boundaries.

Privileged direct application callers can supply complete `sourceReferences`
with `createDraft`/`updateDraft` to commit content and current provenance in
one article transaction. Presence requires both draft-write and provenance-write
authority, including an explicit empty set. SD-03 host workflows must always
supply the complete nonempty set to close the empty/stale source window;
source readability alone does not establish publication eligibility/currentness.
Omission retains legacy behavior. The five-operation HTTP/MCP schemas continue
to reject this field and add no scope or tool. The
[approved source progression](https://github.com/pegma-dev/support-desk/pull/38)
does not close release or host acceptance gates.

KB-03 adds deterministic lexical retrieval over a bounded, repairable
projection. Hints are confirmed against current authoritative publication,
audience, applicability, and source eligibility before disclosure. Portal and
Expand Down Expand Up @@ -130,13 +143,10 @@ Merging source does not publish a package. The
[maintainer bootstrap ledger](docs/BOOTSTRAP.md) records the completed manual
`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 is complete, while the KB trusted release remains gated. The
four KB packages' `latest` tags still resolve to `0.1.0`. A verified KB `0.1.1`
release is intended to advance them. An earlier attempt to delete Agent Access's
`latest` tag returned HTTP 400 before its `0.1.1` release. Agent Access now has
`latest: 0.1.1` and `bootstrap: 0.1.0`.
This does not advertise the KB bootstrap set or approve host use. SD-02 and host installation wait
for the verified trusted dependencies; source and synthetic proof cannot satisfy
real host acceptance.
`0.1.1` release and the four-package KB trusted `0.1.1` release are complete;
their exact receipts remain in the ledger. All four KB packages and Agent Access
have `latest: 0.1.1` and `bootstrap: 0.1.0`. Source `0.1.2` remains a candidate
for a separately reviewed trusted release. Neither registry publication nor
synthetic proof satisfies real host acceptance or approves activation.

Built in the open by RetireGolden, LLC.
12 changes: 9 additions & 3 deletions docs/AGENT_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
an MCP adapter, and a Web Request/Response adapter. Both transports invoke the
existing `KnowledgeBaseApplication`; neither introduces
an authorization engine or another article lifecycle. The KB `0.1.0` packages
completed manual bootstrap without OIDC provenance; source `0.1.1` remains an
unpublished candidate with its own gates and verified trusted release pending.
completed manual bootstrap without OIDC provenance. All four `0.1.1` packages
have since completed [verified trusted publication](BOOTSTRAP.md#verified-knowledge-base-release).
Source `0.1.2` remains a candidate with its own review, gates, and verified
trusted release pending.
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
Expand Down Expand Up @@ -66,7 +68,7 @@ validation requirements. There are no collection, private-evidence read,
provenance, review, publication, retirement, retrieval, or administration tools
in this initial transport surface.

Inputs mirror the public application contracts:
Inputs use the following bounded subset of the public application contracts:

- `getDraft`: `{ articleId }`.
- `getValidationRequirements`: `{ collectionId, kind }`.
Expand All @@ -82,6 +84,10 @@ articleId, evidence, receipt }`. Evidence contains `id`, `articleId`,
`executedAt`, `runnerId`, and `artifacts: [{ id, hash }]`. The opaque receipt
is nonempty and at most 8,192 UTF-8 bytes.

`sourceReferences` is rejected by the strict `createDraft`/`updateDraft` schemas
over both HTTP and MCP. The optional atomic draft/source input belongs only to
privileged direct host application calls; no scope or tool is added here.

Caller-supplied context, scopes, principal, proof, evidence version/hash, or
attestation fields are rejected. Evidence's revision/content hash, policy
reference, artifact hashes, runner, execution time, and claimed result are
Expand Down
16 changes: 11 additions & 5 deletions docs/AGENT_WORKFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ The [merged KB-04 source](https://github.com/pegma-dev/knowledge-base/pull/5)
adds optional authoring transports over the existing Knowledge Base
application. [KB-05 release-preparation source](https://github.com/pegma-dev/knowledge-base/pull/6)
is also merged. All four KB `0.1.0` packages completed manual bootstrap and
exact-byte postflight without OIDC provenance. Source `0.1.1` is a candidate
for the first advertised trusted release, which remains gated; this document
exact-byte postflight without OIDC provenance. All four `0.1.1` packages have
since completed [verified trusted publication](BOOTSTRAP.md#verified-knowledge-base-release).
Source `0.1.2` remains a candidate for a separately reviewed trusted release; 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).
Expand Down Expand Up @@ -67,6 +68,10 @@ or grant-management tool. Agents cannot act as staff or Admin through this
surface. Hosts use their separately authorized staff services for review and
publication.

Both transports reject `sourceReferences` on draft create/update. Atomic
draft/source authoring remains a privileged direct host application operation;
the five tools and three consent scopes remain unchanged.

## Prepare, test, and submit

1. Obtain the target collection and article identity through the host's
Expand Down Expand Up @@ -117,15 +122,16 @@ Historical source-proof evidence retains the original reviewed AUTH-01
accepts no source fallback and requires its own current-head gate results.

The merged KB-04 source exit closes only its source slice. KB-05 release-preparation
source is merged; full KB-05 publication remains open. Agent Access's
source is merged, and the separate KB `0.1.1` trusted release is verified.
Agent Access's
[release-preparation source](https://github.com/pegma-dev/agent-access/pull/2)
is also merged; its manual `0.1.0` bootstrap is complete and its verified
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.
The KB `0.1.1` candidate remains unpublished with its own gates, PR, and trusted
release pending. Both verified trusted releases precede production host
The KB `0.1.2` candidate retains its own gates, PR, and verified trusted release
pending. Both verified trusted dependencies precede production host
assembly. Branches, copied source, local paths, and unpublished production
tarballs cannot substitute for them.

Expand Down
73 changes: 54 additions & 19 deletions docs/BOOTSTRAP.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# First-publication handoff
# Publication ledger

## Current state and owner

The maintainer owns npm publication and external configuration. All four KB
`0.1.0` uploads were accepted through manual bootstrap, and their exact-byte
postflight passed at **2026-11-07T21:56:24Z**. Agent Access `0.1.0` also completed
manual bootstrap and postflight. Neither bootstrap has OIDC provenance.
Source `0.1.1` is the KB candidate for a separately reviewed first advertised
trusted release; it is not published or verified by this document.
Agent Access has since completed its verified trusted `0.1.1` release, recorded
below; that closes the public producer prerequisite only.
KB and Agent Access have since completed their verified trusted `0.1.1`
releases, recorded below. Those receipts close the public producer release
prerequisites only. Source `0.1.2` is the synchronized KB SD-03 atomic draft/source
candidate; its own review, current-head gates, trusted release, and strict
verification remain open.

The five KB/Agent Access trusted-publisher entries have been configured through
the CLI. An actual trusted release still requires the reviewed source and
Expand Down Expand Up @@ -75,11 +76,43 @@ it is not the trusted-release `verify` result or OIDC provenance.
At the manual-bootstrap checkpoint, the observed npm `latest` dist-tags resolved
to `0.1.0` despite the publishes using `--tag bootstrap`. An earlier attempt to
delete Agent Access's `latest` tag returned HTTP 400 before its `0.1.1` release.
The four KB packages' `latest` tags still resolve to `0.1.0`; their intended
correction is a verified forward `0.1.1` release.
Agent Access's current `latest` is `0.1.1` and its `bootstrap` remains `0.1.0`.
Following their trusted releases, all four KB packages and Agent Access have
`latest: 0.1.1` and `bootstrap: 0.1.0`.
Neither tag behavior nor package availability advertises the KB bootstrap as
the approved dependency set or authorizes host installation.
the approved dependency set or establishes real-host acceptance.

## Verified Knowledge Base release

At **2026-11-07T23:35:31Z**, all four KB `0.1.1` packages completed strict registry
and clean-consumer verification. [Release PR #8](https://github.com/pegma-dev/knowledge-base/pull/8)
was reviewed at
[`a3354ec39c5cc0401f4a19b92e08f8aa95c946b3`](https://github.com/pegma-dev/knowledge-base/commit/a3354ec39c5cc0401f4a19b92e08f8aa95c946b3)
and merged at
[`32086e4374f2ef45044cd09c371e506d10b88d64`](https://github.com/pegma-dev/knowledge-base/commit/32086e4374f2ef45044cd09c371e506d10b88d64).
The approved signed annotated [`v0.1.1` release](https://github.com/pegma-dev/knowledge-base/releases/tag/v0.1.1)
targets that merged source. The
[trusted workflow run, attempt 5](https://github.com/pegma-dev/knowledge-base/actions/runs/42424148244/attempts/5)
succeeded. Its separate unprivileged
[strict verification job](https://github.com/pegma-dev/knowledge-base/actions/runs/42424148244/job/128564059833)
verified all four exact registry artifacts/dependencies, cryptographic signatures,
source/workflow/tag/commit provenance, and isolated clean-consumer imports.

| Field | Value |
| --------------------------------------- | ------------------------------------------------------------------ |
| Artifact ID | `13595485168` |
| Artifact name | `knowledge-base-release-42424148244-1` |
| Downloaded artifact archive SHA-256 | `6274a14ba2780e384fb00d414a7e7f5b2f897aa201104286aece13f732cf54e4` |
| Independently retained manifest SHA-256 | `75cb63984706b964edd073932a8f14e3b53701620320d86a367ec29b5198ba4b` |

The original prepared artifact and independent digest were preserved across
failed-only reruns while registry visibility was delayed. Recovery accepted
only identical existing package bytes; no version, tag, or artifact was replaced.
All four packages now have `latest: 0.1.1` and `bootstrap: 0.1.0`. Manual `0.1.0`
bootstrap receipts remain distinct and have no OIDC provenance.

This closes the verified KB `0.1.1` producer release prerequisite. It does not
verify the `0.1.2` candidate or complete host/client, privacy, activation, or
pilot acceptance.

## Verified Agent Access prerequisite

Expand Down Expand Up @@ -123,9 +156,9 @@ 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.1` remains an unpublished
candidate with its own current-head gates, PR, trusted release, and strict
verification pending. Existing-login, current-Admin consent, every requested
candidate artifacts in a fresh consumer. KB `0.1.1` has its separate verified
receipt above; source `0.1.2` retains its own current-head gates, PR, trusted
release, and strict verification. Existing-login, current-Admin consent, every requested
client/mode, and both real hosts remain separately unproven.

## Historical initial preparation procedure (`0.1.0`)
Expand Down Expand Up @@ -193,7 +226,7 @@ Retain the manual publication receipts and bootstrap integrity record, with
provenance explicitly recorded as absent. Do not advertise this bootstrap as
the released dependency set or authorize host installation from it.

## First advertised trusted release
## Subsequent trusted releases

The names now exist and all five KB/Agent Access trusted-publisher entries have
been configured through the CLI. Recheck the protected `npm-publish` environment,
Expand All @@ -203,9 +236,10 @@ 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 first advertised KB release candidate is synchronized version `0.1.1` with
exact internal dependency pins. It still needs review and all current-head
gates before release. A previously manually published version cannot be
The synchronized KB source candidate is `0.1.2` with exact internal dependency
pins. It still needs review and all current-head gates before release. The
verified first advertised trusted release remains `0.1.1`, recorded above.
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
on `origin/main`, then create its GitHub release with `--verify-tag` to trigger
Expand All @@ -219,6 +253,7 @@ signatures, and matching source/workflow/tag/commit provenance. Preserve those
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). SD-02 still waits for the verified
trusted KB set. The Agent Access release prerequisite is closed; both hosts
still require their retained actual login/Admin-consent/client/staging acceptance.
[source preparation](SOURCE_PREPARATION.md). The verified KB `0.1.1` 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.
Loading
Loading