code wiki / (root) / nx_install_pipeline_test.nx

nx_install_pipeline_test.nx

buildroot/runtime/nx_install_pipeline_test.nx

9149 B218 linesdepth 8pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic install
docsdependenciesstructsconstsfunctions

about

nx_install_pipeline_test.nx -- smoke for the SA arc end-to-end orchestrator nx_install_pipeline_run_with_inputs. Exercises: 1. BAD_INPUT gates (null probe / calib / policy / nodes / out) 2. Successful 3-node chain produces VALID plan + 32-byte hash that matches direct (capture + hash) recomputation 3. End-to-end REPRODUCIBILITY: same inputs -> bit-equal install_hash 4. End-to-end SENSITIVITY: change probe.page_size -> different hash 5. SELECT_FAILED path: no-feasible-chain produces NX_PIPELINE_SELECT_FAILED with zero'd install_hash + plan carrying NX_PLAN_VERDICT_NO_FEASIBLE 6. Sealed-enum validity gate This is the LOAD-BEARING end-to-end gate for the SA arc: it proves the chain (probe + calibration + policy + workload-DAG) -> single install_hash works as a pure composition, and that the hash is both reproducible and sensitive to content.

dependencies 8 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_hash.nx nx_install_pipeline.nx nx_install_pipeline_test.nx

imports: nx_syscalls.nxnx_probe.nxnx_calibrate.nxnx_select.nxnx_select_joint.nxnx_install_plan.nxnx_install_hash.nxnx_install_pipeline.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 ↻ sys_mmap ↻ _build_chain _mk nx_manifest_new sys_mmap ↻ nx_isa_bit nx_manifest_set_layout sys_mmap ↻ nx_joint_node_new sys_mmap ↻ nx_install_plan_new sys_mmap ↻ nx_install_pipeline_run_wi 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 ↻ _map_select_verdict_to_pla nx_install_plan_capture nx_plan_verdict_is_valid sys_mmap ↻ sys_clock_gettime_mono _pipeline_total_cost nx_select_score ↻ nx_install_hash_compute

structs

none

consts

none

functions

29func _make_probe(page_size: i64) -> *NxProbeRecord
called by 1: main calls 1: nx_probe_new
41func _make_calib() -> *NxCalibrationRecord
called by 1: main calls 1: nx_calibrate_new
54func _mk(variant_id: i64, cost: i64, in_lay: i64, out_lay: i64) -> *NxManifest
67func _build_chain(out_nodes_arr: *i64) -> i64
called by 1: main calls 3: _mksys_mmapnx_joint_node_new
88func main() -> i64