From 2e2c945d6d6ab071f0a09e50cef1c7eb9cd3a035 Mon Sep 17 00:00:00 2001 From: "Christopher S. Aondona" Date: Sun, 29 Nov 2026 12:13:12 +0100 Subject: [PATCH 1/2] docs: update installation and release guides after initial publication --- CHANGELOG.md | 4 ++++ README.md | 8 ++++---- docs/development.md | 2 +- docs/releasing.md | 44 +++++++++++++++++++++++++------------------ docs/source-rights.md | 6 +++--- 5 files changed, 38 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d77929e..7ff0201 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Notable changes to Preceptor are recorded here. The format follows [Keep a Chang ## [Unreleased] +### Changed + +- Simplified the npm installation instructions and updated the release and licensing guides for ongoing maintenance. + ## [0.0.1] - 2026-11-29 ### Added diff --git a/README.md b/README.md index 57f73d0..846deab 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,13 @@ The planner works offline without a language model. Applications can supply thei ## Installation -Requires Node.js 24 or later and ESM. Install the version you intend to use: +Preceptor requires Node.js 24 or later and ESM. ```sh -npm install @0xbuff/preceptor@0.0.1 +npm install @0xbuff/preceptor ``` -If the version is not available on npm, build and test from source using the development commands below. Pin the version you have tested. +Pin the version you have tested when deploying an application. The package is available on [npm](https://www.npmjs.com/package/@0xbuff/preceptor). ## Quick start @@ -89,7 +89,7 @@ Narrative memory and academic-result summaries are separate. The host owns stora | [Architecture](https://github.com/0xbuffdev/preceptor/blob/main/docs/architecture.md) | Module boundaries and host responsibilities | | [Examples](https://github.com/0xbuffdev/preceptor/tree/main/examples) | Offline planning, model, memory and summary integration | -The current policy is `preceptor-policy-v1`; committed summaries use `preceptor-summary-v1`. Only the package root is exported. The library does not include a model provider, storage backend or review scheduler. +Import the public API from `@0xbuff/preceptor`. The policy revision is `preceptor-policy-v1`, and committed summaries use `preceptor-summary-v1`. Supply your own model provider or storage adapter if needed; scheduling remains a host responsibility. ## Development diff --git a/docs/development.md b/docs/development.md index 71dcb7d..2892f3f 100644 --- a/docs/development.md +++ b/docs/development.md @@ -23,6 +23,6 @@ Keep runtime dependencies empty. Tests use synthetic learner data and independen The verifier packs locally with scripts disabled, checks the exact archive inventory and digest, and installs it offline in an independent temporary project. It tests the public ESM surface, import purity, TypeScript declarations, runtime integrations, the README quick start and all four shipped examples. No provider or workspace alias is needed. Temporary files are removed after verification. -The read-only quality workflow runs on Ubuntu and Windows and retains the tested archive and evidence JSON for the exact commit. See [release verification](releasing.md). +The quality workflow runs on Ubuntu and Windows and retains the tested archive and evidence JSON for the exact commit. Run the separate release audit for a proposed unpublished version. See [release verification](releasing.md). Do not edit generated `dist/` files. Keep examples and documentation in step with the public contract. See [contributing](../CONTRIBUTING.md) and [security](../SECURITY.md). diff --git a/docs/releasing.md b/docs/releasing.md index 48a9c66..da22158 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -1,8 +1,10 @@ # Releasing Preceptor -Preceptor uses the npm package name `@0xbuff/preceptor` and the Apache-2.0 license. The package uses Semantic Versioning; consumers should pin versions before 1.0.0. A publishable manifest and public repository do not mean a package has been published. +Preceptor is published as [`@0xbuff/preceptor`](https://www.npmjs.com/package/@0xbuff/preceptor) on npm. Releases use Semantic Versioning. Consumers should pin tested versions before 1.0.0. -## Verify the candidate +## Prepare a release + +Update the package version and move the relevant Unreleased changelog entries into a dated section for that version. Keep release scripts and their fixtures in step with the version. Review contributor rights, license notices and the changes since the previous release. Use the documented Node.js and pnpm toolchain on a clean checkout: @@ -13,34 +15,40 @@ pnpm install --frozen-lockfile pnpm check ``` -On Ubuntu, also run `pnpm check:release-preflight`. This requires Bash, jq, OpenSSL and GNU tar/coreutils. The release regression uses synthetic artifacts and stubbed GitHub and npm commands. It never contacts the registry or requests staging. On other platforms, record it as not run and require successful Ubuntu CI. +On Ubuntu, also run `pnpm check:release-preflight`. It requires Bash, jq, OpenSSL and GNU tar/coreutils. The regression tests use synthetic artifacts and stubbed GitHub and npm commands. They do not stage packages or contact the registry. On other platforms, record this check as not run and require successful Ubuntu CI. + +## Verify the candidate -The quality workflow verifies both Ubuntu and Windows. It retains the tested archive and `evidence.json` for the exact commit and workflow attempt. The npm archive must contain exactly seven files: +The quality workflow runs on Ubuntu and Windows. Each job retains the tested archive and `evidence.json` for the exact commit and workflow attempt. The npm archive must contain seven files: - `package.json`, `README.md`, `CHANGELOG.md` - `LICENSE`, `COPYRIGHT.md` - `dist/index.js`, `dist/index.d.ts` -Source maps, private records, provider SDKs and runtime dependencies are excluded. Verify the actual tarball's file list, SHA-256, npm SHA-512 integrity, byte count and public manifest. Download and inspect both candidate artifacts independently; matching tarball digests establish identical archive bytes. The packed tests cover ESM, declarations, import purity, integrations, the README quick start and examples. +The archive excludes source maps, private records and provider SDKs. Verify the file list, SHA-256, npm SHA-512 integrity, byte count and public manifest, including the absence of runtime dependencies. Download both candidate artifacts independently and check that the tarballs have identical digests. Packed-package tests cover ESM, declarations, import purity, integrations, the README quick start and examples. + +Run the read-only `Release candidate audit` workflow for the proposed unpublished version. It checks the locked development dependencies and whether the version already exists in the public npm registry. Review the audit results and confirm publisher permissions in the npm account. + +Obtain explicit maintainer approval for the release date, exact current main commit, successful CI run and archive SHA-256. Any change to the candidate requires fresh verification and approval. See the [source-rights record](source-rights.md). -## Approve publication +## Stage with trusted publishing -Before staging, confirm npm scope ownership, name/version availability, publisher identity, contributor rights, notices and dependency audit results. The read-only `Release candidate audit` workflow checks the locked development dependency graph and the public registry's package/version metadata. Run it for the candidate commit and review the results. An unauthenticated 404 does not establish permission to create a scoped package; verify that in the npm account. Review the exact current main commit, CI, artifact and its SHA-256. Approve the release date and move the Unreleased changelog entries into a dated `0.0.1` section. Rebuild and reverify if the changelog or any other packed file changes. +The `Stage npm package` workflow is a manual GitHub Actions dispatch on `main`. It uses the protected `npm-stage` environment to request npm staging through OIDC. The workflow downloads the approved Ubuntu artifact, validates its evidence and contents, and rechecks the main commit and digest before staging. It does not rebuild the package, publish it directly or create a tag. -The [source-rights record](source-rights.md) documents the initial implementation approval. Each release needs explicit approval for the exact candidate and for publication. Do not create a version tag or GitHub release without authorization. +Before dispatching a release: -## Protected staging +1. Configure the GitHub environment `npm-stage` to allow main only, require reviewers and disable administrator bypass. Prevent self-review where a separate reviewer is available. +2. Configure [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/) for `0xbuffdev/preceptor`, workflow `release.yml`, environment `npm-stage`, with stage-only permission. Disable direct publishing and dist-tag management. Use GitHub-hosted runners. Verify the current npm requirements; an unvalidated trusted publisher configuration expires after two days. Do not use a long-lived npm publishing token in CI. +3. Set environment variables `PRECEPTOR_STAGE_COMMIT`, `PRECEPTOR_STAGE_RUN_ID` and `PRECEPTOR_STAGE_SHA256` to the approved main commit, successful main quality run ID and verified tarball digest. Leave them unset before approval. +4. Dispatch the workflow with the approved run ID and approve the protected environment job. Inspect the staged version and download its tarball to verify the digest. +5. With explicit publication approval, approve the staged version in npm using the required authentication. Clear the approval variables when finished. -The manual `Stage npm package` workflow runs on `main` in the `npm-stage` environment. It downloads the successful current main quality run's Ubuntu artifact, verifies approval variables, run identity, archive metadata and contents, and rechecks main and digest before requesting npm staging. It does not rebuild, publish directly, or tag a commit. +## Verify publication -1. Configure GitHub Settings > Environments > `npm-stage` to restrict deployments to main, require reviewers and disallow administrator bypass. Prevent self-review where a separate reviewer is available. -2. After approval, set environment variables `PRECEPTOR_STAGE_COMMIT`, `PRECEPTOR_STAGE_RUN_ID` and `PRECEPTOR_STAGE_SHA256` to the approved current main commit, successful main quality run ID and actual tarball digest. Leave them unset before approval. -3. Configure [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/) for `0xbuffdev/preceptor`, workflow `release.yml`, environment `npm-stage`, with staging-only permission. Disable direct publish and dist-tag changes. Use GitHub-hosted runners. Configure the publisher close to use; an unvalidated configuration expires after two days. Verify registry setup and current npm requirements before dispatch. Do not add a long-lived publishing token to quality CI. -4. If this is a new package without npm settings, follow npm's [first-package staged creation procedure](https://github.blog/changelog/2026-10-02-npm-staged-publishing-now-supports-creating-new-packages/). Creating a package by staging requires separate authorization and an authenticated owner of the scope. Confirm the available provenance and approved archive before choosing the bootstrap route; never directly publish a placeholder to enable trusted publishing. Once an eligible trusted publisher is configured, dispatch the workflow with the approved run ID and approve the protected environment job. Inspect the staged version and its tarball digest. Use npm's required human approval and authentication only after separate publication authorization. -5. Clear the approval variables when finished. +Download the public registry tarball and compare its SHA-256 with the approved archive. Check the registry metadata, integrity, signatures, available build provenance, version and dist-tag. A registry signature alone is not a build provenance attestation. -## After publication +Install the exact published version in an independent ESM project with scripts disabled. Run the model-free quick start without provider credentials. Record the results, then create and verify the authorized signed version tag and publish the GitHub release notes from the changelog. -Download the public registry tarball and compare its SHA-256 against the approved artifact. Confirm registry metadata, provenance, version and dist-tag. Install the exact version in an independent ESM project with scripts disabled and run the model-free quick start without credentials. Record the results, tag and release notes only when authorized. +## Correct a published release -If a bad version is published, stop recommending it, notify consumers, and publish a reviewed correction. Use npm deprecation and dist-tag changes only with maintainer approval; do not overwrite an immutable published version. Follow the [security policy](../SECURITY.md) for confidential vulnerabilities. +If a release is defective, stop recommending it, notify consumers and publish a reviewed correction. Use npm deprecation or dist-tag changes only with maintainer approval. Published versions cannot be overwritten. Follow the [security policy](../SECURITY.md) for confidential vulnerability reports. diff --git a/docs/source-rights.md b/docs/source-rights.md index e6370d0..27cbb0f 100644 --- a/docs/source-rights.md +++ b/docs/source-rights.md @@ -1,7 +1,7 @@ # Source rights and licensing -Preceptor is maintained in one standalone repository. Its source was developed independently of private application code, learner records and provider implementations. The development toolchain shares dependency versions with Assay; no Assay runtime code is bundled. +Preceptor is licensed under Apache-2.0. See [LICENSE](../LICENSE) and [COPYRIGHT.md](../COPYRIGHT.md) for the terms and notices. -0xBUFF selected Apache-2.0 on 2026-11-28. On 2026-11-29, the maintainer [confirmed source provenance and sufficient ownership and contributor rights](https://github.com/0xbuffdev/preceptor/pull/10#issuecomment-7253842200) for the reviewed implementation. See [LICENSE](../LICENSE) and [COPYRIGHT.md](../COPYRIGHT.md). New contributions must comply with the license and maintainers must review their provenance. +The source was developed independently of private application code, learner records and provider implementations. On November 29, 2026, the maintainer [confirmed source provenance and sufficient ownership and contributor rights](https://github.com/0xbuffdev/preceptor/pull/10#issuecomment-7253842200) for the initial release. -The public repository and publishable package metadata do not themselves authorize npm publication. Review the exact archive before each release; see [releasing](releasing.md). +New contributions must comply with the license. Maintainers review contributor rights and the contents of each release archive. See [contributing](../CONTRIBUTING.md) and [releasing](releasing.md). From 3c6ec2277fea80466b0db7bad6d4315f89ba2739 Mon Sep 17 00:00:00 2001 From: "Christopher S. Aondona" Date: Sun, 29 Nov 2026 12:13:38 +0100 Subject: [PATCH 2/2] docs: defer changelog update to 0.0.2 candidate --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ff0201..d77929e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,6 @@ Notable changes to Preceptor are recorded here. The format follows [Keep a Chang ## [Unreleased] -### Changed - -- Simplified the npm installation instructions and updated the release and licensing guides for ongoing maintenance. - ## [0.0.1] - 2026-11-29 ### Added