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
26 changes: 15 additions & 11 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,22 @@ signatures, source-bound provenance, and a clean exact-version consumer with
scripts disabled. Manual workflow dispatch prepares only.

See [release operations](docs/RELEASING.md) and the
[first-publication handoff](docs/BOOTSTRAP.md). The source remains unpublished
at `0.1.0`. Maintainer 2FA bootstrap creates the name under `bootstrap` without
advertising it; a later separately reviewed version must pass trusted
publication and verification before advertisement. This source change chooses
no future version. Package ownership, approved signers, immutable tag rules,
environment approval, and direct-publish trusted-publisher settings remain
external maintainer gates. Source, SDK, registry, and provenance results do not
close actual existing-login/Admin-consent or per-client two-host acceptance.
[first-publication handoff](docs/BOOTSTRAP.md). The source is the `0.1.1`
candidate for the first advertised trusted release. Maintainer 2FA bootstrap of
`0.1.0` is complete with exact registry bytes confirmed; it supplies no OIDC
provenance. Verify actual npm distribution tags after bootstrap and investigate
unexpected defaults; the publish tag argument alone does not prove their state.
The candidate still requires fresh current-head gates and review, verified
publisher configuration, an approved signed tag and release, and strict registry
and provenance verification before advertisement. Package ownership, approved
signers, immutable tag rules, environment approval, and direct-publish
trusted-publisher settings remain external maintainer gates. Source, SDK,
registry, and provenance results do not close actual existing-login/Admin-consent
or per-client two-host acceptance.

The user explicitly requests parallel in-harness subagents. Assign exact file
ownership, tell workers they are not alone, and never revert others' edits.
The orchestrator owns installs, builds/tests, Git, PRs, review replies, and
merges. First publication/trusted-publisher configuration and host activation
remain separate maintainer operations; no tag, release, publish or deployment
is authorized by source validation alone.
merges. Trusted publication, publisher configuration, and host activation remain
separate maintainer operations; no tag, release, publish or deployment is
authorized by source validation alone.
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ reading, draft writing, and test-evidence submission. Future capabilities
require explicit registration and fresh consent; changing the registry cannot
silently widen an existing grant.

