code wiki / (root) / nx_sclass_grader.nx

nx_sclass_grader.nx

buildroot/runtime/nx_sclass_grader.nx

2061 B36 linesdepth 2pulls 2 transitivereach 19 importersview sourcekind librarytopic sclass
docsdependenciesstructsconstsfunctions

about

nx_sclass_grader.nx -- HONEST grading of whether a capability is truly S-class EXCEED (operator). This is the Critic applied to the "exceed" claim, and it is deliberately SKEPTICAL because the team has overclaimed before (254 boolean wins -> honest 71; x*45 "exceed" -> a TIE once triangulated vs clang). The bar for S is high and triangulated: S_EXCEED : a VERIFIED head-to-head BEATS the BEST external alternative, AND was TRIANGULATED (raced vs the actual best, not a strawman). beats-but-not-triangulated is DEMOTED to parity (that is exactly how the x*45 overclaim died). A_PARITY : verified, matches the best external. B_BEHIND : verified, falls short of the best external. P_PROCESS : no external head-to-head exists (internal/process/meta capability) -> cannot be S. U_UNVERIFIED: claimed, not measured. license_tier: ORIGINAL Refs: triangulation doctrine; the Critic.

dependencies 1 imports · 7 importers

nx_syscalls.nx nx_sclass_grader.nx nx_examiner.nx nx_market.nx nx_market_hb.nx nx_peer_review.nx nx_scientist.nx nx_sclass_claim.nx nx_sclass_grade_report.nx

imports: nx_syscalls.nx

imported by: nx_examiner.nxnx_market.nxnx_market_hb.nxnx_peer_review.nxnx_scientist.nxnx_sclass_claim.nxnx_sclass_grade_report.nx

structs

none

consts

16const SG_U_UNVERIFIED: i64 = 0
17const SG_P_PROCESS: i64 = 1
18const SG_B_BEHIND: i64 = 2
19const SG_A_PARITY: i64 = 3
20const SG_S_EXCEED: i64 = 4

functions

25func sg_grade(has_ext: i64, verified: i64, beats: i64, triangulated: i64, matches: i64) -> i64
36func sg_count(n: i64, grades: *i64, target: i64) -> i64 { var c: i64 = 0; var i: i64 = 0; while i < n { if grades[i] == target { c = c + 1 } i = i + 1 } return c }