code wiki / (root) / nx_uxf_media_asset_gate.nx

nx_uxf_media_asset_gate.nx

buildroot/runtime/nx_uxf_media_asset_gate.nx

6647 B118 linesdepth 7pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic uxf
docsdependenciesstructsconstsfunctions

about

nx_uxf_media_asset_gate.nx -- the D001 MIGRATION of nx_uxf_media_asset_test onto nx_gate_verdict (2026-09-06). THIS IS THE ONE THAT TIES THE FAMILY TOGETHER. A media descriptor becomes a canonical record, is stamped with a self-describing UXF_MEDIA profiled CID, is TOLERANT-DECODED by a consumer that did not write it, and the decoded fields then drive endpoint negotiation. It proves the unified claim end to end: the SAME envelope that carried migrated TSV rows carries media and decides what to emit. ALL FIVE ORIGINAL TEETH PRESERVED IN ORDER AND PREDICATE, plus two the original lacked. It looked up the chrome capability row and NEVER asserted the lookup succeeded, and it decoded the descriptor without ever asserting how many fields came back -- so a failed lookup or a short decode could only have been judged indirectly through the plan. T0a and T0b assert the fixture reached its condition first. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 6 imports · 0 importers

nx_gate_verdict.nx nx_syscalls.nx nx_canon_cid.nx nx_uxf_cid.nx nx_uxf_decode.nx nx_uxf_negotiate.nx nx_uxf_media_asset_gate.nx

imports: nx_gate_verdict.nxnx_syscalls.nxnx_canon_cid.nxnx_uxf_cid.nxnx_uxf_decode.nxnx_uxf_negotiate.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close gv_puts ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap ↻

structs

none

consts

20const UM_PTRTAB: i64 = 64
21const UM_CANON: i64 = 8192
22const UM_CIDBUF: i64 = 128
23const UM_CAPBUF: i64 = 256
24const UM_FIELDS: i64 = 3
25const UM_MAXDEC: i64 = 16
26const UM_CAPS_OK: i64 = 1

functions

28func um_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while 1 == 1 { if a[i] != b[i] { return 0 } if a[i] == (0 as u8) { return 1 } i = i + 1 } return 1 }
called by 2: um_findmain
31func um_descriptor(container: *u8, vcodec: *u8, acodec: *u8, canon: *u8) -> i64
called by 1: main calls 2: sys_mmapcanon_encode
40func um_find(dkeys: *i64, dvals: *i64, nf: i64, key: *u8) -> *u8
called by 1: main calls 1: um_streq
46func main(argc: i64, argv: *i64) -> i64