code wiki / (root) / nx_asset_exceed_gate.nx

nx_asset_exceed_gate.nx

buildroot/runtime/nx_asset_exceed_gate.nx

32654 B542 linesdepth 10pulls 23 transitivereach 0 importersview sourcekind gate/prooftopic asset
docsdependenciesstructsconstsfunctions

about

nx_asset_exceed_gate.nx -- UNIVERSAL ORGANIZATION TOOLING arc, R7: the MEASURED exceed referee. This is the capstone the operator's directive demands: "S-class measured-EXCEED, referee-measured, NEVER self-scored." It turns "we built a content-addressed asset/knowledge IMS (R0-R5)" into "we have a PROVEN S-class-exceed IMS" -- by GRADING the DAM+KM inventory head-to-head against incumbent DAM (Adobe AEM / Bynder), KM (Notion / Confluence) and consumer media (Google Photos) on the axes from the sovereign-fetched research (org_research.tsv), and PROVING every EXCEEDS claim by RUNNING the real R0/R1/R2 organs. No cell is true without a passing run. TWO HALVES, both honest (mirrors nx_library_exceed's discipline): A) DATA-DRIVEN CENSUS -- the head-to-head scorecard lives in the NATIVE seg_store (nx_native_config), authored by census_seed (no TSV); counts EXCEEDS / PARITY / BEHIND. Honest self-assessment, NOT the claim. B) PROOF-BY-RUN of the six EXCEEDS axes against the REAL organs: P1 AX06 sovereignty deterministic + order-independent CID (same bytes -> same id; no clock/ RNG/surrogate key) via nx_asset_record (ar_cid / ar_encode) P2 AX01 integrity flip one byte of the record -> the CID CHANGES (tamper-evident) P3 AX02 dedup CID-keyed catalog vs a filename baseline: identical bytes -> count 1 while the filename baseline counts 2 (nx_asset_catalog cat_ingest/count) P4 AX03 unified image + video + doc in ONE catalog -> count 3, each byte-faithful + typed P5 AX04 provenance ed25519 credential bound to the record CID verifies ALLOW (nx_asset_provenance) P6 AX05 no-link-rot store, then resolve PURELY by content id offline -> byte-faithful + decodes NO-FABRICATION negative controls (must hold, proving the metric is not rigged): N1 distinct records -> DISTINCT CIDs, counted as 2 (a collision/false-merge would FAIL) N2 a forged (wrong-key) provenance credential -> REJECT (what a plain hash can't catch) N3 a tampered assertion -> REJECT N4 an honest-BEHIND axis (AX09 scale) MUST read BEHIND in the census (liar-kill on overclaim) N5 CENSUS-TIE: #EXCEEDS rows == #proofs that PASSED -- you cannot claim more exceed than proven VERDICT GREEN iff census parsed AND all six proofs passed AND every neg-control held. No hardware writes, no network, no production side effects (Rule 26). Verdict appended to knowledge/status/asset_exceed_gate.log (additive law #13). expect_exit: 0 license_tier: ORIGINAL

dependencies 10 imports · 0 importers

nx_syscalls.nx nx_canon_cid.nx nx_uxf_decode.nx nx_ed25519_signature.nx nx_asset_record.nx nx_asset_catalog.nx nx_asset_provenance.nx nx_asset_access.nx nx_asset_merkle.nx nx_native_config.nx nx_asset_exceed_gate.nx

imports: nx_syscalls.nxnx_canon_cid.nxnx_uxf_decode.nxnx_ed25519_signature.nxnx_asset_record.nxnx_asset_catalog.nxnx_asset_provenance.nxnx_asset_access.nxnx_asset_merkle.nxnx_native_config.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_append ax_puts sys_write sys_mmap ax_prefix sys_now_ms sys_mmap ↻ sys_clock_gettime_mono sys_mmap ↻ census_seed ncfg_begin ss_begin ss_begin_cap sys_mmap ↻ census_row sys_mmap ↻ ncfg_add_row sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ncfg_key ss_add ss_add2 ss_w32 ss_len ncfg_set_count sys_mmap ↻ ncfg_count_key ncfg_itoa sys_mmap ↻ ss_add ↻ ncfg_commit ss_commit ss_segid_ok sys_mmap ↻

structs

none

consts

none

functions

45func ax_puts(logfd: i64, s: *u8) -> i64
52func ax_putn(logfd: i64, v: i64) -> i64
68func ax_streq(a: *u8, b: *u8) -> i64
77func ax_memeq(a: *u8, b: *u8, n: i64) -> i64
called by 2: px_unifiedpx_norot
83func E() -> *u8 { return "\x00" as *u8 }
85func sset(a: *i64, i: i64, s: *u8) -> i64 { a[i] = s as i64; return 0 }
88func ax_hb(c: i64) -> i64
called by 1: ax_hex2bytes
94func ax_hex2bytes(hex: *u8, nbytes: i64, out: *u8) -> i64
called by 3: px_provnc_forgenc_tampercred calls 1: ax_hb
102func census_row(w: *i64, idx: i64, id: *u8, dim: *u8, bic: *u8, status: *u8, angle: *u8) -> i64
called by 1: census_seed calls 2: sys_mmapncfg_add_row
113func census_seed(prefix: *u8) -> i64
133func ax_census_native(logfd: i64, h: *i64, cnts: *i64) -> i64
161func ax_status_native(h: *i64, want: *u8, out: *u8) -> i64
186func ax_simple(typ: *u8, title: *u8, id: *u8, out: *u8) -> i64
202func ax_prefix(prefix: *u8, base: *u8, salt: i64) -> i64
218func ax_classified(cls: *u8, out: *u8) -> i64
241func px_determ(logfd: i64) -> i64
270func px_tamper(logfd: i64) -> i64
287func px_dedup(logfd: i64) -> i64
313func px_unified(logfd: i64) -> i64
341func px_prov(logfd: i64) -> i64
359func px_norot(logfd: i64) -> i64
383func px_access(logfd: i64) -> i64
397func px_merkle(logfd: i64) -> i64
425func nc_distinct(logfd: i64) -> i64
445func nc_forge(logfd: i64) -> i64
464func nc_tampercred(logfd: i64) -> i64
482func main() -> i64