code wiki / (root) / nx_install_attest_test.nx

nx_install_attest_test.nx

buildroot/runtime/nx_install_attest_test.nx

9302 B238 linesdepth 8pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic install
docsdependenciesstructsconstsfunctions

about

nx_install_attest_test.nx -- smoke for nx_install_attest helpers. Exercises: 1. Hex encode produces 64 ASCII lowercase chars for a known digest 2. Hex encode/decode roundtrip on random digest 3. Hex decode tolerates both lowercase a-f AND uppercase A-F 4. Hex decode rejects invalid chars (space, 'g', '-', etc.) 5. Bad-input gates (null in / null out for both encode + decode) 6. verify_against on matching digest -> VERIFIED 7. verify_against on mismatched digest -> TAMPERED 8. verify_against on null plan / canary-stomped plan -> BAD_INPUT 9. verify_against integration with the pipeline: pipeline -> hash A; later verify_against(plan, A) -> VERIFIED 10. Sealed-enum gate

dependencies 9 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_attest.nx nx_install_attest_test.nx

imports: nx_syscalls.nxnx_probe.nxnx_calibrate.nxnx_select.nxnx_select_joint.nxnx_install_plan.nxnx_install_hash.nxnx_install_pipeline.nxnx_install_attest.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_install_hash_to_hex _nibble_to_hex_lower nx_install_hash_from_hex _hex_to_nibble _make_probe nx_probe_new sys_mmap ↻ _make_calib nx_calibrate_new sys_mmap ↻ nx_policy_throughput_defau sys_mmap ↻ _mk nx_manifest_new sys_mmap ↻ nx_isa_bit nx_manifest_set_layout 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

structs

none

consts

none

functions

26func _make_probe() -> *NxProbeRecord
called by 1: main calls 1: nx_probe_new
38func _make_calib() -> *NxCalibrationRecord
called by 1: main calls 1: nx_calibrate_new
51func _mk(variant_id: i64, cost: i64, in_lay: i64, out_lay: i64) -> *NxManifest
62func main() -> i64