whykit 0.3.4__tar.gz → 0.4.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 (304) hide show
  1. {whykit-0.3.4 → whykit-0.4.0}/CHANGELOG.md +107 -1
  2. whykit-0.4.0/PKG-INFO +150 -0
  3. whykit-0.4.0/README.md +113 -0
  4. whykit-0.4.0/examples/agent-eval/cases.jsonl +3 -0
  5. whykit-0.4.0/examples/agent-eval/responses.jsonl +3 -0
  6. whykit-0.4.0/examples/github-import/README.md +27 -0
  7. whykit-0.4.0/examples/github-import/issue.json +13 -0
  8. whykit-0.4.0/examples/github-import/pull-request.json +25 -0
  9. whykit-0.4.0/examples/github-import/workflow-run.json +17 -0
  10. whykit-0.4.0/examples/outcomes/00-context/artifacts/E-004/0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f.json +9 -0
  11. whykit-0.4.0/examples/outcomes/00-context/artifacts/E-005/fab761d309bb12500028ff74d7b094c3e62028c2148ade332442d7b17194e6ca.json +9 -0
  12. whykit-0.4.0/examples/outcomes/00-context/claims/c-001.md +39 -0
  13. whykit-0.4.0/examples/outcomes/00-context/claims/c-002.md +39 -0
  14. whykit-0.4.0/examples/outcomes/00-context/evidence-register.md +28 -0
  15. whykit-0.4.0/examples/outcomes/00-context/observations/E-004.json +11 -0
  16. whykit-0.4.0/examples/outcomes/00-context/observations/E-005.json +11 -0
  17. whykit-0.4.0/examples/outcomes/00-context/outcomes/o-001.md +50 -0
  18. whykit-0.4.0/examples/outcomes/00-context/review-log.md +24 -0
  19. whykit-0.4.0/examples/outcomes/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +65 -0
  20. whykit-0.4.0/examples/outcomes/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +62 -0
  21. whykit-0.4.0/examples/outcomes/06-decisions/d-003-keep-claims-and-source-versions-separate-from-approved-reasoning.md +73 -0
  22. whykit-0.4.0/examples/outcomes/06-decisions/d-004-record-source-observations-separately-from-immutable-captures.md +66 -0
  23. whykit-0.4.0/examples/outcomes/06-decisions/d-005-keep-measured-outcomes-separate-from-approvals-and-causal-claims.md +67 -0
  24. whykit-0.4.0/examples/outcomes/06-decisions/decision-log.md +23 -0
  25. whykit-0.4.0/examples/outcomes/AGENTS.md +5 -0
  26. whykit-0.4.0/examples/outcomes/Home.md +23 -0
  27. whykit-0.4.0/examples/outcomes/README.md +41 -0
  28. whykit-0.4.0/examples/outcomes/outcome-input.json +31 -0
  29. whykit-0.4.0/examples/outcomes/proposal.json +7 -0
  30. whykit-0.4.0/examples/outcomes/whykit.toml +5 -0
  31. whykit-0.4.0/examples/provenance/00-context/artifacts/E-004/0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f.json +9 -0
  32. whykit-0.4.0/examples/provenance/00-context/claims/c-001.md +39 -0
  33. whykit-0.4.0/examples/provenance/00-context/evidence-register.md +27 -0
  34. whykit-0.4.0/examples/provenance/00-context/observations/E-004.json +11 -0
  35. whykit-0.4.0/examples/provenance/00-context/review-log.md +24 -0
  36. whykit-0.4.0/examples/provenance/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +65 -0
  37. whykit-0.4.0/examples/provenance/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +62 -0
  38. whykit-0.4.0/examples/provenance/06-decisions/d-003-keep-claims-and-source-versions-separate-from-approved-reasoning.md +73 -0
  39. whykit-0.4.0/examples/provenance/06-decisions/d-004-record-source-observations-separately-from-immutable-captures.md +66 -0
  40. whykit-0.4.0/examples/provenance/06-decisions/decision-log.md +22 -0
  41. whykit-0.4.0/examples/provenance/AGENTS.md +5 -0
  42. whykit-0.4.0/examples/provenance/Home.md +23 -0
  43. whykit-0.4.0/examples/provenance/README.md +40 -0
  44. whykit-0.4.0/examples/provenance/proposal.json +7 -0
  45. whykit-0.4.0/examples/provenance/whykit.toml +5 -0
  46. {whykit-0.3.4 → whykit-0.4.0}/pyproject.toml +3 -2
  47. whykit-0.4.0/schemas/agent-eval-result.schema.json +116 -0
  48. whykit-0.4.0/schemas/agent-preflight-result.schema.json +162 -0
  49. whykit-0.4.0/schemas/claim-list.schema.json +224 -0
  50. whykit-0.4.0/schemas/claim-provenance.schema.json +56 -0
  51. whykit-0.4.0/schemas/claim-record.schema.json +23 -0
  52. whykit-0.4.0/schemas/claim-show.schema.json +232 -0
  53. whykit-0.4.0/schemas/claim-verification.schema.json +77 -0
  54. whykit-0.4.0/schemas/compiled-context.schema.json +955 -0
  55. whykit-0.4.0/schemas/context-verification.schema.json +16 -0
  56. whykit-0.4.0/schemas/deep-impact.schema.json +283 -0
  57. {whykit-0.3.4 → whykit-0.4.0}/schemas/document-frontmatter.schema.json +2 -0
  58. whykit-0.4.0/schemas/downgrade-check.schema.json +15 -0
  59. whykit-0.4.0/schemas/evidence-artifact.schema.json +18 -0
  60. whykit-0.4.0/schemas/github-import-receipt.schema.json +298 -0
  61. whykit-0.4.0/schemas/github-import-result.schema.json +303 -0
  62. whykit-0.4.0/schemas/hybrid-retrieval.schema.json +767 -0
  63. whykit-0.4.0/schemas/impact-dependencies.schema.json +322 -0
  64. whykit-0.4.0/schemas/knowledge-export-result.schema.json +58 -0
  65. whykit-0.4.0/schemas/knowledge-migration.schema.json +1201 -0
  66. whykit-0.4.0/schemas/knowledge-restore-result.schema.json +53 -0
  67. whykit-0.4.0/schemas/knowledge-v2.schema.json +1098 -0
  68. whykit-0.4.0/schemas/outcome-create.schema.json +213 -0
  69. whykit-0.4.0/schemas/outcome-list.schema.json +217 -0
  70. whykit-0.4.0/schemas/outcome-record.schema.json +47 -0
  71. whykit-0.4.0/schemas/outcome-show.schema.json +225 -0
  72. whykit-0.4.0/schemas/outcome-verification.schema.json +158 -0
  73. whykit-0.4.0/schemas/provenance-write.schema.json +77 -0
  74. whykit-0.4.0/schemas/source-observations.schema.json +25 -0
  75. whykit-0.4.0/schemas/temporal-graph.schema.json +283 -0
  76. whykit-0.4.0/schemas/workspace-status.schema.json +108 -0
  77. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/__init__.py +1 -1
  78. whykit-0.4.0/src/whykit/agent_eval.py +241 -0
  79. whykit-0.4.0/src/whykit/agent_preflight.py +311 -0
  80. whykit-0.4.0/src/whykit/artifact_store.py +428 -0
  81. whykit-0.4.0/src/whykit/claim_ledger.py +315 -0
  82. whykit-0.4.0/src/whykit/claim_provenance.py +85 -0
  83. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/cli.py +532 -15
  84. whykit-0.4.0/src/whykit/compiled_context.py +695 -0
  85. whykit-0.4.0/src/whykit/context_applicability.py +232 -0
  86. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract.py +22 -0
  87. whykit-0.4.0/src/whykit/dependency_graph.py +266 -0
  88. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/explorer_index.py +2 -2
  89. whykit-0.4.0/src/whykit/github_import.py +243 -0
  90. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/graph.py +2 -2
  91. whykit-0.4.0/src/whykit/hybrid_retrieval.py +377 -0
  92. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/immutability.py +5 -1
  93. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/impact.py +2 -2
  94. whykit-0.4.0/src/whykit/impact_contract.py +196 -0
  95. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/io.py +28 -3
  96. whykit-0.4.0/src/whykit/knowledge_v2.py +808 -0
  97. whykit-0.4.0/src/whykit/knowledge_visibility.py +154 -0
  98. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/lint.py +16 -0
  99. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/mcp_server.py +8 -3
  100. whykit-0.4.0/src/whykit/outcome_ledger.py +355 -0
  101. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/query.py +33 -10
  102. whykit-0.4.0/src/whykit/retrieval.py +96 -0
  103. whykit-0.4.0/src/whykit/review_history.py +90 -0
  104. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/rules.py +1 -0
  105. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/sensitivity.py +39 -2
  106. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/snapshot.py +2 -1
  107. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/status.py +2 -2
  108. whykit-0.4.0/src/whykit/temporal_graph.py +116 -0
  109. whykit-0.4.0/src/whykit/workspace.py +144 -0
  110. whykit-0.3.4/PKG-INFO +0 -164
  111. whykit-0.3.4/README.md +0 -129
  112. {whykit-0.3.4 → whykit-0.4.0}/.gitignore +0 -0
  113. {whykit-0.3.4 → whykit-0.4.0}/LICENSE +0 -0
  114. {whykit-0.3.4 → whykit-0.4.0}/NOTICE +0 -0
  115. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/00-context/evidence-register.md +0 -0
  116. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/00-context/review-log.md +0 -0
  117. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +0 -0
  118. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +0 -0
  119. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/06-decisions/decision-log.md +0 -0
  120. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/AGENTS.md +0 -0
  121. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/Home.md +0 -0
  122. {whykit-0.3.4 → whykit-0.4.0}/examples/approval/README.md +0 -0
  123. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/00-context/README.md +0 -0
  124. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/00-context/company.md +0 -0
  125. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/00-context/evidence-register.md +0 -0
  126. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/00-context/goals.md +0 -0
  127. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/00-context/review-log.md +0 -0
  128. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/00-context/terminology.md +0 -0
  129. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/01-strategy/README.md +0 -0
  130. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/01-strategy/icp.md +0 -0
  131. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/01-strategy/messaging.md +0 -0
  132. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/01-strategy/offer-architecture.md +0 -0
  133. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/01-strategy/positioning.md +0 -0
  134. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/02-discoverability/README.md +0 -0
  135. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/02-discoverability/content-system.md +0 -0
  136. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/02-discoverability/search-and-answers.md +0 -0
  137. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/03-website/README.md +0 -0
  138. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/03-website/information-architecture.md +0 -0
  139. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/03-website/page-brief-home.md +0 -0
  140. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/04-automation/README.md +0 -0
  141. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/04-automation/inbound-demo-routing.md +0 -0
  142. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/05-operations/README.md +0 -0
  143. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/05-operations/meeting-2026-09-04-pipeline.md +0 -0
  144. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/05-operations/qualification.md +0 -0
  145. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/README.md +0 -0
  146. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-001-git-markdown.md +0 -0
  147. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-002-icp-ops.md +0 -0
  148. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-003-no-paid.md +0 -0
  149. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-004-english.md +0 -0
  150. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-005-product-led-site.md +0 -0
  151. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-006-no-ai-in-h1.md +0 -0
  152. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-007-hubspot.md +0 -0
  153. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-008-discrete.md +0 -0
  154. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-009-partner-led.md +0 -0
  155. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-010-direct.md +0 -0
  156. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/d-011-direct-with-evidence.md +0 -0
  157. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/06-decisions/decision-log.md +0 -0
  158. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/07-research/README.md +0 -0
  159. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/07-research/competitors/vendor-a.md +0 -0
  160. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/07-research/competitors/vendor-b.md +0 -0
  161. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/07-research/interviews/example-region-maintenance-lead-2026-06-18.md +0 -0
  162. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/07-research/market-dach.md +0 -0
  163. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/07-research/sources/ingestion-2026-09-02.md +0 -0
  164. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/AGENTS.md +0 -0
  165. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/Home.md +0 -0
  166. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/INTEROP.md +0 -0
  167. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/OBSIDIAN.md +0 -0
  168. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/README.md +0 -0
  169. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/reports/README.md +0 -0
  170. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/reports/organic-baseline-2026-08-01.md +0 -0
  171. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/README.md +0 -0
  172. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/automation-spec-template.md +0 -0
  173. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/decision-record-template.md +0 -0
  174. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/document-template.md +0 -0
  175. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/experiment-template.md +0 -0
  176. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/meeting-note-template.md +0 -0
  177. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/page-brief-template.md +0 -0
  178. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/research-note-template.md +0 -0
  179. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/templates/source-ingestion-template.md +0 -0
  180. {whykit-0.3.4 → whykit-0.4.0}/examples/northline/whykit.toml +0 -0
  181. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/.gitignore +0 -0
  182. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/00-context/README.md +0 -0
  183. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/00-context/company.md +0 -0
  184. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/00-context/evidence-register.md +0 -0
  185. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/00-context/goals.md +0 -0
  186. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/00-context/review-log.md +0 -0
  187. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/00-context/terminology.md +0 -0
  188. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/06-decisions/README.md +0 -0
  189. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/06-decisions/d-001-start-with-a-minimal-whykit-vault.md +0 -0
  190. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/06-decisions/d-002-keep-the-ledger-to-evidence-and-decisions.md +0 -0
  191. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/06-decisions/decision-log.md +0 -0
  192. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/AGENTS.md +0 -0
  193. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/Home.md +0 -0
  194. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/INTEROP.md +0 -0
  195. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/OBSIDIAN.md +0 -0
  196. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/README.md +0 -0
  197. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/assets/README.md +0 -0
  198. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/notes/README.md +0 -0
  199. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/reports/README.md +0 -0
  200. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/templates/README.md +0 -0
  201. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/templates/decision-record-template.md +0 -0
  202. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/templates/document-template.md +0 -0
  203. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/templates/research-note-template.md +0 -0
  204. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/templates/source-ingestion-template.md +0 -0
  205. {whykit-0.3.4 → whykit-0.4.0}/examples/tiny/whykit.toml +0 -0
  206. {whykit-0.3.4 → whykit-0.4.0}/hatch_build.py +0 -0
  207. {whykit-0.3.4 → whykit-0.4.0}/schemas/adopt-report.schema.json +0 -0
  208. {whykit-0.3.4 → whykit-0.4.0}/schemas/backlinks-report.schema.json +0 -0
  209. {whykit-0.3.4 → whykit-0.4.0}/schemas/check-report.schema.json +0 -0
  210. {whykit-0.3.4 → whykit-0.4.0}/schemas/context-bundle.schema.json +0 -0
  211. {whykit-0.3.4 → whykit-0.4.0}/schemas/context-pack.schema.json +0 -0
  212. {whykit-0.3.4 → whykit-0.4.0}/schemas/decision-approval-result.schema.json +0 -0
  213. {whykit-0.3.4 → whykit-0.4.0}/schemas/decision-record.schema.json +0 -0
  214. {whykit-0.3.4 → whykit-0.4.0}/schemas/diff-report.schema.json +0 -0
  215. {whykit-0.3.4 → whykit-0.4.0}/schemas/doctor-report.schema.json +0 -0
  216. {whykit-0.3.4 → whykit-0.4.0}/schemas/error.schema.json +0 -0
  217. {whykit-0.3.4 → whykit-0.4.0}/schemas/evidence-entry.schema.json +0 -0
  218. {whykit-0.3.4 → whykit-0.4.0}/schemas/evidence-list.schema.json +0 -0
  219. {whykit-0.3.4 → whykit-0.4.0}/schemas/evidence-retire-result.schema.json +0 -0
  220. {whykit-0.3.4 → whykit-0.4.0}/schemas/explorer-index.schema.json +0 -0
  221. {whykit-0.3.4 → whykit-0.4.0}/schemas/graph.schema.json +0 -0
  222. {whykit-0.3.4 → whykit-0.4.0}/schemas/history-report.schema.json +0 -0
  223. {whykit-0.3.4 → whykit-0.4.0}/schemas/impact-report.schema.json +0 -0
  224. {whykit-0.3.4 → whykit-0.4.0}/schemas/init-result.schema.json +0 -0
  225. {whykit-0.3.4 → whykit-0.4.0}/schemas/lint-report.schema.json +0 -0
  226. {whykit-0.3.4 → whykit-0.4.0}/schemas/lint-sarif.schema.json +0 -0
  227. {whykit-0.3.4 → whykit-0.4.0}/schemas/policy.schema.json +0 -0
  228. {whykit-0.3.4 → whykit-0.4.0}/schemas/provenance.schema.json +0 -0
  229. {whykit-0.3.4 → whykit-0.4.0}/schemas/publication-preview.schema.json +0 -0
  230. {whykit-0.3.4 → whykit-0.4.0}/schemas/query-result.schema.json +0 -0
  231. {whykit-0.3.4 → whykit-0.4.0}/schemas/record-create.schema.json +0 -0
  232. {whykit-0.3.4 → whykit-0.4.0}/schemas/recovery-result.schema.json +0 -0
  233. {whykit-0.3.4 → whykit-0.4.0}/schemas/review-event.schema.json +0 -0
  234. {whykit-0.3.4 → whykit-0.4.0}/schemas/review-queue.schema.json +0 -0
  235. {whykit-0.3.4 → whykit-0.4.0}/schemas/review-record-result.schema.json +0 -0
  236. {whykit-0.3.4 → whykit-0.4.0}/schemas/rule-catalog.schema.json +0 -0
  237. {whykit-0.3.4 → whykit-0.4.0}/schemas/rule-detail.schema.json +0 -0
  238. {whykit-0.3.4 → whykit-0.4.0}/schemas/snapshot-verify.schema.json +0 -0
  239. {whykit-0.3.4 → whykit-0.4.0}/schemas/snapshot.schema.json +0 -0
  240. {whykit-0.3.4 → whykit-0.4.0}/schemas/status-report.schema.json +0 -0
  241. {whykit-0.3.4 → whykit-0.4.0}/schemas/trace-report.schema.json +0 -0
  242. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/adopt.py +0 -0
  243. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/backlinks.py +0 -0
  244. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/check.py +0 -0
  245. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/ci_formats.py +0 -0
  246. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/completion.py +0 -0
  247. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/config.py +0 -0
  248. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/console.py +0 -0
  249. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/context.py +0 -0
  250. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/backlinks-report.schema.json +0 -0
  251. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/context-bundle.schema.json +0 -0
  252. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/context-pack.schema.json +0 -0
  253. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/impact-report.schema.json +0 -0
  254. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/query-result.schema.json +0 -0
  255. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/status-report.schema.json +0 -0
  256. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/contract_schemas/trace-report.schema.json +0 -0
  257. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/diff.py +0 -0
  258. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/evidence.py +0 -0
  259. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/init_layout.py +0 -0
  260. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/lsp.py +0 -0
  261. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/markdown_code.py +0 -0
  262. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/messages.py +0 -0
  263. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/pack.py +0 -0
  264. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/parse_cache.py +0 -0
  265. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/placeholders.py +0 -0
  266. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/promote.py +0 -0
  267. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/py.typed +0 -0
  268. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/review.py +0 -0
  269. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/rule_policy.py +0 -0
  270. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/scaffold.py +0 -0
  271. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/tables.py +0 -0
  272. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/00-context/README.md +0 -0
  273. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/00-context/company.md +0 -0
  274. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/00-context/evidence-register.md +0 -0
  275. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/00-context/goals.md +0 -0
  276. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/00-context/review-log.md +0 -0
  277. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/00-context/terminology.md +0 -0
  278. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/01-strategy/README.md +0 -0
  279. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/02-discoverability/README.md +0 -0
  280. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/03-website/README.md +0 -0
  281. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/04-automation/README.md +0 -0
  282. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/05-operations/README.md +0 -0
  283. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/06-decisions/README.md +0 -0
  284. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/06-decisions/decision-log.md +0 -0
  285. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/07-research/README.md +0 -0
  286. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/AGENTS.md +0 -0
  287. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/Home.md +0 -0
  288. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/INTEROP.md +0 -0
  289. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/OBSIDIAN.md +0 -0
  290. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/README.md +0 -0
  291. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/assets/README.md +0 -0
  292. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/reports/README.md +0 -0
  293. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/README.md +0 -0
  294. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/automation-spec-template.md +0 -0
  295. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/decision-record-template.md +0 -0
  296. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/document-template.md +0 -0
  297. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/experiment-template.md +0 -0
  298. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/meeting-note-template.md +0 -0
  299. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/page-brief-template.md +0 -0
  300. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/research-note-template.md +0 -0
  301. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/templates/source-ingestion-template.md +0 -0
  302. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/template/whykit.toml +0 -0
  303. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/trace.py +0 -0
  304. {whykit-0.3.4 → whykit-0.4.0}/src/whykit/vault_index.py +0 -0
