ArchSutra AI / Handbook
Supply chain and release
How releases are built, signed and attested, how to verify them, and which supply-chain controls exist.
Controls#
| Control | Where | Status |
|---|---|---|
| Zero runtime dependencies | package.json; CI step npm ls --omit=dev | enforced in CI |
| Lockfile and clean installs | package-lock.json; CI uses npm ci | enforced |
| GitHub Actions pinned to commit SHAs | all files in .github/workflows/ (version in a comment) | done |
| Least-privilege workflow permissions | permissions: contents: read by default; elevated only per job | done |
| Dependency updates | Dependabot (weekly, grouped, major TypeScript and Node typings bumps ignored) | configured |
| Static analysis | CodeQL (JavaScript/TypeScript) on push, PR and weekly | configured |
| Project health score | OpenSSF Scorecard workflow, results published | configured; no score yet |
| Developer Certificate of Origin | CI job dco on pull requests | configured |
| SBOM | CycloneDX JSON for production and full dependency sets, attached to each release | on release |
| Checksums | SHA256SUMS over the tarball and SBOMs | on release |
| Build provenance attestation | actions/attest signs the tarball with GitHub's Sigstore-based keyless signing | on release |
| Secret scanning | GitHub secret scanning and push protection (public repositories); our own audit finds no secrets in the tree | enabled by GitHub |
| Vulnerability reporting | GitHub private advisories; security.txt | configured |
Release procedure#
- Update
CHANGELOG.mdand the version inpackage.json,CITATION.cff,llms.txtand the docs (node scripts/build-docs.mjsreads the version). - Run
npm test,npm run verify,node scripts/eval.mjs,node scripts/labeled-recall.mjs <workdir>,node scripts/bench.mjs,node scripts/build-docs.mjs. - Commit with sign-off (
git commit -s), push, wait for the CI matrix and CodeQL. - Tag and push the tag: ``
bash git tag -s vX.Y.Z -m "ArchSutra AI vX.Y.Z" # or an unsigned annotated tag: git tag -a git push origin vX.Y.Z`` - The
Releaseworkflow runs tests again, then publishes the release with the tarball,sbom-production.cdx.json,sbom-full.cdx.json,SHA256SUMSand the attestation. - Verify (see below) and update
docs/handbook/13-trust-and-assurance.md.
Verify a release#
# download the release assets, then:
sha256sum -c SHA256SUMS
gh attestation verify archsutra-ai-X.Y.Z.tgz --repo shahvatsalofficial/archsutra-aiA successful gh attestation verify proves the tarball was built by the repository's Release workflow at the tagged commit.
Using the tool safely#
- Prefer a pinned release, not the moving default branch. ``
bash npx --yes archsutra-ai@0.1.3 audit . --output docs/architecture`Use@0.1.3on Windows.0.1.2installs a command namedarchsutraonly, sonpx archsutra-aifails there with'archsutra' is not recognized`. - The git tag
v0.1.2is the attested GitHub release (tarball, SBOMs, checksums, 2 attestations). It does not contain thearchsutra-aibin. There is nov0.1.3tag. npm0.1.3reportsgitHead4a7ab2768c7875fedaeffcffcab18211789efd88, which is not the commit that contains version0.1.3in git, and it has no npm provenance. - A full commit SHA is still the tightest git pin:
npx github:shahvatsalofficial/archsutra-ai#<40-char sha> audit .. Pin a commit at or after the Windows bin fix, notv0.1.2, if the command you run isarchsutra-ai. npx github:...builds from source on your machine (preparerunstsc); that requires the dev dependencies (TypeScript) to be installed during the build, which come from the lockfile.- The release tarball can be inspected before running:
tar -tzf archsutra-ai-X.Y.Z.tgz.
Not yet done#
| Item | Why |
|---|---|
| npm publish from GitHub Actions with provenance | release.yml runs npm publish --provenance --access public on a version tag. npm must have a trusted publisher for this repository and release.yml, or the step fails. 0.1.2 and 0.1.3 were laptop publishes and cannot be replaced |
| Signed git tags | Needs the maintainer's signing key |
| Reproducible build verification | The TypeScript build is deterministic in practice but not independently verified |
| SLSA level claim | v0.1.2 has GitHub attestations. Scorecard Signed-Releases still scores 0. No SLSA level is claimed |