code wiki / _hdl_build / nx_build_pipeline.nx
nx_build_pipeline.nx
buildroot/runtime/_hdl_build/nx_build_pipeline.nx
about
nx_build_pipeline.nx -- the WARDEN orchestrates the team building a capability end-to-end through the
CLEAN RACI (operator: "keep building our teams capabilities" + the standing rule that each role owns
its verb). One assignment flows: PM assigns -> BUILDER scaffolds -> [CORE] -> ENGINEER verifies -> on
fail DOCTOR heals -> ENGINEER re-verifies -> COUNCIL admits -> LIBRARIAN registers. The Warden only
ROUTES (it never tests or heals itself -- separation of duties via nx_build_raci). The [CORE] step is
the one honest gap: if the assignment's core matches a known PATTERN the team authors it autonomously
(bp_claude_touch=0); if it's NOVEL, the pipeline FLAGS needs-tutor (bp_claude_touch=1) -- the path to
full autonomy is growing the pattern library so that flag goes to 0. We MEASURE the dependency, not
hide it. Composes nx_build_raci (separation + decide) + nx_role_audit. LAWS: struct-free, integer-only.
license_tier: ORIGINAL
dependencies 2 imports · 6 importers
imports: nx_build_raci.nxnx_syscalls.nx
imported by: nx_browser_arc_pipeline.nxnx_build_pipeline_test.nxnx_cms_arc_pipeline.nxnx_self_reliance_gate.nxnx_session_autonomy_gate.nxnx_warden_build.nx
structs
| none |
consts
| 15 | const BP_ASSIGNED: i64 = 1 // PM produced a grounded assignment |
| 16 | const BP_SCAFFOLDED: i64 = 2 // Builder authored the module/test/register skeleton |
| 17 | const BP_NEEDS_TUTOR: i64 = 3 // CORE is novel -> Claude tutors (the flagged LLM-gap; team can't yet) |
| 18 | const BP_VERIFIED: i64 = 4 // Engineer's gate passed |
| 19 | const BP_HEALED: i64 = 5 // Doctor healed a failed build; re-verify next |
| 20 | const BP_ADMITTED: i64 = 6 // Council admitted + Librarian registered = DONE, team-owned |
| 21 | const BP_REJECTED: i64 = 7 // failed + heal budget exhausted -> rejected (never false-admit) |
| 22 | const BP_RACI_BAD: i64 = 0 // role partition violated -> pipeline invalid |
functions
| 26 | func bp_core_autonomous(pattern_id: i64) -> i64 { if pattern_id > 0 { return 1 } return 0 } |
| 29 | func bp_claude_touch(pattern_id: i64) -> i64 { if bp_core_autonomous(pattern_id) == 1 { return 0 } return 1 } |
| 34 | func bp_run(grounded: i64, pattern_id: i64, author_role: i64, tester_role: i64, healer_role: i64, |
| 50 | func bp_after_heal(grounded: i64, pattern_id: i64, author_role: i64, tester_role: i64, healer_role: i64, |
| 57 | func bp_autonomy_permil(pattern_ids: *i64, n: i64) -> i64 |