Skip to main content

Module registry

Module registry 

Source
Expand description

The store of owned models: a models.json file holding every ModelRecord the kernel knows about, with change-detecting writes and corruption recovery.

Structs§

Registry
The in-memory model store, backed by <directory>/models.json. Every mutating method acquires a short-held advisory file lock, reloads the on-disk state under it, applies the change, and persists before returning — so two instances on the same directory serialize their writes instead of one silently clobbering the other. The lock is held only for the span of a single mutation, never across the instance’s lifetime.

Enums§

RegistryError
Errors raised by the registry.