code wiki / _hdl_build / nx_gap_scan.nx

nx_gap_scan.nx

buildroot/runtime/_hdl_build/nx_gap_scan.nx

1754 B35 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic gap
docsdependenciesstructsconstsfunctions

about

nx_gap_scan.nx -- the team scans its OWN capability set for gaps (operator: "see if there are any other gaps"). Each capability area is one of: STRONG (proven/triangulated -> no gap), WEAK (owned but below S-class -- a parity/proxy improvement gap), LLM (needs the LLM rung -- a sovereignty gap backed by the provider), MISSING (not built -- a build gap). The scanner tallies and names the MOST URGENT gap (MISSING > LLM > WEAK), so "what to build next" is deterministic, not ad-hoc. Composes the LLM-gap registry + the Teacher's rungs. license_tier: ORIGINAL

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_gap_scan.nx nx_gap_scan_test.nx

imports: nx_syscalls.nx

imported by: nx_gap_scan_test.nx

structs

none

consts

10const GAP_STRONG: i64 = 0 // proven + triangulated -> no gap
11const GAP_WEAK: i64 = 1 // owned but below S-class (parity / weak proxy) -> improve
12const GAP_LLM: i64 = 2 // needs the LLM rung (provider-backed, not sovereign) -> sovereignty gap
13const GAP_MISSING: i64 = 3 // not built at all -> build gap (most urgent)

functions

15func gap_is_gap(status: i64) -> i64 { if status == GAP_STRONG { return 0 } return 1 }
called by 2: gap_totalmain
18func gap_count(statuses: *i64, n: i64, kind: i64) -> i64
called by 1: main
24func gap_total(statuses: *i64, n: i64) -> i64
called by 1: main calls 1: gap_is_gap
31func gap_most_urgent(statuses: *i64, n: i64) -> i64
called by 1: main