code wiki / _hdl_build / nx_engineer_wire_sclass.nx
nx_engineer_wire_sclass.nx
buildroot/runtime/_hdl_build/nx_engineer_wire_sclass.nx
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
imports: nx_engineer_wire.nxnx_cap_exists.nxnx_syscalls.nx
imported by: nx_engineer_wire_sclass_gate.nx
structs
| none |
consts
| 17 | const EWS_RED: i64 = 0 // REJECT: a regression, a brick-risk, or a redundant duplicate component |
| 18 | const EWS_HOLD: i64 = 1 // admissible (non-regressing, safe) but NO measured gain -> not an s-class exceed |
| 19 | const EWS_GREEN: i64 = 2 // measured net-positive, never-brick-safe, non-redundant -> WIRE IT |
functions
| 23 | func ews_margin(n: i64, old_correct: *i64, new_correct: *i64) -> i64 |
| 29 | func ews_certify(n: i64, old_correct: *i64, new_correct: *i64) -> i64 |
| 38 | func ews_certify_hw(n: i64, old_correct: *i64, new_correct: *i64, touches_hw: i64, neverbrick_proven: i64) -> i64 |
| 45 | func ews_is_redundant(cap_keywords: *u8, nf: i64, surf: *u8, foff: *i64, fnames: *u8, fnoff: *i64) -> i64 |
| 52 | func ews_admit(n: i64, old_correct: *i64, new_correct: *i64, touches_hw: i64, neverbrick_proven: i64, redundant: i64) -> i64 |