code wiki / (root) / nx_audit_dashboard.nx

nx_audit_dashboard.nx

buildroot/runtime/nx_audit_dashboard.nx

5971 B167 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind librarytopic audit
docsdependenciesstructsconstsfunctions

about

nx_audit_dashboard.nx -- aggregate substrate state surface. Per [[feedback-self-surfacing-intelligence-staged-autonomy]]: the substrate must SURFACE its state to the operator, not hide it. Dashboard is the snapshot primitive that aggregates ALL substrate counters into one structured view: hunt kills, gather yields, xeno alerts, twin-key pending, scam patterns flagged, treaty breaches, immune colony health, host pressure. THE STRUCTURAL POINT: substrate KNOWS many things; operator can only ACT on what the substrate SURFACES. Dashboard is the surfacing surface. Composes: nx_hunter -- kill counts by pillar nx_gatherer -- yield totals nx_xenocell -- intrusion event counts nx_immune -- colony status + cell-count-in-status nx_book -- unseen-alert count (family attention needed) nx_organism -- host pressure aggregate nx_pollinate -- pending federation events

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_tier.nx nx_audit_dashboard.nx nx_audit_compose_test.nx nx_audit_dashboard_test.nx nx_health_check.nx nx_health_check_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_audit_compose_test.nxnx_audit_dashboard_test.nxnx_health_check.nxnx_health_check_test.nx

structs

32struct NxAuditDashboardSnapshot

consts

25const NX_MAGIC_1024: i64 = 1024
27const NX_AD_OK: nx_int = 0
28const NX_AD_ERR_NULL: nx_int = 1

functions

48func nx_audit_dashboard_snapshot_new() -> *NxAuditDashboardSnapshot
called by 3: mainmainmain calls 1: sys_mmap
70func nx_audit_dashboard_set_capture_ts(s: *NxAuditDashboardSnapshot, ts_us: nx_size) -> nx_int
called by 2: mainmain
75func nx_audit_dashboard_set_hunt(s: *NxAuditDashboardSnapshot,
called by 2: mainmain
82func nx_audit_dashboard_set_gather(s: *NxAuditDashboardSnapshot,
called by 2: mainmain
89func nx_audit_dashboard_set_xeno(s: *NxAuditDashboardSnapshot, evidence: nx_int) -> nx_int
called by 2: mainmain
94func nx_audit_dashboard_set_twin_key_pending(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int
called by 2: mainmain
99func nx_audit_dashboard_set_book_alerts(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int
called by 3: mainmainmain
104func nx_audit_dashboard_set_scam(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int
called by 3: mainmainmain
109func nx_audit_dashboard_set_treaty_breaches(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int
called by 3: mainmainmain
114func nx_audit_dashboard_set_colony(s: *NxAuditDashboardSnapshot, status: nx_int) -> nx_int
called by 3: mainmainmain
119func nx_audit_dashboard_set_pressure(s: *NxAuditDashboardSnapshot,
called by 2: mainmain
137func nx_audit_dashboard_attention_needed(s: *NxAuditDashboardSnapshot) -> nx_int
called by 1: main
154func nx_audit_dashboard_alert_score_q10(s: *NxAuditDashboardSnapshot) -> nx_int
called by 2: mainnx_health_check