As of 2026-11-07, all five new packages, the four Knowledge Base packages and
`@pegma/agent-access`, remain unpublished at source version `0.1.0`. AUTH-01
source, official SDK proof, and the separate release preparation are merged;
As of 2026-11-07, the source is the `@pegma/agent-access@0.1.1` candidate for
the first advertised trusted release. Maintainer 2FA bootstrap of all five
`0.1.0` packages, the four Knowledge Base packages and Agent Access, is complete
with exact registry bytes confirmed and no OIDC provenance. The
[bootstrap receipt](docs/BOOTSTRAP.md#bootstrap-receipt-2026-11-07) records the
Agent Access artifact identity and distribution-tag verification requirement.
AUTH-01 source, official SDK proof, and the separate release preparation are merged;
the [dated source evidence](docs/PROJECT_PLAN.md#delivery-and-evidence) records
the reviewed heads, squash merges, primary CI, and historical per-lane results.
The governing [Knowledge/AI plan](https://github.com/pegma-dev/support-desk/blob/main/docs/KNOWLEDGE_AI_PLAN.md)
Expand All @@ -37,14 +41,17 @@ Read the [architecture](docs/ARCHITECTURE.md), [API](docs/API.md), and
[project plan](docs/PROJECT_PLAN.md) distinguishes source work from host gates;
[release operations](docs/RELEASING.md) describes the separate first publication
and later trusted-publisher path. The [maintainer bootstrap handoff](docs/BOOTSTRAP.md)
keeps the initial 2FA-published `bootstrap` version unadvertised. The first
advertised version needs a separate reviewed change and successful registry
records the initial 2FA publication under the requested `bootstrap` tag. Operators
must verify actual distribution tags and investigate unexpected defaults.
The `0.1.1` candidate still needs fresh gates and review, verified publisher
configuration, an approved signed tag and release, and successful exact registry
consumer and trusted-provenance verification. Release preparation preserves
exact tarball bytes, an independently retained manifest digest, and the
verified signed-tag identity. Maintainer bootstrap and external protection,
signer, environment, and trusted-publisher/direct-publish configuration remain
pending. SD-02 requires published Knowledge Base dependencies; real host
assembly requires published dependencies from both components. Merged source
verified signed-tag identity. External protection, signer, environment, and
trusted-publisher/direct-publish configuration remain maintainer gates.
Knowledge Base's advertised release waits for verified Agent Access `0.1.1`.
SD-02 requires verified advertised Knowledge Base dependencies; real host
assembly requires verified advertised dependencies from both components. Merged source
and release preparation authorize no tags, releases, publication,
configuration, or deployment; manual workflow dispatch prepares only.

Expand Down
99 changes: 85 additions & 14 deletions docs/BOOTSTRAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,84 @@

## Current state and owner

The maintainer owns npm's first publication and external configuration.
`@pegma/agent-access` is unpublished at source version `0.1.0`. Merging this
follow-up creates no tag, GitHub release, npm publication, publisher setting,
or protection setting. Knowledge Base has its own release handoff.
The maintainer owns npm publication and external configuration. As of
2026-11-07, `@pegma/agent-access@0.1.0` has completed maintainer 2FA bootstrap
with exact registry bytes confirmed and no OIDC provenance. Source version
`0.1.1` is the candidate for the first advertised trusted release; that release
is not yet verified. Knowledge Base has its own release handoff and waits for
verified Agent Access `0.1.1` before its advertised release.

Creating the package name and advertising the first trusted release are
separate steps. Maintainer 2FA publication supplies no OIDC provenance and
cannot substitute for strict `verify` in [release operations](RELEASING.md).
The historical AUTH-01 source result does not replace this change's required
current-head code/security review and Node 22/24 gate.

## Prepare the initial exact artifact
## Bootstrap receipt: 2026-11-07

The operator manually reran the post-publication preflight commands below at
`2026-11-07T21:56:24Z`. The recorded outputs are manual operator observations,
not CI verification results. Run each command from its producer's recorded
source checkout, replacing `PREPARED_DIRECTORY` with that producer's immutable
prepared artifact directory. Each independent manifest digest binds its full
artifact set.

### Agent Access

The signed [`v0.1.0` tag](https://github.com/pegma-dev/agent-access/tree/v0.1.0)
targets source commit
[`d4db0065f22a9c090fc2831b3e18fbbc37c1639c`](https://github.com/pegma-dev/agent-access/commit/d4db0065f22a9c090fc2831b3e18fbbc37c1639c).
[Preparation run 42415787142](https://github.com/pegma-dev/agent-access/actions/runs/42415787142)
retained immutable artifact `13591317099` with independently recorded manifest
SHA-256 `885d5422930e2dd3435f0ebea02fb74238b946c962715b2b1d81954684a10312`.
Manual npm publication was accepted. The operator's postflight command was:

```sh
node scripts/release-packages.mjs preflight --prepared-dir PREPARED_DIRECTORY --manifest-sha256 885d5422930e2dd3435f0ebea02fb74238b946c962715b2b1d81954684a10312 --tag v0.1.0 --expected-commit d4db0065f22a9c090fc2831b3e18fbbc37c1639c
```

Recorded output at `2026-11-07T21:56:24Z`:

```text
@pegma/agent-access@0.1.0: skip
```

### Knowledge Base

The signed [`v0.1.0` tag](https://github.com/pegma-dev/knowledge-base/tree/v0.1.0)
targets source commit
[`f053db194eb73610e9b4872e1562f071ab8e6a5f`](https://github.com/pegma-dev/knowledge-base/commit/f053db194eb73610e9b4872e1562f071ab8e6a5f).
[Preparation run 42415793421](https://github.com/pegma-dev/knowledge-base/actions/runs/42415793421)
retained immutable artifact `13591841615` with independently recorded manifest
SHA-256 `45117cadad75a51aa9b818934974b60c17ba5ddee229fa766157a75035a653ee`.
All four manual npm uploads were accepted. The operator's postflight command was:

```sh
node scripts/release-packages.mjs preflight --prepared-dir PREPARED_DIRECTORY --manifest-sha256 45117cadad75a51aa9b818934974b60c17ba5ddee229fa766157a75035a653ee --tag v0.1.0 --expected-commit f053db194eb73610e9b4872e1562f071ab8e6a5f
```

Recorded output at `2026-11-07T21:56:24Z`:

```text
@pegma/knowledge-base-contracts@0.1.0: skip
@pegma/knowledge-base-core@0.1.0: skip
@pegma/knowledge-base-application@0.1.0: skip
@pegma/knowledge-base-mcp@0.1.0: skip
```

These `skip` results confirm that all five exact registry versions match their
prepared artifact bytes. They are bootstrap integrity receipts with OIDC
provenance absent; they do not establish trusted release availability or
host/client acceptance. Actual distribution tags, including `latest`, require
operator verification and investigation of unexpected defaults before
advertisement. These receipts do not mark advertisement verified, and the
requested publish tag alone does not establish actual distribution-tag state.

## Historical bootstrap procedure: 0.1.0

The following procedure records the completed first publication. Do not
recreate or move its tag, rebuild its artifact, or republish the immutable
version. Use the separate trusted-release procedure for the `0.1.1` candidate.

1. Confirm npm ownership and publishing permission for `@pegma/agent-access`.
Record the responsible maintainer and keep credentials and one-time codes
Expand Down Expand Up @@ -52,7 +118,7 @@ current-head code/security review and Node 22/24 gate.
Only HTTP 404 establishes absence. Stop on mismatch, access failure, or an
uncertain response.

## Maintainer 2FA bootstrap
## Historical maintainer 2FA bootstrap

Using the maintainer's interactive npm login and 2FA, publish only the exact
prepared tarball. This command is an operator handoff, not a CI step or an
Expand All @@ -69,8 +135,11 @@ prepared bytes; npm versions are immutable. Repeat preflight after publication
to retain the registry metadata and downloaded-byte match.

Record manual publication receipts and bootstrap integrity with provenance
explicitly absent. Leave `0.1.0` under `bootstrap`; do not advertise it as the
released production dependency or authorize host installation from it.
explicitly absent. Verify `bootstrap` and all other distribution tags after the
write; investigate and correct unexpected defaults through maintainer operations
before advertisement. Do not infer actual tag state from `--tag bootstrap`.
Do not advertise `0.1.0` as the trusted production dependency or authorize host
installation from it.

## First advertised trusted release

Expand All @@ -81,11 +150,12 @@ to `pegma-dev/agent-access`, exact workflow `publish.yml`, and environment
`npm-publish`; explicitly permit direct publishing. Check npm's first-use
timing before configuring it for the reviewed trusted release.

The first advertised release needs a separately reviewed package-version and
dependent-pin change synchronized across its consumers. This source change
chooses no future version and performs no bump. A manually published version
cannot be republished through OIDC to acquire provenance. Run the full
current-head review and Node 22/24 gate for the new release commit, create its
The `0.1.1` candidate proposes the package-version change for the first
advertised release; dependent pins must be synchronized across consumers.
It still requires fresh current-head code/security review and the full Node
22/24 gate. A manually published version cannot be republished through OIDC to
acquire provenance. After the candidate's gates pass and external publisher
configuration is verified, create its
approved signed annotated version tag on `origin/main`, then create the GitHub
release with `--verify-tag` to trigger the trusted workflow. It prepares once,
checks the independent artifact binding, preflights the exact version, and
Expand All @@ -95,6 +165,7 @@ Advertise availability only after the separate unprivileged strict `verify`
job succeeds: registry bytes/dependencies, a clean exact-version registry
consumer, registry signatures, and matching source/workflow/tag/commit
provenance. Preserve that result with the release identity and independent
manifest digest. Both hosts additionally require published Knowledge Base
manifest digest. Knowledge Base's advertised release follows verified Agent
Access `0.1.1`. Both hosts additionally require verified advertised Knowledge Base
and their retained actual login/Admin-consent/client/staging acceptance before
activation. Registry publication closes none of those host gates.
Loading
Loading