Skip to main content

Module legacy

Module legacy 

Source
Expand description

Legacy (pre-rename) Sentinel naming — the ONE place old names live (remediation pass 3, PART B2). The 2026-08-14 naming directive retired the sentinel names; every remaining old-name string in the codebase is a constant here, kept solely to RECOGNIZE or REMOVE artifacts a sentinel-era binary left behind. The naming sweep’s exclusion list is auditable against this module: any sentinel outside it (and the append-only history) is a straggler.

Structs§

MigratedDir
One directory rename performed by migrate_dirs.

Enums§

MigrationError

Constants§

AUGGIE_SCRIPT
CODEX_RULES
Adapter artifacts a sentinel-era install wrote; --remove-agent strips these alongside their pushkin-named successors.
HERMES_DRAFT_DIR
The manifest-less Phase 2 draft location (predates even the plugin manifest), cleaned up best-effort on every hermes install.
HERMES_HOOK
HERMES_PLUGIN_DIR
Hermes plugin dir name a sentinel-era install created under $HERMES_HOME/plugins/.
MARKER_KEY
Marker key a sentinel-era install wrote into agent hook configs. Any entry carrying it — whatever the value — is OURS.
OPENCODE_PLUGIN
RULE_PREFIX
Rule-id prefix of events and waivers recorded pre-rename. Historical rows keep it (the log is append-only); aggregation and waiver matching normalize through modern_rule_id.
STATE_DIR
Repo-local state dir a sentinel-era binary owned (events, consent, instructions, board, daemon socket).
WAIVERS_FILE
The waiver record inside WAIVER_DIR.
WAIVER_DIR
Git-tracked waiver dir a sentinel-era binary owned. Only treated as ours when it actually carries the waiver record below.

Functions§

legacy_rule_id
The legacy spelling of a modern rule id (for SQL IN filters over the mixed population); non-pushkin.* ids pass through unchanged.
migrate_dirs
One-time footprint migration: .sentinel/.pushkin/ and sentinel/pushkin/ (the waiver dir, recognized by its waivers.toml — signed history survives the move). Old and new both present is a loud refusal, never a guess. Idempotent: with no legacy dirs this is a no-op.
modern_rule_id
Maps a legacy sentinel.* rule id to its pushkin.* spelling; anything else passes through. Both sides of a comparison go through this so mixed-population aggregation groups one rule, not two.