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,119 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/37chengshan/eduevidence/schemas/fetch-result.schema.json",
4
+ "title": "FetchResult",
5
+ "description": "Result of one fetch attempt through the Smart Web Fetch degradation chain (v3 方案 §6-8). Only FETCH_VALID (or rule-confirmed FETCH_PARTIAL) may enter Evidence Extraction; FETCH_FAILED must not let the model guess content from search snippets. 扩展字段一律放在 extensions 内。",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "original_url",
10
+ "fetch_status"
11
+ ],
12
+ "properties": {
13
+ "original_url": {
14
+ "type": "string",
15
+ "format": "uri"
16
+ },
17
+ "resolved_url": {
18
+ "type": "string",
19
+ "format": "uri"
20
+ },
21
+ "fetch_method": {
22
+ "type": "string",
23
+ "enum": [
24
+ "native",
25
+ "smart_web_fetch"
26
+ ]
27
+ },
28
+ "fetch_provider": {
29
+ "type": "string",
30
+ "enum": [
31
+ "builtin",
32
+ "jina_reader",
33
+ "markdown_new",
34
+ "defuddle",
35
+ "raw_html",
36
+ "pdf_parser"
37
+ ]
38
+ },
39
+ "fetch_status": {
40
+ "type": "string",
41
+ "enum": [
42
+ "FETCH_VALID",
43
+ "FETCH_PARTIAL",
44
+ "FETCH_FAILED"
45
+ ]
46
+ },
47
+ "fetched_at": {
48
+ "type": "string",
49
+ "format": "date-time"
50
+ },
51
+ "content_hash": {
52
+ "type": "string"
53
+ },
54
+ "content_length": {
55
+ "type": "integer",
56
+ "minimum": 0
57
+ },
58
+ "raw_size": {
59
+ "type": "integer",
60
+ "minimum": 0
61
+ },
62
+ "clean_size": {
63
+ "type": "integer",
64
+ "minimum": 0
65
+ },
66
+ "compression_ratio": {
67
+ "type": "number",
68
+ "minimum": 0,
69
+ "maximum": 1
70
+ },
71
+ "fallback_used": {
72
+ "type": "boolean",
73
+ "default": false
74
+ },
75
+ "fallback_chain": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "content": {
82
+ "type": "string",
83
+ "description": "清洗后的正文(Markdown/文本),仅 FETCH_VALID/PARTIAL 时携带"
84
+ },
85
+ "validation": {
86
+ "type": "object",
87
+ "additionalProperties": false,
88
+ "required": [
89
+ "passed"
90
+ ],
91
+ "description": "Fetch Validation Gate result (validate_fetch_result output): passed + per-check booleans + issues.",
92
+ "properties": {
93
+ "passed": {
94
+ "type": "boolean"
95
+ },
96
+ "checks": {
97
+ "type": "object",
98
+ "additionalProperties": {
99
+ "type": [
100
+ "boolean",
101
+ "null"
102
+ ]
103
+ }
104
+ },
105
+ "issues": {
106
+ "type": "array",
107
+ "items": {
108
+ "type": "string"
109
+ }
110
+ }
111
+ }
112
+ },
113
+ "extensions": {
114
+ "type": "object",
115
+ "description": "结构化扩展字段的统一容器(P1-01)。未列入本 schema 的字段必须放在这里,禁止在顶层新增属性。",
116
+ "additionalProperties": true
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/37chengshan/eduevidence/schemas/intervention.schema.json",
4
+ "title": "TeachingIntervention",
5
+ "description": "A minimal verifiable pilot intervention. EduEvidence NEVER recommends full deployment directly — it always produces a small-scale, evaluable pilot with stop conditions. 扩展字段一律放在 extensions 内。",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": ["decision", "target_learners", "pilot_duration", "stop_conditions"],
9
+ "properties": {
10
+ "decision": { "type": "string", "enum": ["adopt", "pilot", "reject", "insufficient_evidence"] },
11
+ "target_learners": { "type": "string" },
12
+ "learning_goals": { "type": "array", "items": { "type": "string" } },
13
+ "pilot_duration": { "type": "string", "examples": ["8_weeks"] },
14
+ "phase_1": {
15
+ "type": "object",
16
+ "additionalProperties": true,
17
+ "description": "Phase structure: name, activities, ai_usage_rule, outcome_check.",
18
+ "properties": {
19
+ "name": { "type": "string" },
20
+ "activities": { "type": "array", "items": { "type": "string" } },
21
+ "ai_usage_rule": { "type": "string" },
22
+ "outcome_check": { "type": "string" }
23
+ }
24
+ },
25
+ "phase_2": { "type": "object", "additionalProperties": true },
26
+ "phase_3": { "type": "object", "additionalProperties": true },
27
+ "phase_4": { "type": "object", "additionalProperties": true },
28
+ "ai_usage_policy": { "type": "string", "description": "Explicit allowed/forbidden AI usage rules for students." },
29
+ "teacher_role": { "type": "string" },
30
+ "student_role": { "type": "string" },
31
+ "reflection_requirement": { "type": "string", "description": "e.g. students must explain key logic generated by AI." },
32
+ "assessment": { "type": "string" },
33
+ "risk_control": { "type": "array", "items": { "type": "string" } },
34
+ "stop_conditions": { "type": "array", "items": { "type": "string" } },
35
+ "evidence_alignment": {
36
+ "type": "array",
37
+ "items": { "type": "string" },
38
+ "description": "evidence_id(s) that this intervention traces back to."
39
+ },
40
+ "extensions": {
41
+ "type": "object",
42
+ "description": "结构化扩展字段的统一容器(P1-01)。未列入本 schema 的字段必须放在这里,禁止在顶层新增属性。",
43
+ "additionalProperties": true
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/37chengshan/eduevidence/schemas/methodology.schema.json",
4
+ "title": "MethodologyAudit",
5
+ "description": "Methodological audit of one study (or the overall evidence base). The highest-priority rule: task performance must NOT be automatically equated with learning effect. 扩展字段一律放在 extensions 内。",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "target",
10
+ "verdict",
11
+ "audit_items",
12
+ "task_vs_learning_guard",
13
+ "limitations",
14
+ "suggestions"
15
+ ],
16
+ "properties": {
17
+ "target": {
18
+ "type": "string",
19
+ "description": "evidence_id or source_id being audited, or 'overall'."
20
+ },
21
+ "audit_items": {
22
+ "type": "object",
23
+ "additionalProperties": {
24
+ "type": "object",
25
+ "additionalProperties": false,
26
+ "required": [
27
+ "status"
28
+ ],
29
+ "properties": {
30
+ "status": {
31
+ "type": "string",
32
+ "enum": [
33
+ "met",
34
+ "partial",
35
+ "missing",
36
+ "not_applicable"
37
+ ]
38
+ },
39
+ "note": {
40
+ "type": "string"
41
+ }
42
+ }
43
+ },
44
+ "description": "Keys: control_group, randomization, pre_test, post_test, retention_test, transfer_test, sample_bias, self_selection, measurement_validity, confounders, instructor_effect, novelty_effect, tool_version_effect, ai_usage_policy, dropout."
45
+ },
46
+ "task_vs_learning_guard": {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "properties": {
50
+ "measured_construct": {
51
+ "type": "string",
52
+ "examples": [
53
+ "task_completion",
54
+ "learning_outcome"
55
+ ]
56
+ },
57
+ "equates_task_with_learning": {
58
+ "type": "boolean"
59
+ },
60
+ "note": {
61
+ "type": "string"
62
+ }
63
+ }
64
+ },
65
+ "verdict": {
66
+ "type": "string",
67
+ "enum": [
68
+ "PASS",
69
+ "CONCERN",
70
+ "FAIL"
71
+ ]
72
+ },
73
+ "limitations": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ "suggestions": {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "string"
83
+ }
84
+ },
85
+ "extensions": {
86
+ "type": "object",
87
+ "description": "结构化扩展字段的统一容器(P1-01)。未列入本 schema 的字段必须放在这里,禁止在顶层新增属性。",
88
+ "additionalProperties": true
89
+ },
90
+ "study_audits": {
91
+ "type": [
92
+ "array",
93
+ "null"
94
+ ],
95
+ "description": "Per-study methodology audits (method-reviewer output for multi-study reviews).",
96
+ "items": {
97
+ "type": "object",
98
+ "additionalProperties": true
99
+ }
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,381 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/37chengshan/eduevidence/schemas/report-result.schema.json",
4
+ "title": "ReportResult",
5
+ "description": "Validated result.json contract (总体实施计划 §27). Produced by the EduEvidence research core, consumed by the visualization layer. The report layer may choose HOW to present but must never change this data. claims 每条必须携带 claim_id(C-001 格式,Claim-Evidence Contract)。扩展字段一律放在各对象 extensions 内。",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "meta",
10
+ "research_frame",
11
+ "decision",
12
+ "evidence"
13
+ ],
14
+ "properties": {
15
+ "meta": {
16
+ "type": "object",
17
+ "additionalProperties": false,
18
+ "required": [
19
+ "skill"
20
+ ],
21
+ "properties": {
22
+ "skill": {
23
+ "type": "string",
24
+ "const": "eduevidence"
25
+ },
26
+ "version": {
27
+ "type": "string"
28
+ },
29
+ "generated_at": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ "mode": {
34
+ "type": "string",
35
+ "enum": [
36
+ "platform_native",
37
+ "agent_mcp_enhanced"
38
+ ]
39
+ },
40
+ "question": {
41
+ "type": "string"
42
+ },
43
+ "data_origin": {
44
+ "type": "string",
45
+ "enum": [
46
+ "real",
47
+ "synthetic",
48
+ "hybrid",
49
+ "manual_curated"
50
+ ],
51
+ "description": "Provenance of the pack data (plan R4). real=pipeline-generated from real studies; manual_curated=hand-curated from real verified studies; synthetic=demonstration content, not real studies; hybrid=mixed."
52
+ }
53
+ }
54
+ },
55
+ "execution": {
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "description": "How this result was produced: complexity grade, agent topology, token/cost usage.",
59
+ "properties": {
60
+ "complexity": {
61
+ "type": "string",
62
+ "enum": [
63
+ "S",
64
+ "M",
65
+ "L"
66
+ ]
67
+ },
68
+ "mode": {
69
+ "type": "string",
70
+ "enum": [
71
+ "platform_native",
72
+ "agent_mcp_enhanced"
73
+ ]
74
+ },
75
+ "agents": {
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string"
79
+ }
80
+ },
81
+ "usage": {
82
+ "type": "object",
83
+ "additionalProperties": false,
84
+ "required": [
85
+ "measurement_status"
86
+ ],
87
+ "description": "Token/cost usage. Unknown values are null with measurement_status=NOT_CAPTURED; never fabricate 0 as a real measurement (P1-3).",
88
+ "properties": {
89
+ "measurement_status": {
90
+ "type": "string",
91
+ "enum": [
92
+ "NOT_CAPTURED"
93
+ ],
94
+ "description": "NOT_CAPTURED: usage was not measured by the pipeline."
95
+ },
96
+ "input_tokens": {
97
+ "type": [
98
+ "integer",
99
+ "null"
100
+ ]
101
+ },
102
+ "output_tokens": {
103
+ "type": [
104
+ "integer",
105
+ "null"
106
+ ]
107
+ },
108
+ "cost_usd": {
109
+ "type": [
110
+ "number",
111
+ "null"
112
+ ]
113
+ },
114
+ "latency_s": {
115
+ "type": [
116
+ "number",
117
+ "null"
118
+ ]
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "research_frame": {
125
+ "type": "object",
126
+ "description": "EducationResearchFrame (see education-frame.schema.json)."
127
+ },
128
+ "decision": {
129
+ "type": "object",
130
+ "description": "EducationVerdict (see verdict.schema.json)."
131
+ },
132
+ "outcomes": {
133
+ "type": "array",
134
+ "description": "Outcome-level aggregation: per outcome type, effect_direction counts (positive/negative/null) and evidence ids.",
135
+ "items": {
136
+ "type": "object",
137
+ "additionalProperties": false,
138
+ "properties": {
139
+ "outcome_type": {
140
+ "type": "string"
141
+ },
142
+ "positive_count": {
143
+ "type": "integer"
144
+ },
145
+ "negative_count": {
146
+ "type": "integer"
147
+ },
148
+ "null_count": {
149
+ "type": "integer"
150
+ },
151
+ "evidence_ids": {
152
+ "type": "array",
153
+ "items": {
154
+ "type": "string"
155
+ }
156
+ }
157
+ }
158
+ }
159
+ },
160
+ "claims": {
161
+ "type": "array",
162
+ "description": "Claim-level rows bound to evidence (Claim-Evidence Contract).",
163
+ "items": {
164
+ "type": "object",
165
+ "additionalProperties": false,
166
+ "required": [
167
+ "claim_id"
168
+ ],
169
+ "properties": {
170
+ "claim_id": {
171
+ "type": "string",
172
+ "pattern": "^C-[0-9]{3}$",
173
+ "examples": [
174
+ "C-001"
175
+ ]
176
+ },
177
+ "claim": {
178
+ "type": "string"
179
+ },
180
+ "outcome_type": {
181
+ "type": "string"
182
+ },
183
+ "evidence_ids": {
184
+ "type": "array",
185
+ "items": {
186
+ "type": "string"
187
+ }
188
+ },
189
+ "status": {
190
+ "type": "string",
191
+ "enum": [
192
+ "SUPPORTED",
193
+ "UNSUPPORTED",
194
+ "DOWNGRADE_CONFIDENCE",
195
+ "CONTRADICT"
196
+ ]
197
+ },
198
+ "bias_warning": {
199
+ "type": "string",
200
+ "description": "Optional methodological caveat attached to a claim row."
201
+ },
202
+ "pooled_effect_g": {
203
+ "type": [
204
+ "number",
205
+ "null"
206
+ ],
207
+ "description": "Optional pooled Hedges g attached to a claim row."
208
+ }
209
+ }
210
+ }
211
+ },
212
+ "sources": {
213
+ "type": "array",
214
+ "description": "Source Objects (see source.schema.json).",
215
+ "items": {
216
+ "$ref": "source.schema.json"
217
+ }
218
+ },
219
+ "evidence": {
220
+ "type": "array",
221
+ "items": {
222
+ "type": "object",
223
+ "additionalProperties": true,
224
+ "required": [
225
+ "evidence_id",
226
+ "source_id",
227
+ "outcome_type",
228
+ "direction"
229
+ ]
230
+ },
231
+ "description": "Evidence rows (projection of evidence.schema.json; stage-level gate enforces the full contract)."
232
+ },
233
+ "methodology_reviews": {
234
+ "type": "array",
235
+ "items": {
236
+ "type": "object",
237
+ "additionalProperties": true,
238
+ "required": [
239
+ "verdict"
240
+ ]
241
+ }
242
+ },
243
+ "conflicts": {
244
+ "type": "array",
245
+ "description": "Conflict analysis entries (why studies disagree).",
246
+ "items": {
247
+ "type": "object",
248
+ "additionalProperties": true
249
+ }
250
+ },
251
+ "applicability": {
252
+ "type": "object",
253
+ "additionalProperties": true
254
+ },
255
+ "intervention": {
256
+ "type": "object",
257
+ "description": "TeachingIntervention (see intervention.schema.json)."
258
+ },
259
+ "evaluation": {
260
+ "type": "object",
261
+ "description": "EvaluationPlan (see evaluation.schema.json)."
262
+ },
263
+ "benchmark": {
264
+ "type": "object",
265
+ "additionalProperties": true,
266
+ "description": "Benchmark metrics for this result (optional)."
267
+ },
268
+ "outcome_mapping": {
269
+ "type": "object",
270
+ "additionalProperties": false,
271
+ "required": [
272
+ "entries",
273
+ "declared_without_evidence"
274
+ ],
275
+ "description": "Frame-declared vs evidence-covered outcome map (OPEN-2): every outcome type seen in frame or evidence, with directional counts and an explicit status. Entries never mix support/contradict/neutral.",
276
+ "properties": {
277
+ "entries": {
278
+ "type": "array",
279
+ "items": {
280
+ "type": "object",
281
+ "additionalProperties": false,
282
+ "required": [
283
+ "outcome_type",
284
+ "status",
285
+ "support_count",
286
+ "contradict_count",
287
+ "neutral_count",
288
+ "evidence_ids"
289
+ ],
290
+ "properties": {
291
+ "outcome_type": {
292
+ "type": "string"
293
+ },
294
+ "declared_in_frame": {
295
+ "type": "boolean"
296
+ },
297
+ "status": {
298
+ "type": "string",
299
+ "enum": [
300
+ "supported",
301
+ "contested",
302
+ "contradicted",
303
+ "null_evidence_only",
304
+ "no_evidence"
305
+ ]
306
+ },
307
+ "support_count": {
308
+ "type": "integer"
309
+ },
310
+ "contradict_count": {
311
+ "type": "integer"
312
+ },
313
+ "neutral_count": {
314
+ "type": "integer"
315
+ },
316
+ "evidence_ids": {
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string"
320
+ }
321
+ }
322
+ }
323
+ }
324
+ },
325
+ "declared_without_evidence": {
326
+ "type": "array",
327
+ "items": {
328
+ "type": "string"
329
+ },
330
+ "description": "Frame-declared outcomes that no evidence covers — the evidence gaps a decision must disclose."
331
+ }
332
+ }
333
+ },
334
+ "provenance": {
335
+ "type": "object",
336
+ "additionalProperties": false,
337
+ "description": "Fetch/search provenance (Smart Web Fetch v3 §6): sources must carry fetch provenance.",
338
+ "properties": {
339
+ "search_provider": {
340
+ "type": "string"
341
+ },
342
+ "fetched_at": {
343
+ "type": "string",
344
+ "format": "date-time"
345
+ },
346
+ "fetch_summary": {
347
+ "type": "object",
348
+ "additionalProperties": true
349
+ }
350
+ }
351
+ },
352
+ "report_outline": {
353
+ "type": "object",
354
+ "additionalProperties": true,
355
+ "description": "Optional chapter outline consumed by the report builder; the builder falls back to a safe six-chapter layout when absent."
356
+ },
357
+ "report_structure": {
358
+ "type": "object",
359
+ "additionalProperties": true,
360
+ "description": "Legacy alias of report_outline accepted for compatibility."
361
+ },
362
+ "forest_plot_data": {
363
+ "type": "array",
364
+ "description": "Optional precomputed forest-plot rows consumed by the Web Studio visualization page (SKILL.md Visualization Data Contract).",
365
+ "items": {
366
+ "type": "object"
367
+ }
368
+ },
369
+ "visual_layout": {
370
+ "type": [
371
+ "object",
372
+ "array"
373
+ ],
374
+ "description": "Optional Lieflat gallery layout composition consumed by build_report.resolve_visual_layout."
375
+ },
376
+ "meta_analysis": {
377
+ "type": "object",
378
+ "description": "Optional pooled meta-analysis block (synthetic demo packs only unless engine-generated)."
379
+ }
380
+ }
381
+ }