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