code wiki / _hdl_build / nx_warden_build.nx

nx_warden_build.nx

buildroot/runtime/_hdl_build/nx_warden_build.nx

7230 B118 linesdepth 5pulls 22 transitivereach 3 importersview sourcekind librarytopic warden
docsdependenciesstructsconstsfunctions

about

nx_warden_build.nx -- the WARDEN's ONE-COMMAND BUILD: spec in -> gated capability out, zero Claude in the loop for covered shapes. The pieces existed separately (classifier routes, emitters author, engineer_build_gate compiles+runs, build_pipeline decides) but a HAND still drove them between steps. This organ EXECUTES the whole route: FEATURE VECTOR -> plc_classify -> emitter dispatch (the Builder AUTHORS module+test to disk) -> eng_build_gate on the authored test (the ENGINEER's compile+link+run with recompile-retry -- composed, not reimplemented: rule 15) -> bp_run (the RACI verdict) -> durable line in knowledge/status/team_build.log. A NOVEL spec routes to NEEDS_TUTOR honestly -- measured, never guessed. RACI: WARDEN routes, Builder authors, Engineer tests, nothing self-grades. LAWS: struct-free, integer-only, flat ifs, <=6 args per func. license_tier: ORIGINAL

dependencies 14 imports · 2 importers

nx_pattern_classify.nx nx_itoa_lib.nx nx_pattern_emit.nx nx_pattern_emit3.nx nx_pattern_emit4.nx nx_pattern_emit5.nx nx_pattern_emit7.nx nx_pattern_emit8.nx nx_pattern_emit6.nx nx_pattern_emit10.nx nx_warden_build.nx nx_team_chain.nx nx_warden_build_test.nx

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

imports: nx_pattern_classify.nxnx_itoa_lib.nxnx_pattern_emit.nxnx_pattern_emit3.nxnx_pattern_emit4.nxnx_pattern_emit5.nxnx_pattern_emit7.nxnx_pattern_emit8.nxnx_pattern_emit6.nxnx_pattern_emit10.nxnx_pattern_emit11.nxnx_pattern_emit12.nxnx_engineer_build_gate.nxnx_build_pipeline.nx

imported by: nx_team_chain.nxnx_warden_build_test.nx

structs

none

consts

88const WB_DISPATCH_DEBT: i64 = 8

functions

25func wb_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
30func wb_wn(fd: i64, v: i64) -> i64 { nxi_fd(fd, v); return 0 }
31func wb_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ dst[off+i]=s[i]; i=i+1 } dst[off+i]=0 as u8; return off+i }
called by 2: wb_authorwb_verify
35func wb_author(pattern: i64, name: *u8, p: *i64) -> i64
70func wb_dispatchable(pattern: i64) -> i64
called by 1: wb_build
78func wb_verify(name: *u8) -> i64
called by 1: wb_build calls 2: wb_cateng_build_gate
92func wb_build(f: *i64, name: *u8, p: *i64, out: *i64) -> i64
104func wb_report(name: *u8, pat: i64, stage: i64, testpass: i64) -> i64