diff --git a/AGENTS.md b/AGENTS.md index cc1845b..a73fd02 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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. diff --git a/README.md b/README.md index c8e9100..d21f5e5 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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. diff --git a/docs/BOOTSTRAP.md b/docs/BOOTSTRAP.md index ddbfb21..7fde7ed 100644 --- a/docs/BOOTSTRAP.md +++ b/docs/BOOTSTRAP.md @@ -2,10 +2,12 @@ ## 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 @@ -13,7 +15,71 @@ 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 @@ -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 @@ -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 @@ -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 @@ -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. diff --git a/docs/PROJECT_PLAN.md b/docs/PROJECT_PLAN.md index f54a807..ed82a28 100644 --- a/docs/PROJECT_PLAN.md +++ b/docs/PROJECT_PLAN.md @@ -3,11 +3,12 @@ AUTH-01 is the scoped-credential prerequisite inserted before KB-04 in the [Knowledge/AI plan](https://github.com/pegma-dev/support-desk/blob/main/docs/KNOWLEDGE_AI_PLAN.md). This repository owns reusable authorization-server source; Knowledge Base -continues to own content and resource operations. The first source package is -`@pegma/agent-access@0.1.0`. AUTH-01 source and the subsequent release -preparation are merged. As of 2026-11-07, all five new packages, the four -Knowledge Base packages and Agent Access, remain unpublished at source version -`0.1.0`; no host is activated by this work. +continues to own content and resource operations. The current source is the +`@pegma/agent-access@0.1.1` candidate for the first advertised trusted release. +AUTH-01 source and the original release preparation are merged. As of +2026-11-07, 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; no host is activated by this work. ## Accepted first scope @@ -26,24 +27,26 @@ Knowledge Base packages and Agent Access, remain unpublished at source version ## Delivery and evidence -As of 2026-11-07, all five new packages, the four Knowledge Base packages and -Agent Access, remain unpublished at source version `0.1.0`. This is the -canonical merged-source evidence snapshot. CI totals are historical results -for the linked reviewed source heads, distinct from the recorded squash merge -commits. They are not fixed test-count requirements or publication guards; -every future release needs its own current-head review, validation, and exact -registry preflight in [release operations](RELEASING.md). +This canonical evidence snapshot retains the reviewed `0.1.0` source history. +CI totals are historical results for the linked reviewed source heads, +distinct from the recorded squash merge commits. They are not fixed test-count +requirements or publication guards. The +[2026-11-07 bootstrap receipt](BOOTSTRAP.md#bootstrap-receipt-2026-11-07) +records completion of all five `0.1.0` uploads and exact-byte confirmation, +without OIDC provenance. The `0.1.1` candidate still needs fresh current-head +review, validation, publisher configuration, a signed tag and release, and +strict registry/provenance verification in [release operations](RELEASING.md). -| Gate | Evidence | Current state | -| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| AUTH-01 source and official SDK proof | Reviewed head [1ba5286](https://github.com/pegma-dev/agent-access/commit/1ba52860e80bc3ec6692f9dd112dd02f0616aebd); [primary Node 22/24 CI](https://github.com/pegma-dev/agent-access/actions/runs/42382637167). Original 123 runtime tests and official SDK proof. | Merged via [Agent Access #1](https://github.com/pegma-dev/agent-access/pull/1) as [a444e21](https://github.com/pegma-dev/agent-access/commit/a444e2113db98455b638b2ef8aa7c2faccb16b62); historical source evidence. | -| Agent Access release preparation | Reviewed head [165e56a](https://github.com/pegma-dev/agent-access/commit/165e56ab19e9860d6c0bd17f419052b751394b9c); [primary Node 22/24 CI](https://github.com/pegma-dev/agent-access/actions/runs/42399414623). Each lane passed 123 runtime tests plus 136 release regressions (259 per lane), with zero skips, the synthetic example, and packed public API/type checks. | Merged via [Agent Access #2](https://github.com/pegma-dev/agent-access/pull/2) as [eddddd5](https://github.com/pegma-dev/agent-access/commit/eddddd5e333ce16b6a4a8233b84656b3ac784947); publication pending. | -| KB-04 transport source exit | Reviewed head [c897626](https://github.com/pegma-dev/knowledge-base/commit/c897626de6c7b2ea574f4154b0bc7a7731ee106e); [primary Node 22/24 CI](https://github.com/pegma-dev/knowledge-base/actions/runs/42390433045). 372 runtime tests and official SDK proof of all five initial tools. | Merged via [Knowledge Base #5](https://github.com/pegma-dev/knowledge-base/pull/5) as [b61fc77](https://github.com/pegma-dev/knowledge-base/commit/b61fc77aedd22e888ac7292c3597f93e54fcda8e); retained host acceptance open. | -| KB-05 release preparation | Reviewed head [c8ef14a](https://github.com/pegma-dev/knowledge-base/commit/c8ef14af0ec32e3903b9399543b7a9f2e48df2f9); [primary Node 22/24 CI](https://github.com/pegma-dev/knowledge-base/actions/runs/42398508042). Each lane passed 372 runtime tests plus 128 release regressions (500 per lane), with zero skips. Packaging checks cover four KB packages; the packed protocol proof uses all five packages (four KB plus Agent Access). | Merged via [Knowledge Base #6](https://github.com/pegma-dev/knowledge-base/pull/6) as [7f5eee6](https://github.com/pegma-dev/knowledge-base/commit/7f5eee68be692b5489de3965f3f5ede7ef7a812d); publication pending. | -| First-publication bootstrap | Maintainer 2FA publication creates the four Knowledge Base package names and Agent Access under an unadvertised `bootstrap` tag; it supplies no trusted provenance. | Pending for all five packages. | -| First advertised publication | npm ownership, a protected publish environment, approved signers, immutable tags, npm trusted-publisher/direct-publish configuration, a separately reviewed first advertised version, and exact own-package registry/provenance verification. | Pending for all five packages. | -| SD-02 AI coordinator | Requires published Knowledge Base dependencies. | Pending. | -| Retained host acceptance | PG-01/RG-01 require published Agent Access and Knowledge Base dependencies, real existing-login/current-Admin consent, and actual per-client protected API/MCP, credential-failure, and exact-revision evidence-attestation proof on both hosts. | Pending; required before activation/A-01/pilots. | +| Gate | Evidence | Current state | +| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| AUTH-01 source and official SDK proof | Reviewed head [1ba5286](https://github.com/pegma-dev/agent-access/commit/1ba52860e80bc3ec6692f9dd112dd02f0616aebd); [primary Node 22/24 CI](https://github.com/pegma-dev/agent-access/actions/runs/42382637167). Original 123 runtime tests and official SDK proof. | Merged via [Agent Access #1](https://github.com/pegma-dev/agent-access/pull/1) as [a444e21](https://github.com/pegma-dev/agent-access/commit/a444e2113db98455b638b2ef8aa7c2faccb16b62); historical source evidence. | +| Agent Access release preparation | Reviewed head [165e56a](https://github.com/pegma-dev/agent-access/commit/165e56ab19e9860d6c0bd17f419052b751394b9c); [primary Node 22/24 CI](https://github.com/pegma-dev/agent-access/actions/runs/42399414623). Each lane passed 123 runtime tests plus 136 release regressions (259 per lane), with zero skips, the synthetic example, and packed public API/type checks. | Merged via [Agent Access #2](https://github.com/pegma-dev/agent-access/pull/2) as [eddddd5](https://github.com/pegma-dev/agent-access/commit/eddddd5e333ce16b6a4a8233b84656b3ac784947); historical release-preparation source. | +| KB-04 transport source exit | Reviewed head [c897626](https://github.com/pegma-dev/knowledge-base/commit/c897626de6c7b2ea574f4154b0bc7a7731ee106e); [primary Node 22/24 CI](https://github.com/pegma-dev/knowledge-base/actions/runs/42390433045). 372 runtime tests and official SDK proof of all five initial tools. | Merged via [Knowledge Base #5](https://github.com/pegma-dev/knowledge-base/pull/5) as [b61fc77](https://github.com/pegma-dev/knowledge-base/commit/b61fc77aedd22e888ac7292c3597f93e54fcda8e); retained host acceptance open. | +| KB-05 release preparation | Reviewed head [c8ef14a](https://github.com/pegma-dev/knowledge-base/commit/c8ef14af0ec32e3903b9399543b7a9f2e48df2f9); [primary Node 22/24 CI](https://github.com/pegma-dev/knowledge-base/actions/runs/42398508042). Each lane passed 372 runtime tests plus 128 release regressions (500 per lane), with zero skips. Packaging checks cover four KB packages; the packed protocol proof uses all five packages (four KB plus Agent Access). | Merged via [Knowledge Base #6](https://github.com/pegma-dev/knowledge-base/pull/6) as [7f5eee6](https://github.com/pegma-dev/knowledge-base/commit/7f5eee68be692b5489de3965f3f5ede7ef7a812d); historical release-preparation source. | +| First-publication bootstrap | Maintainer 2FA uploads of all five `0.1.0` packages (four KB plus Agent Access) were accepted; exact registry bytes match the prepared artifacts. See the [bootstrap receipt](BOOTSTRAP.md#bootstrap-receipt-2026-11-07). | Complete; OIDC provenance absent. Operators must verify distribution tags and investigate unexpected defaults. | +| First advertised publication | Agent Access `0.1.1` requires [full current-head Node 22/24 CI and code/security review](RELEASING.md#repository-and-development-artifact-gates), the [external release checklist](RELEASING.md#external-release-checklist), an approved signed tag and release, and [strict exact-version registry/provenance verification](RELEASING.md#registry-verification-and-availability). | Pending. Knowledge Base advertisement waits for verified Agent Access `0.1.1`. | +| SD-02 AI coordinator | Requires verified advertised Knowledge Base dependencies. | Pending. | +| Retained host acceptance | PG-01/RG-01 require exact verified advertised Agent Access and Knowledge Base dependencies, real existing-login/current-Admin consent, and actual per-client protected API/MCP, credential-failure, and exact-revision evidence-attestation proof on both hosts. | Pending; required before activation/A-01/pilots. | At the Agent Access #2 reviewed head, round-3 [OpenRouter code review](https://github.com/pegma-dev/agent-access/pull/2#pullrequestreview-5814178148) @@ -58,7 +61,8 @@ source PR's wait; the absence is not a completed review. Source units and synthetic protocol proof may land before publication. A test-only clean consumer can install the reviewed local tarball to prove its -exports; production consumers must use published exact dependencies. Never +exports; production consumers must use exact verified advertised registry +releases. The manual `0.1.0` bootstraps do not satisfy that prerequisite. Never substitute a source checkout, Git reference, or unpublished tarball for a host production dependency. @@ -72,12 +76,13 @@ separately for each target and host. A successful official SDK protocol test establishes protocol behavior, not compatibility with all four clients; missing clients or unsupported flows remain explicit host acceptance gaps. -The source prerequisites and both release-preparation changes are merged. -The remaining release sequence is a separate maintainer operation for each -component: unadvertised 2FA bootstrap, external release configuration, then a -separately reviewed first advertised version with exact registry and trusted -provenance verification. SD-02 follows published Knowledge Base dependencies; -PG-01/RG-01 host assembly follows published dependencies from both components. +The source prerequisites, original release preparation, and `0.1.0` bootstrap +are complete. The remaining sequence is fresh review and gates for Agent Access +`0.1.1`, verified external publisher configuration, its approved signed tag and +release, and strict registry/provenance verification before advertisement. +Knowledge Base's advertised release waits for verified Agent Access `0.1.1`. +SD-02 follows verified advertised Knowledge Base dependencies; PG-01/RG-01 host +assembly follows verified advertised dependencies from both components. Real existing-login/current-Admin consent and actual-client proof then remain required on both hosts. Retained two-host acceptance stays open in P-00 and the host tasks until all original draft/evidence, privacy, authority, @@ -95,7 +100,7 @@ and their own source and host evidence. The governing plan's future collection-specific delegation, new scopes, retention, and operations work remains deferred. Merged source and release -preparation do not close publication, dual-host acceptance, model data-control, +preparation do not close trusted publication, dual-host acceptance, model data-control, or supervised-pilot gates. No source work authorizes tags, releases, publication, external configuration, or deployment. See [RELEASING.md](RELEASING.md) before any separately authorized release operation. diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 4cce436..ea44d91 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -2,26 +2,32 @@ ## Status and release boundary -This repository releases only `@pegma/agent-access`. As of 2026-11-07, all five -new packages, the four Knowledge Base packages and Agent Access, remain -unpublished at source version `0.1.0`. The canonical +This repository releases only `@pegma/agent-access`. As of 2026-11-07, its source +is the `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](BOOTSTRAP.md#bootstrap-receipt-2026-11-07) +records both producers' exact artifact identities and timestamped manual +postflight commands/results. The canonical [dated source evidence](PROJECT_PLAN.md#delivery-and-evidence) records the reviewed source heads, separate squash merge commits, exact primary CI runs, historical per-lane results, and review receipts. Those observations do not replace any current-head review, validation, or release preflight below. -Maintainer 2FA bootstrap under an unadvertised `bootstrap` tag, external -release protection and publisher configuration, a separately reviewed first -advertised version, and exact own-package registry/provenance verification -remain pending. No source work -authorizes tags, GitHub releases, npm publication, external configuration, or -deployment. Follow the [maintainer bootstrap handoff](BOOTSTRAP.md) for first -use; no future version is chosen here. - -Knowledge Base retains its own release process. SD-02 requires published -Knowledge Base dependencies. Production host assembly requires exact published -dependencies from both -components. Source tests, local adapter conformance, and the official SDK +The `0.1.1` candidate still requires fresh current-head gates and review, +verified release protection and publisher configuration, an approved signed tag +and release, and strict exact-version registry/provenance verification. +Operators must verify actual npm distribution tags after bootstrap and +investigate unexpected defaults; a requested `bootstrap` tag does not prove +that another tag is absent. Source validation alone does not authorize tags, +GitHub releases, publication, external configuration, or deployment. Follow the +[maintainer handoff](BOOTSTRAP.md) for the completed bootstrap procedure and +remaining trusted-release gates. + +Knowledge Base retains its own release process; its advertised release waits +for verified Agent Access `0.1.1`. SD-02 requires verified advertised Knowledge +Base dependencies. Production host assembly requires exact verified advertised +dependencies from both components. Source tests, local adapter conformance, and the official SDK protocol fixture establish source behavior; they do not establish real host login, production storage, or actual requested client acceptance on either host. @@ -57,7 +63,8 @@ released dependencies, and imports the public package. The runtime pins remain `@pegma/audit@0.2.0`, `@pegma/authorization-core@0.4.0`, `@pegma/spine@0.1.2`, and -`@pegma/storage-core@0.4.0`. This follow-up changes no runtime scope or version. +`@pegma/storage-core@0.4.0`. This candidate changes the package version to +`0.1.1` without changing runtime scope or dependency pins. `pnpm run release:pack` preserves development artifacts and a schema-1 manifest in a new `.release/agent-access-*` directory. It requires no tag and supplies no release identity or provenance. Publication rejects that development manifest; @@ -74,8 +81,11 @@ commit. The checkout must be clean, at that commit, in `origin/main`. Signature verification uses independently approved signer configuration. Lightweight tags and unmerged commits fail the gate. -After the full gate, prepare from that exact clean checkout. This example uses -the current source version; substitute the full approved commit SHA: +After the full gate, prepare from that exact clean checkout. In the current +release commands below, replace `vX.Y.Z` with the approved signed tag matching +the package version and `FULL_COMMIT_SHA` with its full approved source commit. +Use the same tag and commit throughout preparation, preflight, publication, +and verification. The historical bootstrap procedures retain literal `v0.1.0`. Strict `prepare` requires both `RELEASE_NPM_CLI` and `RELEASE_NPM_VERSION=11.18.0`. The CLI path must be canonical, absolute, and name @@ -86,7 +96,7 @@ both variables before standalone preparation. The workflow configures them automatically. Development `check` and `pack` continue to use ambient npm. ```sh -node scripts/release-packages.mjs prepare --tag v0.1.0 --expected-commit FULL_COMMIT_SHA +node scripts/release-packages.mjs prepare --tag vX.Y.Z --expected-commit FULL_COMMIT_SHA ``` An optional `--out EMPTY_DIRECTORY` selects a new empty output directory. @@ -129,18 +139,21 @@ registry bytes and cryptographic signatures/provenance, then imports the public package. It uses the same immutable artifact ID and independent digest. No `setup-node` registry configuration or npm token fallback is used. -These external settings remain pending maintainer operations: +### External release checklist + +Before trusted publication, verify these external maintainer settings: - npm ownership and organization publishing permission for `@pegma/agent-access`; -- protected `origin/main`, immutable release tags, and approved SSH signer - entries in the reviewed `RELEASE_ALLOWED_SIGNERS` repository variable; +- protected `origin/main`, immutable protected signed annotated release tags, + and approved SSH signer entries in the reviewed `RELEASE_ALLOWED_SIGNERS` + repository variable; - the GitHub `npm-publish` environment with required approval and release-ref restrictions; - the npm trusted publisher bound to `pegma-dev/agent-access`, `publish.yml`, and `npm-publish`, with explicit permission for direct `npm publish`; -- restrictions disallowing token-based publication. No repository npm token or - token fallback exists. +- npm publication policy requiring 2FA and disallowing token-based publication. + No repository npm token or token fallback exists. The workflow uses Node `24.18.0` and npm `11.18.0` for release operations. It uses the local [npm setup action](../.github/actions/setup-release-npm/action.yml) @@ -152,10 +165,10 @@ not configure or prove those external settings. ## Preflight, publication, and interrupted-release recovery -Read-only preflight is the first-publication inspection command: +Read-only preflight inspects the exact candidate before publication: ```sh -node scripts/release-packages.mjs preflight --prepared-dir PREPARED_DIRECTORY --manifest-sha256 INDEPENDENT_SHA256 --tag v0.1.0 --expected-commit FULL_COMMIT_SHA +node scripts/release-packages.mjs preflight --prepared-dir PREPARED_DIRECTORY --manifest-sha256 INDEPENDENT_SHA256 --tag vX.Y.Z --expected-commit FULL_COMMIT_SHA ``` It validates the schema-2 artifact and queries the exact version in the public @@ -235,19 +248,20 @@ A second isolated run installed all seven exact external runtime pins used by the two components, resolving 102 packages. Root lock versions and public registry URLs matched; the real audit reported `invalid=0`, `missing=0`, and `verified=21`. Lifecycle scripts and runtime imports remained disabled. -This checks the existing external dependency graph without publishing either -new component. +This historical check covered the existing external dependency graph without +publishing either new component at that time. The observed public source was [pegma-dev/spine](https://github.com/pegma-dev/spine) at `refs/tags/v0.1.2`. This records the pinned CLI's working flag, output, and -certificate shape. It proves no provenance for unpublished KB or Agent Access -packages and performs no publisher operation. Their own exact repository, +certificate shape. It proves no provenance for KB or Agent Access bootstrap +packages and performed no publisher operation. Their own exact repository, workflow, tag, and source-commit post-release verification remains mandatory. Raw bundles and certificate bytes are intentionally omitted. ## Consumers and retained host gates -Agent Access and Knowledge Base publication both precede real host assembly. +Verified advertised Agent Access and Knowledge Base releases both precede real +host assembly. The manual `0.1.0` bootstraps do not satisfy this prerequisite. Git references, copied source, workspace paths, and unpublished production tarballs do not substitute for exact verified registry releases. diff --git a/packages/agent-access/README.md b/packages/agent-access/README.md index 6d46b13..3d603b9 100644 --- a/packages/agent-access/README.md +++ b/packages/agent-access/README.md @@ -1,8 +1,6 @@ # @pegma/agent-access -Administrator-approved, scoped OAuth credentials for Pegma hosts. The initial -`0.1.0` source is unpublished. Completing validation does not activate a host -integration or publish this package. +Administrator-approved, scoped OAuth credentials for Pegma hosts. Agent Access supports public-client device authorization and authorization-code grants with mandatory S256 PKCE. It owns consent snapshots, opaque access @@ -24,4 +22,15 @@ Refresh families and physical work are bounded; reaching a family limit requires relinking. The repository's fictional protocol example documents the host trust seam and exercises the public entrypoint. +Use `createAgentAccess` with a Storage Core store, clock, current principal +resolver, and explicit client/resource/scope configuration. Compose protocol +routes with `createAgentAccessHttp` and protect resource handlers with +`createProtectedResourceAuthenticator`, using its returned restricted access +context for the actual operation. Keep browser approval and its CSRF/origin +checks in the host. + +Actual existing-login/Admin-consent integration and per-client acceptance remain +open for each host. The fictional protocol example does not establish those +results. + MIT licensed. Built in the open by RetireGolden, LLC. diff --git a/packages/agent-access/package.json b/packages/agent-access/package.json index 3282705..a323bb8 100644 --- a/packages/agent-access/package.json +++ b/packages/agent-access/package.json @@ -1,6 +1,6 @@ { "name": "@pegma/agent-access", - "version": "0.1.0", + "version": "0.1.1", "description": "Scoped, administrator-approved OAuth credentials for Pegma hosts.", "license": "MIT", "type": "module", diff --git a/scripts/release-packages.mjs b/scripts/release-packages.mjs index 06804a3..36bbeb5 100644 --- a/scripts/release-packages.mjs +++ b/scripts/release-packages.mjs @@ -151,7 +151,6 @@ async function json(path) { const rootDirectory = root; const PACKAGE = RELEASE_PACKAGES[0]; const REPOSITORY_URL = "git+https://github.com/pegma-dev/agent-access.git"; -const RUNTIME_DEPENDENCIES = releaseDependencies(PACKAGE.directory, "0.1.0"); const REVIEWED_PNPM_VERSION = "10.34.5"; const STABLE_SEMVER = STABLE_VERSION; @@ -221,7 +220,10 @@ export async function validateRepository(options = {}) { ) { fail(`${PACKAGE.name} has invalid public package metadata`); } - assert.deepEqual(manifest.dependencies, RUNTIME_DEPENDENCIES); + assert.deepEqual( + manifest.dependencies, + releaseDependencies(PACKAGE.directory, manifest.version), + ); for (const kind of [ "peerDependencies", "optionalDependencies",