code wiki / (root) / nx_measurement_binding_capture_gate.nx

nx_measurement_binding_capture_gate.nx

buildroot/runtime/nx_measurement_binding_capture_gate.nx

6493 B127 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic measurement
docsdependenciesstructsconstsfunctions

about

Capture the actual staged owner without changing its command/API contract. Only caller-named exclusive /tmp files are written. Existing board artifacts are compared. license_tier: ORIGINAL; expect_exit: 0

dependencies 3 imports · 0 importers

nx_gatekit_lib.nx nx_gate_verdict.nx nx_estate_path.nx nx_measurement_binding_capture

imports: nx_gatekit_lib.nxnx_gate_verdict.nxnx_estate_path.nx

imported by: nobody (leaf or entry point)

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

main gv_puts sys_write bc_prefix_ok gk_len ep_anchor sys_openat_rd sys_close sys_chdir 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_ctr sys_mmap ↻ gv_head gv_puts ↻ gv_check gv_puts ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻

structs

none

consts

8const BC_FILE_MODE: i64 = 0x180 // POSIX owner-read/write temporary artifact mode
9const BC_EXEC_FAILED: i64 = 127
10const BC_CAPTURE_FAILED: i64 = 125
11const BC_EINTR: i64 = 4
12const BC_BOARD_JSON: *u8 = "knowledge/status/sota_board.json"
13const BC_BOARD_LEDGER: *u8 = "knowledge/status/sota_board.ledger"

functions

15func bc_prefix_ok(prefix: *u8) -> i64
called by 1: main calls 1: gk_len
35func bc_equal(before: *u8, bn: i64, after: *u8, an: i64) -> i64
called by 1: main
44func bc_capture(elf: *u8, domain: *u8, out: *u8) -> i64
called by 1: bc_case calls 1: gk_wait_code
71func bc_case(elf: *u8, prefix: *u8, suffix: *u8, domain: *u8, expected_rc: i64, marker: *u8, ctr: *i64) -> i64
95func main(argc: i64, argv: *i64) -> i64