nx_triage_ground.nx
buildroot/runtime/nx_triage_ground.nx
about
nx_triage_ground.nx -- EVIDENCE-GROUNDS the capability-triage registry's has_organ column against
DISK FACTS, eating the debt "the registry is Claude's hand-seeded opinion" (the subtlest navel-
gaze). COMPOSES the EXISTING engine `nx_capability_census` (cc_our_grade: exceed-gate > organ >
absent -- "never self-scored", per its own doctrine) instead of reinventing it (the round-4
lesson). Per probeable row (bare nx_[a-z0-9_]+ runtime organ) it derives the disk-fact grade and
flags where my claimed has_organ DISAGREES -> DISCREPANCY = a label the disk can't back (wrong
name or fabrication). NAS backends / external / descriptive names = UNPROBEABLE (honest). This is
the self-hosting-analysis local half: the loop's has_organ stops being asserted, starts being
measured. usage: nx_triage_ground scan [registry] Always exit 0; journals a summary.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 1 importers
imports: nx_syscalls.nxnx_crashresume_census_core.nx
imported by: nx_triage_ground_gate.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 13 | const TG_MAGIC_65536: i64 = 65536 |
| 14 | const TG_MAGIC_65535: i64 = 65535 |
| 22 | const TG_GROUNDED: i64 = 0 |
| 23 | const TG_DISCREPANCY: i64 = 1 // has_organ=1 but disk ABSENT -> fix the label |
| 24 | const TG_UNDERCLAIM: i64 = 2 // has_organ=0 but disk shows it |
| 25 | const TG_UNPROBEABLE: i64 = 3 |
functions
| 27 | func tg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 28 | func tg_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 29 | func tg_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 } called by 1: main |
| 32 | func tg_verdict(probeable: i64, has_organ: i64, grade: i64) -> i64 |
| 44 | func tg_vname(v: i64) -> *u8 called by 1: main |
| 51 | func tg_probeable(name: *u8, n: i64) -> i64 |
| 70 | func tg_field(buf: *u8, ls: i64, le: i64, idx: i64, out: *u8) -> i64 called by 1: main |
| 94 | func tg_path(name: *u8, suffix: *u8, out: *u8) -> i64 |
| 103 | func tg_exists(path: *u8) -> i64 |
| 110 | func tg_grade(name: *u8) -> i64 |
| 121 | func main(argc: i64, argv: *i64) -> i64 |