code wiki / _hdl_build / nx_pipeline_run.nx
nx_pipeline_run.nx
buildroot/runtime/_hdl_build/nx_pipeline_run.nx
about
nx_pipeline_run.nx -- R2: THE CHAIN. The orchestrator that auto-walks a pipeline work-item
through discover->research->spec->build via the spine, closing the census gap (nx_pipeline_run
ABSENT). Per the operator's chosen path: a DETERMINISTIC orchestrator + self-gate first (proves
the walk logic + the halt-on-failure invariant), with the LIVE organ exec as a marked seam (R3).
INVARIANT (orchestrator level, on top of the spine's no-skip): if a stage executor FAILS, the
chain HALTS at that stage -- the item never advances, so failure can never be laundered into
completion. The self-gate's neg-control forces a stage failure and proves the item is stuck.
CLI: nx_pipeline_run SEED <id> <gap> -- create a live work-item (under PR_PREFIX)
nx_pipeline_run RUN <id> -- auto-walk a live work-item to EXCEEDED (stub exec)
nx_pipeline_run -- no-arg: run the deterministic SELF-GATE + verdict
Sovereign; imports the spine. license_tier: ORIGINAL
dependencies 5 imports · 0 importers
imports: nx_pipeline_spine.nxnx_workstream_store.nxnx_seg_store.nxnx_framed_append.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 20 | const PR_PREFIX: *u8 = "knowledge/store/pl-" // production live work-items |
| 21 | const PR_GATE_PREFIX: *u8 = "knowledge/store/plrun-" // self-gate scratch (cleaned before run) |
| 22 | const PR_LOG: *u8 = "knowledge/status/pipeline_run.log" |
| 23 | const PR_RUNNER: *u8 = "_offc/nx_sov_build_run.elf" |
functions
| 25 | func pr_(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 26 | func prn(v: i64) -> i64 |
| 35 | func pr_eq(a: *u8, b: *u8) -> i64 called by 1: main |
| 43 | func pr_organ_for(cur: i64) -> *u8 |
| 54 | func pr_exec_stub(cur: i64, id: *u8, fail_at: i64, art_out: *u8) -> i64 |
| 67 | func pr_run(prefix: *u8, id: *u8, fail_at: i64) -> i64 |
| 86 | func pr_run_organ(organ: *u8) -> i64 |
| 104 | func pr_exec_live(cur: i64, id: *u8, art_out: *u8) -> i64 |
| 117 | func pr_run_live(prefix: *u8, id: *u8) -> i64 |
| 134 | func main(argc: i64, argv: *i64) -> i64 |