code wiki / (root) / nx_gen_pipecheck.nx

nx_gen_pipecheck.nx

buildroot/runtime/nx_gen_pipecheck.nx

6654 B177 linesdepth 10pulls 22 transitivereach 0 importersview sourcekind tooltopic gen
docsdependenciesstructsconstsfunctions

about

nx_gen_pipecheck.nx -- the front door. Read a pipeline descriptor, VERIFY every declared part against the file itself, and report RUNNABLE or BLOCKED with named reasons. This is the "comfyui capabilities without the messy interface" surface: you declare the set of parts once, and the system tells you whether that set can actually generate -- before it spends a single matmul on it. ★★★★★ THE DESCRIPTOR IS A CLAIM; THE FILE IS THE EVIDENCE. Every role is re-derived from the container's tensor names. A descriptor that names a LoKr adapter as its `dit` is REFUSED, not run: the estate has already paid for self-declared status that nobody measured. ★ REPORT WHAT IS MISSING BY NAME. A bare NO is not actionable; every blocker below says which part failed and why, so the next step is obvious. ⚠NAMED pipecheck, NOT pipeline: `nx_gen_pipeline` was ALREADY TAKEN by the sovereign gen-img core (runtime/_hdl_build/nx_gen_pipeline.nx -- base64 -> GENREC tEXt -> CID sidecar for the gallery). Uploading a same-named file into runtime/ shadowed it and the build failed with "UNDEFINED label: main", because that core is a main-less library gated by nx_gen_pipeline_gate. ★★★★★ A BUILD ERROR ABOUT *YOUR* FILE CAN BE EVIDENCE THAT THE BUILDER COMPILED SOMEONE ELSE'S. The name told the truth the diagnostic did not: the estate already owns this word. Usage: nx_gen_pipecheck <descriptor.pipe> license_tier: ORIGINAL

dependencies 12 imports · 0 importers

nx_syscalls.nx nx_le.nx nx_f32.nx nx_f32_div.nx nx_f32_cvt.nx nx_f16.nx nx_strconv.nx nx_genver.nx nx_genweights.nx nx_genarch.nx nx_gen_pipecheck.nx

diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_le.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f16.nxnx_strconv.nxnx_genver.nxnx_genweights.nxnx_genarch.nxnx_genrole.nxnx_genpipe.nx

imported by: nobody (leaf or entry point)

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

main gp_puts sys_write 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 ↻ nx_pipe_parse sys_openat_rd sys_mmap ↻ sys_read sys_close _pp_eq _pp_family_code _pp_eq ↻ nx_strconv_parse_i64 nx_ascii_is_digit gp_i sys_mmap ↻ sys_write ↻ nx_strconv_format_i64 nx_family_name gp_part gp_pad sys_write ↻ gp_puts ↻ gp_base nx_gw_open sys_mmap ↻

structs

none

consts

none

functions

38func gp_puts(s: *u8) -> i64
called by 2: gp_partmain calls 1: sys_write
43func gp_i(v: i64) -> i64
47func gp_pad(s: *u8, w: i64) -> i64
called by 1: gp_part calls 1: sys_write
56func gp_base(p: *u8) -> *u8
called by 1: gp_part
69func gp_part(label: *u8, path: *u8, want_role: i64, want_family: i64) -> i64
124func main(argc: i64, argv: *i64) -> i64