code wiki / _hdl_build / nx_gated_edit_gate.nx

nx_gated_edit_gate.nx

buildroot/runtime/_hdl_build/nx_gated_edit_gate.nx

5797 B116 linesdepth 4pulls 7 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 5 imports · 0 importers

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

imports: nx_seat_drive_lib.nxnx_seg_store.nxnx_deploy_lib.nxnx_syscalls.nxnx_ag_lib.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 dep_run_capture sys_fork sys_openat_wr ↻ sys_dup3 sys_mmap ↻ sys_execve_clean sys_close ↻ sys_execve sys_exit sys_wait4 sys_mmap ↻ ag_read sys_openat_rd sys_read sys_close ↻ sd_count sd_w sys_write ↻ dp_read sys_openat_rd ↻ sys_read ↻ sys_close ↻ sys_exit ↻ ag_itoa sys_mmap ↻ sys_execve ↻

structs

none

consts

none

functions

14func 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
24func main(argc: i64, argv: *i64) -> i64