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
27 changes: 18 additions & 9 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ tests. The approved scope is the [Support Desk enhancement plan](https://github.
and [release-preparation source](https://github.com/pegma-dev/knowledge-base/pull/6)
slices are merged. The partial slice adds local D1 conformance and a public
synthetic composition; the release slice adds exact-artifact tooling. All four
packages remain unpublished at synchronized version `0.1.0`; source readiness
does not complete first publication, registry verification, or host acceptance.
`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.
- 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 Down Expand Up @@ -97,18 +99,25 @@ 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). Maintainer 2FA bootstrap and
external package ownership, signer, tag, environment, and trusted-publisher
settings remain separate gates. OIDC publishing receives only verified prepared
[first-publication handoff](docs/BOOTSTRAP.md) for the completed manual bootstrap
receipt and pending trusted release. 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
artifacts; it installs nothing, rebuilds no packages, and has no token fallback.
A separate unprivileged job installs registry packages in an isolated temporary
consumer with lifecycle scripts disabled and verifies signatures/provenance.
`pnpm test` includes `test:release`'s release identity, manifest, argument, and
registry regressions; these must execute on both Node lanes.
The protocol proof may build the reviewed, pinned public AUTH-01 source in an
isolated temporary consumer with all four KB tarballs and the official SDK.
That test-only exception never authorizes an unpublished production dependency.
Agent Access publication and KB-05 publication both precede real host assembly.
Agent Access `0.1.1` has completed its verified trusted release; retain its
[receipt](docs/BOOTSTRAP.md#verified-agent-access-prerequisite). The active
protocol proof installs exact registry `@pegma/agent-access@0.1.1` with all four
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.
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
42 changes: 27 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ and exact publication approval. It requires no GitHub connection or AI provider.
> The separate [partial KB-05 source](https://github.com/pegma-dev/knowledge-base/pull/4)
> supplies local D1 conformance and a public synthetic example; the later
> [release-preparation source](https://github.com/pegma-dev/knowledge-base/pull/6)
> supplies exact-artifact tooling. Both are merged. All four packages are unpublished
> at `0.1.0`. First publication, trusted-publisher setup, registry verification,
> 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.

Expand Down Expand Up @@ -51,7 +53,9 @@ producer with their existing human login and current Admin consent. AUTH-01's
[merged source](https://github.com/pegma-dev/agent-access/pull/1) supplies the
source prerequisite, and its
[release preparation](https://github.com/pegma-dev/agent-access/pull/2) is merged.
Agent Access remains unpublished at `0.1.0`. Initial authoring grants are
Agent Access `0.1.0` completed manual bootstrap without OIDC provenance, and its
`0.1.1` trusted release is now verified. The [release receipt](docs/BOOTSTRAP.md#verified-agent-access-prerequisite)
closes that public producer prerequisite only. Initial authoring grants are
app-instance-wide. Collection-specific delegation is a future host seam.
The KB does not issue credentials or implement login, roles, or a limiter.

Expand All @@ -75,12 +79,13 @@ physical work/source budgets, whole-article token accounting, and repair.
conformance against memory, local Azurite, and real local Miniflare D1 through
the released D1 adapter. The [synthetic composition](examples/composition/README.md)
demonstrates author/test/review/publish/retrieve with fictional trust inputs.
The separate `agent:proof` gate composes reviewed pinned AUTH-01 source and all
four packed KB artifacts in a temporary consumer with the official MCP SDK
The active `agent:proof` gate installs exact registry
`@pegma/agent-access@0.1.1` and all four packed KB candidate artifacts in a fresh
temporary consumer with lifecycle scripts disabled and the official MCP SDK
`1.32.2`, exercising OAuth, the five tools, evidence binding, and HTTP/MCP parity.
The [historical source-gate record](docs/SOURCE_PREPARATION.md#historical-source-gates)
retains reviewed heads and CI links. Current-head results establish execution;
these proofs establish neither actual
retains reviewed heads and CI links. Current-head results establish execution.
These proofs establish neither actual
requested-client compatibility nor either real host's login/staging acceptance.

Develop on Node 22.6.0+ or 24 with pnpm 10.34.5:
Expand All @@ -98,9 +103,10 @@ pnpm run agent:proof
The npm and pnpm workspace declarations deliberately name the same four source
packages: pnpm links them for development, while npm supplies artifact packing.
The release check installs all four tarballs in a consumer outside either
workspace to verify dependency resolution without source links. The Agent
Access source fixture is confined to the temporary protocol-proof consumer;
production hosts must consume exact published Agent Access and KB versions.
workspace to verify dependency resolution without source links. The protocol
proof's Agent Access producer comes from the public registry with no source
fallback; production hosts must consume exact verified trusted Agent Access
and KB versions.
Frozen installation permits the pinned native `workerd` install script only;
test workers/timeouts and per-factory D1 disposal remain bounded.

Expand All @@ -120,11 +126,17 @@ Read [AGENTS.md](AGENTS.md) before changing code and
pack checks are separate from signed-tag release preparation. The release path
binds all four tarballs to source identity and an independently retained manifest
digest, preflights the full registry set, and verifies released consumers.
Merging source does not publish a package. Follow the
[maintainer bootstrap handoff](docs/BOOTSTRAP.md) for the four new npm names,
then configure their individual trusted publishers for later releases. Agent
Access follows its separate release process. SD-02 and host installation wait
for actual published dependencies; source and synthetic proof cannot satisfy
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.

Built in the open by RetireGolden, LLC.
10 changes: 7 additions & 3 deletions docs/AGENT_API.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
`@pegma/knowledge-base-mcp` supplies a shared dispatcher, strict Zod schemas,
an MCP adapter, and a Web Request/Response adapter. Both transports invoke the
existing `KnowledgeBaseApplication`; neither introduces
an authorization engine or another article lifecycle. These source packages are
unpublished. Passing synthetic transport tests does not establish live OAuth,
protected staging execution, publication, or host readiness.
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.
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
execution, KB trusted publication, or host readiness.

## Trusted host composition

Expand Down
24 changes: 17 additions & 7 deletions docs/AGENT_WORKFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,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 packages are unpublished at `0.1.0`; this document
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
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 @@ -100,22 +102,30 @@ claim that the historical state is still current.
## Source proof and retained host acceptance

[AUTH-01 PR #1](https://github.com/pegma-dev/agent-access/pull/1) merged the public
credential producer source. The KB `pnpm run agent:proof` gate pins reviewed
commit `a444e2113db98455b638b2ef8aa7c2faccb16b62`, builds it only in an isolated
temporary test consumer, and installs all four KB tarballs with the official
MCP SDK `1.32.2`. It exercises OAuth and real SDK protocol calls through the
credential producer source. The active KB `pnpm run agent:proof` gate now
installs exact public-registry `@pegma/agent-access@0.1.1` and all four packed
KB candidate artifacts in a fresh temporary consumer with lifecycle scripts
disabled and official MCP SDK `1.32.2`. It exercises OAuth and real SDK protocol calls through the
five-operation loop, host-attested evidence, HTTP/MCP parity, and rejection
cases. The fictional human session, staging run, and attester remain test
inputs. The historical reviewed-head gate results and exact CI links are
recorded in [source preparation](SOURCE_PREPARATION.md#historical-source-gates);
changed source requires fresh
current-head gates.
Historical source-proof evidence retains the original reviewed AUTH-01
`a444e2113db98455b638b2ef8aa7c2faccb16b62` fixture. The registry composition
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
[release-preparation source](https://github.com/pegma-dev/agent-access/pull/2)
is also merged and follows its separate first-publication and
trusted-publisher process. Both public releases precede production host
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
assembly. Branches, copied source, local paths, and unpublished production
tarballs cannot substitute for them.

Expand Down
Loading
Loading