dokimi 0.1.0__tar.gz

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 (409) hide show
  1. dokimi-0.1.0/LICENSE +202 -0
  2. dokimi-0.1.0/NOTICE +6 -0
  3. dokimi-0.1.0/PKG-INFO +402 -0
  4. dokimi-0.1.0/README.md +337 -0
  5. dokimi-0.1.0/dokimi/__init__.py +41 -0
  6. dokimi-0.1.0/dokimi/__main__.py +7 -0
  7. dokimi-0.1.0/dokimi/_version.py +32 -0
  8. dokimi-0.1.0/dokimi/agent_profiles/__init__.py +13 -0
  9. dokimi-0.1.0/dokimi/agent_profiles/loader.py +101 -0
  10. dokimi-0.1.0/dokimi/artifacts.py +201 -0
  11. dokimi-0.1.0/dokimi/caching.py +367 -0
  12. dokimi-0.1.0/dokimi/cli.py +123 -0
  13. dokimi-0.1.0/dokimi/commands/__init__.py +4 -0
  14. dokimi-0.1.0/dokimi/commands/answers.py +152 -0
  15. dokimi-0.1.0/dokimi/commands/arms.py +719 -0
  16. dokimi-0.1.0/dokimi/commands/baseline.py +276 -0
  17. dokimi-0.1.0/dokimi/commands/benchmark.py +425 -0
  18. dokimi-0.1.0/dokimi/commands/catalog.py +190 -0
  19. dokimi-0.1.0/dokimi/commands/context.py +98 -0
  20. dokimi-0.1.0/dokimi/commands/dashboard.py +65 -0
  21. dokimi-0.1.0/dokimi/commands/dataset.py +39 -0
  22. dokimi-0.1.0/dokimi/commands/evaluate.py +553 -0
  23. dokimi-0.1.0/dokimi/commands/explore.py +177 -0
  24. dokimi-0.1.0/dokimi/commands/ingest.py +51 -0
  25. dokimi-0.1.0/dokimi/commands/judge_reliability.py +452 -0
  26. dokimi-0.1.0/dokimi/commands/library.py +116 -0
  27. dokimi-0.1.0/dokimi/commands/novelty.py +977 -0
  28. dokimi-0.1.0/dokimi/commands/orchestrate.py +130 -0
  29. dokimi-0.1.0/dokimi/commands/personas.py +128 -0
  30. dokimi-0.1.0/dokimi/commands/questions.py +398 -0
  31. dokimi-0.1.0/dokimi/commands/repo.py +332 -0
  32. dokimi-0.1.0/dokimi/commands/repo_run.py +340 -0
  33. dokimi-0.1.0/dokimi/commands/report.py +223 -0
  34. dokimi-0.1.0/dokimi/commands/run.py +99 -0
  35. dokimi-0.1.0/dokimi/commands/subjects.py +437 -0
  36. dokimi-0.1.0/dokimi/commands/tasks.py +205 -0
  37. dokimi-0.1.0/dokimi/commands/tools.py +174 -0
  38. dokimi-0.1.0/dokimi/config/products.yaml +73 -0
  39. dokimi-0.1.0/dokimi/config.py +89 -0
  40. dokimi-0.1.0/dokimi/config_check.py +75 -0
  41. dokimi-0.1.0/dokimi/console.py +20 -0
  42. dokimi-0.1.0/dokimi/context/__init__.py +10 -0
  43. dokimi-0.1.0/dokimi/context/trace.py +237 -0
  44. dokimi-0.1.0/dokimi/coverage.py +333 -0
  45. dokimi-0.1.0/dokimi/dashboard/__init__.py +4 -0
  46. dokimi-0.1.0/dokimi/dashboard/aggregator.py +223 -0
  47. dokimi-0.1.0/dokimi/dashboard/markdown_renderer.py +132 -0
  48. dokimi-0.1.0/dokimi/datasets_export.py +196 -0
  49. dokimi-0.1.0/dokimi/defaults.py +95 -0
  50. dokimi-0.1.0/dokimi/eval/__init__.py +10 -0
  51. dokimi-0.1.0/dokimi/eval/agent_runner.py +339 -0
  52. dokimi-0.1.0/dokimi/eval/answerer.py +482 -0
  53. dokimi-0.1.0/dokimi/eval/arm_runner.py +633 -0
  54. dokimi-0.1.0/dokimi/eval/arm_summary.py +262 -0
  55. dokimi-0.1.0/dokimi/eval/binary_stats.py +235 -0
  56. dokimi-0.1.0/dokimi/eval/cells.py +238 -0
  57. dokimi-0.1.0/dokimi/eval/checklist.py +340 -0
  58. dokimi-0.1.0/dokimi/eval/cross_judge.py +370 -0
  59. dokimi-0.1.0/dokimi/eval/degrade.py +675 -0
  60. dokimi-0.1.0/dokimi/eval/diagnoser.py +204 -0
  61. dokimi-0.1.0/dokimi/eval/grounding.py +89 -0
  62. dokimi-0.1.0/dokimi/eval/interactions.py +182 -0
  63. dokimi-0.1.0/dokimi/eval/judge.py +713 -0
  64. dokimi-0.1.0/dokimi/eval/judge_context.py +312 -0
  65. dokimi-0.1.0/dokimi/eval/judge_sequential.py +176 -0
  66. dokimi-0.1.0/dokimi/eval/judge_validity.py +482 -0
  67. dokimi-0.1.0/dokimi/eval/judge_wording.py +243 -0
  68. dokimi-0.1.0/dokimi/eval/matrix_rollup.py +132 -0
  69. dokimi-0.1.0/dokimi/eval/pairwise.py +325 -0
  70. dokimi-0.1.0/dokimi/eval/panel.py +588 -0
  71. dokimi-0.1.0/dokimi/eval/plugin_delta.py +245 -0
  72. dokimi-0.1.0/dokimi/eval/question_text.py +84 -0
  73. dokimi-0.1.0/dokimi/eval/ragas_eval.py +370 -0
  74. dokimi-0.1.0/dokimi/eval/reranker.py +166 -0
  75. dokimi-0.1.0/dokimi/eval/stats.py +584 -0
  76. dokimi-0.1.0/dokimi/eval/typed_scorer.py +298 -0
  77. dokimi-0.1.0/dokimi/eval/validity_scoring.py +176 -0
  78. dokimi-0.1.0/dokimi/explore/__init__.py +31 -0
  79. dokimi-0.1.0/dokimi/explore/explorer.py +215 -0
  80. dokimi-0.1.0/dokimi/explore/runner.py +161 -0
  81. dokimi-0.1.0/dokimi/explore/tasks.py +206 -0
  82. dokimi-0.1.0/dokimi/external/__init__.py +18 -0
  83. dokimi-0.1.0/dokimi/external/catalog.py +300 -0
  84. dokimi-0.1.0/dokimi/external/trigger_set.py +259 -0
  85. dokimi-0.1.0/dokimi/gate/__init__.py +4 -0
  86. dokimi-0.1.0/dokimi/gate/critical_bands.py +81 -0
  87. dokimi-0.1.0/dokimi/gate/novelty_gate.py +599 -0
  88. dokimi-0.1.0/dokimi/gate/regression.py +106 -0
  89. dokimi-0.1.0/dokimi/gate/score_gate.py +52 -0
  90. dokimi-0.1.0/dokimi/gate/trust_gate.py +295 -0
  91. dokimi-0.1.0/dokimi/harnesses/__init__.py +25 -0
  92. dokimi-0.1.0/dokimi/harnesses/agent_sandbox.py +539 -0
  93. dokimi-0.1.0/dokimi/harnesses/benchflow.py +869 -0
  94. dokimi-0.1.0/dokimi/harnesses/claude_json.py +174 -0
  95. dokimi-0.1.0/dokimi/harnesses/command.py +279 -0
  96. dokimi-0.1.0/dokimi/harnesses/container_agent.py +383 -0
  97. dokimi-0.1.0/dokimi/harnesses/docker_solver.py +850 -0
  98. dokimi-0.1.0/dokimi/harnesses/egress_proxy.py +410 -0
  99. dokimi-0.1.0/dokimi/harnesses/exploration.py +451 -0
  100. dokimi-0.1.0/dokimi/harnesses/models.py +127 -0
  101. dokimi-0.1.0/dokimi/harnesses/operations.py +111 -0
  102. dokimi-0.1.0/dokimi/harnesses/registry.py +164 -0
  103. dokimi-0.1.0/dokimi/harnesses/runner.py +441 -0
  104. dokimi-0.1.0/dokimi/harnesses/skill_treatment.py +298 -0
  105. dokimi-0.1.0/dokimi/harnesses/solver_stream.py +131 -0
  106. dokimi-0.1.0/dokimi/harnesses/tasks.py +630 -0
  107. dokimi-0.1.0/dokimi/ingest/__init__.py +4 -0
  108. dokimi-0.1.0/dokimi/ingest/chunker.py +26 -0
  109. dokimi-0.1.0/dokimi/ingest/docling_loader.py +85 -0
  110. dokimi-0.1.0/dokimi/ingest/loader.py +22 -0
  111. dokimi-0.1.0/dokimi/intents.py +117 -0
  112. dokimi-0.1.0/dokimi/intents.yaml +127 -0
  113. dokimi-0.1.0/dokimi/llm.py +1112 -0
  114. dokimi-0.1.0/dokimi/mcp/__init__.py +92 -0
  115. dokimi-0.1.0/dokimi/mcp/context7.py +244 -0
  116. dokimi-0.1.0/dokimi/mcp/factory.py +211 -0
  117. dokimi-0.1.0/dokimi/mcp/local_markdown.py +146 -0
  118. dokimi-0.1.0/dokimi/mcp/mcp_protocol.py +215 -0
  119. dokimi-0.1.0/dokimi/mcp/okf_client.py +233 -0
  120. dokimi-0.1.0/dokimi/mcp/url_client.py +173 -0
  121. dokimi-0.1.0/dokimi/mcp/utils.py +67 -0
  122. dokimi-0.1.0/dokimi/metrics/__init__.py +11 -0
  123. dokimi-0.1.0/dokimi/metrics/coverage.py +27 -0
  124. dokimi-0.1.0/dokimi/metrics/example_runner.py +239 -0
  125. dokimi-0.1.0/dokimi/metrics/exploration.py +396 -0
  126. dokimi-0.1.0/dokimi/metrics/freshness_lite.py +27 -0
  127. dokimi-0.1.0/dokimi/metrics/readability.py +46 -0
  128. dokimi-0.1.0/dokimi/metrics/usage.py +225 -0
  129. dokimi-0.1.0/dokimi/novelty/__init__.py +53 -0
  130. dokimi-0.1.0/dokimi/novelty/analyze.py +482 -0
  131. dokimi-0.1.0/dokimi/novelty/atoms.py +536 -0
  132. dokimi-0.1.0/dokimi/novelty/attribute.py +347 -0
  133. dokimi-0.1.0/dokimi/novelty/batching.py +98 -0
  134. dokimi-0.1.0/dokimi/novelty/bundle.py +994 -0
  135. dokimi-0.1.0/dokimi/novelty/classify.py +347 -0
  136. dokimi-0.1.0/dokimi/novelty/client.py +230 -0
  137. dokimi-0.1.0/dokimi/novelty/items.py +220 -0
  138. dokimi-0.1.0/dokimi/novelty/measure.py +539 -0
  139. dokimi-0.1.0/dokimi/novelty/needs.py +242 -0
  140. dokimi-0.1.0/dokimi/novelty/probes.py +474 -0
  141. dokimi-0.1.0/dokimi/novelty/report.py +555 -0
  142. dokimi-0.1.0/dokimi/novelty/retention.py +263 -0
  143. dokimi-0.1.0/dokimi/novelty/routing.py +317 -0
  144. dokimi-0.1.0/dokimi/novelty/shorten.py +334 -0
  145. dokimi-0.1.0/dokimi/novelty/spans.py +315 -0
  146. dokimi-0.1.0/dokimi/novelty/tiers.py +240 -0
  147. dokimi-0.1.0/dokimi/orchestrator/__init__.py +8 -0
  148. dokimi-0.1.0/dokimi/orchestrator/pipeline.py +714 -0
  149. dokimi-0.1.0/dokimi/personas/__init__.py +9 -0
  150. dokimi-0.1.0/dokimi/personas/analyzer.py +358 -0
  151. dokimi-0.1.0/dokimi/personas/generator.py +239 -0
  152. dokimi-0.1.0/dokimi/plugins.py +334 -0
  153. dokimi-0.1.0/dokimi/process.py +766 -0
  154. dokimi-0.1.0/dokimi/products.yaml +336 -0
  155. dokimi-0.1.0/dokimi/questions/__init__.py +10 -0
  156. dokimi-0.1.0/dokimi/questions/artifact.py +266 -0
  157. dokimi-0.1.0/dokimi/questions/chunk_gen.py +262 -0
  158. dokimi-0.1.0/dokimi/questions/llm_gen.py +347 -0
  159. dokimi-0.1.0/dokimi/questions/normalizer.py +116 -0
  160. dokimi-0.1.0/dokimi/questions/panel_reviewer.py +345 -0
  161. dokimi-0.1.0/dokimi/questions/quality_analyzer.py +177 -0
  162. dokimi-0.1.0/dokimi/questions/ragas_seed.py +192 -0
  163. dokimi-0.1.0/dokimi/questions/refiner.py +318 -0
  164. dokimi-0.1.0/dokimi/questions/validator.py +498 -0
  165. dokimi-0.1.0/dokimi/registry.py +103 -0
  166. dokimi-0.1.0/dokimi/report/__init__.py +22 -0
  167. dokimi-0.1.0/dokimi/report/arms_report.py +302 -0
  168. dokimi-0.1.0/dokimi/report/eval_report.py +478 -0
  169. dokimi-0.1.0/dokimi/report/exploration_report.py +115 -0
  170. dokimi-0.1.0/dokimi/report/generator.py +539 -0
  171. dokimi-0.1.0/dokimi/report/json_report.py +15 -0
  172. dokimi-0.1.0/dokimi/report/markdown_report.py +87 -0
  173. dokimi-0.1.0/dokimi/report/matrix_rollup_report.py +57 -0
  174. dokimi-0.1.0/dokimi/report/model_compare.py +1317 -0
  175. dokimi-0.1.0/dokimi/report/plugin_delta_report.py +104 -0
  176. dokimi-0.1.0/dokimi/report/subject_report.py +162 -0
  177. dokimi-0.1.0/dokimi/report/task_runs_report.py +337 -0
  178. dokimi-0.1.0/dokimi/repos/__init__.py +33 -0
  179. dokimi-0.1.0/dokimi/repos/bases.py +57 -0
  180. dokimi-0.1.0/dokimi/repos/compare.py +447 -0
  181. dokimi-0.1.0/dokimi/repos/container.py +217 -0
  182. dokimi-0.1.0/dokimi/repos/events.py +204 -0
  183. dokimi-0.1.0/dokimi/repos/grading.py +253 -0
  184. dokimi-0.1.0/dokimi/repos/harness_profile.py +192 -0
  185. dokimi-0.1.0/dokimi/repos/l0/__init__.py +135 -0
  186. dokimi-0.1.0/dokimi/repos/l0/adapters.py +475 -0
  187. dokimi-0.1.0/dokimi/repos/l0/core.py +601 -0
  188. dokimi-0.1.0/dokimi/repos/l0/markdown.py +68 -0
  189. dokimi-0.1.0/dokimi/repos/manifest.py +541 -0
  190. dokimi-0.1.0/dokimi/repos/profiles/claude-code.yaml +85 -0
  191. dokimi-0.1.0/dokimi/repos/reach.py +454 -0
  192. dokimi-0.1.0/dokimi/repos/report.py +137 -0
  193. dokimi-0.1.0/dokimi/repos/runner.py +369 -0
  194. dokimi-0.1.0/dokimi/repos/selfcheck.py +149 -0
  195. dokimi-0.1.0/dokimi/repos/source.py +449 -0
  196. dokimi-0.1.0/dokimi/repos/static.py +36 -0
  197. dokimi-0.1.0/dokimi/repos/support/no_background.py +80 -0
  198. dokimi-0.1.0/dokimi/repos/workspace.py +329 -0
  199. dokimi-0.1.0/dokimi/runner/__init__.py +4 -0
  200. dokimi-0.1.0/dokimi/runner/compare.py +70 -0
  201. dokimi-0.1.0/dokimi/runner/manifest.py +106 -0
  202. dokimi-0.1.0/dokimi/runner/run.py +165 -0
  203. dokimi-0.1.0/dokimi/runner/spec.py +136 -0
  204. dokimi-0.1.0/dokimi/runner/spec.schema.json +214 -0
  205. dokimi-0.1.0/dokimi/schema_check.py +44 -0
  206. dokimi-0.1.0/dokimi/schema_compat.py +355 -0
  207. dokimi-0.1.0/dokimi/schemas/answers.v1.json +94 -0
  208. dokimi-0.1.0/dokimi/schemas/arms.v1.json +400 -0
  209. dokimi-0.1.0/dokimi/schemas/eval.v1.json +98 -0
  210. dokimi-0.1.0/dokimi/schemas/explore_runs.v1.json +212 -0
  211. dokimi-0.1.0/dokimi/schemas/guidance_reach.v1.json +106 -0
  212. dokimi-0.1.0/dokimi/schemas/harness_profile.v1.json +63 -0
  213. dokimi-0.1.0/dokimi/schemas/matrix_rollup.v1.json +105 -0
  214. dokimi-0.1.0/dokimi/schemas/novelty.v1.json +485 -0
  215. dokimi-0.1.0/dokimi/schemas/plugin_delta.v1.json +68 -0
  216. dokimi-0.1.0/dokimi/schemas/questions.v1.json +93 -0
  217. dokimi-0.1.0/dokimi/schemas/questions.v2.json +230 -0
  218. dokimi-0.1.0/dokimi/schemas/repo_grade.v1.json +20 -0
  219. dokimi-0.1.0/dokimi/schemas/repo_manifest.v1.json +80 -0
  220. dokimi-0.1.0/dokimi/schemas/repo_readiness.v1.json +88 -0
  221. dokimi-0.1.0/dokimi/schemas/repo_static.v1.json +23 -0
  222. dokimi-0.1.0/dokimi/schemas/subject_scorecard.v1.json +109 -0
  223. dokimi-0.1.0/dokimi/schemas/subject_scorecard.v2.json +266 -0
  224. dokimi-0.1.0/dokimi/schemas/task_runs.v1.json +579 -0
  225. dokimi-0.1.0/dokimi/schemas/tool_preference.v1.json +118 -0
  226. dokimi-0.1.0/dokimi/schemas/tool_preference_groups.v1.json +76 -0
  227. dokimi-0.1.0/dokimi/skills/__init__.py +8 -0
  228. dokimi-0.1.0/dokimi/skills/loader.py +154 -0
  229. dokimi-0.1.0/dokimi/subjects/__init__.py +10 -0
  230. dokimi-0.1.0/dokimi/subjects/loader.py +215 -0
  231. dokimi-0.1.0/dokimi/subjects/models.py +63 -0
  232. dokimi-0.1.0/dokimi/subjects/novelty_track.py +123 -0
  233. dokimi-0.1.0/dokimi/subjects/scorecard.py +173 -0
  234. dokimi-0.1.0/dokimi/tool_preference.py +380 -0
  235. dokimi-0.1.0/dokimi/treatments/__init__.py +56 -0
  236. dokimi-0.1.0/dokimi/treatments/arms.py +464 -0
  237. dokimi-0.1.0/dokimi/treatments/base.py +124 -0
  238. dokimi-0.1.0/dokimi/treatments/factory.py +102 -0
  239. dokimi-0.1.0/dokimi/treatments/specs.py +234 -0
  240. dokimi-0.1.0/dokimi/treatments/tools.py +177 -0
  241. dokimi-0.1.0/dokimi/utils.py +178 -0
  242. dokimi-0.1.0/dokimi.egg-info/PKG-INFO +402 -0
  243. dokimi-0.1.0/dokimi.egg-info/SOURCES.txt +407 -0
  244. dokimi-0.1.0/dokimi.egg-info/dependency_links.txt +1 -0
  245. dokimi-0.1.0/dokimi.egg-info/entry_points.txt +2 -0
  246. dokimi-0.1.0/dokimi.egg-info/requires.txt +45 -0
  247. dokimi-0.1.0/dokimi.egg-info/top_level.txt +1 -0
  248. dokimi-0.1.0/pyproject.toml +259 -0
  249. dokimi-0.1.0/setup.cfg +4 -0
  250. dokimi-0.1.0/tests/test_agent_profiles.py +540 -0
  251. dokimi-0.1.0/tests/test_agent_runner.py +471 -0
  252. dokimi-0.1.0/tests/test_agent_sandbox.py +882 -0
  253. dokimi-0.1.0/tests/test_arm_runner.py +1147 -0
  254. dokimi-0.1.0/tests/test_arm_specs.py +159 -0
  255. dokimi-0.1.0/tests/test_arms_report.py +258 -0
  256. dokimi-0.1.0/tests/test_artifact_fixtures.py +125 -0
  257. dokimi-0.1.0/tests/test_artifacts.py +556 -0
  258. dokimi-0.1.0/tests/test_baseline_compare.py +162 -0
  259. dokimi-0.1.0/tests/test_benchflow_harness.py +1704 -0
  260. dokimi-0.1.0/tests/test_benchmark_command_question_set.py +424 -0
  261. dokimi-0.1.0/tests/test_binary_stats.py +175 -0
  262. dokimi-0.1.0/tests/test_caching.py +341 -0
  263. dokimi-0.1.0/tests/test_catalog_command.py +193 -0
  264. dokimi-0.1.0/tests/test_check_changelog_fragment.py +182 -0
  265. dokimi-0.1.0/tests/test_check_release.py +128 -0
  266. dokimi-0.1.0/tests/test_check_smoke_runs.py +73 -0
  267. dokimi-0.1.0/tests/test_check_treatment_batch.py +225 -0
  268. dokimi-0.1.0/tests/test_chunk_gen.py +177 -0
  269. dokimi-0.1.0/tests/test_ci_local.py +341 -0
  270. dokimi-0.1.0/tests/test_cli_help.py +49 -0
  271. dokimi-0.1.0/tests/test_combined_treatment.py +73 -0
  272. dokimi-0.1.0/tests/test_config_drift.py +142 -0
  273. dokimi-0.1.0/tests/test_console_encoding.py +20 -0
  274. dokimi-0.1.0/tests/test_container_agent.py +1176 -0
  275. dokimi-0.1.0/tests/test_context_trace.py +343 -0
  276. dokimi-0.1.0/tests/test_coverage_contract.py +328 -0
  277. dokimi-0.1.0/tests/test_critical_bands.py +129 -0
  278. dokimi-0.1.0/tests/test_dashboard.py +201 -0
  279. dokimi-0.1.0/tests/test_datasets_export.py +143 -0
  280. dokimi-0.1.0/tests/test_default_branches.py +44 -0
  281. dokimi-0.1.0/tests/test_diagnoser.py +147 -0
  282. dokimi-0.1.0/tests/test_docker_solver_harness.py +614 -0
  283. dokimi-0.1.0/tests/test_docker_task_md.py +931 -0
  284. dokimi-0.1.0/tests/test_docling_loader.py +56 -0
  285. dokimi-0.1.0/tests/test_docs_code_refs.py +182 -0
  286. dokimi-0.1.0/tests/test_docs_hooks.py +91 -0
  287. dokimi-0.1.0/tests/test_docs_links.py +194 -0
  288. dokimi-0.1.0/tests/test_empty_question_rule.py +330 -0
  289. dokimi-0.1.0/tests/test_eval_answerer.py +286 -0
  290. dokimi-0.1.0/tests/test_eval_cells.py +193 -0
  291. dokimi-0.1.0/tests/test_eval_judge.py +458 -0
  292. dokimi-0.1.0/tests/test_eval_ragas.py +225 -0
  293. dokimi-0.1.0/tests/test_example_runner.py +190 -0
  294. dokimi-0.1.0/tests/test_example_runner_processes.py +84 -0
  295. dokimi-0.1.0/tests/test_exploration_metrics.py +586 -0
  296. dokimi-0.1.0/tests/test_explore_track.py +602 -0
  297. dokimi-0.1.0/tests/test_external_catalog.py +353 -0
  298. dokimi-0.1.0/tests/test_external_integration.py +111 -0
  299. dokimi-0.1.0/tests/test_gate_call_sites.py +89 -0
  300. dokimi-0.1.0/tests/test_get_llm_bedrock.py +69 -0
  301. dokimi-0.1.0/tests/test_grounding.py +64 -0
  302. dokimi-0.1.0/tests/test_intents.py +180 -0
  303. dokimi-0.1.0/tests/test_judge_panel.py +262 -0
  304. dokimi-0.1.0/tests/test_judge_provider_choices.py +78 -0
  305. dokimi-0.1.0/tests/test_judge_provider_default.py +124 -0
  306. dokimi-0.1.0/tests/test_judge_reliability.py +1480 -0
  307. dokimi-0.1.0/tests/test_judge_response_cache.py +248 -0
  308. dokimi-0.1.0/tests/test_judge_sampling.py +296 -0
  309. dokimi-0.1.0/tests/test_judge_score_validation.py +163 -0
  310. dokimi-0.1.0/tests/test_judge_sequential_design.py +194 -0
  311. dokimi-0.1.0/tests/test_judge_temperature_entry_points.py +206 -0
  312. dokimi-0.1.0/tests/test_judge_transport_retry.py +133 -0
  313. dokimi-0.1.0/tests/test_judge_validity.py +1423 -0
  314. dokimi-0.1.0/tests/test_llm.py +670 -0
  315. dokimi-0.1.0/tests/test_llm_delegates.py +100 -0
  316. dokimi-0.1.0/tests/test_llm_gen_extra.py +168 -0
  317. dokimi-0.1.0/tests/test_matrix_rollup.py +415 -0
  318. dokimi-0.1.0/tests/test_mcp_context7.py +219 -0
  319. dokimi-0.1.0/tests/test_mcp_factory.py +225 -0
  320. dokimi-0.1.0/tests/test_mcp_local_markdown.py +106 -0
  321. dokimi-0.1.0/tests/test_mcp_okf_client.py +220 -0
  322. dokimi-0.1.0/tests/test_mcp_protocol.py +109 -0
  323. dokimi-0.1.0/tests/test_mcp_url_client.py +143 -0
  324. dokimi-0.1.0/tests/test_metrics_usage.py +422 -0
  325. dokimi-0.1.0/tests/test_model_compare.py +886 -0
  326. dokimi-0.1.0/tests/test_model_defaults.py +191 -0
  327. dokimi-0.1.0/tests/test_mypy_config.py +68 -0
  328. dokimi-0.1.0/tests/test_normalizer.py +104 -0
  329. dokimi-0.1.0/tests/test_novelty_analyze.py +700 -0
  330. dokimi-0.1.0/tests/test_novelty_atoms.py +502 -0
  331. dokimi-0.1.0/tests/test_novelty_attribute.py +198 -0
  332. dokimi-0.1.0/tests/test_novelty_bundle.py +885 -0
  333. dokimi-0.1.0/tests/test_novelty_bundle_guards.py +279 -0
  334. dokimi-0.1.0/tests/test_novelty_bundle_kinds.py +71 -0
  335. dokimi-0.1.0/tests/test_novelty_cli.py +593 -0
  336. dokimi-0.1.0/tests/test_novelty_coverage_parity.py +193 -0
  337. dokimi-0.1.0/tests/test_novelty_gate.py +476 -0
  338. dokimi-0.1.0/tests/test_novelty_items.py +253 -0
  339. dokimi-0.1.0/tests/test_novelty_journey.py +220 -0
  340. dokimi-0.1.0/tests/test_novelty_measure.py +262 -0
  341. dokimi-0.1.0/tests/test_novelty_probes.py +367 -0
  342. dokimi-0.1.0/tests/test_novelty_routing.py +395 -0
  343. dokimi-0.1.0/tests/test_novelty_shorten.py +173 -0
  344. dokimi-0.1.0/tests/test_novelty_silent_defaults.py +724 -0
  345. dokimi-0.1.0/tests/test_novelty_spans.py +95 -0
  346. dokimi-0.1.0/tests/test_novelty_spend_cap.py +145 -0
  347. dokimi-0.1.0/tests/test_novelty_stats_point_biserial.py +49 -0
  348. dokimi-0.1.0/tests/test_novelty_tiers.py +266 -0
  349. dokimi-0.1.0/tests/test_outcomes_plugin.py +279 -0
  350. dokimi-0.1.0/tests/test_output_shaper_plugin.py +243 -0
  351. dokimi-0.1.0/tests/test_packaging.py +151 -0
  352. dokimi-0.1.0/tests/test_panel.py +522 -0
  353. dokimi-0.1.0/tests/test_panel_properties.py +162 -0
  354. dokimi-0.1.0/tests/test_panel_reply_validation.py +72 -0
  355. dokimi-0.1.0/tests/test_personas_analyzer.py +311 -0
  356. dokimi-0.1.0/tests/test_personas_generator.py +320 -0
  357. dokimi-0.1.0/tests/test_pipeline_question_set.py +1223 -0
  358. dokimi-0.1.0/tests/test_plugin_delta.py +243 -0
  359. dokimi-0.1.0/tests/test_pr26_properties.py +93 -0
  360. dokimi-0.1.0/tests/test_process.py +837 -0
  361. dokimi-0.1.0/tests/test_product_registry.py +181 -0
  362. dokimi-0.1.0/tests/test_question_ids.py +139 -0
  363. dokimi-0.1.0/tests/test_question_panel_reviewer.py +185 -0
  364. dokimi-0.1.0/tests/test_question_quality_analyzer.py +192 -0
  365. dokimi-0.1.0/tests/test_questions_artifact.py +786 -0
  366. dokimi-0.1.0/tests/test_questions_llm_gen.py +209 -0
  367. dokimi-0.1.0/tests/test_questions_ragas.py +256 -0
  368. dokimi-0.1.0/tests/test_questions_validator.py +579 -0
  369. dokimi-0.1.0/tests/test_ragas_runtime.py +72 -0
  370. dokimi-0.1.0/tests/test_refiner.py +255 -0
  371. dokimi-0.1.0/tests/test_regression.py +120 -0
  372. dokimi-0.1.0/tests/test_replicates.py +325 -0
  373. dokimi-0.1.0/tests/test_repo_bases.py +181 -0
  374. dokimi-0.1.0/tests/test_repo_compare.py +594 -0
  375. dokimi-0.1.0/tests/test_repo_l0.py +295 -0
  376. dokimi-0.1.0/tests/test_repo_l0_cases.py +422 -0
  377. dokimi-0.1.0/tests/test_repo_manifest.py +591 -0
  378. dokimi-0.1.0/tests/test_repo_reach.py +797 -0
  379. dokimi-0.1.0/tests/test_repo_reach_edges.py +160 -0
  380. dokimi-0.1.0/tests/test_repo_run.py +541 -0
  381. dokimi-0.1.0/tests/test_repo_runner.py +550 -0
  382. dokimi-0.1.0/tests/test_report_generator_labels.py +50 -0
  383. dokimi-0.1.0/tests/test_run_manifest.py +76 -0
  384. dokimi-0.1.0/tests/test_runner_and_report.py +293 -0
  385. dokimi-0.1.0/tests/test_runner_run.py +107 -0
  386. dokimi-0.1.0/tests/test_runner_spec.py +113 -0
  387. dokimi-0.1.0/tests/test_sampling_forwarding.py +96 -0
  388. dokimi-0.1.0/tests/test_schema_compat.py +391 -0
  389. dokimi-0.1.0/tests/test_score_gate.py +65 -0
  390. dokimi-0.1.0/tests/test_skill_lift_summary.py +286 -0
  391. dokimi-0.1.0/tests/test_skill_loader.py +80 -0
  392. dokimi-0.1.0/tests/test_skill_selection.py +670 -0
  393. dokimi-0.1.0/tests/test_skill_treatment.py +487 -0
  394. dokimi-0.1.0/tests/test_stack_health.py +88 -0
  395. dokimi-0.1.0/tests/test_stats.py +528 -0
  396. dokimi-0.1.0/tests/test_stats_properties.py +188 -0
  397. dokimi-0.1.0/tests/test_subjects.py +1064 -0
  398. dokimi-0.1.0/tests/test_sync_skilltext_profile.py +239 -0
  399. dokimi-0.1.0/tests/test_task_formats.py +1015 -0
  400. dokimi-0.1.0/tests/test_task_harnesses.py +919 -0
  401. dokimi-0.1.0/tests/test_task_runs_report.py +267 -0
  402. dokimi-0.1.0/tests/test_tasks_command.py +137 -0
  403. dokimi-0.1.0/tests/test_text_io_encoding.py +58 -0
  404. dokimi-0.1.0/tests/test_tool_preference.py +803 -0
  405. dokimi-0.1.0/tests/test_treatments.py +275 -0
  406. dokimi-0.1.0/tests/test_trust_gate.py +242 -0
  407. dokimi-0.1.0/tests/test_typed_scorer.py +558 -0
  408. dokimi-0.1.0/tests/test_utils_get_llm.py +30 -0
  409. dokimi-0.1.0/tests/test_writers_stop_on_rejected_save.py +94 -0
