code wiki / (root) / nx_measurement_binding_artifact_gate.nx

nx_measurement_binding_artifact_gate.nx

buildroot/runtime/nx_measurement_binding_artifact_gate.nx

10332 B186 linesdepth 3pulls 6 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 4 imports · 0 importers

nx_gatekit_lib.nx nx_gate_verdict.nx nx_estate_path.nx nx_json_lib.nx nx_measurement_binding_artifac

imports: nx_gatekit_lib.nxnx_gate_verdict.nxnx_estate_path.nxnx_json_lib.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

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

functions

16func bc_prefix_ok(prefix: *u8) -> i64
called by 1: main calls 1: gk_len
36func bc_equal(before: *u8, bn: i64, after: *u8, an: i64) -> i64
called by 2: bc_artifactmain
45func bc_capture(elf: *u8, domain: *u8, out: *u8) -> i64
called by 1: bc_case calls 1: gk_wait_code
72func bc_case(elf: *u8, prefix: *u8, suffix: *u8, domain: *u8, expected_rc: i64, marker: *u8, ctr: *i64) -> i64
96func bc_artifact(elf: *u8, prefix: *u8, ctr: *i64) -> i64
153func main(argc: i64, argv: *i64) -> i64