code wiki / _hdl_build / nx_infra_reconcile.nx
nx_infra_reconcile.nx
buildroot/runtime/_hdl_build/nx_infra_reconcile.nx
about
nx_infra_reconcile.nx -- sovereign DECLARATIVE INFRA RECONCILE (HashiCorp Terraform / IaC-class) over the
infra_hosts census. Declare the DESIRED end-state of every host (control_path=sovereign,
trust=behavior-attested, sovereign_control=FULL) and compute the DRIFT vs OBSERVED -- a `plan` of exactly
what must change to reach sovereign control. Idempotent: a converged host re-reconciles to ZERO changes;
any drift>0 is NEVER reported converged (no-false-converge liar-kill). This is the "control" half of the
operator thread "sovereign control of NAS/router/west-server": declare it, measure the gap, drive it.
Pure logic over the posture constants. license_tier: ORIGINAL Composes nx_infra_control.
dependencies 2 imports · 1 importers
imports: nx_infra_control.nxnx_syscalls.nx
imported by: nx_infra_reconcile_test.nx
structs
| none |
consts
| none |
functions
| 12 | func ir_desired_cp() -> i64 { return CP_SOVEREIGN } called by 1: ir_drift |
| 13 | func ir_desired_tp() -> i64 { return TP_BEHAVIOR_ATTESTED } called by 1: ir_drift |
| 14 | func ir_desired_sc() -> i64 { return SC_FULL } called by 1: ir_drift |
| 17 | func ir_drift(cp: i64, tp: i64, sc: i64) -> i64 |
| 26 | func ir_converged(drift: i64) -> i64 { if drift == 0 { return 1 } return 0 } called by 1: main |
| 29 | func ir_total_drift(cps: *i64, tps: *i64, scs: *i64, n: i64) -> i64 |