@@ -5,7 +5,113 @@ All notable changes to WhyKit are documented here. The format follows
5
5
  semantic versioning, where the **data contract** is the public API alongside the
6
6
  CLI and the lint rule codes.
7
7
 
8
- ## [Unreleased]
8
+ ## [0.4.0] - 2026-11-05
9
+
10
+ ### Added
11
+
12
+ - Add a conservative downgrade check and recovery guidance for the 0.3.4 client;
13
+ neither authorizes a downgrade nor changes the already-published old client.
14
+
15
+ - Optional `provenance.whykit_impact` declarations describe typed dependencies
16
+ on evidence, claims, decisions and implementation notes. Declarations use a
17
+ namespaced JSON scalar; existing records require no migration or rewrite.
18
+ - `impact.invalid` starts as a warning for malformed owned declarations.
19
+ Implementation cards and dependent native records receive a restricted
20
+ effective floor and a closed dependency view before graph construction or retrieval.
21
+
22
+ - Opt-in hybrid document retrieval combines BM25 with bounded typed-graph
23
+ proximity and explicit time/status/scope filters. Results expose score
24
+ components, paths, uncertainty and construction/traversal truncation; the
25
+ compiler can bind these explanations into its full byte budget. Existing
26
+ substring/BM25 defaults remain unchanged.
27
+
28
+ - Compiled contexts distinguish locally applicable decision premises from
29
+ explicit references, with declared validity and bounded visible review and
30
+ supersession history. Query eligibility is applied before ranking.
31
+
32
+ - Preview and import saved GitHub REST issue, pull-request and workflow-run
33
+ payloads into an existing restricted E-ID. Exact raw capture, observation
34
+ and immutable import receipt share a transaction. Exported metadata remains
35
+ untrusted attribution; no provider fetching or execution is performed.
36
+
37
+ - Optional restricted Outcome declarations distinguish exact decimal baselines,
38
+ targets and observations, with content-pinned historical source checks.
39
+ Numeric agreement, causal effect and execution authority remain unchecked.
40
+ - A scoped five-kind knowledge v2 view and explicit private migration bundles
41
+ preserve source bytes, directory inventory and extra fields. Restore uses a
42
+ new directory and transfers no Git history or trusted approval baseline.
43
+ Safe bundle export/restore currently require POSIX descriptor support.
44
+
45
+ - Offline answer evaluation, structural preflight, explicit local multi-vault
46
+ status and opt-in BM25 through the installed CLI.
47
+ - Byte-bounded compiled context with scoped input manifests and stale-report
48
+ verification; preflight can require current context covering every declared
49
+ decision. Results never grant execution authority.
50
+ - Typed transitive dependency explanations and pinned Git snapshots with a
51
+ separate, explicitly declared validity interval.
52
+ - Immutable local source captures and canonical Markdown claims with exact-byte
53
+ anchors. New decision approvals can pin the reviewed raw claim hashes;
54
+ preflight checks those pins, intervals and indirect evidence lifecycle.
55
+ - Transactional source-observation ledgers preserve capture deduplication and
56
+ A → B → A history. Claim verification and preflight distinguish matching old
57
+ anchors from changed, unknown, ambiguous or future observations; compiled
58
+ context binds permitted observation/capture hashes and warns about drift.
59
+
60
+ ### Changed
61
+
62
+ - Make the first-run CLI guidance and README example show how to record a
63
+ decision and trace it to a source. Machine-readable output is unchanged.
64
+
65
+ - Existing vaults and JSON v1 commands retain their current format. The optional
66
+ `claim` note type lives under `00-context/claims/`; captures use
67
+ `00-context/artifacts/`. Optional `outcome` notes live under
68
+ `00-context/outcomes/`. Older clients do not understand these new note types.
69
+ No command migrates or rewrites existing approved records. Add claim pins only
70
+ to a new draft before approval, or create a superseding decision.
71
+ - Quote-containing claim notes have a restricted sensitivity floor, including
72
+ metadata downgrades. Sensitivity remains a filter, not authentication or ACL.
73
+ See the synthetic [format decision](examples/provenance/README.md) and
74
+ [claim format](docs/claims.md) before opting in.
75
+ - Native claims without an observation ledger have unknown source freshness.
76
+ Review and recapture the source through preview/apply to record an observation;
77
+ old captures, claim pins and approval receipts are not migrated or rewritten.
78
+ `claim verify` now requires current observations for success and accepts
79
+ `--today` as a whole UTC calendar-day cutoff, rather than an instant clock.
80
+
81
+ ### Fixed
82
+
83
+ - Match canonically equivalent Unicode text in substring search and Explorer,
84
+ including casefolded search terms and metadata filters.
85
+ - Correct the evaluation and workspace documentation to show their installed
86
+ development-version CLI commands.
87
+
88
+ - Accept stable capture and claim files on Windows while retaining file identity
89
+ checks and detecting changes within both path and descriptor metadata.
90
+
91
+ - Reuse the captured graph constructor after hybrid permission and eligibility
92
+ admission, retaining full dependency closure and existing graph output.
93
+
94
+ - Avoid redundant key normalization and empty register projections during scoped
95
+ graph work; preserve strict POSIX single- and double-slash path anchors.
96
+
97
+ - Backdated confirmations cannot clear newer-dated review requests in compiled
98
+ premise selection or standalone preflight.
99
+
100
+ - Standalone preflight respects explicit future, expired and invalid decision
101
+ validity, using the same interval semantics as temporal queries.
102
+
103
+ - Withhold mixed decision/review-log raw bodies and whole-file hashes from compiled
104
+ context; bind visible row history without hidden-row ranking/count leakage.
105
+ - Preflight compiled-context coverage requires an admitted decision premise;
106
+ an explicit future, expired or nonbinding reference cannot satisfy it.
107
+
108
+ - Refuse FIFO, device and symlink inputs before blocking reads, including mutation
109
+ locks, evaluator inputs and proposal manifests; validate the opened descriptor.
110
+ - Keep unreadable classifications out of BM25 statistics and context manifests;
111
+ refresh granted paths without expanding the grant and withhold claim quotes
112
+ whose source IDs are outside its scope.
113
+ - Correct JSON Schema test equality for booleans/numbers and numeric, array and
114
+ string upper bounds; align the security documentation with current exports.
9
115
 
