nx_evidence_tier.nx source
↩ module page · 80 lines · 3943 B
1// nx_evidence_tier.nx -- sealed scientific-evidence-tier verdict.
2//
3// license_tier: PUBLIC_NISHI_SUBSTRATE
4// genealogy_id: cochrane_collaboration_evidence_hierarchy +
5// oxford_centre_for_evidence_based_medicine_levels +
6// grade_working_group_evidence_quality +
7// nishi_pillar_7_pseudoscience_drift_2026
8//
9// Pillar 7 of the greenhouse framework: every nutrient / biology /
10// agronomic claim in the substrate is annotated with an evidence
11// tier. Both rigor-aligned and tradition-aligned communities see
12// each other's claims with the actual rigor level visible.
13//
14// The substrate refuses to ship a claim without an evidence tier.
15// Wall-scan + wall-emit enforce at the substrate-grader layer.
16//
17// ===== The tiers ==================================================
18//
19// PEER_REVIEWED_REPLICATED - >=3 independent studies, meta-
20// analysis available or systematic
21// review confirming. Highest tier.
22// PEER_REVIEWED_SINGLE - one or two peer-reviewed studies,
23// awaiting replication.
24// EMPIRICAL_TRADITION - long practitioner use across many
25// growers/cultures, weak formal
26// evidence base. E.g. Albrecht
27// base-cation ratios, mycorrhizal
28// folk wisdom, Brix-tracking.
29// THEORETICAL - model-derived from first principles,
30// untested empirically.
31// CONTESTED - active disagreement in literature;
32// substrate cites both sides.
33// ANECDOTAL - single-grower report; tracked
34// but not propagated as recommendation.
35// FALSIFIED - claim has been falsified by
36// replicated peer-reviewed studies;
37// kept in history per Cardinal 13
38// but not surfaced as guidance.
39
40const NX_EVID_PEER_REVIEWED_REPLICATED: i64 = 1
41const NX_EVID_PEER_REVIEWED_SINGLE: i64 = 2
42const NX_EVID_EMPIRICAL_TRADITION: i64 = 3
43const NX_EVID_THEORETICAL: i64 = 4
44const NX_EVID_CONTESTED: i64 = 5
45const NX_EVID_ANECDOTAL: i64 = 6
46const NX_EVID_FALSIFIED: i64 = 7
47
48func nx_evid_tier_name(v: i64) -> *u8 {
49 if v == NX_EVID_PEER_REVIEWED_REPLICATED { return "PEER_REVIEWED_REPLICATED" }
50 if v == NX_EVID_PEER_REVIEWED_SINGLE { return "PEER_REVIEWED_SINGLE" }
51 if v == NX_EVID_EMPIRICAL_TRADITION { return "EMPIRICAL_TRADITION" }
52 if v == NX_EVID_THEORETICAL { return "THEORETICAL" }
53 if v == NX_EVID_CONTESTED { return "CONTESTED" }
54 if v == NX_EVID_ANECDOTAL { return "ANECDOTAL" }
55 if v == NX_EVID_FALSIFIED { return "FALSIFIED" }
56 return "UNKNOWN"
57}
58
59// Default filter: should this tier surface as a recommendation to
60// a SELF_DECLARED skill-tier customer? (Higher-tier customers can
61// opt in to lower-evidence tiers.)
62func nx_evid_safe_default_for_apprentice(v: i64) -> i64 {
63 if v == NX_EVID_PEER_REVIEWED_REPLICATED { return 1 }
64 if v == NX_EVID_PEER_REVIEWED_SINGLE { return 1 }
65 return 0
66}
67
68func nx_evid_safe_default_for_journeyman(v: i64) -> i64 {
69 if v == NX_EVID_PEER_REVIEWED_REPLICATED { return 1 }
70 if v == NX_EVID_PEER_REVIEWED_SINGLE { return 1 }
71 if v == NX_EVID_EMPIRICAL_TRADITION { return 1 }
72 return 0
73}
74
75// MASTER_SAVER tier sees all evidence tiers (including CONTESTED and
76// ANECDOTAL) -- they're capable of weighing the rigor themselves.
77func nx_evid_visible_to_master(v: i64) -> i64 {
78 if v == NX_EVID_FALSIFIED { return 0 } // even masters don't get falsified surfaced
79 return 1
80}