eduevidence 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +506 -0
  3. package/README.zh-CN.md +434 -0
  4. package/SKILL.md +195 -0
  5. package/bin/eduevidence.js +127 -0
  6. package/domains/education/manifest.json +183 -0
  7. package/domains/education/outcome_taxonomy.json +127 -0
  8. package/domains/manifest.json +26 -0
  9. package/domains/policy/frame.schema.json +234 -0
  10. package/domains/policy/manifest.json +10 -0
  11. package/domains/policy/methodology_checklist.json +109 -0
  12. package/domains/policy/outcome_taxonomy.json +53 -0
  13. package/domains/policy/references/causal-identification.md +45 -0
  14. package/domains/policy/references/cost-evidence.md +44 -0
  15. package/domains/policy/references/equity.md +42 -0
  16. package/domains/policy/references/evidence-hierarchy.md +41 -0
  17. package/domains/policy/references/implementation-evidence.md +47 -0
  18. package/eduevidence_cli.py +26 -0
  19. package/engine/__init__.py +11 -0
  20. package/engine/__pycache__/__init__.cpython-312.pyc +0 -0
  21. package/engine/__pycache__/analysis.cpython-312.pyc +0 -0
  22. package/engine/__pycache__/bias.cpython-312.pyc +0 -0
  23. package/engine/__pycache__/briefs.cpython-312.pyc +0 -0
  24. package/engine/__pycache__/capabilities.cpython-312.pyc +0 -0
  25. package/engine/__pycache__/citation_check.cpython-312.pyc +0 -0
  26. package/engine/__pycache__/contracts.cpython-312.pyc +0 -0
  27. package/engine/__pycache__/datasets.cpython-312.pyc +0 -0
  28. package/engine/__pycache__/events.cpython-312.pyc +0 -0
  29. package/engine/__pycache__/evidence_graph.cpython-312.pyc +0 -0
  30. package/engine/__pycache__/evidence_review.cpython-312.pyc +0 -0
  31. package/engine/__pycache__/evidencecore.cpython-312.pyc +0 -0
  32. package/engine/__pycache__/gap_lens.cpython-312.pyc +0 -0
  33. package/engine/__pycache__/gaps.cpython-312.pyc +0 -0
  34. package/engine/__pycache__/graph_store.cpython-312.pyc +0 -0
  35. package/engine/__pycache__/graph_validate.cpython-312.pyc +0 -0
  36. package/engine/__pycache__/ids.cpython-312.pyc +0 -0
  37. package/engine/__pycache__/library.cpython-312.pyc +0 -0
  38. package/engine/__pycache__/library_builtin.cpython-312.pyc +0 -0
  39. package/engine/__pycache__/living.cpython-312.pyc +0 -0
  40. package/engine/__pycache__/log.cpython-312.pyc +0 -0
  41. package/engine/__pycache__/meta_analysis.cpython-312.pyc +0 -0
  42. package/engine/__pycache__/meta_synthesis.cpython-312.pyc +0 -0
  43. package/engine/__pycache__/migration.cpython-312.pyc +0 -0
  44. package/engine/__pycache__/mode_router.cpython-312.pyc +0 -0
  45. package/engine/__pycache__/paths.cpython-312.pyc +0 -0
  46. package/engine/__pycache__/pilot.cpython-312.pyc +0 -0
  47. package/engine/__pycache__/planner.cpython-312.pyc +0 -0
  48. package/engine/__pycache__/project.cpython-312.pyc +0 -0
  49. package/engine/__pycache__/projections.cpython-312.pyc +0 -0
  50. package/engine/__pycache__/robustness.cpython-312.pyc +0 -0
  51. package/engine/__pycache__/run.cpython-312.pyc +0 -0
  52. package/engine/__pycache__/semantics.cpython-312.pyc +0 -0
  53. package/engine/__pycache__/study_design.cpython-312.pyc +0 -0
  54. package/engine/__pycache__/synthesis.cpython-312.pyc +0 -0
  55. package/engine/__pycache__/tribunal.cpython-312.pyc +0 -0
  56. package/engine/__pycache__/update.cpython-312.pyc +0 -0
  57. package/engine/__pycache__/versions.cpython-312.pyc +0 -0
  58. package/engine/analysis.py +308 -0
  59. package/engine/bias.py +178 -0
  60. package/engine/briefs.py +106 -0
  61. package/engine/capabilities.py +99 -0
  62. package/engine/citation_check.py +192 -0
  63. package/engine/contracts.py +117 -0
  64. package/engine/datasets.py +165 -0
  65. package/engine/events.py +67 -0
  66. package/engine/evidence_graph.py +571 -0
  67. package/engine/evidence_review.py +88 -0
  68. package/engine/evidencecore.py +182 -0
  69. package/engine/gap_lens.py +132 -0
  70. package/engine/gaps.py +169 -0
  71. package/engine/graph_store.py +335 -0
  72. package/engine/graph_validate.py +87 -0
  73. package/engine/ids.py +77 -0
  74. package/engine/library.py +268 -0
  75. package/engine/library_builtin.py +301 -0
  76. package/engine/living.py +671 -0
  77. package/engine/log.py +39 -0
  78. package/engine/meta_analysis.py +333 -0
  79. package/engine/meta_synthesis.py +111 -0
  80. package/engine/migration.py +397 -0
  81. package/engine/mode_router.py +72 -0
  82. package/engine/paths.py +15 -0
  83. package/engine/pilot.py +368 -0
  84. package/engine/planner.py +126 -0
  85. package/engine/project.py +118 -0
  86. package/engine/projections.py +240 -0
  87. package/engine/robustness.py +109 -0
  88. package/engine/run.py +85 -0
  89. package/engine/semantics.py +135 -0
  90. package/engine/study_design.py +87 -0
  91. package/engine/synthesis.py +187 -0
  92. package/engine/tribunal.py +408 -0
  93. package/engine/update.py +113 -0
  94. package/engine/versions.py +12 -0
  95. package/install.sh +510 -0
  96. package/integrations/__init__.py +1 -0
  97. package/integrations/__pycache__/__init__.cpython-312.pyc +0 -0
  98. package/integrations/__pycache__/agent_mcp.cpython-312.pyc +0 -0
  99. package/integrations/__pycache__/smart_web_fetch.cpython-312.pyc +0 -0
  100. package/integrations/agent_mcp.py +856 -0
  101. package/integrations/smart_web_fetch.py +59 -0
  102. package/package.json +50 -0
  103. package/pyproject.toml +55 -0
  104. package/references/applicability-policy.md +88 -0
  105. package/references/education-framing.md +132 -0
  106. package/references/effect_size_formulas.md +35 -0
  107. package/references/evaluation-design.md +111 -0
  108. package/references/evidence-quality.md +79 -0
  109. package/references/grade_framework.md +29 -0
  110. package/references/intervention-design.md +98 -0
  111. package/references/methodology-audit.md +103 -0
  112. package/references/outcome-taxonomy.md +106 -0
  113. package/references/retrieval-protocol.md +142 -0
  114. package/references/skeptic-protocol.md +93 -0
  115. package/references/social_science_pitfalls.md +48 -0
  116. package/references/source-validity.md +140 -0
  117. package/references/tribunal-policy.md +112 -0
  118. package/references/wwc_standards.md +29 -0
  119. package/retrieval/__init__.py +1 -0
  120. package/retrieval/__pycache__/__init__.cpython-312.pyc +0 -0
  121. package/retrieval/__pycache__/corpus_store.cpython-312.pyc +0 -0
  122. package/retrieval/__pycache__/dedupe.cpython-312.pyc +0 -0
  123. package/retrieval/__pycache__/failures.cpython-312.pyc +0 -0
  124. package/retrieval/__pycache__/fetch.cpython-312.pyc +0 -0
  125. package/retrieval/__pycache__/search.cpython-312.pyc +0 -0
  126. package/retrieval/__pycache__/source.cpython-312.pyc +0 -0
  127. package/retrieval/__pycache__/validate.cpython-312.pyc +0 -0
  128. package/retrieval/corpus_store.py +181 -0
  129. package/retrieval/dedupe.py +127 -0
  130. package/retrieval/failures.py +90 -0
  131. package/retrieval/fetch.py +435 -0
  132. package/retrieval/search.py +493 -0
  133. package/retrieval/source.py +160 -0
  134. package/retrieval/validate.py +257 -0
  135. package/schemas/agent-mcp-approval.schema.json +57 -0
  136. package/schemas/chart-spec.schema.json +88 -0
  137. package/schemas/cross-model-review.schema.json +28 -0
  138. package/schemas/education-frame.schema.json +106 -0
  139. package/schemas/evaluation.schema.json +35 -0
  140. package/schemas/evidence.schema.json +81 -0
  141. package/schemas/fetch-result.schema.json +119 -0
  142. package/schemas/intervention.schema.json +46 -0
  143. package/schemas/methodology.schema.json +102 -0
  144. package/schemas/report-result.schema.json +381 -0
  145. package/schemas/report-spec.schema.json +130 -0
  146. package/schemas/source.schema.json +311 -0
  147. package/schemas/v2/analysis-plan.schema.json +28 -0
  148. package/schemas/v2/analysis-run.schema.json +33 -0
  149. package/schemas/v2/claim.schema.json +26 -0
  150. package/schemas/v2/dataset-asset.schema.json +40 -0
  151. package/schemas/v2/decision-snapshot.schema.json +53 -0
  152. package/schemas/v2/evidence-link.schema.json +38 -0
  153. package/schemas/v2/finding.schema.json +47 -0
  154. package/schemas/v2/graph-revision.schema.json +30 -0
  155. package/schemas/v2/knowledge-gap.schema.json +40 -0
  156. package/schemas/v2/methodology-audit.schema.json +30 -0
  157. package/schemas/v2/outcome.schema.json +18 -0
  158. package/schemas/v2/project.schema.json +31 -0
  159. package/schemas/v2/research-intent.schema.json +24 -0
  160. package/schemas/v2/run.schema.json +43 -0
  161. package/schemas/v2/source.schema.json +24 -0
  162. package/schemas/v2/study-design.schema.json +67 -0
  163. package/schemas/v2/study.schema.json +37 -0
  164. package/schemas/v3/pilot-outcome.schema.json +132 -0
  165. package/schemas/v3/run-manifest.schema.json +193 -0
  166. package/schemas/v3/synthesis.schema.json +86 -0
  167. package/schemas/v4/drift-report.schema.json +66 -0
  168. package/schemas/v4/evidence-library.schema.json +42 -0
  169. package/schemas/v4/living-subscription.schema.json +55 -0
  170. package/schemas/v4/meta-analysis.schema.json +152 -0
  171. package/schemas/verdict.schema.json +56 -0
  172. package/scripts/__init__.py +0 -0
  173. package/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
  174. package/scripts/__pycache__/benchmark.cpython-312.pyc +0 -0
  175. package/scripts/__pycache__/benchmark_evaluator.cpython-312.pyc +0 -0
  176. package/scripts/__pycache__/benchmark_judge.cpython-312.pyc +0 -0
  177. package/scripts/__pycache__/benchmark_routing.cpython-312.pyc +0 -0
  178. package/scripts/__pycache__/benchmark_v2.cpython-312.pyc +0 -0
  179. package/scripts/__pycache__/benchmark_v3.cpython-312.pyc +0 -0
  180. package/scripts/__pycache__/build_result.cpython-312.pyc +0 -0
  181. package/scripts/__pycache__/claim_audit.cpython-312.pyc +0 -0
  182. package/scripts/__pycache__/complexity_gate.cpython-312.pyc +0 -0
  183. package/scripts/__pycache__/compute_confidence.cpython-312.pyc +0 -0
  184. package/scripts/__pycache__/dashboard_server.cpython-312.pyc +0 -0
  185. package/scripts/__pycache__/did_regression.cpython-312.pyc +0 -0
  186. package/scripts/__pycache__/effect_calculator.cpython-312.pyc +0 -0
  187. package/scripts/__pycache__/evidence_matrix.cpython-312.pyc +0 -0
  188. package/scripts/__pycache__/evidence_score.cpython-312.pyc +0 -0
  189. package/scripts/__pycache__/evidence_semantics.cpython-312.pyc +0 -0
  190. package/scripts/__pycache__/fetch_benchmark.cpython-312.pyc +0 -0
  191. package/scripts/__pycache__/lint_report_layout.cpython-312.pyc +0 -0
  192. package/scripts/__pycache__/orchestrator.cpython-312.pyc +0 -0
  193. package/scripts/__pycache__/pre_verdict_gate.cpython-312.pyc +0 -0
  194. package/scripts/__pycache__/recompute_demo_quality.cpython-312.pyc +0 -0
  195. package/scripts/__pycache__/render_report.cpython-312.pyc +0 -0
  196. package/scripts/__pycache__/render_report_html.cpython-312.pyc +0 -0
  197. package/scripts/__pycache__/run_workspace.cpython-312.pyc +0 -0
  198. package/scripts/__pycache__/skill_lint.cpython-312.pyc +0 -0
  199. package/scripts/__pycache__/startup_probe.cpython-312.pyc +0 -0
  200. package/scripts/__pycache__/sync_killer_demo_report.cpython-312.pyc +0 -0
  201. package/scripts/__pycache__/test_adversarial_empirical.cpython-312-pytest-9.0.2.pyc +0 -0
  202. package/scripts/__pycache__/test_adversarial_empirical.cpython-312-pytest-9.1.1.pyc +0 -0
  203. package/scripts/__pycache__/validate_schema.cpython-312.pyc +0 -0
  204. package/scripts/audit_dois.py +292 -0
  205. package/scripts/bake_pack.sh +37 -0
  206. package/scripts/benchmark.py +183 -0
  207. package/scripts/benchmark_evaluator.py +371 -0
  208. package/scripts/benchmark_judge.py +535 -0
  209. package/scripts/benchmark_routing.py +120 -0
  210. package/scripts/benchmark_v2.py +304 -0
  211. package/scripts/benchmark_v3.py +552 -0
  212. package/scripts/build_esl_artifacts.py +1921 -0
  213. package/scripts/build_evidence_library.py +307 -0
  214. package/scripts/build_killer_demo.py +295 -0
  215. package/scripts/build_result.py +311 -0
  216. package/scripts/check_version_consistency.py +96 -0
  217. package/scripts/citation_check.py +123 -0
  218. package/scripts/claim_audit.py +157 -0
  219. package/scripts/complexity_gate.py +180 -0
  220. package/scripts/compute_confidence.py +176 -0
  221. package/scripts/dashboard_server.py +536 -0
  222. package/scripts/did_regression.py +315 -0
  223. package/scripts/effect_calculator.py +99 -0
  224. package/scripts/enrich_projects_human_and_lieflat.py +315 -0
  225. package/scripts/evidence_matrix.py +129 -0
  226. package/scripts/evidence_score.py +234 -0
  227. package/scripts/evidence_semantics.py +87 -0
  228. package/scripts/fetch_benchmark.py +177 -0
  229. package/scripts/generate_metrics.py +99 -0
  230. package/scripts/generate_new_projects.py +686 -0
  231. package/scripts/generate_promo.py +192 -0
  232. package/scripts/lint_report_layout.py +182 -0
  233. package/scripts/orchestrator.py +1456 -0
  234. package/scripts/pre_verdict_gate.py +513 -0
  235. package/scripts/quickstart.py +121 -0
  236. package/scripts/rebake_all_5themes.py +88 -0
  237. package/scripts/recompute_demo_quality.py +205 -0
  238. package/scripts/render_report.py +270 -0
  239. package/scripts/render_report_html.py +356 -0
  240. package/scripts/retraction_watch.py +110 -0
  241. package/scripts/run_workspace.py +337 -0
  242. package/scripts/serve_web.py +54 -0
  243. package/scripts/skill_lint.py +150 -0
  244. package/scripts/startup_probe.py +265 -0
  245. package/scripts/sync_killer_demo_report.py +270 -0
  246. package/scripts/test_adversarial_empirical.py +541 -0
  247. package/scripts/validate_schema.py +256 -0
  248. package/skill/agents/education-planner.md +80 -0
  249. package/skill/agents/evaluation-designer.md +74 -0
  250. package/skill/agents/evidence-analyst.md +106 -0
  251. package/skill/agents/evidence-judge.md +111 -0
  252. package/skill/agents/evidence-retriever.md +80 -0
  253. package/skill/agents/intervention-designer.md +82 -0
  254. package/skill/agents/method-reviewer.md +104 -0
  255. package/skill/agents/skeptic.md +89 -0
  256. package/skill/sub-skills/aihot-trend-analysis/SKILL.md +31 -0
  257. package/skill/sub-skills/contradiction-analysis/SKILL.md +17 -0
  258. package/skill/sub-skills/data-analysis/SKILL.md +23 -0
  259. package/skill/sub-skills/ethics-review/SKILL.md +25 -0
  260. package/skill/sub-skills/evidence-extraction/SKILL.md +19 -0
  261. package/skill/sub-skills/evidence-review/SKILL.md +18 -0
  262. package/skill/sub-skills/gap-analysis/SKILL.md +25 -0
  263. package/skill/sub-skills/literature-review/SKILL.md +21 -0
  264. package/skill/sub-skills/methodology-audit/SKILL.md +20 -0
  265. package/skill/sub-skills/report-generation/SKILL.md +51 -0
  266. package/skill/sub-skills/research-planning/SKILL.md +21 -0
  267. package/skill/sub-skills/study-design/SKILL.md +16 -0
  268. package/skill/task-briefs/adjudicate.md +17 -0
  269. package/skill/task-briefs/audit.md +15 -0
  270. package/skill/task-briefs/challenge.md +15 -0
  271. package/skill/task-briefs/evaluate.md +13 -0
  272. package/skill/task-briefs/extract.md +16 -0
  273. package/skill/task-briefs/frame.md +17 -0
  274. package/skill/task-briefs/intervene.md +14 -0
  275. package/skill/task-briefs/present.md +16 -0
  276. package/skill/task-briefs/retrieve.md +15 -0
  277. package/visualization/eduevidence-report/assets/base.css +337 -0
  278. package/visualization/eduevidence-report/motion/motion.css +157 -0
  279. package/visualization/eduevidence-report/motion/motion.js +107 -0
  280. package/visualization/eduevidence-report/references/bilingual-style.md +7 -0
  281. package/visualization/eduevidence-report/references/component-catalog.md +145 -0
  282. package/visualization/eduevidence-report/references/evidence-expansion.md +65 -0
  283. package/visualization/eduevidence-report/references/full-report-outline.md +86 -0
  284. package/visualization/eduevidence-report/references/layout-constraints.md +63 -0
  285. package/visualization/eduevidence-report/references/lieflat-composition.md +79 -0
  286. package/visualization/eduevidence-report/references/motion-system.md +31 -0
  287. package/visualization/eduevidence-report/schemas/adapter-envelope.schema.json +22 -0
  288. package/visualization/eduevidence-report/schemas/visual-layout.schema.json +87 -0
  289. package/visualization/eduevidence-report/scripts/__pycache__/adapter_contract.cpython-312.pyc +0 -0
  290. package/visualization/eduevidence-report/scripts/__pycache__/build_artifact_manifest.cpython-312.pyc +0 -0
  291. package/visualization/eduevidence-report/scripts/__pycache__/build_charts.cpython-312.pyc +0 -0
  292. package/visualization/eduevidence-report/scripts/__pycache__/build_figures.cpython-312.pyc +0 -0
  293. package/visualization/eduevidence-report/scripts/__pycache__/build_infographics.cpython-312.pyc +0 -0
  294. package/visualization/eduevidence-report/scripts/__pycache__/build_report.cpython-312.pyc +0 -0
  295. package/visualization/eduevidence-report/scripts/__pycache__/charts_data.cpython-312.pyc +0 -0
  296. package/visualization/eduevidence-report/scripts/__pycache__/lieflat_engine.cpython-312.pyc +0 -0
  297. package/visualization/eduevidence-report/scripts/__pycache__/zh_labels.cpython-312.pyc +0 -0
  298. package/visualization/eduevidence-report/scripts/adapter_contract.py +72 -0
  299. package/visualization/eduevidence-report/scripts/build_artifact_manifest.py +70 -0
  300. package/visualization/eduevidence-report/scripts/build_charts.py +283 -0
  301. package/visualization/eduevidence-report/scripts/build_figures.py +515 -0
  302. package/visualization/eduevidence-report/scripts/build_infographics.py +268 -0
  303. package/visualization/eduevidence-report/scripts/build_report.py +3211 -0
  304. package/visualization/eduevidence-report/scripts/charts_data.py +617 -0
  305. package/visualization/eduevidence-report/scripts/check_mobile_layout.js +220 -0
  306. package/visualization/eduevidence-report/scripts/lieflat_engine.py +852 -0
  307. package/visualization/eduevidence-report/scripts/zh_labels.py +245 -0
  308. package/visualization/eduevidence-report/themes/academic.css +94 -0
  309. package/visualization/eduevidence-report/themes/claude.css +96 -0
  310. package/visualization/eduevidence-report/themes/datalab-dark.css +147 -0
  311. package/visualization/eduevidence-report/themes/datalab.css +151 -0
  312. package/visualization/eduevidence-report/themes/presentation.css +140 -0
