code wiki / _hdl_build / nx_ecomat_trend_live_gate.nx

nx_ecomat_trend_live_gate.nx

buildroot/runtime/_hdl_build/nx_ecomat_trend_live_gate.nx

4912 B82 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic ecomat
docsdependenciesstructsconstsfunctions

about

nx_ecomat_trend_live_gate.nx -- runs the advancement/expansion decomposition against the REAL durable ledger and proves the instrument's invariants hold on live data, then prints the finding. The sibling nx_ecomat_trend_gate proves the logic on fixtures. This one proves it on the artifact that actually exists -- a decomposition that is only ever exercised on synthetic input is exactly the "gate passes on synthetic data" calibration failure already filed at sev8. THE LOAD-BEARING TOOTH IS T4, CONSERVATION: every level of movement in the ledger must land in EXACTLY one bucket, so advance + ambiguous must equal the total change in sum_cur. If attribution ever double-counts or drops a span, that identity breaks and this gate goes RED -- which is the whole reason to state the invariant rather than eyeball the columns. T5 is an independent cross-check: our recomputed ratio vs the ratio the ROLLUP itself recorded. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_ecomat_trend_lib.nx nx_gate_verdict.nx nx_ecomat_trend_live_gate.nx

imports: nx_ecomat_trend_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 gv_head gv_puts sys_write em_trend ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close em_trend_buf tr_field el_len el_match gv_check gv_puts ↻ lg_eq gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gv_cat sys_write ↻ sys_close ↻ sys_munmap ↻ ss_readall ↻

structs

none

consts

none

functions

17func lg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
19func main(argc: i64, argv: *i64) -> i64