code wiki / _hdl_build / nx_gated_edit_gate.nx

nx_gated_edit_gate.nx

buildroot/runtime/_hdl_build/nx_gated_edit_gate.nx

6404 B122 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic gated
docsdependenciesstructsconstsfunctions

about

nx_gated_edit_gate.nx -- GATE for nx_gated_edit (gated source-edit applier). 5 teeth incl 1 neg-control (never-live-edit) + restore-verify. PREREQ (staged by build): ./nx_gated_edit.elf + ./nx_ge_mockcat.elf. mock verify = cat(argv1): CONSOLIDATED when verify targets a file the edit doesn't touch; REFUSED when it targets the edited file itself (output changes -> restore). Run from nxc2. Verdict exit 0 iff 5/5. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 6 imports · 0 importers

nx_seat_drive_lib.nx nx_seg_store.nx nx_deploy_lib.nx nx_syscalls.nx nx_ag_lib.nx nx_gate_verdict.nx nx_gated_edit_gate.nx

imports: nx_seat_drive_lib.nxnx_seg_store.nxnx_deploy_lib.nxnx_syscalls.nxnx_ag_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 ag_atoi ss_writefile sys_openat_wr sys_write sys_close sys_fsync ag_len gg_run 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 ↻ dep_run_capture sys_fork sys_openat_wr ↻ sys_dup3 sys_mmap ↻ sys_execve sys_exit ↻ sys_wait4 sys_mmap ↻ ag_read sys_openat_rd sys_read sys_close ↻ sd_count sd_w sys_write ↻

structs

none

consts

none

functions

15func gg_run(src: *u8, oldf: *u8, newf: *u8, velf: *u8, varg: *u8, outp: *u8) -> i64
called by 1: main calls 2: sys_mmapdep_run_capture
25func main(argc: i64, argv: *i64) -> i64