code wiki / _hdl_build / nx_build_pipeline.nx

nx_build_pipeline.nx

buildroot/runtime/_hdl_build/nx_build_pipeline.nx

4529 B63 linesdepth 4pulls 4 transitivereach 11 importersview sourcekind librarytopic build
docsdependenciesstructsconstsfunctions

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

nx_build_raci.nx nx_syscalls.nx nx_build_pipeline.nx nx_browser_arc_pipeline.nx nx_build_pipeline_test.nx nx_cms_arc_pipeline.nx nx_self_reliance_gate.nx nx_session_autonomy_gate.nx nx_warden_build.nx

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

15const BP_ASSIGNED: i64 = 1 // PM produced a grounded assignment
16const BP_SCAFFOLDED: i64 = 2 // Builder authored the module/test/register skeleton
17const BP_NEEDS_TUTOR: i64 = 3 // CORE is novel -> Claude tutors (the flagged LLM-gap; team can't yet)
18const BP_VERIFIED: i64 = 4 // Engineer's gate passed
19const BP_HEALED: i64 = 5 // Doctor healed a failed build; re-verify next
20const BP_ADMITTED: i64 = 6 // Council admitted + Librarian registered = DONE, team-owned
21const BP_REJECTED: i64 = 7 // failed + heal budget exhausted -> rejected (never false-admit)
22const BP_RACI_BAD: i64 = 0 // role partition violated -> pipeline invalid

functions

26func bp_core_autonomous(pattern_id: i64) -> i64 { if pattern_id > 0 { return 1 } return 0 }
29func bp_claude_touch(pattern_id: i64) -> i64 { if bp_core_autonomous(pattern_id) == 1 { return 0 } return 1 }
called by 4: mainmainmainmain calls 1: bp_core_autonomous
34func bp_run(grounded: i64, pattern_id: i64, author_role: i64, tester_role: i64, healer_role: i64,
50func bp_after_heal(grounded: i64, pattern_id: i64, author_role: i64, tester_role: i64, healer_role: i64,
called by 1: main calls 1: bp_run
57func bp_autonomy_permil(pattern_ids: *i64, n: i64) -> i64