ArchSutra AI GitHub

ArchSutra AI / Handbook

Supply chain and release

How releases are built, signed and attested, how to verify them, and which supply-chain controls exist.

Version 0.1.5 · Source: docs/handbook/15-supply-chain-and-release.md

Controls#

ControlWhereStatus
Zero runtime dependenciespackage.json; CI step npm ls --omit=devenforced in CI
Lockfile and clean installspackage-lock.json; CI uses npm cienforced
GitHub Actions pinned to commit SHAsall files in .github/workflows/ (version in a comment)done
Least-privilege workflow permissionspermissions: contents: read by default; elevated only per jobdone
Dependency updatesDependabot (weekly, grouped, major TypeScript and Node typings bumps ignored)configured
Static analysisCodeQL (JavaScript/TypeScript) on push, PR and weeklyconfigured
Project health scoreOpenSSF Scorecard workflow, results publishedconfigured; no score yet
Developer Certificate of OriginCI job dco on pull requestsconfigured
SBOMCycloneDX JSON for production and full dependency sets, attached to each releaseon release
ChecksumsSHA256SUMS over the tarball and SBOMson release
Build provenance attestationactions/attest signs the tarball with GitHub's Sigstore-based keyless signingon release
Secret scanningGitHub secret scanning and push protection (public repositories); our own audit finds no secrets in the treeenabled by GitHub
Vulnerability reportingGitHub private advisories; security.txtconfigured

Release procedure#

  1. Update CHANGELOG.md and the version in package.json, CITATION.cff, llms.txt and the docs (node scripts/build-docs.mjs reads the version).
  2. 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.
  3. Commit with sign-off (git commit -s), push, wait for the CI matrix and CodeQL.
  4. 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 ``
  5. The Release workflow runs tests again, then publishes the release with the tarball, sbom-production.cdx.json, sbom-full.cdx.json, SHA256SUMS and the attestation.
  6. 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-ai

A 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.3 on Windows. 0.1.2 installs a command named archsutra only, so npx archsutra-ai fails there with 'archsutra' is not recognized`.
  • The git tag v0.1.2 is the attested GitHub release (tarball, SBOMs, checksums, 2 attestations). It does not contain the archsutra-ai bin. There is no v0.1.3 tag. npm 0.1.3 reports gitHead 4a7ab2768c7875fedaeffcffcab18211789efd88, which is not the commit that contains version 0.1.3 in 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, not v0.1.2, if the command you run is archsutra-ai.
  • npx github:... builds from source on your machine (prepare runs tsc); 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#

ItemWhy
npm publish from GitHub Actions with provenancerelease.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 tagsNeeds the maintainer's signing key
Reproducible build verificationThe TypeScript build is deterministic in practice but not independently verified
SLSA level claimv0.1.2 has GitHub attestations. Scorecard Signed-Releases still scores 0. No SLSA level is claimed

Edit this page on GitHub