dokimi-0.1.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Intel Corporation
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
dokimi-0.1.0/NOTICE ADDED
@@ -0,0 +1,6 @@
1
+ dokimi
2
+ Copyright 2026 Intel Corporation
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (the "License").
5
+ You may obtain a copy of the License in the LICENSE file in this repository or
6
+ at http://www.apache.org/licenses/LICENSE-2.0.
dokimi-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,402 @@
1
+ Metadata-Version: 2.4
2
+ Name: dokimi
3
+ Version: 0.1.0
4
+ Summary: Measures whether a skill, MCP doc source, documentation set or agent profile actually improves AI-agent answers and task outcomes
5
+ Author: Intel Corporation
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/intel/dokimi
8
+ Project-URL: Documentation, https://intel.github.io/dokimi/
9
+ Project-URL: Repository, https://github.com/intel/dokimi
10
+ Project-URL: Issues, https://github.com/intel/dokimi/issues
11
+ Project-URL: Changelog, https://github.com/intel/dokimi/blob/main/dokimi/CHANGELOG.md
12
+ Keywords: documentation,benchmark,evaluation,llm,rag
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Software Development :: Quality Assurance
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ License-File: NOTICE
25
+ Requires-Dist: PyYAML<7,>=6.0.1
26
+ Requires-Dist: jsonschema<5,>=4.20
27
+ Requires-Dist: litellm>=1.105.0
28
+ Requires-Dist: httpx>=0.27.0
29
+ Requires-Dist: numpy>=1.24.0
30
+ Requires-Dist: scipy>=1.11.0
31
+ Requires-Dist: PyGithub>=2.1.0
32
+ Requires-Dist: datasets<6,>=2.20
33
+ Requires-Dist: openai<3,>=1.51
34
+ Provides-Extra: dev
35
+ Requires-Dist: pytest>=7.4.0; extra == "dev"
36
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
37
+ Requires-Dist: pytest-mock>=3.12.0; extra == "dev"
38
+ Requires-Dist: pytest-socket>=0.7; extra == "dev"
39
+ Requires-Dist: pytest-timeout>=2.2; extra == "dev"
40
+ Requires-Dist: pytest-randomly>=3.15; extra == "dev"
41
+ Requires-Dist: pytest-xdist>=3.6; extra == "dev"
42
+ Requires-Dist: diff-cover>=10.0; extra == "dev"
43
+ Requires-Dist: ruff==0.17.0; extra == "dev"
44
+ Requires-Dist: mypy>=1.8; extra == "dev"
45
+ Requires-Dist: types-PyYAML; extra == "dev"
46
+ Requires-Dist: types-jsonschema; extra == "dev"
47
+ Requires-Dist: scriv>=1.5; extra == "dev"
48
+ Requires-Dist: dokimi[ragas]; extra == "dev"
49
+ Provides-Extra: ragas
50
+ Requires-Dist: ragas<0.4,>=0.3.0; extra == "ragas"
51
+ Requires-Dist: langchain-community<0.4.2; extra == "ragas"
52
+ Requires-Dist: langchain-anthropic<2,>=1.0; extra == "ragas"
53
+ Requires-Dist: langchain-openai<2,>=1.0; extra == "ragas"
54
+ Requires-Dist: langchain-core<2,>=1.0; extra == "ragas"
55
+ Provides-Extra: ocr
56
+ Requires-Dist: docling>=2.0; extra == "ocr"
57
+ Provides-Extra: mcp
58
+ Requires-Dist: mcp>=1.0; extra == "mcp"
59
+ Provides-Extra: embeddings
60
+ Requires-Dist: sentence-transformers>=2.2; extra == "embeddings"
61
+ Provides-Extra: typed-scorer
62
+ Requires-Dist: laya>=0.3.24; extra == "typed-scorer"
63
+ Requires-Dist: torch>=2.0; extra == "typed-scorer"
64
+ Dynamic: license-file
65
+
66
+ <!--
67
+ Copyright (C) 2026 Intel Corporation
68
+ SPDX-License-Identifier: Apache-2.0
69
+ -->
70
+
71
+ # Dokimi
72
+
73
+ > **This is the whole project.** It evaluates whether a given skill / MCP doc
74
+ > source / agent profile actually improves agent answers, and produces the
75
+ > evidence (a scorecard) that decides whether the artifact is worth shipping.
76
+ > See the [repository overview](https://github.com/intel/dokimi/blob/main/README.md) for the short version.
77
+ >
78
+ > **Documentation: <https://intel.github.io/dokimi/>** (the [`docs/`](https://github.com/intel/dokimi/blob/main/dokimi/docs/README.md)
79
+ > pages plus a generated CLI and API reference).
80
+
81
+ `dokimi` measures whether a skill, MCP doc source, documentation set or
82
+ agent profile actually improves a model's or coding agent's answers and task
83
+ outcomes. It runs the same question or task set with and without one controlled
84
+ context layer and reports the delta together with its significance.
85
+
86
+ Context layers it can measure: local Markdown/URL documentation, Context7 and
87
+ real MCP servers, skills (`SKILL.md` and bundles), agent profiles (system
88
+ prompts), plugins, and whole code repositories with their own tasks and graders
89
+ (manifest validation and pinned sources today; the task-run contract is proposed).
90
+
91
+ Evidence tracks:
92
+
93
+ | Track | Question it answers | Guide |
94
+ |---|---|---|
95
+ | Context benchmark | Do answers to a fixed question set improve with the artifact? | [user-flow.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/user-flow.md), [quickstart.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/quickstart.md) |
96
+ | Treatment arms | Which of several docs / MCP / skill / profile arms helps, and by how much? | [evaluating-treatments.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/evaluating-treatments.md) |
97
+ | Executable tasks | Does the agent produce code that builds and passes tests in Docker? | [coding-harnesses.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/coding-harnesses.md) |
98
+ | Exploration (ExploreBench) | Can the agent locate the right files and line ranges? | [external-content.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/external-content.md) |
99
+ | Content novelty | What does a skill *add* to a given model, and what can be cut? | [skill-novelty.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/skill-novelty.md) |
100
+ | Repository subjects | How well does an agent work inside a given repository? | [repo-evaluation-contract.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/repo-evaluation-contract.md) |
101
+ | Context window | What did the agent's context hold: start-up load, growth, compactions, tool-output weight? | [context-window.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/context-window.md) |
102
+ | Static docs checks | Are the docs well-structured, fresh, readable, with runnable examples? | [Static benchmark metrics](#static-benchmark-metrics) |
103
+
104
+ ### Three questions you can ask
105
+
106
+ The arm comparison is the default, and two tracks ask a different question about
107
+ the same material. Pick by what you are about to do with the answer:
108
+
109
+ | Question | Use | Command |
110
+ |---|---|---|
111
+ | Does this artifact help, and is the delta real? | treatment arms | `cli.py arms run` |
112
+ | *Which parts* of it help, and which parts does the model already know? | content novelty | `cli.py novelty analyze` |
113
+ | Does a repository's own guidance reach the agent working in it? | repository as subject | `cli.py repo reach` |
114
+
115
+ The first ships or cuts an artifact; the second edits one; the third measures a
116
+ codebase instead of a document.
117
+ [docs/README.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/README.md) explains the three in full and
118
+ [docs/architecture.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/architecture.md) maps them to modules.
119
+
120
+ The framework is content-agnostic: question sets, tasks, skills and products are
121
+ passed in by path or registered in `products.yaml`. The bundled registry uses
122
+ oneTBB, oneDAL and oneMKL as worked examples.
123
+
124
+ The project is pre-1.0; interfaces and artifact schemas may still change.
125
+
126
+ ## Requirements and setup
127
+
128
+ - Python 3.11–3.14.
129
+ - API keys for the models you run, read from the environment:
130
+ `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or any other
131
+ [LiteLLM](https://docs.litellm.ai/docs/providers) provider (for example
132
+ `AWS_REGION` + `AWS_BEARER_TOKEN_BEDROCK` for Bedrock). `GITHUB_TOKEN` is
133
+ optional and raises the persona-discovery rate limit.
134
+ - Docker, only for the executable-task, harness and repository tracks.
135
+ - Optional extras: `ragas` (`eval ragas`, `answers generate --ragas`), `ocr`
136
+ (Docling ingestion) and `mcp` (real MCP servers).
137
+
138
+ ```bash
139
+ pip install dokimi # the released package and the `dokimi` command
140
+ ```
141
+
142
+ From a source checkout (to contribute, or to run the bundled tasks):
143
+
144
+ ```bash
145
+ pip install -e ".[dev]" # installs the `dokimi` command plus test tooling
146
+ # or, without installing the package:
147
+ pip install -r requirements.txt -r requirements-test.txt
148
+ ```
149
+
150
+ The examples below use `python cli.py …` from a checkout; the installed
151
+ `dokimi …` command is equivalent. For what a run costs in API calls,
152
+ see the [cost estimate](https://github.com/intel/dokimi/blob/main/dokimi/docs/quickstart.md#cost-estimate).
153
+
154
+ ## Quick start
155
+
156
+ Run the canonical context benchmark:
157
+
158
+ ```bash
159
+ python cli.py benchmark preflight --target onetbb
160
+ python cli.py benchmark run --target onetbb
161
+ ```
162
+
163
+ Outputs go to `results/onetbb_final/` by default. The default comparison is one fixed semantic retrieval config (`top_k=3`) with `without_docs` vs `with_docs` arms.
164
+
165
+ Optional static documentation gate for Markdown/code example quality:
166
+
167
+ ```bash
168
+ python cli.py run \
169
+ --root . \
170
+ --spec benchmarks/spec.v1.yaml \
171
+ --out-json baselines/current.json \
172
+ --out-md reports/current.md
173
+ ```
174
+
175
+ Run the test suite:
176
+
177
+ ```bash
178
+ python -m pytest -q
179
+ ```
180
+
181
+ For the LLM evaluation pipeline (answers, judging, dashboard), see [docs/quickstart.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/quickstart.md). For benchmark invocation and comparison recipes, see [docs/benchmarking-and-comparison.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/benchmarking-and-comparison.md). A high-level architecture map is in [docs/architecture.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/architecture.md), and [docs/README.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/README.md) is the documentation index.
182
+
183
+ ## Main CLI areas
184
+
185
+ The top-level CLI is `python cli.py` (or `dokimi` once installed):
186
+
187
+ ```text
188
+ Context benchmark
189
+ benchmark Preflight and run the benchmark for registered targets
190
+ evaluate Run the full pipeline in one command
191
+ personas Discover and approve target user personas
192
+ questions Generate, analyze, refine, and panel-review questions
193
+ answers Generate context-arm and baseline answers
194
+ eval Score answers, run RAGAS, or use a multi-judge panel
195
+ arms Compare treatment arms (docs / MCP / skills / profiles)
196
+ subjects Run a subject descriptor (artifact + suite) into a scorecard
197
+
198
+ Executable and agentic tracks
199
+ tasks Run Docker coding tasks through Codex, Claude Code or Harbor harnesses
200
+ explore Run file/line localization tasks (ExploreBench)
201
+ repo Validate a repository's repo-eval.yaml, fetch pinned sources, probe guidance reach
202
+ catalog Check which skills/tasks in an external checkout load cleanly
203
+ context Read a run's context window from its trace (no LLM call)
204
+
205
+ Content analysis
206
+ novelty Measure what an artifact's content adds to a model
207
+ run Run the static documentation benchmark
208
+ ingest Convert PDF/Office/HTML to Markdown via Docling
209
+
210
+ Results and registries
211
+ report Render reports (incl. model-compare)
212
+ compare Compare static benchmark snapshots
213
+ baseline Save and compare evaluation baselines
214
+ dashboard Generate dashboard Markdown/JSON
215
+ dataset Export artifacts to JSONL/Parquet/Hugging Face
216
+ library List/show registered products and intent domains (alias: product)
217
+ ```
218
+
219
+ That is the curated set; `python cli.py --help` lists every group.
220
+
221
+ Use `--help` on any command for detailed options, for example:
222
+
223
+ ```bash
224
+ python cli.py questions --help
225
+ python cli.py eval --help
226
+ python cli.py dashboard generate --help
227
+ ```
228
+
229
+ For end-to-end benchmark and comparison commands, including static snapshots,
230
+ LLM context-arm vs baseline runs, fair multi-model comparisons, treatment arms,
231
+ dashboards, and baselines, see
232
+ [docs/benchmarking-and-comparison.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/benchmarking-and-comparison.md).
233
+
234
+ ## Product and intent registries
235
+
236
+ Two YAML registries, bundled in the package (`dokimi/products.yaml`,
237
+ `dokimi/intents.yaml`), describe what the benchmark can evaluate:
238
+
239
+ - **`products.yaml`** — *what products exist*: identity, description, repo, and
240
+ doc sources for each product (oneTBB, oneMKL, VTune, dpnp, …). Used by
241
+ `python cli.py library …` (alias: `product`) and `python cli.py benchmark …`.
242
+ - **`intents.yaml`** — *what user problems exist*: broad scenario domains
243
+ (data science, machine learning, performance optimization, debugging, …),
244
+ each mapped to the products that serve it, with example user intents. A
245
+ domain may span several products, so a domain is the unit you pick when you
246
+ want to know which product an agent should reach for.
247
+
248
+ The domain→product mapping lives only in `intents.yaml`;
249
+ `python -m dokimi.config_check` (run in CI) fails if it references an
250
+ unregistered product, or if `dokimi/config/products.yaml` drifts from `products.yaml`.
251
+ Explore the mapping with:
252
+
253
+ ```bash
254
+ python cli.py library intents # list domains + products
255
+ python cli.py library list --domain data-science # products for a domain
256
+ python cli.py library show vtune # includes the product's domains
257
+ ```
258
+
259
+ ## Static benchmark metrics
260
+
261
+ The default static benchmark is configured in `benchmarks/spec.v1.yaml` and currently uses four active metrics:
262
+
263
+ | Metric | Purpose |
264
+ | --- | --- |
265
+ | `coverage` | Checks Markdown structure: headings, code blocks, and body content. |
266
+ | `freshness_lite` | Scores files by modification age. |
267
+ | `readability` | Estimates text readability with a Flesch-Kincaid-style score. |
268
+ | `example_pass_rate` | Executes supported fenced code examples in isolation. |
269
+
270
+ Weights are normalized across enabled metrics. The benchmark also supports soft gates, hard gates, critical bands, and regression thresholds. Hard gates and critical bands are enforced only when `--strict` is passed.
271
+
272
+ ## LLM and treatment evaluation workflow
273
+
274
+ The LLM workflow is designed to answer a practical question: does documentation, a skill, an MCP source, or an agent profile improve model answers and task outcomes?
275
+
276
+ A typical one-command benchmark flow is:
277
+
278
+ ```bash
279
+ python cli.py benchmark preflight --target onetbb
280
+ python cli.py benchmark run --target onetbb --multi-run 3
281
+ ```
282
+
283
+ The pipeline reads a golden set under `--questions-root` or a set from `--questions-from`, or else discovers (or loads) personas and generates (or reuses) questions from them; it then answers each question in context-arm and baseline conditions, scores both answers with an independent judge, and writes model metadata, token usage, `question_set_hash`, reports, and trust-gate signals. For compatibility, persisted answer/evaluation JSON still uses the legacy `with_docs` and `without_docs` keys for those two conditions.
284
+
285
+ For fair multi-model comparisons, generate one question set and reuse it:
286
+
287
+ ```bash
288
+ python cli.py benchmark run --target onedal --output-dir results/onedal_seed
289
+ python cli.py benchmark run --target onedal --questions-from results/onedal_seed --model gpt-6-astra
290
+ python cli.py benchmark run --target onedal --questions-from results/onedal_seed --model claude-opus-5-5 --provider anthropic
291
+ ```
292
+
293
+ Generated artifacts — answer runs, judge scores and benchmark snapshots — go under `results/`, `reports/`, `answers/`, `eval/` or `baselines/`; those paths are git-ignored and no captured run is committed. Curated, version-controlled *inputs* live under `data/` (`data/skills/fastcontext/`, `data/agent_profiles/`, `data/explore_tasks/`) — see [`data/README.md`](https://github.com/intel/dokimi/blob/main/dokimi/data/README.md). Product skills, question sets and personas are evaluation content: they come from a separate content repository and are passed in by path (`skill:<path>`, `--questions <path>`, `--questions-root <dir>`).
294
+
295
+ See [docs/methodology.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/methodology.md) for the detailed model roles, question types, difficulty levels, task workflow, and trust checks.
296
+
297
+ ## Executable tasks
298
+
299
+ Terminal-bench-style tasks are the executable side of the benchmark: they validate not just text answers but working code and measurable behavior, so they can test whether docs, skills, or an agent profile actually improve an agent's ability to produce correct and performant code.
300
+
301
+ The task definitions are evaluation content and live in a separate content repository. Run them from any checkout by naming its task root:
302
+
303
+ ```bash
304
+ python cli.py tasks run --tasks-root <checkout>/evaluation/harbor/tasks \
305
+ --tasks <task-name> --harnesses docker-oracle --out-json results/runs.json
306
+ ```
307
+
308
+ The directory layout and `task.toml` fields a task must provide are specified in [docs/contributing-terminal-bench-task.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/contributing-terminal-bench-task.md). CI runs a real external catalog through the same harness (see [CI](#ci) below) with network disabled at solve and verify time.
309
+
310
+ ## Repository layout
311
+
312
+ ```text
313
+ cli.py Single entry point for all CLI commands
314
+ benchmarks/ Static benchmark spec (its schema is dokimi/runner/spec.schema.json)
315
+ changelog.d/ Changelog fragments, one per PR (see changelog.d/README.md)
316
+ dokimi/ Main Python package
317
+ products.yaml Product registry: identity + doc sources per product
318
+ intents.yaml Intent registry: problem/task domains mapped to products
319
+ config/ LLM/runtime configuration for the eval track
320
+ agent_profiles/ Agent persona prompt loader
321
+ commands/ CLI subcommand definitions
322
+ context/ Context window of a run, read from its harness trace
323
+ dashboard/ Dashboard aggregation/rendering
324
+ eval/ Answer generation, judges, panels, RAGAS, arm runner
325
+ explore/ ExploreBench localization track
326
+ external/ External skill/task catalog scanning
327
+ gate/ Soft/hard gates and regression classification
328
+ harnesses/ Coding-agent harness adapters (Codex, Claude Code, Harbor)
329
+ ingest/ Markdown loading and chunking
330
+ mcp/ Documentation source clients (incl. MCP protocol)
331
+ metrics/ Static documentation metrics
332
+ novelty/ Content-novelty engine (atoms, probes, shortening)
333
+ orchestrator/ Pipeline orchestration
334
+ personas/ Persona generation/analysis (synthetic users)
335
+ questions/ Question generation, validation, refinement
336
+ repos/ Repository subjects: manifest, sources, validation, harness profiles, reach probe
337
+ report/ JSON/Markdown report generation
338
+ runner/ Benchmark orchestration and the spec schema
339
+ schemas/ JSON Schemas for every persisted artifact
340
+ skills/ SKILL.md loader
341
+ subjects/ Subject descriptors and scorecards
342
+ treatments/ Treatment-arm abstraction (docs/MCP/skills/profiles)
343
+ data/ Curated, version-controlled benchmark inputs (see data/README.md)
344
+ skills/fastcontext/ The SKILL.md fixture the loader tests and examples use
345
+ agent_profiles/ Agent persona (system) prompt fixtures
346
+ explore_tasks/ Localization tasks with known-good references
347
+ docs/ Documentation (full index: docs/README.md)
348
+ README.md Concept overview and documentation index
349
+ quickstart.md End-to-end LLM evaluation pipeline
350
+ external-content.md Pointing the framework at your own questions, tasks, skills
351
+ evaluating-treatments.md
352
+ Comparing docs / MCP / skill / profile arms
353
+ coding-harnesses.md Executable tasks through coding-agent harnesses
354
+ context-window.md What a run's context window held, from its trace
355
+ skill-novelty.md What a skill adds to a model
356
+ repo-evaluation-contract.md
357
+ Evaluating a whole repository as a subject
358
+ architecture.md Module map and data flow
359
+ adding-doc-source.md Local/URL/custom doc sources
360
+ contributing-metric.md How to add a static documentation metric
361
+ contributing-terminal-bench-task.md
362
+ Executable task format (tasks live in the content repo)
363
+ methodology.md Model roles, question types, judging, trust checks
364
+ skill-novelty.md What an artifact adds to a model, and how to shorten it
365
+ skill-novelty-evidence.md
366
+ The study the novelty defaults come from
367
+ repo-evaluation-contract.md
368
+ What a repository supplies to be evaluated as a subject
369
+ tests/ Pytest suite
370
+ ```
371
+
372
+ ## CI
373
+
374
+ Among the checks GitHub Actions runs on pull requests (more in
375
+ [docs/architecture.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/architecture.md#ci)):
376
+
377
+ 1. `test` — installs `requirements.lock.txt` and runs pytest offline; on a PR, 80% of the changed lines must be covered (coverage measured on Python 3.14 only).
378
+ 2. `benchmark` — runs the static agent-quality benchmark in strict mode (a gate or band failure fails the job) and uploads artifacts.
379
+ 3. `External catalog smoke test` — clones a pinned public content catalog, scans it, and drives one of its real tasks through the `docker-oracle` harness and the `docker-probe` isolation probe, asserting both pass rates.
380
+ 4. `Build docs (strict)` — builds the documentation site with `mkdocs build --strict`, so a broken link or a list that renders differently than on GitHub fails it; a push to `main` publishes the site to GitHub Pages.
381
+
382
+ ## Repository hygiene
383
+
384
+ Do not commit generated logs, coverage databases, tarballs, local caches, or one-off experiment outputs. Keep generated benchmark artifacts either ignored locally or explicitly curated as fixtures. Use pull requests for all changes to `main`.
385
+
386
+ Status reports, phase plans, and other development-history notes do not belong in the repository — work-in-progress should live in PR descriptions and issues.
387
+
388
+ ## Contributing
389
+
390
+ - Run `python -m pytest -q` before opening a PR.
391
+ - See [docs/contributing-metric.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/contributing-metric.md) and
392
+ [docs/contributing-terminal-bench-task.md](https://github.com/intel/dokimi/blob/main/dokimi/docs/contributing-terminal-bench-task.md)
393
+ for the two main extension flows.
394
+ - Keep generated artifacts under `reports/` or `results/` (both ignored).
395
+ Only commit curated fixtures that are part of a reproducible benchmark.
396
+
397
+ ## License
398
+
399
+ Licensed under the [Apache License, Version 2.0](https://github.com/intel/dokimi/blob/main/LICENSE). See [NOTICE](https://github.com/intel/dokimi/blob/main/NOTICE)
400
+ for attribution. Contributions are accepted under the same license — see
401
+ [CONTRIBUTING.md](https://github.com/intel/dokimi/blob/main/dokimi/CONTRIBUTING.md). To report a security issue, see
402
+ [SECURITY.md](https://github.com/intel/dokimi/blob/main/dokimi/SECURITY.md).