Skip to main content

Module names

Module names 

Source
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 (refs/notes/amont-*, plan 3a-3), 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 migrate moves, 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.
BIN
The hook binary.
BREW_FORMULA
The Homebrew formula, tap-qualified.
BYPASS_FORMAT
BYPASS_LEDGER
The bypass ledger, and its header.
CLUSTER_NAMESPACE
The namespace cluster gates run in, unless greengate.cluster.namespace names another (homelab apps/greengate-gates).
CONFIG_PREFIX
The git config namespace every key lives in (greengate.timeout).
CRATE
The crate cargo install takes.
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 keeps the notes format (amont-gate-v1), which plan 3a-3 renames.
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 --json envelope. greenpiste and relais read it and the old amont-list-v1 alike, from greenpiste 3.30.0 and relais 0.54.0.
MANAGED_BY
app.kubernetes.io/managed-by on 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_FILE
The file a pack repository declares its rows in.
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 --reverse leaves 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 collect and 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).
STATE_DIR
The folder of state under $GIT_DIR and 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.