Expand description
Every name the tool says about itself, in one place (ADR-0064
harness.renames, plan “amont ships as greengate”).
Messages, usage text, error prefixes, --version lines and command hints
are built from these, never from a literal: a later name is one change
here. The names test (crates/greengate/tests/it/names.rs) fails on a new
literal "amont ", "amont: " or "amont-fleet" in any other source.
The names the tool READS and WRITES are here too since greengate 4.0
(plan “greengate 4.0 renames its data names”, a hard rename): the
GREENGATE_ environment, the greengate. config keys, the state under
$GIT_DIR and the common dir, and the ledgers’ headers. greengate 3.x’s
spellings live only in migrate.rs, which moves them once; the names
test fails on an old data name anywhere else. Kept on purpose: the notes
namespaces (the old amont-* names, which only tests spell to prove they are ignored), the shim placeholder, and
the binary aliases above.
In a format string, name the constant inline: eprintln!("{BIN}: …").
For a &'static str built at compile time, use the [bin!] macro with
concat!.
Modules§
- old
- greengate 3.x’s names: what
migratemoves, and the committed names (manifest, pack, markers) read until the fleet sweep. Kept here, beside the new ones, so no module depends on the migration to know them; the census (Phase 6) removes the read-only ones.
Constants§
- AGENTS_
END - AGENTS_
START - The markers around the block greengate generates in AGENTS.md and the CLAUDE.md pointer.
- ALLOW_
SECRET - The inline comment that waives a secret finding on its line.
- AUDIT_
FORMAT - AUDIT_
REF - The notes ref the release audit caches its verdicts in (local, never pushed), and the header of each note.
- AUDIT_
WAIVERS - The committed audit waivers file.
- BIN
- The hook binary.
- BREW_
FORMULA - The Homebrew formula, tap-qualified.
- BYPASS_
FORMAT - BYPASS_
LEDGER - The bypass ledger, and its header.
- CHECK_
FORMAT - The
formatfield ofgreengate check --format json. - CLUSTER_
NAMESPACE - The namespace cluster gates run in, unless
greengate.cluster.namespacenames another (homelabapps/greengate-gates). - CONFIG_
PREFIX - The git config namespace every key lives in (
greengate.timeout). - CRATE
- The crate
cargo installtakes. - DOWNGRADE_
FORMAT - DOWNGRADE_
LEDGER - The downgrade ledger, and its header.
- ENV_
PREFIX - The environment namespace a host key answers to (
GREENGATE_TIMEOUT). - EXECUTOR_
ACCOUNT - The ServiceAccount a detached Workflow’s pods run as.
- FLEET_
BIN - The fleet binary.
- GATE_
ANNOTATION - The annotations naming a cluster Job’s gate and tree.
- GATE_
MARKER - The pre-commit → post-commit gate marker under
$GIT_DIR. Its content is the notes format (greengate-gate-v1, plan 3a-3 Phase 4). - GIT_
AUTHOR - The author and committer name of the commits this tool writes: a cluster gate’s throwaway commit and a detached run’s snapshot.
- GIT_
EMAIL - Their email.
- HELD_
FORMAT - The held store’s index header.
- HELD_
STORE - Where the unstaged changes are parked during a check.
- INSTALLER_
URL - The one-line installer for Linux and macOS.
- JOB_
PREFIX - A cluster Job’s name before its slot number.
- LIST_
FORMAT - The
list --jsonenvelope. Every greenbelay release and relais from 0.54.0 read it and the oldamont-list-v1alike. - MANAGED_
BY app.kubernetes.io/managed-byon every Job and Workflow.- MANIFEST
- The committed manifest a repository declares its checks in.
- MIGRATED_
MARKER - MIGRATE_
LOCK - The migration’s lock and its done-marker, in the common dir.
- NPM_
PACKAGE - The npm package.
- OLD_BIN
- The hook binary’s old name, still installed as an alias (a copy).
- OLD_
FLEET_ BIN - The fleet binary’s old name, still installed as an alias (a copy).
- PACK_
END - PACK_
FILE - The file a pack repository declares its rows in.
- PACK_
START - PACK_
STEM - The markers around a pack’s block in the manifest, and the stem messages quote.
- PRESERVED_
STORE - A held copy a mid-check edit displaced.
- PRODUCT
- The product’s name, as it introduces itself.
- READ_
TOKEN_ SECRET - The Secret holding the snapshot repository’s read token.
- REHEARSAL_
FORMAT - REHEARSAL_
LOG - REHEARSAL_
STATE - A rehearsal’s state file, its log, and the state’s header.
- REPO
- The repository the releases come from.
- REVERSED_
MARKER - The marker
greengate migrate --reverseleaves in the common dir: the first-run migration stands down until it is gone, so a 4.0 hook does not move a rolled-back repository forward again before 3.x is installed. - RUN_
LABEL - The label every Job and Workflow of one run carries, read by
collectand the batched cluster reads. - SKEW_
FORMAT - SKEW_
MARKER - The version-skew marker, and its header.
- SLOT_
HOLDER - The name this tool holds a host slot under (
greengate slots). - STAMP_
MESSAGE - The message of the throwaway commit made for a stamped tree.
- STATE_
DIR - The folder of state under
$GIT_DIRand the common dir (logs, land receipts, pending detached runs). - TREE_
ANNOTATION - TREE_
CACHE - The tree cache under
$GIT_DIR. - WARM_
LOG - The cold-cache warm worker’s log under
$GIT_DIR. - WAVES_
FORMAT - WAVES_
LEDGER - The waves ledger, and its header.
- WORKFLOW_
PREFIX - A detached Workflow’s name before its run label.