code wiki / _hdl_build / nx_exceed_standard.nx

nx_exceed_standard.nx source

↩ module page · 45 lines · 2699 B

1// nx_exceed_standard.nx -- the TEAM-WIDE exceed standard (operator 2026-06-21: "exceed is on capability, efficiency, 2// speed etc; the hidden elements matter; we need customer-facing AND internal-only S-class exceed"). The shared rubric 3// every team member references -- the researcher (what to probe), the PM/census (how to grade), every *_exceed gate. 4// 5// EXCEED DIMENSIONS (an exceed claim must rest on at least one, MEASURED): CAPABILITY (does the job better / detects 6// what others can't), EFFICIENCY (fewer bytes / less memory / fewer requests / less ENERGY[power] AND human CLARITY -- 7// "can a person understand all those" -- because unclear output wastes a person's energy), SPEED (lower latency / 8// faster build), CORRECTNESS (output measurably more correct). FLOOR (NOT an exceed by itself): SOVEREIGNTY -- no-3rd-party/no-lock-in/ 9// no-JS/self-hosted/deterministic. SURFACES (BOTH must reach S-class): CUSTOMER-FACING (what users see/experience) and 10// INTERNAL-ONLY (the hidden tools/engines/dashboards the team+operator use). [[feedback-capability-is-the-exceed-not-sovereignty]] 11// license_tier: ORIGINAL 12import "nx_syscalls.nx" 13 14const ES_SOVEREIGNTY_FLOOR: i64 = 0 // the FLOOR -- never an exceed by itself 15const ES_CAPABILITY: i64 = 1 16const ES_EFFICIENCY: i64 = 2 17const ES_SPEED: i64 = 3 18const ES_CORRECTNESS: i64 = 4 19 20const ES_CUSTOMER: i64 = 1 21const ES_INTERNAL: i64 = 2 22 23// is this dimension exceed-eligible? sovereignty floor (0) is NOT. 24func es_is_exceed_dim(dim: i64) -> i64 { if dim >= ES_CAPABILITY { if dim <= ES_CORRECTNESS { return 1 } } return 0 } 25func es_dim_name(dim: i64) -> *u8 { 26 if dim == ES_CAPABILITY { return "CAPABILITY" as *u8 } 27 if dim == ES_EFFICIENCY { return "EFFICIENCY" as *u8 } 28 if dim == ES_SPEED { return "SPEED" as *u8 } 29 if dim == ES_CORRECTNESS { return "CORRECTNESS" as *u8 } 30 return "SOVEREIGNTY-FLOOR" as *u8 31} 32func es_surface_name(s: i64) -> *u8 { if s == ES_CUSTOMER { return "customer-facing" as *u8 } if s == ES_INTERNAL { return "internal-only" as *u8 } return "?" as *u8 } 33 34// S-class exceed on a (dimension, surface): requires an exceed-eligible dimension AND a real, PERFECT measurement 35// (our > incumbent, n>0, our == n) -- the no-overclaim rule. Sovereignty-floor dims can never qualify. The surface is 36// carried so a scorecard can require BOTH customer-facing AND internal to be covered. 37func es_is_sclass_exceed(dim: i64, surface: i64, our: i64, inc: i64, n: i64) -> i64 { 38 if es_is_exceed_dim(dim) == 0 { return 0 } 39 if surface < ES_CUSTOMER { return 0 } 40 if surface > ES_INTERNAL { return 0 } 41 if n <= 0 { return 0 } 42 if our <= inc { return 0 } 43 if our < n { return 0 } 44 return 1 45}