code wiki / _hdl_build / nx_engineer_wire_sclass.nx

nx_engineer_wire_sclass.nx

buildroot/runtime/_hdl_build/nx_engineer_wire_sclass.nx

4065 B55 linesdepth 3pulls 4 transitivereach 1 importersview sourcekind librarytopic engineer
docsdependenciesstructsconstsfunctions

about

nx_engineer_wire_sclass.nx -- the S-CLASS EXCEED layer on the ENGINEER's wiring capability (operator: "make sure our wiring capabilities on the engineer are s class exceed"). It does NOT replace nx_engineer_wire (rule 15: inherit + extend, never copy) -- it imports it and raises the bar in the three ways the base capability falls short of the operator's own doctrines: (1) MEASURED, not binary -- the base returns regress/neutral/ok; this returns the NET MARGIN (improvements - regressions) so an "exceed" must be measurably positive ("no wave, measured exceed"). (2) NEVER-BRICK aware (#26) -- a wiring that touches a hardware/firmware axis is REJECTED unless a never-brick guarantee is PROVEN, mirroring the genesis gate (firmware node lacking it -> RED). (3) ANTI-DUPLICATE aware -- before wiring a "new" component in, run the cap_guard (nx_cap_exists): a component whose capability already EXISTS is REDUNDANT and must NOT be wired (the exact mistake the guard exists to stop -- caught a near-duplicate of nx_engineer_wire itself this session). Sovereign. license_tier: ORIGINAL

dependencies 3 imports · 1 importers

nx_engineer_wire.nx nx_cap_exists.nx nx_syscalls.nx nx_engineer_wire_sclass.nx nx_engineer_wire_sclass_gate.nx

imports: nx_engineer_wire.nxnx_cap_exists.nxnx_syscalls.nx

imported by: nx_engineer_wire_sclass_gate.nx

structs

none

consts

17const EWS_RED: i64 = 0 // REJECT: a regression, a brick-risk, or a redundant duplicate component
18const EWS_HOLD: i64 = 1 // admissible (non-regressing, safe) but NO measured gain -> not an s-class exceed
19const EWS_GREEN: i64 = 2 // measured net-positive, never-brick-safe, non-redundant -> WIRE IT

functions

23func ews_margin(n: i64, old_correct: *i64, new_correct: *i64) -> i64
29func ews_certify(n: i64, old_correct: *i64, new_correct: *i64) -> i64
38func ews_certify_hw(n: i64, old_correct: *i64, new_correct: *i64, touches_hw: i64, neverbrick_proven: i64) -> i64
called by 2: ews_admitmain calls 1: ews_certify
45func ews_is_redundant(cap_keywords: *u8, nf: i64, surf: *u8, foff: *i64, fnames: *u8, fnoff: *i64) -> i64
called by 1: main calls 2: sys_mmapcap_guard
52func ews_admit(n: i64, old_correct: *i64, new_correct: *i64, touches_hw: i64, neverbrick_proven: i64, redundant: i64) -> i64
called by 1: main calls 1: ews_certify_hw