code wiki / (root) / nx_moonraker_loop_e2e_test.nx

nx_moonraker_loop_e2e_test.nx

buildroot/runtime/nx_moonraker_loop_e2e_test.nx

4742 B115 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic moonraker
docsdependenciesstructsconstsfunctions

about

nx_moonraker_loop_e2e_test.nx -- full input-side substrate loop: real-shape Moonraker JSON -> parse -> pump -> verdict -> wire bytes ready for nx_mr_post_ipv4. This is the CANONICAL composition smoke for the spaghetti prevention loop. Two synthetic Moonraker query responses (one healthy, one with bed-cooled-down-mid-print) flow through the entire substrate input + decision + output chain. Scenarios: A. Healthy snapshot -> NONE -> 0 wire bytes B. Hot bed dropping (1st obs) -> NONE -> 0 wire bytes (timer started) C. Hot bed dropping (3s later) -> BED_TEMP_DROP -> "POST /printer/print/pause" expect_exit: 0 license_tier: ORIGINAL

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_print_runtime_monitor.nx nx_print_telemetry.nx nx_print_response.nx nx_moonraker_telemetry_parse.nx nx_moonraker_loop_e2e_test.nx

imports: nx_syscalls.nxnx_print_runtime_monitor.nxnx_print_telemetry.nxnx_print_response.nxnx_moonraker_telemetry_parse.nx

imported by: nobody (leaf or entry point)

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

main nx_runtime_monitor_new sys_mmap nx_runtime_monitor_set_the sys_mmap ↻ nx_print_telemetry_new sys_mmap ↻ nx_moonraker_parse_thermal mr_p_find mr_p_cstr_len mr_p_byte_eq mr_p_match_brace mr_p_extract_int_in_scope mr_p_find ↻ mr_p_cstr_len ↻ mr_p_parse_int_degrees cstr_len nx_moonraker_parse_motion mr_p_find ↻ mr_p_match_brace ↻ mr_p_extract_live_position mr_p_find ↻ mr_p_parse_q14 mr_p_extract_q14_in_scope mr_p_find ↻ mr_p_cstr_len ↻ mr_p_parse_q14 ↻ nx_runtime_monitor_pump_te nx_runtime_monitor_step_la nx_runtime_monitor_step nx_runtime_monitor_step_th nx_rt_thermal_axis_check nx_runtime_monitor_step_ru nx_print_build_response_fo nx_print_response_for_issu nx_print_build_pause_reque nx_mr_build_post_request nx_mr_write_cstr nx_mr_write_bytes nx_mr_write_int

structs

none

consts

24const Q14: i64 = 16384

functions

26func cstr_len(s: *u8) -> i64
called by 1: main
32func contains_substring(hay: *u8, hay_len: i64, needle: *u8) -> i64
called by 1: main
50func main() -> i64