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
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Notable changes to Assay are recorded here. The format follows [Keep a Changelog

## [Unreleased]

First intended release: 0.0.1. No version has been published yet.
## [0.0.1] - 2026-11-28

### Added

Expand All @@ -17,4 +17,5 @@ First intended release: 0.0.1. No version has been published yet.
- Bounded JSON decoding, duplicate-key rejection, redacted validation diagnostics and separate invalid-input failures.
- Node.js 24+ ESM and TypeScript support with no runtime dependencies.

[Unreleased]: https://github.com/0xbuffdev/assay/tree/main
[Unreleased]: https://github.com/0xbuffdev/assay/compare/v0.0.1...main
[0.0.1]: https://github.com/0xbuffdev/assay/releases/tag/v0.0.1
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ The host supplies the evidence and authorizes the criteria. Assay does not execu

## Installation

Requires Node.js 24 or later and ESM. Version 0.0.1 is the first planned npm release; it has not been published.

After publication:
Requires Node.js 24 or later and ESM. Install version 0.0.1 from npm:

```sh
npm install @0xbuff/[email protected]
```

Until then, [build from source](#development).
For an unreleased revision, [build from source](#development).

## Quick start

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Security policy

Assay has no published release yet. Report vulnerabilities involving incorrect evaluation, malformed or oversized evidence, forged provenance, restricted-data disclosure or dependency compromise.
Report vulnerabilities involving incorrect evaluation, malformed or oversized evidence, forged provenance, restricted-data disclosure or dependency compromise.

Use GitHub's [private vulnerability reporting](https://github.com/0xbuffdev/assay/security/advisories/new) if enabled. Otherwise, open a non-sensitive issue requesting a confidential reporting route. Do not include exploit details, credentials, learner work or protected references in public issues or pull requests.

Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Use the [source organization](architecture.md#source-organization) to locate the

Tests cover contract validation, comparator boundaries, deterministic replay, required/advisory precedence, evidence coverage, provenance, truncation, malformed inputs and protected-data disclosure. The distribution verifier checks executable ESM and declarations. The offline package verifier checks the exact archive, Apache-2.0 notice, dependencies, hostile inputs and installed ESM/TypeScript consumer. Both Ubuntu and Windows run these checks. The verifier invokes npm's JavaScript CLI through the active Node executable to avoid platform-specific shell shims.

Assay is Apache-2.0 licensed. The public 0.0.1 package candidate remains unpublished. See the [release policy](releasing.md) for approval requirements.
Assay is Apache-2.0 licensed. See the [release policy](releasing.md) for publication requirements.

## Version metadata and runtime compatibility

Expand Down
2 changes: 0 additions & 2 deletions docs/evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ const assessment = evaluate(definition, evidence);
// This is not official credit and does not authenticate evidence.
```

The package candidate is 0.0.1. Until publication, use the exported entry from a local build.

## Return values

For valid definitions and evidence, `evaluate` returns an immutable,
Expand Down
2 changes: 1 addition & 1 deletion docs/integrity.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Assay verifies content identity, not authentication. The host must independently

## Version contract

Every versioned public record uses schema generation **4**, including definitions, reference records and bundles, evidence, complete results, public projections, and observation port requests/reports. The sole binding policy is `composed-required-v1`. Evaluator semantics are `v0.0.5`; the first intended package version is `0.0.1`, and the supported runtime is Node 24+ ESM. There is no runtime compatibility adapter, alias, automatic upgrade, or legacy policy path. Older records are explicitly rejected, not rehashed. Historical vectors remain in Git history.
Every versioned public record uses schema generation **4**, including definitions, reference records and bundles, evidence, complete results, public projections, and observation port requests/reports. The sole binding policy is `composed-required-v1`. Evaluator semantics are `v0.0.5`; the package version is `0.0.1`, and the supported runtime is Node 24+ ESM. There is no runtime compatibility adapter, alias, automatic upgrade, or legacy policy path. Older records are explicitly rejected, not rehashed. Historical vectors remain in Git history.

`ASSAY_SCHEMA_VERSION` identifies the sole current generation. The generated version metadata is derived from the authored identities in the version generator and the manifest; the evaluator identity is separate from the package release. A future contract generation must select distinct canonical domains, update generated metadata and independently verify new vectors. Do not edit generated files or silently reinterpret old records.

Expand Down
8 changes: 4 additions & 4 deletions docs/releasing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release policy

Assay uses Apache-2.0 and Semantic Versioning. Version 0.0.1 is the first intended public npm package. The package manifest is prepared for public access; no package has been published. Before 1.0.0, consumers should pin the version they tested.
Assay uses Apache-2.0 and Semantic Versioning. The package is configured for public npm access. Before 1.0.0, consumers should pin the version they tested.

The [release preparation decision](https://github.com/0xbuffdev/context/blob/main/repos/assay/reviews/2026-11-28-release-preparation.md) authorizes metadata and documentation changes. The [publication hold](https://github.com/0xbuffdev/context/blob/main/repos/assay/reviews/2026-11-22-release-decision.md) remains in force.

Expand Down Expand Up @@ -31,7 +31,7 @@ The verifier checks package metadata, licensing, no runtime dependencies, no lif
- Confirm contributor rights, Apache-2.0 attribution and third-party notices.
- Review the exact candidate commit, tarball contents, source map, digest and CI results. A passing automated scan does not replace independent inspection.
- Approve a separate protected release workflow and verify the actual npm account configuration.
- Approve the exact release version and release date. Move the changelog's Unreleased changes to the dated version section when the release occurs.
- Approve the exact release version and release date. Move the changelog's Unreleased changes to a dated version section before verifying the final archive. If the intended publication date changes, update the date and repeat verification and inspection.
- Obtain explicit authorization before creating a tag, staging or publishing.

For a public package, prefer [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/) with a protected GitHub environment and stage-only permission. A maintainer must approve the staged package through npm using its required authentication. Keep quality CI read-only; never introduce a long-lived npm token to it.
Expand All @@ -42,10 +42,10 @@ The `Stage npm package` workflow (`.github/workflows/release.yml`) runs only by

1. In repository Settings > Environments, create `npm-stage`. Restrict deployments to `main`, require reviewers and disallow administrator bypass. Enable prevention of self-review if another reviewer is available.
2. After independent inspection and explicit release approval, set environment variables `ASSAY_STAGE_COMMIT`, `ASSAY_STAGE_RUN_ID` and `ASSAY_STAGE_SHA256` to the approved current main SHA, successful main quality run ID and tarball digest. Leave them unset until approval. Finalize dated release notes and reverify any resulting changes before setting these values.
3. In npm package settings, configure a GitHub Actions trusted publisher for `0xbuffdev/assay`, workflow `release.yml`, environment `npm-stage`. Allow staging only; disable direct publish and dist-tag changes. Use a GitHub-hosted runner. No npm token is required in GitHub.
3. When package settings are available and staging is authorized, configure a GitHub Actions trusted publisher for `0xbuffdev/assay`, workflow `release.yml`, environment `npm-stage`. Allow staging only; disable direct publish and dist-tag changes. Use a GitHub-hosted runner. No npm token is required in GitHub. Configure the publisher close to use; npm expires new configurations that are not validated within two days.
4. Dispatch the workflow with the approved quality run ID. Review and approve the environment job. The workflow checks the approved commit, successful quality run, archive metadata, actual digest and dated changelog before requesting staging. It does not publish or tag anything.
5. Inspect the staged package in npm and compare its tarball digest to the approved artifact. Approve the staged version using npm's required human 2FA only after separate publication authorization. Clear the environment approval variables when done.

For a package that does not yet exist, the owner may need to stage the first inspected tarball locally with an authenticated npm session before package-level trusted publishing is available. Do not create a placeholder package or stage without separate approval. See [staged publishing](https://docs.npmjs.com/staged-publishing/) for the account and CLI requirements.
For a new package, the owner may stage the first inspected tarball from an authenticated npm session before configuring package-level trusted publishing. npm creates a public `0.0.0-stage` placeholder automatically; the staged contents remain unavailable until approved. This registry change requires explicit authorization, too. Do not create a placeholder manually. Use npm CLI 11.15.0 or later and enable account 2FA. See [staged publishing](https://docs.npmjs.com/staged-publishing/) for details.

Actual release execution requires a separate maintainer decision. Host authorization, execution isolation and formal grading remain outside Assay.