nx_ux_triangulate.nx
buildroot/runtime/nx_ux_triangulate.nx
about
nx_ux_triangulate.nx -- ≥3-independent-sources-agree gate.
T3 of NISHI_UX_TRIANGULATION_ROADMAP. Given an array of
(clause_id, score) pairs, decide whether the UX pattern is
validated-S-class. Rules:
1. Count clauses scoring ≥8 from DISTINCT sources.
2. Count clauses scoring ≤4 from ANY source.
3. Verdict:
VALIDATED_S_CLASS if (distinct_sources_>=8) >= 3
AND no source scored ≤4
CONFLICTED if (>=8) >= 1 AND (<=4) >= 1
UNVERIFIED otherwise (insufficient agreement)
This is the substrate-side enforcement of "no solo design, no
one-vendor-validates-its-own-pattern." Innovation gated behind
VALIDATED_S_CLASS verdicts on the relevant clauses.
license_tier: ORIGINAL
lineage_id: nishi_ux_triangulate_q10
dependencies 2 imports · 2 importers
imports: nx_syscalls.nxnx_ux_standard.nx
imported by: nx_browser_demo_test.nxnx_ux_triangulate_w3c_kat_test.nx
structs
| 29 | struct UxScore |
consts
| 25 | const NX_UX_VERDICT_UNVERIFIED: i64 = 1 |
| 26 | const NX_UX_VERDICT_VALIDATED_S_CLASS: i64 = 2 |
| 27 | const NX_UX_VERDICT_CONFLICTED: i64 = 3 |
| 34 | const NX_UX_SCORE_BYTES: i64 = 16 |
functions
| 36 | func _ux_at(scores: *UxScore, idx: i64) -> *UxScore |
| 42 | func nx_ux_triangulate(scores: *UxScore, n_scores: i64) -> i64 |
| 74 | func nx_ux_verdict_label(v: i64) -> *u8 called by 1: main |
| 84 | func nx_ux_triangulate_cluster(scores: *UxScore, n_scores: i64, |
| 124 | func main() -> i64 |