Expand description
Per-host OS primitives (boot_id, pending_generation); cfg-gated re-export.
Modules§
- linux 🔒
- Linux/NixOS impl:
/proc+/run/booted-system.
Constants§
- CURRENT_
SYSTEM /run/current-systemsymlink target’s basename = the activated system’s closure hash. The agent doesn’t trust CP’s “what closure did you activate” reads; it always reports what the OS says.
Functions§
- boot_id
- closure_
hash_ 🔒from_ path - FOOTGUN: returns full basename, NOT 32-char prefix — byte-equality required across CP / CI / agent.
- current_
closure_ hash - current_
generation_ ref channel_refisNoneuntil the projection correlates it.- pending_
generation