code wiki / _hdl_build / nx_lane_attest.nx

nx_lane_attest.nx

buildroot/runtime/_hdl_build/nx_lane_attest.nx

6503 B162 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic lane
docsdependenciesstructsconstsfunctions

about

nx_lane_attest.nx -- LANE-CLOSURE ATTESTOR (operator 2026-07-20: "this needs evidence and a feedback loop keeping it honest"). Replaces the trusting substring-count lane gate: a seat-lane closure is attested ONLY if the evidence ledger is COMPLETE (every manifest episode has a row -- silent drops refused), FRESH (every row ts within maxage of now -- a stale ledger from an old run can NEVER pass), and OVER THRESHOLD (>= min property-verified greens). All parameters are config DATA. exit 0 = attested; 1 = refused (any tooth); 2 = config. argv: <attestconf> conf keys: ledger= manifest= min= maxage= KNOWN LIMIT (filed, not hidden): greens are still only as good as the ledger row -- the loop reverts fixes post-judge, so post-hoc re-judging needs the patch-persistence rung (debt filed). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_seat_drive_lib.nx nx_deploy_lib.nx nx_syscalls.nx nx_lane_attest.nx

imports: nx_seat_drive_lib.nxnx_deploy_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sd_w sys_write sys_exit sys_mmap dp_read sys_openat_rd sys_read sys_close sd_val sys_mmap ↻ la_atoi sd_count sd_num sys_mmap ↻ sd_cat sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real la_ts_all

structs

none

consts

15const LA_CAP: i64 = 1048576
16const LA_CONF_CAP: i64 = 65536

functions

18func la_atoi(s: *u8) -> i64
called by 1: main
30func la_ts_all(buf: *u8, n: i64, vals: *i64, cap: i64) -> i64
called by 1: main
61func main(argc: i64, argv: *i64) -> i64