code wiki / _hdl_build / nx_critic.nx

nx_critic.nx

buildroot/runtime/_hdl_build/nx_critic.nx

5569 B98 linesdepth 2pulls 2 transitivereach 14 importersview sourcekind librarytopic critic
docsdependenciesstructsconstsfunctions

about

nx_critic.nx -- the NISHI CRITIC: adversarial + scientific evaluation so a finding is never "accepted as a commandment from God" but held to reproduction, caveats, and counter-theory. The Critic's job (operator): triangulate feedback, demand scientific evaluation, and decide whether a claim is a current working-LAW or just a THEORY that should be FLAGGED as provisional and potentially superseded by a better future option -- exactly how QM superseded/expanded GR in regimes GR could not reach. The PSNR-as-image-quality belief is the live example: we leaned on it WITHOUT a red-team, and the rate-distortion-PERCEPTION tradeoff (Blau-Michaeli 2019) is the counter-theory that demotes it. The Critic exists so that never silently happens again. Stance (Popper falsifiability + Kuhn paradigm shift + Lakatos): NOTHING is final. Every verdict is PROVISIONAL; a LAW keeps a successor slot open; a belief leaned on without a refutation hunt is a BLIND SPOT, flagged. RACI: the CRITIC evaluates/flags; the RESEARCHER hunts counter-evidence; the BUILDER fixes what is demoted. license_tier: ORIGINAL Refs: Popper, Kuhn, Lakatos.

dependencies 1 imports · 8 importers

nx_syscalls.nx nx_critic.nx nx_critic2_test.nx nx_critic_kernel.nx nx_critic_test.nx nx_critic_visual.nx nx_peer_review.nx nx_research_critic.nx nx_research_pipeline.nx nx_sclass_claim.nx

imports: nx_syscalls.nx

imported by: nx_critic2_test.nxnx_critic_kernel.nxnx_critic_test.nxnx_critic_visual.nxnx_peer_review.nxnx_research_critic.nxnx_research_pipeline.nxnx_sclass_claim.nx

structs

none

consts

17const CRIT_REFUTED: i64 = 0 // a surviving counter-theory wins -> demote + replace
18const CRIT_THEORY: i64 = 1 // provisional: reproduced but caveated / not adequately red-teamed
19const CRIT_LAW: i64 = 2 // current best working-law: reproduced + red-teamed + no surviving counter (STILL provisional)
59const CRIT_CONTESTED: i64 = 3 // belief and a MODERATE counter coexist -> resolve, don't auto-refute

functions

23func crit_status(reproductions: i64, counters: i64, redteamed: i64) -> i64
called by 2: mainrp_disposition
30func crit_is_provisional(status: i64) -> i64 { return 1 }
called by 1: main
34func crit_is_blindspot(reproductions: i64, redteamed: i64) -> i64
40func crit_keeps_successor_slot(status: i64) -> i64 { return 1 }
called by 1: main
44func crit_act_confidence(reproductions: i64, counters: i64, redteamed: i64) -> i64
called by 2: mainrc_grade
63func crit_counter_strength(counter_reproductions: i64, counter_sources: i64) -> i64
called by 2: mainrc_grade
73func crit_status2(reproductions: i64, counter_strength: i64, redteamed: i64) -> i64
82func crit_settledness(reproductions: i64, counter_strength: i64, redteamed: i64) -> i64
94func crit_refutation_hunt_queue(n: i64, reproductions: *i64, redteamed: *i64, out: *i64) -> i64
called by 2: mainmain calls 1: crit_is_blindspot