Skip to content

Concepts

Signed releases

A release is the exact set of files a machine should hold, signed by your key. A machine installs it only after the signature and the contents check out.

The release file

A release starts as a JSON file with the schema gal.configuration-release/v1. It names an organization and a channel, a release_id, a serial, a validity window (issued_at, expires_at), the release it replaces (previous), and the files themselves: each one's path, its full text and the SHA-256 of that text.

A release can carry AGENTS.md, CLAUDE.md and .cursor/rules/gal.mdc. The CLI has no command that writes this file yet; the Quickstart uses a short script.

The signed file

gal approved-config sign takes the release file and your private key and writes a new file, for example release-1.dsse.json. It holds the release, encoded, with the payload type application/vnd.gal.configuration-release.v1+json, and an Ed25519 signature with the keyid of the key that made it. sign prints the SHA-256 of the signed file as bundle_sha256.

Signing refuses a release that is outside its validity window, a file whose text does not match its SHA-256, an unsupported or repeated path, a file over the size limit, a private key readable by other users, and an output file that already exists.

What verify checks

gal approved-config verify takes the signed file, the public key you trust, and the organization and channel you expect. It reports "status": "verified" only if:

  • the signature verifies against that public key;
  • the organization and channel match exactly (case matters);
  • the release is inside its validity window.

It then prints payload_sha256, which identifies this exact release. install runs the same checks, and a release that fails them leaves the folder untouched.

Serials and updates

The first release has serial 1 and previous set to null. A later release has a higher serial, and its previous is the payload_sha256 of the release it replaces. Installing the later release over the earlier one is an explicit install on each machine; nothing updates on its own.

A machine whose first release is a later one needs the exact payload_sha256 of that release, given with --enroll-payload-sha256 and obtained from the publisher through a separate trusted channel. A guide to updates and rollback is not written yet.

What a signature proves, and what it does not

A valid signature shows that the files are exactly the ones signed by the holder of the private key that matches your public key. It does not show that the instructions in them are safe, and matching files do not show that a coding agent loaded or followed them.

Checked against CLI 0.2.1 on 2026-10-21 (Ubuntu 24.04 x86_64 (glibc 2.39, Node.js 24) and macOS 26.5 on Apple silicon (Node.js 25), from the npm registry).