10
116
  ## [0.3.4] - 2026-11-03
11
117
 
whykit-0.4.0/PKG-INFO ADDED
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.5
2
+ Name: whykit
3
+ Version: 0.4.0
4
+ Summary: Keep decisions, their reasoning, and supporting sources together in Markdown
5
+ Project-URL: Homepage, https://github.com/CometWeb-io/whykit
6
+ Project-URL: Documentation, https://github.com/CometWeb-io/whykit#readme
7
+ Project-URL: Source, https://github.com/CometWeb-io/whykit
8
+ Project-URL: Changelog, https://github.com/CometWeb-io/whykit/blob/main/CHANGELOG.md
9
+ Project-URL: Issues, https://github.com/CometWeb-io/whykit/issues
10
+ Project-URL: Security, https://github.com/CometWeb-io/whykit/blob/main/SECURITY.md
11
+ Author-email: Maciej Zmitrukiewicz <hello@cometweb.io>
12
+ Maintainer-email: Maciej Zmitrukiewicz <hello@cometweb.io>
13
+ License-Expression: Apache-2.0
14
+ License-File: LICENSE
15
+ License-File: NOTICE
16
+ Keywords: adr,agents,audit-trail,decision-log,decision-records,evidence,git,knowledge-base,markdown,mcp,obsidian,provenance
17
+ Classifier: Development Status :: 3 - Alpha
18
+ Classifier: Environment :: Console
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Operating System :: OS Independent
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Topic :: Documentation
28
+ Classifier: Topic :: Software Development :: Quality Assurance
29
+ Classifier: Topic :: Software Development :: Version Control :: Git
30
+ Classifier: Typing :: Typed
31
+ Requires-Python: >=3.11
32
+ Provides-Extra: mcp
33
+ Requires-Dist: mcp<2.4,>=2.2; extra == 'mcp'
34
+ Requires-Dist: opentelemetry-api>=1.45.1; extra == 'mcp'
35
+ Requires-Dist: pyjwt>=2.15.0; extra == 'mcp'
36
+ Description-Content-Type: text/markdown
37
+
38
+ # WhyKit
39
+
40
+ **Remember why a decision was made.**
41
+
42
+ WhyKit helps you record decisions, link the sources behind them, and see what
43
+ needs review. Your records are Markdown files you can read, edit and keep in Git.
44
+ People can use them directly; AI tools can read the same context.
45
+
46
+ For example, your team chooses to ship SSO before audit logs because of support
47
+ tickets. Three months later, someone asks why. WhyKit can show the decision,
48
+ the source it cites and its review status.
49
+
50
+ ![A source, a decision and a review, kept together in WhyKit.](https://raw.githubusercontent.com/CometWeb-io/whykit/v0.4.0/docs/media/overview.svg)
51
+
52
+ **Python 3.11+ · No runtime dependencies · Apache-2.0**
53
+
54
+ **Status:** public alpha. Source version: `0.4.0`. Check
55
+ [PyPI](https://pypi.org/project/whykit/) for the latest published version; it
56
+ may differ from this source. For an installed release, follow the documentation
57
+ links on its PyPI page.
58
+ Keep sensitive vaults private; WhyKit's filters are not access controls.
59
+ For version 0.4, see the [feature status](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/feature-status.md)
60
+ and the [upgrade and recovery guide](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/migration-0.4.md) before using 0.4 data.
61
+
62
+ [![CI](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml/badge.svg)](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml)
63
+
64
+ ## Try it
65
+
66
+ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) (0.13.4+)
67
+ and use Python 3.11+. This example works with the published 0.3.4 release and
68
+ uses a fictional source. It creates a
69
+ folder called a *vault*: just the Markdown files WhyKit works with.
70
+
71
+ <!-- quickstart:start -->
72
+ ```bash
73
+ uv tool install whykit
74
+
75
+ # Create a vault.
76
+ whykit init my-ledger
77
+
78
+ # Record a source, then a draft decision that cites it.
79
+ whykit new --root my-ledger evidence \
80
+ --source "Support ticket export, Q3" --type dataset \
81
+ --location "https://example.com/exports/q3-tickets.csv" \
82
+ --claims "Most onboarding tickets mention SSO"
83
+ whykit new --root my-ledger decision "Ship SSO before audit logs" \
84
+ --owner Platform --status draft --source E-001
85
+
86
+ # See the connection, then check the vault.
87
+ whykit trace --root my-ledger --decision D-001
88
+ whykit lint --root my-ledger
89
+ whykit review --root my-ledger list --due-days 120
90
+ ```
91
+ <!-- quickstart:end -->
92
+
93
+ The trace shows the decision and its source:
94
+
95
+ ```text
96
+ D-001 06-decisions/d-001-ship-sso-before-audit-logs.md (draft)
97
+ E-001 active
98
+ ```
99
+
100
+ `D-001` is the decision; `E-001` is the source it cites. The decision is
101
+ still a draft: open its Markdown file and replace the prompts with your actual
102
+ context, choice, reasons, alternatives and consequences before
103
+ [approving it](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md#approve-a-decision).
104
+
105
+ The lint check reports five expected warnings: one for the unfinished decision
106
+ and four for unanswered questions in the vault's `AGENTS.md`. Answer those
107
+ questions before letting an agent write to the vault or enabling the strict CI
108
+ gate. Replace the starter content before treating the vault as authoritative.
109
+ This draft is not yet listed for review, so the review list is empty.
110
+
111
+ If `whykit` is not found, run `uv tool update-shell` and open a new terminal.
112
+ Use `uv tool upgrade whykit` to update an existing installation. For development
113
+ or the optional Explorer, see [running from a checkout](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md#run-whykit-from-a-checkout).
114
+
115
+ ## What would you like to do?
116
+
117
+ - **Record a decision and revisit it later:** [record, check and supersede a decision](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/tutorials/record-and-supersede.md).
118
+ - **Bring existing notes or ADRs:** [adopt existing Markdown](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md#already-have-a-pile-of-markdown).
119
+ - **Review a changed source and share a filtered export:** [import, review and export](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/tutorials/review-and-export.md).
120
+ - **Give an AI tool read-only context:** [connect the MCP server](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/mcp.md).
121
+ - **Check decisions in pull requests:** [set up a GitHub Actions gate](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/tutorials/gate-pull-requests.md).
122
+
123
+ ## How it works
124
+
125
+ ```text
126
+ source (E-001) → decision and reasons (D-001) → review
127
+ ```
128
+
129
+ WhyKit connects the records, checks their structure and reports review dates.
130
+ When a decision changes, you can record a successor instead of overwriting the
131
+ accepted reasoning. An optional Git check can flag edits to accepted records.
132
+
133
+ WhyKit does **not** determine whether a source is true or a decision is right.
134
+ It does not check external sources for changes on its own. Sensitivity labels
135
+ and filtered outputs are not a substitute for repository access permissions.
136
+ [See when plain ADRs are a better fit](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/project-positioning.md).
137
+
138
+ ## Documentation
139
+
140
+ - [Start here](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/README.md) · [Concepts](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/concepts.md) · [How-to guides](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/guide.md)
141
+ - [Command reference](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/cli.md) · [Configuration](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/configuration.md) · [Lint rules](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/rules.md)
142
+ - [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/ci.md) · [MCP server](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/mcp.md) · [Troubleshooting](https://github.com/CometWeb-io/whykit/blob/v0.4.0/docs/troubleshooting.md)
143
+ - Example vaults: [tiny](https://github.com/CometWeb-io/whykit/blob/v0.4.0/examples/tiny/) and [Northline](https://github.com/CometWeb-io/whykit/blob/v0.4.0/examples/northline/)
144
+
145
+ [Contributing](https://github.com/CometWeb-io/whykit/blob/v0.4.0/CONTRIBUTING.md) · [Code of Conduct](https://github.com/CometWeb-io/whykit/blob/v0.4.0/CODE_OF_CONDUCT.md) ·
146
+ [Security policy](https://github.com/CometWeb-io/whykit/blob/v0.4.0/SECURITY.md) · [Release checklist](https://github.com/CometWeb-io/whykit/blob/v0.4.0/.github/RELEASE.md)
147
+
148
+ Copyright 2026 Maciej Zmitrukiewicz (hello@cometweb.io), licensed under
149
+ [Apache-2.0](https://github.com/CometWeb-io/whykit/blob/v0.4.0/LICENSE). [CometWeb](https://cometweb.io) is the product name, not
150
+ the copyright holder.
whykit-0.4.0/README.md ADDED
@@ -0,0 +1,113 @@
1
+ # WhyKit
2
+
3
+ **Remember why a decision was made.**
4
+
5
+ WhyKit helps you record decisions, link the sources behind them, and see what
6
+ needs review. Your records are Markdown files you can read, edit and keep in Git.
7
+ People can use them directly; AI tools can read the same context.
8
+
9
+ For example, your team chooses to ship SSO before audit logs because of support
10
+ tickets. Three months later, someone asks why. WhyKit can show the decision,
11
+ the source it cites and its review status.
12
+
13
+ ![A source, a decision and a review, kept together in WhyKit.](docs/media/overview.svg)
14
+
15
+ **Python 3.11+ · No runtime dependencies · Apache-2.0**
16
+
17
+ **Status:** public alpha. Source version: `0.4.0`. Check
18
+ [PyPI](https://pypi.org/project/whykit/) for the latest published version; it
19
+ may differ from this source. For an installed release, follow the documentation
20
+ links on its PyPI page.
21
+ Keep sensitive vaults private; WhyKit's filters are not access controls.
22
+ For version 0.4, see the [feature status](docs/feature-status.md)
23
+ and the [upgrade and recovery guide](docs/migration-0.4.md) before using 0.4 data.
24
+
25
+ [![CI](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml/badge.svg)](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml)
26
+
27
+ ## Try it
28
+
29
+ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) (0.13.4+)
30
+ and use Python 3.11+. This example works with the published 0.3.4 release and
31
+ uses a fictional source. It creates a
32
+ folder called a *vault*: just the Markdown files WhyKit works with.
33
+
34
+ <!-- quickstart:start -->
35
+ ```bash
36
+ uv tool install whykit
37
+
38
+ # Create a vault.
39
+ whykit init my-ledger
40
+
41
+ # Record a source, then a draft decision that cites it.
42
+ whykit new --root my-ledger evidence \
43
+ --source "Support ticket export, Q3" --type dataset \
44
+ --location "https://example.com/exports/q3-tickets.csv" \
45
+ --claims "Most onboarding tickets mention SSO"
46
+ whykit new --root my-ledger decision "Ship SSO before audit logs" \
47
+ --owner Platform --status draft --source E-001
48
+
49
+ # See the connection, then check the vault.
50
+ whykit trace --root my-ledger --decision D-001
51
+ whykit lint --root my-ledger
52
+ whykit review --root my-ledger list --due-days 120
53
+ ```
54
+ <!-- quickstart:end -->
55
+
56
+ The trace shows the decision and its source:
57
+
58
+ ```text
59
+ D-001 06-decisions/d-001-ship-sso-before-audit-logs.md (draft)
60
+ E-001 active
61
+ ```
62
+
63
+ `D-001` is the decision; `E-001` is the source it cites. The decision is
64
+ still a draft: open its Markdown file and replace the prompts with your actual
65
+ context, choice, reasons, alternatives and consequences before
66
+ [approving it](docs/guide.md#approve-a-decision).
67
+
68
+ The lint check reports five expected warnings: one for the unfinished decision
69
+ and four for unanswered questions in the vault's `AGENTS.md`. Answer those
70
+ questions before letting an agent write to the vault or enabling the strict CI
71
+ gate. Replace the starter content before treating the vault as authoritative.
72
+ This draft is not yet listed for review, so the review list is empty.
73
+
74
+ If `whykit` is not found, run `uv tool update-shell` and open a new terminal.
75
+ Use `uv tool upgrade whykit` to update an existing installation. For development
76
+ or the optional Explorer, see [running from a checkout](docs/guide.md#run-whykit-from-a-checkout).
77
+
78
+ ## What would you like to do?
79
+
80
+ - **Record a decision and revisit it later:** [record, check and supersede a decision](docs/tutorials/record-and-supersede.md).
81
+ - **Bring existing notes or ADRs:** [adopt existing Markdown](docs/guide.md#already-have-a-pile-of-markdown).
82
+ - **Review a changed source and share a filtered export:** [import, review and export](docs/tutorials/review-and-export.md).
83
+ - **Give an AI tool read-only context:** [connect the MCP server](docs/mcp.md).
84
+ - **Check decisions in pull requests:** [set up a GitHub Actions gate](docs/tutorials/gate-pull-requests.md).
85
+
86
+ ## How it works
87
+
88
+ ```text
89
+ source (E-001) → decision and reasons (D-001) → review
90
+ ```
91
+
92
+ WhyKit connects the records, checks their structure and reports review dates.
93
+ When a decision changes, you can record a successor instead of overwriting the
94
+ accepted reasoning. An optional Git check can flag edits to accepted records.
95
+
96
+ WhyKit does **not** determine whether a source is true or a decision is right.
97
+ It does not check external sources for changes on its own. Sensitivity labels
98
+ and filtered outputs are not a substitute for repository access permissions.
99
+ [See when plain ADRs are a better fit](docs/project-positioning.md).
100
+
101
+ ## Documentation
102
+
103
+ - [Start here](docs/README.md) · [Concepts](docs/concepts.md) · [How-to guides](docs/guide.md)
104
+ - [Command reference](docs/cli.md) · [Configuration](docs/configuration.md) · [Lint rules](docs/rules.md)
105
+ - [CI integration](docs/ci.md) · [MCP server](docs/mcp.md) · [Troubleshooting](docs/troubleshooting.md)
106
+ - Example vaults: [tiny](examples/tiny/) and [Northline](examples/northline/)
107
+
108
+ [Contributing](CONTRIBUTING.md) · [Code of Conduct](CODE_OF_CONDUCT.md) ·
109
+ [Security policy](SECURITY.md) · [Release checklist](.github/RELEASE.md)
110
+
111
+ Copyright 2026 Maciej Zmitrukiewicz (hello@cometweb.io), licensed under
112
+ [Apache-2.0](LICENSE). [CometWeb](https://cometweb.io) is the product name, not
113
+ the copyright holder.
@@ -0,0 +1,3 @@
1
+ {"id":"grounded-evidence","expected":{"disposition":"answer","allowed_citations":["E-001","D-001"],"required_citations":["E-001"],"conflict":false}}
2
+ {"id":"insufficient-evidence","expected":{"disposition":"abstain","allowed_citations":[],"required_citations":[],"conflict":false,"forbidden_phrases":["PRIVATE_EXAMPLE_MARKER"]}}
3
+ {"id":"disputed-claim","expected":{"disposition":"answer","allowed_citations":["E-002","E-003","C-001"],"required_citations":["E-002","E-003"],"claim_states":{"C-001":"disputed"},"conflict":true}}
@@ -0,0 +1,3 @@
1
+ {"id":"grounded-evidence","disposition":"answer","citations":["E-001"],"answer":"Source E-001 supports a bounded conclusion."}
2
+ {"id":"insufficient-evidence","disposition":"abstain","citations":[],"answer":"Insufficient evidence."}
3
+ {"id":"disputed-claim","disposition":"answer","citations":["E-002","E-003"],"claim_states":{"C-001":"disputed"},"conflict":true,"answer":"The two source snapshots disagree."}
@@ -0,0 +1,27 @@
1
+ # Saved GitHub export fixtures
2
+
3
+ These three single-object REST payloads are synthetic. Repository names, IDs,
4
+ SHAs, timestamps and text are invented; no network request or real CI result
5
+ was used to create them. The pull request has a deleted head repository. The
6
+ queued workflow has `conclusion:null`; it does not mean success or failure.
7
+
8
+ From this unreleased source checkout, prepare a throwaway vault and explicit
9
+ restricted E-ID using the existing commands:
10
+
11
+ ```bash
12
+ uv run whykit init /private/tmp/whykit-github-example --minimal
13
+ uv run whykit new evidence --root /private/tmp/whykit-github-example --source "Synthetic issue export" --type dataset --location https://github.com/example-labs/fixture/issues/7 --claims "Untrusted fixture metadata" --date 2026-09-17 --accessed 2026-09-17 --sensitivity restricted --json
14
+ uv run whykit import github --root /private/tmp/whykit-github-example --kind issue --repository example-labs/fixture --evidence E-001 --input examples/github-import/issue.json --recorded-at 2026-09-17T12:00:00Z --json
15
+ ```
16
+
17
+ Review the preview, then repeat the import with `--write --expect-hash` and its
18
+ returned `expected_sha256`. A new preview is required after any input change.
19
+ Use a distinct E-ID whose location matches each other fixture if importing
20
+ `pull-request.json` or `workflow-run.json`. Do not change an approved record
21
+ or an unrelated evidence location to force a match.
22
+
23
+ The importer preserves raw bytes, declared provider metadata and local source
24
+ observations. It never authenticates the source, executes instructions, fetches
25
+ URLs, approves decisions or turns a CI conclusion into independent test proof.
26
+ Raw base64 storage and restricted classification are not encryption or ACL.
27
+ See [the import guide](../../docs/github-import.md) for limits and recovery.
@@ -0,0 +1,13 @@
1
+ {
2
+ "created_at": "2026-09-17T10:00:00Z",
3
+ "updated_at": "2026-09-17T10:30:00Z",
4
+ "id": 1001,
5
+ "number": 7,
6
+ "url": "https://api.github.com/repos/example-labs/fixture/issues/7",
7
+ "repository_url": "https://api.github.com/repos/example-labs/fixture",
8
+ "html_url": "https://github.com/example-labs/fixture/issues/7",
9
+ "state": "open",
10
+ "closed_at": null,
11
+ "title": "Synthetic issue",
12
+ "body": "Fixture text only; no real project result or remote source authenticity."
13
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "created_at": "2026-09-17T10:00:00Z",
3
+ "updated_at": "2026-09-17T10:30:00Z",
4
+ "id": 2001,
5
+ "number": 8,
6
+ "url": "https://api.github.com/repos/example-labs/fixture/pulls/8",
7
+ "html_url": "https://github.com/example-labs/fixture/pull/8",
8
+ "state": "open",
9
+ "closed_at": null,
10
+ "merged_at": null,
11
+ "merge_commit_sha": null,
12
+ "base": {
13
+ "sha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
14
+ "repo": {
15
+ "full_name": "example-labs/fixture",
16
+ "html_url": "https://github.com/example-labs/fixture"
17
+ }
18
+ },
19
+ "head": {
20
+ "sha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
21
+ "repo": null
22
+ },
23
+ "title": "Synthetic pull request",
24
+ "body": "Synthetic deleted-fork case; no approval or merge is asserted."
25
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "created_at": "2026-09-17T10:00:00Z",
3
+ "updated_at": "2026-09-17T10:30:00Z",
4
+ "id": 9001,
5
+ "url": "https://api.github.com/repos/example-labs/fixture/actions/runs/9001",
6
+ "html_url": "https://github.com/example-labs/fixture/actions/runs/9001",
7
+ "head_sha": "cccccccccccccccccccccccccccccccccccccccc",
8
+ "run_attempt": 1,
9
+ "status": "queued",
10
+ "conclusion": null,
11
+ "repository": {
12
+ "full_name": "example-labs/fixture",
13
+ "html_url": "https://github.com/example-labs/fixture"
14
+ },
15
+ "head_repository": null,
16
+ "name": "Synthetic workflow"
17
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "content_base64": "Q2FwdHVyZWQgc291cmNlcyByZXRhaW4gdGhlaXIgb3JpZ2luYWwgYnl0ZXM7IGNsYWltcyBiaW5kIGV4YWN0IHF1b3RlZCByYW5nZXMuCg==",
3
+ "evidence_id": "E-004",
4
+ "format": "whykit.evidence-artifact/v1",
5
+ "recorded_at": "2026-09-17T12:00:00Z",
6
+ "sensitivity": "public",
7
+ "size_bytes": 79,
8
+ "source_version": "sha256:0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "content_base64": "MjAyNi0wOS0xMDogcmV2aWV3ZWRfaXRlbXM9MS4wMDAgaXRlbXMuCjIwMjYtMDktMTc6IHJldmlld2VkX2l0ZW1zPTIuMDAwIGl0ZW1zLgpTeW50aGV0aWMgZml4dHVyZTsgdGhlc2UgdmFsdWVzIGRvIG5vdCBlc3RhYmxpc2ggY2F1c2FsIGVmZmVjdC4K",
3
+ "evidence_id": "E-005",
4
+ "format": "whykit.evidence-artifact/v1",
5
+ "recorded_at": "2026-09-17T12:00:00Z",
6
+ "sensitivity": "restricted",
7
+ "size_bytes": 144,
8
+ "source_version": "sha256:fab761d309bb12500028ff74d7b094c3e62028c2148ade332442d7b17194e6ca"
9
+ }
@@ -0,0 +1,39 @@
1
+ ---
2
+ title: "Retain exact source versions"
3
+ type: "claim"
4
+ status: "draft"
5
+ owner: "Ada Example"
6
+ created: "2026-09-17"
7
+ last_updated: "2026-09-17"
8
+ source_of_truth: false
9
+ sensitivity: "restricted"
10
+ claim_id: "C-001"
11
+ source_ids: ["E-004"]
12
+ valid_from: "2026-09-17"
13
+ ---
14
+
15
+ # Claim C-001
16
+
17
+ ```whykit-claim
18
+ {
19
+ "claim_id": "C-001",
20
+ "format": "whykit.claim-provenance/v1",
21
+ "links": [
22
+ {
23
+ "assessment": {
24
+ "by": "Ada Example (synthetic attribution)",
25
+ "kind": "human",
26
+ "relation": "supports"
27
+ },
28
+ "evidence_id": "E-004",
29
+ "location": {
30
+ "end_byte": 44,
31
+ "quote": "Captured sources retain their original bytes",
32
+ "start_byte": 0
33
+ },
34
+ "source_version": "sha256:0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f"
35
+ }
36
+ ],
37
+ "statement": "The fixture explicitly states that captured source bytes are retained."
38
+ }
39
+ ```
@@ -0,0 +1,39 @@
1
+ ---
2
+ title: "Synthetic reviewed item measurements"
3
+ type: "claim"
4
+ status: "draft"
5
+ owner: "Ada Example"
6
+ created: "2026-09-17"
7
+ last_updated: "2026-09-17"
8
+ source_of_truth: false
9
+ sensitivity: "restricted"
10
+ claim_id: "C-002"
11
+ source_ids: ["E-005"]
12
+ valid_from: "2026-09-10"
13
+ ---
14
+
15
+ # Claim C-002
16
+
17
+ ```whykit-claim
18
+ {
19
+ "claim_id": "C-002",
20
+ "format": "whykit.claim-provenance/v1",
21
+ "links": [
22
+ {
23
+ "assessment": {
24
+ "by": "Ada Example",
25
+ "kind": "human",
26
+ "relation": "supports"
27
+ },
28
+ "evidence_id": "E-005",
29
+ "location": {
30
+ "end_byte": 144,
31
+ "quote": "2026-09-10: reviewed_items=1.000 items.\n2026-09-17: reviewed_items=2.000 items.\nSynthetic fixture; these values do not establish causal effect.\n",
32
+ "start_byte": 0
33
+ },
34
+ "source_version": "sha256:fab761d309bb12500028ff74d7b094c3e62028c2148ade332442d7b17194e6ca"
35
+ }
36
+ ],
37
+ "statement": "The fixture declares 1.000 reviewed items on September 10 and 2.000 on September 17."
38
+ }
39
+ ```
@@ -0,0 +1,28 @@
1
+ ---
2
+ title: Evidence register
3
+ aliases: []
4
+ type: reference
5
+ status: draft
6
+ owner: Ada Example
7
+ created: 2026-09-17
8
+ last_updated: 2026-09-17
9
+ source_of_truth: false
10
+ sensitivity: public
11
+ source_ids: []
12
+ tags: []
13
+ ---
14
+
15
+ # Evidence register
16
+
17
+ | ID | Source | Type | Date | Accessed | Location | Claims it supports | Sensitivity |
18
+ |---|---|---|---|---|---|---| --- |
19
+ | E-001 | Synthetic review policy | fixture | 2026-09-17 | 2026-09-17 | https://example.com/review-policy | Acceptance must identify the reviewed record bytes | public |
20
+ | E-003 | Synthetic classification contract | fixture | 2026-09-17 | 2026-09-17 | https://example.com/classification-contract | Rows may tighten their register floor; filtered readers withhold invalid labels | public |
21
+ | E-004 | Synthetic provenance protocol | fixture | 2026-09-17 | 2026-09-17 | https://example.com/provenance-fixture | Synthetic fixture for exact-byte anchors | public |
22
+ | E-005 | Synthetic measurement report | fixture | 2026-09-17 | 2026-09-17 | https://example.com/fixtures/measurements | Declared fixture values only; no causal result | restricted |
23
+
24
+ ## Retired sources
25
+
26
+ | ID | Source | Retired on | Why | Replaced by | Sensitivity |
27
+ |---|---|---|---|---| --- |
28
+ | E-002 | Restricted synthetic source | 2026-09-17 | Synthetic retirement; preserve classification | E-001 | restricted |
@@ -0,0 +1,11 @@
1
+ {
2
+ "evidence_id": "E-004",
3
+ "format": "whykit.source-observations/v1",
4
+ "observations": [
5
+ {
6
+ "recorded_at": "2026-09-17T12:00:00Z",
7
+ "sensitivity": "public",
8
+ "source_version": "sha256:0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f"
9
+ }
10
+ ]
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "evidence_id": "E-005",
3
+ "format": "whykit.source-observations/v1",
4
+ "observations": [
5
+ {
6
+ "recorded_at": "2026-09-17T12:00:00Z",
7
+ "sensitivity": "restricted",
8
+ "source_version": "sha256:fab761d309bb12500028ff74d7b094c3e62028c2148ade332442d7b17194e6ca"
9
+ }
10
+ ]
11
+ }