nx_asset_ingest_real_gate.nx
buildroot/runtime/nx_asset_ingest_real_gate.nx
about
nx_asset_ingest_real_gate.nx -- KAT + TEETH for the PRODUCTION ingest cores (R5b).
The R5 populator (nx_asset_ingest_real) had NO gate -- its exceed claims were only proven on
synthetic fixtures, never the REAL read-from-disk path. This gate drives the SAME production cores
(nx_asset_ingest_lib ai_ingest_doc_at / ai_ingest_image_at) against REAL on-disk bytes + a FRESH
/tmp catalog (the production store is never touched), proving:
(T1) a REAL wiki HTML page -> NEW, catalog count 1
(T2) re-ingest the identical page -> DUP, count STAYS 1 (content-addressed idempotence #10)
(T3 TEETH) a MISSING file -> read-fail rc=0, count STAYS 1 (graceful, no crash)
(T4) a REAL PNG -> NEW, and the stored record carries REAL type=image / encoding_format=image/png /
width extracted from the actual IHDR (no fabrication)
(T5) re-ingest the identical PNG -> DUP, count STAYS 1
(T6 TEETH) an HTML file fed to the IMAGE path -> SKIP rc=0, count==0 (a non-PNG is NEVER
cataloged as an image -- am_extract_image refuses; no fabricated dimensions)
Fixtures are real files already in the tree: web_assets/charter.html + knowledge/status/grid_demo.png.
Verdict appended to knowledge/status/asset_ingest_real_gate.log (additive law #13).
expect_exit: 0 license_tier: ORIGINAL
dependencies 7 imports · 0 importers
imports: nx_syscalls.nxnx_canon_cid.nxnx_uxf_decode.nxnx_asset_record.nxnx_asset_catalog.nxnx_asset_ingest_lib.nxnx_gate_verdict.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
| 27 | func g_puts(logfd: i64, s: *u8) -> i64 |
| 34 | func g_putn(logfd: i64, v: i64) -> i64 |
| 48 | func g_streq(a: *u8, b: *u8) -> i64 called by 1: gt_img_meta |
| 58 | func g_present(v: *u8) -> i64 called by 1: gt_img_meta |
| 64 | func gt_prefix(prefix: *u8, base: *u8, salt: i64) -> i64 |
| 80 | func gt_img_meta(logfd: i64, prefix: *u8) -> i64 |
| 105 | func gt_doc(logfd: i64) -> i64 |
| 127 | func gt_image(logfd: i64) -> i64 |
| 143 | func gt_skip(logfd: i64) -> i64 |
| 152 | func main() -> i64 |