code wiki / (root) / nx_install_plan_test.nx

nx_install_plan_test.nx

buildroot/runtime/nx_install_plan_test.nx

8187 B195 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic install
docsdependenciesstructsconstsfunctions

about

nx_install_plan_test.nx -- smoke for nx_install_plan SA-6/SA-7 bridge. Exercises: 1. Allocation + canary integrity 2. Bad-input gates (null plan / probe / calib / policy / verdict) 3. Capture from a real 3-node selector run -- verifies snapshots match the source structs + variant_ids match the picked manifests 4. variant_id_at boundary checks 5. is_valid gate SA-6/SA-7 bridge: this is the durable record SA-6 feeds to compile and SA-7 cryptographically attests.

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_probe.nx nx_calibrate.nx nx_select.nx nx_select_joint.nx nx_install_plan.nx nx_install_plan_test.nx

imports: nx_syscalls.nxnx_probe.nxnx_calibrate.nxnx_select.nxnx_select_joint.nxnx_install_plan.nx

imported by: nobody (leaf or entry point)

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

main _make_probe nx_probe_new sys_mmap _make_calib nx_calibrate_new sys_mmap ↻ nx_policy_throughput_defau sys_mmap ↻ nx_install_plan_new sys_mmap ↻ nx_install_plan_is_valid nx_plan_verdict_is_valid sys_mmap ↻ nx_install_plan_capture nx_plan_verdict_is_valid ↻ sys_mmap ↻ sys_clock_gettime_mono _mk nx_manifest_new sys_mmap ↻ nx_isa_bit nx_manifest_set_layout nx_joint_node_new sys_mmap ↻ nx_select_joint_chain nx_select nx_select_variant_fits nx_isa_bit ↻ nx_select_score sys_mmap ↻ nx_select_variant_fits ↻ nx_layout_compatible nx_select_score ↻ nx_install_plan_variant_id nx_install_plan_is_valid ↻ nx_plan_verdict_is_valid ↻

structs

none

consts

none

functions

22func _make_probe() -> *NxProbeRecord
called by 1: main calls 1: nx_probe_new
34func _make_calib() -> *NxCalibrationRecord
called by 1: main calls 1: nx_calibrate_new
49func _mk(variant_id: i64, cost: i64, in_lay: i64, out_lay: i64) -> *NxManifest
60func main() -> i64