Module host_facts

Module host_facts 

Source
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-system symlink 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_ref is None until the projection correlates it.
pending_generation