code wiki / _hdl_build / nx_ecomat_domledger_gate.nx

nx_ecomat_domledger_gate.nx

buildroot/runtime/_hdl_build/nx_ecomat_domledger_gate.nx

2878 B56 linesdepth 10pulls 19 transitivereach 0 importersview sourcekind gate/prooftopic ecomat
docsdependenciesstructsconstsfunctions

about

nx_ecomat_domledger_gate.nx -- proves the per-domain walk RECONCILES with the aggregate rollup. The per-domain ledger only earns trust if it adds up to the number the rollup already publishes. T3/T4/T5 walk the same store by two separate code paths and demand the domain count, sum_cur and sum_bar agree TO THE LEVEL. This is a reconciliation, not an independent measurement -- both paths share the record codec and em_domain_level -- but it is exactly the drift that would otherwise ship silently, because a per-domain file that quietly disagrees with the headline is worse than no per-domain file at all: it makes every future attribution wrong with a receipt. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_ecomat_domledger_lib.nx nx_gate_verdict.nx nx_ecomat_domledger_gate.nx

imports: nx_ecomat_domledger_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

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 ↻ edl_walk ss_open ss_open2 ss_open3 sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss3_admit ss3_ann sys_now_us ↻ ss3_streq ss3_docs_size ss3_load_range ss_cat ss_loadfile ss_load_aux2 ssl_total_keys_mask

structs

none

consts

none

functions

13func dg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
15func main(argc: i64, argv: *i64) -> i64