nx_audit_dashboard.nx
buildroot/runtime/nx_audit_dashboard.nx
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
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
| 32 | struct NxAuditDashboardSnapshot |
consts
| 25 | const NX_MAGIC_1024: i64 = 1024 |
| 27 | const NX_AD_OK: nx_int = 0 |
| 28 | const NX_AD_ERR_NULL: nx_int = 1 |
functions
| 48 | func nx_audit_dashboard_snapshot_new() -> *NxAuditDashboardSnapshot |
| 70 | func nx_audit_dashboard_set_capture_ts(s: *NxAuditDashboardSnapshot, ts_us: nx_size) -> nx_int |
| 75 | func nx_audit_dashboard_set_hunt(s: *NxAuditDashboardSnapshot, |
| 82 | func nx_audit_dashboard_set_gather(s: *NxAuditDashboardSnapshot, |
| 89 | func nx_audit_dashboard_set_xeno(s: *NxAuditDashboardSnapshot, evidence: nx_int) -> nx_int |
| 94 | func nx_audit_dashboard_set_twin_key_pending(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int |
| 99 | func nx_audit_dashboard_set_book_alerts(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int |
| 104 | func nx_audit_dashboard_set_scam(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int |
| 109 | func nx_audit_dashboard_set_treaty_breaches(s: *NxAuditDashboardSnapshot, n: nx_int) -> nx_int |
| 114 | func nx_audit_dashboard_set_colony(s: *NxAuditDashboardSnapshot, status: nx_int) -> nx_int |
| 119 | func nx_audit_dashboard_set_pressure(s: *NxAuditDashboardSnapshot, |
| 137 | func nx_audit_dashboard_attention_needed(s: *NxAuditDashboardSnapshot) -> nx_int called by 1: main |
| 154 | func nx_audit_dashboard_alert_score_q10(s: *NxAuditDashboardSnapshot) -> nx_int |