Expand description
NATS KV bucket name + key helpers (spec §2.3.2).
NATS KV bucket names must be domain-safe ASCII (a-z, A-Z, 0-9, _, -),
so the spec’s dotted names (script.current, script.status) are
flattened to underscore form here.
Constants§
- BUCKET_
AGENTS_ STATE - BUCKET_
AGENT_ CONFIG - BUCKET_
AGENT_ GROUPS - BUCKET_
JOBS - Job catalog (v0.15) — operator-registered Manifests, keyed by
manifest.id. Schedules and ad-hockanade run --job-id ...look jobs up here; the wire never round-trips an inline Manifest body through a Schedule again. Editing a job in-place retroactively changes what future schedule fires deploy. - BUCKET_
SCHEDULES - BUCKET_
SCRIPT_ CURRENT - BUCKET_
SCRIPT_ STATUS - KEY_
AGENT_ CONFIG_ GLOBAL - Sprint 6 layered-config keys inside
BUCKET_AGENT_CONFIG: - KEY_
AGENT_ TARGET_ VERSION - Key inside
BUCKET_AGENT_CONFIGcarrying the broadcast target version. Agents watch this key and self-update when their running version drifts. - OBJECT_
AGENT_ RELEASES - Object Store bucket holding raw agent binaries (one object per
version, e.g.
0.2.0→ file bytes). - PREFIX_
AGENT_ CONFIG_ GROUPS - PREFIX_
AGENT_ CONFIG_ PCS - SCRIPT_
STATUS_ ACTIVE - SCRIPT_
STATUS_ REVOKED - STREAM_
AUDIT - STREAM_
EVENTS - STREAM_
EXEC - STREAM_
INVENTORY - STREAM_
RESULTS
Functions§
- agent_
config_ group_ key - agent_
config_ pc_ key - parse_
agent_ config_ group_ key - Inverse of
agent_config_group_key— returns the bare group name ifkeycarries the groups-scope prefix, elseNone. - parse_
agent_ config_ pc_ key - Inverse of
agent_config_pc_key.