Expand description
Installed-component registry — the single source of truth for what Rusty has installed, where, and whether a core component is sealed against override.
Persisted at ~/.mlstack/installed.json. This module is deliberately
self-contained (load / save / mutate) so it can be threaded through the
installer dispatch (see installer::run_native_installer) and consulted by:
- dep-sourcing / no-override (refuse to reinstall a sealed core component)
- verification (is this component already known-good?)
- uninstall (enumerate pip packages + locations to remove)
§Design notes
- IDs are free-form
Strings matching the existingcomponent_status::is_component_installed_by_ididentifiers (rocm,pytorch,triton,aiter, …). sealedmarks a core component (rocm / pytorch / triton) that later installers must reuse, never override. See Stage 3 of the v0.3.0 remediation (tenet: single-source deps / no-override).- Timestamps are caller-supplied ISO-8601 strings (chrono
Utc::now) so the registry stays pure with respect to I/O.
Structs§
- Installed
Component - A single installed component record.
- Installed
Component Registry - The persisted registry of installed components.
Constants§
- CORE_
COMPONENT_ IDS - The set of ids treated as core (sealed-on-install) components.
- SEALED_
INSTALL_ ONCE_ IDS - Additional install-once components the tenet names (“aiter, flash attention, etc.”) — expensive ROCm builds that, once installed, must be reused and never overridden. Sealed alongside the cores.
Functions§
- is_
core_ component - Is the given id a core component?
- should_
seal_ component - Should this component be sealed on install (core OR install-once)?