code wiki / _hdl_build / nx_cap_provision_gate.nx

nx_cap_provision_gate.nx

buildroot/runtime/_hdl_build/nx_cap_provision_gate.nx

3201 B65 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic cap
docsdependenciesstructsconstsfunctions

about

nx_cap_provision_gate.nx -- proves the FAIL-CLOSED cap-secret check. NEGATIVE CONTROLS are load- bearing: an absent keyfile, a too-short keyfile, AND a keyfile that still contains the baked placeholder must ALL read provisioned=NO (0) -- the three ways a server could silently fall back to a forgeable secret. Only a present, long-enough, non-placeholder key reads YES (1). Fixtures written to /tmp (survives WSL cold-boot; identical bytes each run = deterministic). verdict GREEN iff 5/5. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_cap_provision.nx nx_seg_store.nx nx_cap_provision_gate.nx

imports: nx_cap_provision.nxnx_seg_store.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ss_writefile sys_openat_wr sys_write sys_close sys_fsync cp_slen cap_provisioned sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ cp_eq_bytes cp_slen ↻ cpg_row cp_p cp_slen ↻ sys_write ↻ cp_p ↻

structs

none

consts

none

functions

10func cpg_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: cp_p
17func main(argc: i64, argv: *i64) -> i64