Module alias_refs
Expand description
Alias reference discovery for typed delete-with-cascade
Structs§
- Cascade
Report - Outcome of a (non-refused)
delete_with_cascade. - Impact
Report - Dry-run plan for deleting an aliased entry: which references block the delete, which would be scrubbed, and whether the delete is allowed.
- Owned
Artifact - RefSite
- One concrete config site that references the target alias.
pathis the resolved dotted path (e.g.agents.researcher.channels[2]), built with the sameformat!templatesConfig::validate()emits so dashboard inline-error binding keeps working. - Rename
Report - Outcome of a successful
rename_with_cascade.
Enums§
- Alias
Kind - Cascade
Error - Why a
delete_with_cascadedid not complete.Refusedis an expected, renderable outcome (a hard reference blocks the delete), not a bug. - Cascade
Policy - How a delete handles references and whether it mutates.
- Create
Error - Why a
create_map_key_checkeddid not create the key. - Provider
Category - Which typed provider section the alias lives in. Selects which referrer fields can point at it (model refs vs TTS vs transcription).
- RefStrength
- HARD = mandatory referrer; deleting the target invalidates config, so the delete must refuse. SOFT = removable; the delete scrubs the referrer.
- Rename
Error - Why a
rename_with_cascadedid not complete. UnlikeCascadeErrorthere is noRefusedvariant: rename rewrites HARD references to follow the new name rather than refusing, so the only failures are bad inputs and the post-condition bug-guard. - Scrub
Action - How a soft reference would be repaired on delete (applied in PR2+). Hard
references carry
ScrubAction::Refuse.
Functions§
- alias_
kind_ for_ map_ path - create_
map_ key_ checked - delete_
with_ cascade - dirty_
entry_ for - Truncate a
RefSitedotted path to the entry/section path that an incremental save (apply_dirty_path) re-serialises wholesale, so a nested change (a dropped vec element or a removed/renamed map key) persists with the whole entry rather than needing a leaf-precise dirty path. - find_
all_ references - Enumerate every config site that references
aliasofkind. Pure / read-only; mirrorsConfig::validate()referrer-for-referrer. - find_
bundle_ refs - Enumerate every agent that references skill bundle
alias(TRIM-matched, asConfig::validate()does). All refs are SOFT (droppable from the list). - is_
reserved_ agent_ alias - plan_
delete - Build the dry-run
ImpactReportfor deletingaliasofkind. Pure / read-only; owned-state is gathered separately by the surface cascade. - rename_
with_ cascade - rewrite_
bundle_ refs - Mutating mirror for rename: rewrite every agent’s
skill_bundlesentry namingoldto namenew. Returns the touchedagents.<name>dirty paths. - scrub_
bundle_ refs - Mutating mirror of
find_bundle_refsfor delete: dropaliasfrom every agent’sskill_bundleslist. Returns the touchedagents.<name>dirty paths.