Skip to content

Concepts

The installation record

When a release is installed, the CLI keeps a record of it in the managed folder. Every later check compares the files on disk with that record.

The managed folder

You choose the folder with --dir. It must be owned by you and have mode 0700. install writes the release's files into it with mode 0600, and creates a .gal-distribution folder next to them, also private to you.

The destination can be a disposable existing project or repository that meets those requirements. The CLI writes only the release’s supported instruction files and its installation record there. Existing unmanaged supported files and edited managed files are refused; unrelated project files remain outside the release. It does not choose an agent’s working directory or change native settings. A matching file report does not establish that an agent loaded or followed the instructions.

What the record holds

.gal-distribution/state.json (schema gal-local-install-state-v1) holds the verified release as installed: its organization, channel, release ID, serial, validity window and files, with the release's payload_sha256, the signer's signer_keyid and the signed file's bundle_sha256. Leave this folder as it is; the CLI reads it on every check.

Matching, different, unknown

gal approved-config installed-status --dir <folder> compares each file's SHA-256 with the record and prints a JSON report. install prints the same report when it finishes.

StatusMeaning
matchingEvery file is byte for byte what the installed release says. Exit code 0.
differentA file was changed after install. The report shows the expected and actual SHA-256. Exit code 1.
unknownNothing has been installed in this folder ("reason": "not enrolled"). Exit code 1.

When the result is not matching, the CLI also prints Error: Installed configuration is not matching; inspect the JSON report.

What install refuses

A machine never repairs itself. install refuses to write over a file that differs from the record (Error: managed configuration differs: AGENTS.md), and refuses a folder that already holds one of the supported files it did not install (Error: refusing unmanaged pre-existing configuration: AGENTS.md). Restore the exact bytes, or use a new folder. A guide to recovering from drift is not written yet.

The observation report

gal approved-config observe --dir <folder> --device-id <label> prints the same status inside a report with the schema gal.configuration-observation/v1, the label you gave and the time of the check in UTC. The label is yours; it is not an authenticated device identity.

The report is printed to your terminal. Sending it to the dashboard is Not built yet, so installed versions from this CLI do not appear there.

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).