@@ -0,0 +1,47 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/finding.schema.json",
4
+ "title": "Finding",
5
+ "description": "What a study actually observed. effect_direction records the observed direction only; relation to a Claim lives on the EvidenceLink, never here. Never infer missing precision in effect_estimate.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "finding_id", "study_id", "finding_type", "outcome_id", "measure",
10
+ "effect_direction", "raw_result_text", "source_locator", "extensions"
11
+ ],
12
+ "properties": {
13
+ "finding_id": { "type": "string", "pattern": "^FND-" },
14
+ "study_id": { "type": "string", "pattern": "^(STU-|STUDY-)" },
15
+ "finding_type": {
16
+ "type": "string",
17
+ "enum": [
18
+ "quantitative_effect", "association", "descriptive", "qualitative_theme",
19
+ "implementation_finding", "process_finding"
20
+ ]
21
+ },
22
+ "outcome_id": { "type": "string", "pattern": "^OUT-" },
23
+ "measure": { "type": "string", "minLength": 1 },
24
+ "timepoint": { "type": ["string", "null"] },
25
+ "effect_direction": {
26
+ "type": "string",
27
+ "enum": ["positive", "negative", "null", "mixed", "not_applicable"]
28
+ },
29
+ "effect_estimate": {
30
+ "type": ["object", "null"],
31
+ "additionalProperties": false,
32
+ "required": ["metric", "raw_text"],
33
+ "properties": {
34
+ "metric": { "type": "string", "minLength": 1 },
35
+ "value": { "type": ["number", "null"] },
36
+ "unit": { "type": ["string", "null"] },
37
+ "ci_low": { "type": ["number", "null"] },
38
+ "ci_high": { "type": ["number", "null"] },
39
+ "p_value": { "type": ["number", "null"] },
40
+ "raw_text": { "type": "string", "minLength": 1 }
41
+ }
42
+ },
43
+ "raw_result_text": { "type": "string", "minLength": 1 },
44
+ "source_locator": { "type": "string", "minLength": 1 },
45
+ "extensions": { "type": "object" }
46
+ }
47
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/graph-revision.schema.json",
4
+ "title": "GraphRevision",
5
+ "description": "Immutable revision manifest. graph/HEAD is authoritative; this manifest describes one committed snapshot.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "revision", "parent_revision", "run_id", "reason",
10
+ "touched_entities", "before_hash", "after_hash", "created_at", "extensions"
11
+ ],
12
+ "properties": {
13
+ "revision": { "type": "integer", "minimum": 1 },
14
+ "parent_revision": { "type": "integer", "minimum": 0 },
15
+ "run_id": { "type": "string", "pattern": "^RUN-" },
16
+ "reason": { "type": "string", "minLength": 1 },
17
+ "touched_entities": {
18
+ "type": "object",
19
+ "additionalProperties": {
20
+ "type": "array",
21
+ "items": { "type": "string", "minLength": 1 },
22
+ "uniqueItems": true
23
+ }
24
+ },
25
+ "before_hash": { "type": "string", "minLength": 1 },
26
+ "after_hash": { "type": "string", "minLength": 1 },
27
+ "created_at": { "type": "string", "format": "date-time" },
28
+ "extensions": { "type": "object" }
29
+ }
30
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/knowledge-gap.schema.json",
4
+ "title": "KnowledgeGap",
5
+ "description": "A structured evidence-coverage gap derived from graph coverage — never free-form 'future work' text. Every gap stores related Claim/Outcome IDs and the graph revision it was derived from.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "gap_id", "gap_type", "related_claim_ids", "related_outcome_ids",
10
+ "priority", "reasoning", "status", "derived_from_graph_revision",
11
+ "extensions"
12
+ ],
13
+ "properties": {
14
+ "gap_id": { "type": "string", "pattern": "^GAP-" },
15
+ "gap_type": {
16
+ "type": "string",
17
+ "enum": [
18
+ "missing_direct_evidence", "missing_population", "missing_context",
19
+ "missing_outcome", "missing_retention", "missing_transfer",
20
+ "methodology_weakness", "unresolved_conflict",
21
+ "insufficient_sample_independence"
22
+ ]
23
+ },
24
+ "related_claim_ids": {
25
+ "type": "array",
26
+ "items": { "type": "string", "minLength": 1 },
27
+ "uniqueItems": true
28
+ },
29
+ "related_outcome_ids": {
30
+ "type": "array",
31
+ "items": { "type": "string", "minLength": 1 },
32
+ "uniqueItems": true
33
+ },
34
+ "priority": { "type": "string", "enum": ["high", "medium", "low"] },
35
+ "reasoning": { "type": "string", "minLength": 1 },
36
+ "status": { "type": "string", "enum": ["open", "addressed", "superseded"] },
37
+ "derived_from_graph_revision": { "type": "integer", "minimum": 1 },
38
+ "extensions": { "type": "object" }
39
+ }
40
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/methodology-audit.schema.json",
4
+ "title": "MethodologyAudit",
5
+ "description": "Methodological appraisal. Quality belongs primarily to Study/method appraisal, not duplicated into every Claim link.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "audit_id", "study_id", "policy_version",
10
+ "design_quality", "sample_quality", "measurement_validity", "temporal_strength",
11
+ "bias_checks", "confounders", "limitations",
12
+ "overall_status", "audited_at", "extensions"
13
+ ],
14
+ "properties": {
15
+ "audit_id": { "type": "string", "pattern": "^AUD-" },
16
+ "study_id": { "type": "string", "pattern": "^(STU-|STUDY-)" },
17
+ "policy_version": { "type": "string", "minLength": 1 },
18
+ "design_quality": { "type": "integer", "minimum": 0, "maximum": 2 },
19
+ "sample_quality": { "type": "integer", "minimum": 0, "maximum": 2 },
20
+ "measurement_validity": { "type": "integer", "minimum": 0, "maximum": 2 },
21
+ "temporal_strength": { "type": "integer", "minimum": 0, "maximum": 2 },
22
+ "bias_checks": { "type": "array", "items": { "type": "string" } },
23
+ "confounders": { "type": "array", "items": { "type": "string" } },
24
+ "limitations": { "type": "array", "items": { "type": "string" } },
25
+ "outcome_specific_notes": { "type": "string" },
26
+ "overall_status": { "type": "string", "enum": ["pass", "concern", "fail"] },
27
+ "audited_at": { "type": "string", "format": "date-time" },
28
+ "extensions": { "type": "object" }
29
+ }
30
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/outcome.schema.json",
4
+ "title": "Outcome",
5
+ "description": "A measurable education outcome from the Outcome Taxonomy: learning / task performance / process / risk.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["outcome_id", "name", "outcome_type", "extensions"],
9
+ "properties": {
10
+ "outcome_id": { "type": "string", "pattern": "^OUT-" },
11
+ "name": { "type": "string", "minLength": 1 },
12
+ "outcome_type": {
13
+ "type": "string",
14
+ "enum": ["learning", "task_performance", "process", "risk"]
15
+ },
16
+ "extensions": { "type": "object" }
17
+ }
18
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/project.schema.json",
4
+ "title": "Project",
5
+ "description": "Long-lived research project owning a versioned Project Evidence Graph. Run is an execution attempt inside a Project; the Project is the durable unit.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "project_id", "title", "domain", "question", "research_mode",
10
+ "decision_target", "created_at", "updated_at", "engine_version",
11
+ "schema_version", "graph_revision", "status"
12
+ ],
13
+ "properties": {
14
+ "project_id": { "type": "string", "pattern": "^PRJ-" },
15
+ "title": { "type": "string", "minLength": 1 },
16
+ "domain": { "type": "string", "enum": ["education"] },
17
+ "question": { "type": "string", "minLength": 1 },
18
+ "research_mode": { "type": "string", "enum": ["evidence_review", "full_research_cycle"] },
19
+ "decision_target": {
20
+ "type": "string",
21
+ "enum": ["evidence_review", "teaching_decision", "teaching_pilot", "evaluation_plan", "research_cycle"]
22
+ },
23
+ "created_at": { "type": "string", "format": "date-time" },
24
+ "updated_at": { "type": "string", "format": "date-time" },
25
+ "engine_version": { "type": "string", "minLength": 1 },
26
+ "schema_version": { "type": "string", "const": "2.0" },
27
+ "graph_revision": { "type": "integer", "minimum": 0 },
28
+ "status": { "type": "string", "enum": ["active", "waiting_for_user", "completed", "archived", "failed"] },
29
+ "extensions": { "type": "object" }
30
+ }
31
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/research-intent.schema.json",
4
+ "title": "ResearchIntent",
5
+ "description": "Structured intent driving mode recommendation. decision_target controls the requested deliverable; research_mode controls lifecycle depth.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "decision_target", "wants_existing_evidence", "wants_study_design",
10
+ "has_user_data", "wants_data_analysis", "wants_decision_update"
11
+ ],
12
+ "properties": {
13
+ "decision_target": {
14
+ "type": "string",
15
+ "enum": ["evidence_review", "teaching_decision", "teaching_pilot", "evaluation_plan", "research_cycle"]
16
+ },
17
+ "wants_existing_evidence": { "type": "boolean" },
18
+ "wants_study_design": { "type": "boolean" },
19
+ "has_user_data": { "type": "boolean" },
20
+ "wants_data_analysis": { "type": "boolean" },
21
+ "wants_decision_update": { "type": "boolean" },
22
+ "extensions": { "type": "object" }
23
+ }
24
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/run.schema.json",
4
+ "title": "Run",
5
+ "description": "One execution attempt or mutation inside a Project. A Run starts at graph_revision_before and, on completion, records graph_revision_after.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "run_id", "project_id", "purpose", "started_at", "status",
10
+ "graph_revision_before", "graph_revision_after",
11
+ "capabilities", "execution_backend", "policy_versions"
12
+ ],
13
+ "properties": {
14
+ "run_id": { "type": "string", "pattern": "^RUN-" },
15
+ "project_id": { "type": "string", "pattern": "^PRJ-" },
16
+ "purpose": { "type": "string", "minLength": 1 },
17
+ "started_at": { "type": "string", "format": "date-time" },
18
+ "status": { "type": "string", "enum": ["running", "completed", "failed", "aborted"] },
19
+ "graph_revision_before": { "type": "integer", "minimum": 0 },
20
+ "graph_revision_after": { "type": ["integer", "null"], "minimum": 0 },
21
+ "capabilities": {
22
+ "type": "array",
23
+ "items": { "type": "string", "minLength": 1 },
24
+ "uniqueItems": true
25
+ },
26
+ "execution_backend": {
27
+ "type": "string",
28
+ "enum": ["agent_mcp_enhanced", "host_native_subagents", "sequential_main_agent"]
29
+ },
30
+ "policy_versions": {
31
+ "type": "object",
32
+ "additionalProperties": false,
33
+ "required": ["source_validation", "methodology", "confidence"],
34
+ "properties": {
35
+ "source_validation": { "type": "string", "minLength": 1 },
36
+ "methodology": { "type": "string", "minLength": 1 },
37
+ "confidence": { "type": "string", "minLength": 1 },
38
+ "extensions": { "type": "object" }
39
+ }
40
+ },
41
+ "extensions": { "type": "object" }
42
+ }
43
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/source.schema.json",
4
+ "title": "Source",
5
+ "description": "A verifiable research source. canonical_locator is an absolute external URI or an explicit project:// URI; raw filesystem paths stay provenance metadata.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "source_id", "origin", "source_type", "canonical_locator",
10
+ "validation_status", "extensions"
11
+ ],
12
+ "properties": {
13
+ "source_id": { "type": "string", "pattern": "^(SRC-|S-)" },
14
+ "origin": { "type": "string", "enum": ["external", "project"] },
15
+ "source_type": { "type": "string", "minLength": 1 },
16
+ "canonical_locator": { "type": "string", "format": "uri" },
17
+ "validation_status": {
18
+ "type": "string",
19
+ "enum": ["valid", "accepted_partial", "invalid", "failed"]
20
+ },
21
+ "content_hash": { "type": ["string", "null"], "minLength": 1 },
22
+ "extensions": { "type": "object" }
23
+ }
24
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/study-design.schema.json",
4
+ "title": "StudyDesign",
5
+ "description": "An evidence-grounded study design plan. A StudyDesign can only be created from one or more explicit KnowledgeGap entities. Carries analysis_requirements[] but NOT analysis_plan_id — the separately versioned AnalysisPlan owns design_id, avoiding a circular reference. EduEvidence flags human-subject ethics fields but never claims ethics approval.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "design_id", "gap_ids", "research_question", "design_type",
10
+ "population", "sampling_plan", "intervention", "comparison",
11
+ "outcomes", "measures", "timepoints", "assignment_strategy",
12
+ "confounder_plan", "analysis_requirements", "success_criteria",
13
+ "stop_conditions", "ethics_flags", "preregistration_fields",
14
+ "derived_from_graph_revision", "created_at", "extensions"
15
+ ],
16
+ "properties": {
17
+ "design_id": { "type": "string", "pattern": "^DSN-" },
18
+ "gap_ids": {
19
+ "type": "array",
20
+ "items": { "type": "string", "pattern": "^GAP-" },
21
+ "uniqueItems": true,
22
+ "minItems": 1
23
+ },
24
+ "research_question": { "type": "string", "minLength": 1 },
25
+ "design_type": {
26
+ "type": "string",
27
+ "enum": ["rct", "cluster_rct", "quasi_experimental", "pre_post",
28
+ "observational", "survey", "qualitative", "mixed_methods"]
29
+ },
30
+ "population": { "type": "string", "minLength": 1 },
31
+ "sampling_plan": { "type": "string", "minLength": 1 },
32
+ "intervention": { "type": ["string", "null"] },
33
+ "comparison": { "type": ["string", "null"] },
34
+ "outcomes": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
35
+ "measures": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
36
+ "timepoints": { "type": "array", "items": { "type": "string" }, "minItems": 1 },
37
+ "assignment_strategy": { "type": "string", "minLength": 1 },
38
+ "confounder_plan": { "type": "string" },
39
+ "analysis_requirements": {
40
+ "type": "array",
41
+ "items": { "type": "string" }
42
+ },
43
+ "success_criteria": { "type": "array", "items": { "type": "string" } },
44
+ "stop_conditions": { "type": "array", "items": { "type": "string" } },
45
+ "ethics_flags": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": [
49
+ "human_subjects", "sensitive_data", "minors_involved",
50
+ "consent_status", "ethics_review_required", "deidentification_required"
51
+ ],
52
+ "properties": {
53
+ "human_subjects": { "type": "boolean" },
54
+ "sensitive_data": { "type": "boolean" },
55
+ "minors_involved": { "type": "boolean" },
56
+ "consent_status": { "type": "string", "enum": ["obtained", "pending", "not_required", "unknown"] },
57
+ "ethics_review_required": { "type": "boolean" },
58
+ "deidentification_required": { "type": "boolean" },
59
+ "extensions": { "type": "object" }
60
+ }
61
+ },
62
+ "preregistration_fields": { "type": "object" },
63
+ "derived_from_graph_revision": { "type": "integer", "minimum": 1 },
64
+ "created_at": { "type": "string", "format": "date-time" },
65
+ "extensions": { "type": "object" }
66
+ }
67
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://eduevidence.dev/schemas/v2/study.schema.json",
4
+ "title": "Study",
5
+ "description": "One study inside a Source. independence_key identifies independent study/sample units; identity_status records identity confidence instead of aggressive merging.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "study_id", "source_ids", "study_design", "population", "sample_ids",
10
+ "independence_key", "identity_status", "extensions"
11
+ ],
12
+ "properties": {
13
+ "study_id": { "type": "string", "pattern": "^(STU-|STUDY-)" },
14
+ "source_ids": {
15
+ "type": "array",
16
+ "items": { "type": "string", "pattern": "^(SRC-|S-)" },
17
+ "uniqueItems": true,
18
+ "minItems": 1
19
+ },
20
+ "study_design": { "type": "string", "minLength": 1 },
21
+ "population": { "type": "string", "minLength": 1 },
22
+ "sample_ids": {
23
+ "type": "array",
24
+ "items": { "type": "string", "minLength": 1 },
25
+ "uniqueItems": true
26
+ },
27
+ "sample_size": { "type": ["integer", "null"], "minimum": 0 },
28
+ "intervention": { "type": ["string", "null"] },
29
+ "comparison": { "type": ["string", "null"] },
30
+ "independence_key": { "type": "string", "minLength": 1 },
31
+ "identity_status": {
32
+ "type": "string",
33
+ "enum": ["resolved", "unresolved", "legacy"]
34
+ },
35
+ "extensions": { "type": "object" }
36
+ }
37
+ }
@@ -0,0 +1,132 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/37chengshan/eduevidence/schemas/v3/pilot-outcome.schema.json",
4
+ "title": "PilotOutcomeRecord",
5
+ "description": "Decision-to-Outcome Loop record (v3): a PilotRun bound to a DecisionSnapshot that carries outcome data through import -> analysis -> re-adjudication. PII columns are forbidden by anon_policy; student data stays local.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "pilot_id",
10
+ "project_id",
11
+ "decision_snapshot_id",
12
+ "title",
13
+ "start_date",
14
+ "end_date",
15
+ "conditions",
16
+ "sample_size",
17
+ "design_id",
18
+ "anon_policy",
19
+ "outcome_columns",
20
+ "status",
21
+ "created_at",
22
+ "extensions"
23
+ ],
24
+ "properties": {
25
+ "pilot_id": {
26
+ "type": "string",
27
+ "pattern": "^PIL-[0-9a-f]{8}$"
28
+ },
29
+ "project_id": {
30
+ "type": "string"
31
+ },
32
+ "decision_snapshot_id": {
33
+ "type": "string"
34
+ },
35
+ "title": {
36
+ "type": "string"
37
+ },
38
+ "start_date": {
39
+ "type": "string",
40
+ "format": "date-time"
41
+ },
42
+ "end_date": {
43
+ "type": "string",
44
+ "format": "date-time"
45
+ },
46
+ "conditions": {
47
+ "type": "array",
48
+ "items": {
49
+ "type": "string"
50
+ }
51
+ },
52
+ "sample_size": {
53
+ "type": "integer",
54
+ "minimum": 1
55
+ },
56
+ "design_id": {
57
+ "type": "string",
58
+ "description": "Study design the pilot implements"
59
+ },
60
+ "anon_policy": {
61
+ "type": "object",
62
+ "additionalProperties": false,
63
+ "required": [
64
+ "no_pii_columns",
65
+ "note"
66
+ ],
67
+ "properties": {
68
+ "no_pii_columns": {
69
+ "type": "boolean"
70
+ },
71
+ "note": {
72
+ "type": "string"
73
+ }
74
+ }
75
+ },
76
+ "outcome_columns": {
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string"
80
+ },
81
+ "description": "Outcome Taxonomy tokens measured by the pilot"
82
+ },
83
+ "dataset_asset_id": {
84
+ "type": [
85
+ "string",
86
+ "null"
87
+ ]
88
+ },
89
+ "analysis_run_id": {
90
+ "type": [
91
+ "string",
92
+ "null"
93
+ ]
94
+ },
95
+ "status": {
96
+ "type": "string",
97
+ "enum": [
98
+ "registered",
99
+ "data_imported",
100
+ "analyzed",
101
+ "adjudicated"
102
+ ]
103
+ },
104
+ "redecide": {
105
+ "type": [
106
+ "object",
107
+ "null"
108
+ ],
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "new_decision_snapshot_id": {
112
+ "type": "string"
113
+ },
114
+ "graph_revision": {
115
+ "type": "integer"
116
+ },
117
+ "diff": {
118
+ "type": "object",
119
+ "additionalProperties": true
120
+ }
121
+ }
122
+ },
123
+ "created_at": {
124
+ "type": "string",
125
+ "format": "date-time"
126
+ },
127
+ "extensions": {
128
+ "type": "object",
129
+ "additionalProperties": true
130
+ }
131
+ }
132
+ }