code wiki / (root) / nx_ux_triangulate.nx

nx_ux_triangulate.nx

buildroot/runtime/nx_ux_triangulate.nx

4301 B126 linesdepth 3pulls 3 transitivereach 2 importersview sourcekind tooltopic ux
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_ux_standard.nx nx_ux_triangulate.nx nx_browser_demo_test.nx nx_ux_triangulate_w3c_kat_test.nx

imports: nx_syscalls.nxnx_ux_standard.nx

imported by: nx_browser_demo_test.nxnx_ux_triangulate_w3c_kat_test.nx

structs

29struct UxScore

consts

25const NX_UX_VERDICT_UNVERIFIED: i64 = 1
26const NX_UX_VERDICT_VALIDATED_S_CLASS: i64 = 2
27const NX_UX_VERDICT_CONFLICTED: i64 = 3
34const NX_UX_SCORE_BYTES: i64 = 16

functions

36func _ux_at(scores: *UxScore, idx: i64) -> *UxScore
42func nx_ux_triangulate(scores: *UxScore, n_scores: i64) -> i64
74func nx_ux_verdict_label(v: i64) -> *u8
called by 1: main
84func nx_ux_triangulate_cluster(scores: *UxScore, n_scores: i64,
124func main() -> i64