Expand description
Registry — file-per-agent CRUD on <root>/<uuid>.json with
a sibling retired/<uuid>.json tombstone tree.
Concurrency: cross-process safety comes from filesystem atomic
rename. The internal Mutex only serializes partial-merge writes
from threads inside the same srv so a v1 binary touching
last_launched_at_ms doesn’t race itself.
Structs§
Enums§
- Record
Scope - Which records an operation is allowed to touch.
- Registry
Error - Session
Write 🔒 - Merge an in-memory record into an on-disk file’s raw JSON, preserving fields beyond this binary’s struct shape.
Functions§
- merge_
for_ 🔒write - merge_
known 🔒 - Overwrite
target‘s top-level keys withupdates’ keys. Keys intargetthat aren’t inupdatesare preserved. Recurses into thedatasub-object so future fields insidedataalso survive. - read_
and_ 🔒validate - records_
for_ 🔒agent - Paths of the
*.jsonfiles underdirwhose record belongs toagent_id— by file key (instance id) or bydefinition_id. A missing directory yields nothing (theretired/tree is created on open, but a caller may point at a tree that predates it). - to_
pretty 🔒