Skip to content

safekeys/distribution [built] ​

Name reservation and release pipeline for the 0.1.0 publish: npm under @smithgray (safekeys-mcp, safekeys-sdk, safekeys-cli with per-platform binary packages — the esbuild pattern, no lifecycle scripts, no install-time downloads) with defensive unscoped placeholders; PyPI safekeys plus safekeys-mcp/safe-keys placeholders via Trusted Publishing; Docker Hub org safekeys with GHCR canonical mirror, multi-arch, cosign-signed and SBOM-attested; crates.io placeholder crate; Go binaries with checksums and SBOM on the GitHub Release; Homebrew formula prepared for a future tap. Every publish job is gated on a release environment requiring James's approval, and every artefact is verifiable by the installer (cosign verify, npm audit signatures, sha256 checksums). No agent publishes anything: first publishes are human acts listed in docs/RELEASING.md.

Status: built

Why this exists ​

The MVP is real but unnameable: the npm org, PyPI names, Docker org, and crates.io name are either unclaimed, unprepared, or — in one case — squatted by a third party. Reserving the official and defensive names and building a gated, provenance-carrying release pipeline is what lets 0.1.0 ship without a rename later and without shipping under an impersonatable identity.

Design decisions ​

esbuild-pattern-for-cli [accepted] ​

Decision: Distribute the CLI as @smithgray/safekeys-cli with optionalDependencies on per-platform packages containing the prebuilt binary.

Rationale: No download at install time, no lifecycle scripts, checksummed by the npm registry itself, and npm installs exactly the one platform package the host needs. This is the pattern esbuild and Rollup use; it survives air-gapped installs, mirrors, and --ignore-scripts better than any installer script would.

Consequences: Five platform packages join the name table and the gated publish job. A test asserts the meta package resolves the right binary per platform and fails loudly on an unsupported platform. The curl | sh path remains, documented as secondary, and verifies a sha256 checksum.

Date: 2026-09-28

ghcr-canonical-dockerhub-mirror [accepted] ​

Decision: Publish images to ghcr.io/smith-gray-pty-ltd as canonical and Docker Hub org safekeys as a mirror.

Rationale: GHCR requires no additional credential (GITHUB_TOKEN suffices) and keeps the image next to the code and its provenance; Docker Hub is where operators search. Deployments pin GHCR digests.

Date: 2026-09-28

no-agent-publishes [accepted] ​

Decision: Every first publish and every account/org creation is performed by James; agents prepare packages, workflows, and the runbook only.

Rationale: First publishes create registry identities that cannot be renamed, and account creation is a human act of authority. The pipeline is gated on a release environment with a required human reviewer for the same reason — nothing ships without a click.

Date: 2026-09-28

How it works ​

Tag-triggered release pipeline (tag-triggered-release) ​

  1. Receive — A v* tag is pushed.
  2. Validate — Build, full test suite, and the red-team job run first; any failure stops the release before a publish job starts.
  3. Send — Publish jobs run against the release environment: npm with provenance (the meta package and every per-platform binary package), PyPI via Trusted Publishing, images signed and attested to GHCR and Docker Hub, binaries and checksums and SBOM attached to the Release, Homebrew formula updated.
  4. Observe — Nothing ships without James's environment approval; every artefact carries a digest or provenance record.

Reserve the defensive names (reserve-names) ​

  1. Setup — Placeholder packages are prepared: npm safekeys-mcp and safekeys-cli (0.0.1, README only), PyPI safekeys-mcp and safe-keys (0.0.1, README only), crates.io safekeys (0.0.1, doc comment only).
  2. Observe — Each placeholder packs cleanly with no code inside (npm pack --dry-run, python -m build, cargo package --list).
  3. Record — James executes the one-time account and org creation steps from docs/RELEASING.md and performs every first publish himself.

Verify your install (verify-install) ​

  1. Receive — An operator has installed an artefact — an image, an npm package, or a release binary.
  2. Validate — Container images verify with cosign keyless, pinned to the repo's workflow identity (https://github.com/Smith-Gray-Pty-Ltd/safekeys/.github/workflows/release.yml@refs/tags/v*); npm provenance verifies with npm audit signatures; release binaries verify against the sha256 checksums on the GitHub Release.
  3. Observe — The verify commands are documented on the security page of the docs site and in SECURITY.md, and fail loudly when the identity or checksum does not match.