whykit 0.3.4__tar.gz → 0.5.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 (343) hide show
  1. {whykit-0.3.4 → whykit-0.5.0}/.gitignore +3 -0
  2. {whykit-0.3.4 → whykit-0.5.0}/CHANGELOG.md +231 -1
  3. whykit-0.5.0/PKG-INFO +297 -0
  4. whykit-0.5.0/README.md +260 -0
  5. whykit-0.5.0/examples/agent-eval/cases.jsonl +3 -0
  6. whykit-0.5.0/examples/agent-eval/responses.jsonl +3 -0
  7. whykit-0.5.0/examples/github-import/README.md +27 -0
  8. whykit-0.5.0/examples/github-import/issue.json +13 -0
  9. whykit-0.5.0/examples/github-import/pull-request.json +25 -0
  10. whykit-0.5.0/examples/github-import/workflow-run.json +17 -0
  11. whykit-0.5.0/examples/northline/templates/README.md +21 -0
  12. whykit-0.5.0/examples/outcomes/00-context/artifacts/E-004/0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f.json +9 -0
  13. whykit-0.5.0/examples/outcomes/00-context/artifacts/E-005/fab761d309bb12500028ff74d7b094c3e62028c2148ade332442d7b17194e6ca.json +9 -0
  14. whykit-0.5.0/examples/outcomes/00-context/claims/c-001.md +39 -0
  15. whykit-0.5.0/examples/outcomes/00-context/claims/c-002.md +39 -0
  16. whykit-0.5.0/examples/outcomes/00-context/evidence-register.md +28 -0
  17. whykit-0.5.0/examples/outcomes/00-context/observations/E-004.json +11 -0
  18. whykit-0.5.0/examples/outcomes/00-context/observations/E-005.json +11 -0
  19. whykit-0.5.0/examples/outcomes/00-context/outcomes/o-001.md +50 -0
  20. whykit-0.5.0/examples/outcomes/00-context/review-log.md +24 -0
  21. whykit-0.5.0/examples/outcomes/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +65 -0
  22. whykit-0.5.0/examples/outcomes/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +62 -0
  23. whykit-0.5.0/examples/outcomes/06-decisions/d-003-keep-claims-and-source-versions-separate-from-approved-reasoning.md +73 -0
  24. whykit-0.5.0/examples/outcomes/06-decisions/d-004-record-source-observations-separately-from-immutable-captures.md +66 -0
  25. whykit-0.5.0/examples/outcomes/06-decisions/d-005-keep-measured-outcomes-separate-from-approvals-and-causal-claims.md +67 -0
  26. whykit-0.5.0/examples/outcomes/06-decisions/decision-log.md +23 -0
  27. whykit-0.5.0/examples/outcomes/AGENTS.md +5 -0
  28. whykit-0.5.0/examples/outcomes/Home.md +23 -0
  29. whykit-0.5.0/examples/outcomes/README.md +41 -0
  30. whykit-0.5.0/examples/outcomes/outcome-input.json +31 -0
  31. whykit-0.5.0/examples/outcomes/proposal.json +7 -0
  32. whykit-0.5.0/examples/outcomes/whykit.toml +5 -0
  33. whykit-0.5.0/examples/payments/.gitignore +18 -0
  34. whykit-0.5.0/examples/payments/00-context/company.md +55 -0
  35. whykit-0.5.0/examples/payments/00-context/evidence-register.md +38 -0
  36. whykit-0.5.0/examples/payments/00-context/goals.md +38 -0
  37. whykit-0.5.0/examples/payments/00-context/review-log.md +28 -0
  38. whykit-0.5.0/examples/payments/00-context/terminology.md +34 -0
  39. whykit-0.5.0/examples/payments/06-decisions/d-001-store-money-as-integer-cents.md +55 -0
  40. whykit-0.5.0/examples/payments/06-decisions/d-002-keep-the-ledger-on-a-single-postgres-primary.md +55 -0
  41. whykit-0.5.0/examples/payments/06-decisions/d-003-make-every-webhook-handler-idempotent.md +56 -0
  42. whykit-0.5.0/examples/payments/06-decisions/d-004-render-the-checkout-page-on-the-server.md +56 -0
  43. whykit-0.5.0/examples/payments/06-decisions/d-005-keep-decision-records-in-the-main-repository.md +54 -0
  44. whykit-0.5.0/examples/payments/06-decisions/d-006-render-checkout-on-the-client-with-server-side-validation.md +56 -0
  45. whykit-0.5.0/examples/payments/06-decisions/decision-log.md +43 -0
  46. whykit-0.5.0/examples/payments/AGENTS.md +162 -0
  47. whykit-0.5.0/examples/payments/Home.md +47 -0
  48. whykit-0.5.0/examples/payments/INTEROP.md +117 -0
  49. whykit-0.5.0/examples/payments/OBSIDIAN.md +92 -0
  50. whykit-0.5.0/examples/payments/README.md +41 -0
  51. whykit-0.5.0/examples/payments/notes/README.md +18 -0
  52. whykit-0.5.0/examples/payments/templates/decision-record-template.md +65 -0
  53. whykit-0.5.0/examples/payments/templates/document-template.md +55 -0
  54. whykit-0.5.0/examples/payments/templates/experiment-template.md +62 -0
  55. whykit-0.5.0/examples/payments/templates/meeting-note-template.md +47 -0
  56. whykit-0.5.0/examples/payments/templates/research-note-template.md +53 -0
  57. whykit-0.5.0/examples/payments/templates/source-ingestion-template.md +43 -0
  58. whykit-0.5.0/examples/payments/whykit.toml +45 -0
  59. whykit-0.5.0/examples/provenance/00-context/artifacts/E-004/0aa321978f794bb048b587c157923b3cdd70510ecaf47ac8728572b9bc2dcf4f.json +9 -0
  60. whykit-0.5.0/examples/provenance/00-context/claims/c-001.md +39 -0
  61. whykit-0.5.0/examples/provenance/00-context/evidence-register.md +27 -0
  62. whykit-0.5.0/examples/provenance/00-context/observations/E-004.json +11 -0
  63. whykit-0.5.0/examples/provenance/00-context/review-log.md +24 -0
  64. whykit-0.5.0/examples/provenance/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +65 -0
  65. whykit-0.5.0/examples/provenance/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +62 -0
  66. whykit-0.5.0/examples/provenance/06-decisions/d-003-keep-claims-and-source-versions-separate-from-approved-reasoning.md +73 -0
  67. whykit-0.5.0/examples/provenance/06-decisions/d-004-record-source-observations-separately-from-immutable-captures.md +66 -0
  68. whykit-0.5.0/examples/provenance/06-decisions/decision-log.md +22 -0
  69. whykit-0.5.0/examples/provenance/AGENTS.md +5 -0
  70. whykit-0.5.0/examples/provenance/Home.md +23 -0
  71. whykit-0.5.0/examples/provenance/README.md +40 -0
  72. whykit-0.5.0/examples/provenance/proposal.json +7 -0
  73. whykit-0.5.0/examples/provenance/whykit.toml +5 -0
  74. {whykit-0.3.4 → whykit-0.5.0}/pyproject.toml +3 -2
  75. whykit-0.5.0/schemas/affected-report.schema.json +308 -0
  76. whykit-0.5.0/schemas/agent-eval-result.schema.json +116 -0
  77. whykit-0.5.0/schemas/agent-preflight-result.schema.json +162 -0
  78. whykit-0.5.0/schemas/claim-list.schema.json +224 -0
  79. whykit-0.5.0/schemas/claim-provenance.schema.json +56 -0
  80. whykit-0.5.0/schemas/claim-record.schema.json +23 -0
  81. whykit-0.5.0/schemas/claim-show.schema.json +232 -0
  82. whykit-0.5.0/schemas/claim-verification.schema.json +77 -0
  83. whykit-0.5.0/schemas/compiled-context.schema.json +955 -0
  84. whykit-0.5.0/schemas/connect-result.schema.json +93 -0
  85. whykit-0.5.0/schemas/context-verification.schema.json +16 -0
  86. whykit-0.5.0/schemas/deep-impact.schema.json +283 -0
  87. {whykit-0.3.4 → whykit-0.5.0}/schemas/document-frontmatter.schema.json +29 -0
  88. whykit-0.5.0/schemas/downgrade-check.schema.json +15 -0
  89. whykit-0.5.0/schemas/evidence-artifact.schema.json +18 -0
  90. whykit-0.5.0/schemas/github-import-receipt.schema.json +298 -0
  91. whykit-0.5.0/schemas/github-import-result.schema.json +303 -0
  92. whykit-0.5.0/schemas/hybrid-retrieval.schema.json +767 -0
  93. whykit-0.5.0/schemas/impact-dependencies.schema.json +322 -0
  94. whykit-0.5.0/schemas/knowledge-export-result.schema.json +58 -0
  95. whykit-0.5.0/schemas/knowledge-migration.schema.json +1201 -0
  96. whykit-0.5.0/schemas/knowledge-restore-result.schema.json +53 -0
  97. whykit-0.5.0/schemas/knowledge-v2.schema.json +1098 -0
  98. whykit-0.5.0/schemas/outcome-create.schema.json +213 -0
  99. whykit-0.5.0/schemas/outcome-list.schema.json +217 -0
  100. whykit-0.5.0/schemas/outcome-record.schema.json +47 -0
  101. whykit-0.5.0/schemas/outcome-show.schema.json +225 -0
  102. whykit-0.5.0/schemas/outcome-verification.schema.json +158 -0
  103. whykit-0.5.0/schemas/provenance-write.schema.json +77 -0
  104. whykit-0.5.0/schemas/scope-check.schema.json +159 -0
  105. whykit-0.5.0/schemas/scope-suggestions.schema.json +161 -0
  106. whykit-0.5.0/schemas/source-observations.schema.json +25 -0
  107. whykit-0.5.0/schemas/temporal-graph.schema.json +283 -0
  108. whykit-0.5.0/schemas/workspace-status.schema.json +108 -0
  109. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/__init__.py +1 -1
  110. whykit-0.5.0/src/whykit/affected.py +892 -0
  111. whykit-0.5.0/src/whykit/agent_eval.py +241 -0
  112. whykit-0.5.0/src/whykit/agent_preflight.py +323 -0
  113. whykit-0.5.0/src/whykit/artifact_store.py +428 -0
  114. whykit-0.5.0/src/whykit/claim_ledger.py +315 -0
  115. whykit-0.5.0/src/whykit/claim_provenance.py +85 -0
  116. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/cli.py +756 -17
  117. whykit-0.5.0/src/whykit/compiled_context.py +695 -0
  118. whykit-0.5.0/src/whykit/connect.py +228 -0
  119. whykit-0.5.0/src/whykit/context_applicability.py +232 -0
  120. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract.py +26 -0
  121. whykit-0.5.0/src/whykit/contract_schemas/affected-report.schema.json +308 -0
  122. whykit-0.5.0/src/whykit/dependency_graph.py +266 -0
  123. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/explorer_index.py +13 -4
  124. whykit-0.5.0/src/whykit/github_import.py +243 -0
  125. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/graph.py +2 -2
  126. whykit-0.5.0/src/whykit/hybrid_retrieval.py +377 -0
  127. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/immutability.py +26 -5
  128. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/impact.py +2 -2
  129. whykit-0.5.0/src/whykit/impact_contract.py +196 -0
  130. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/io.py +28 -3
  131. whykit-0.5.0/src/whykit/knowledge_v2.py +808 -0
  132. whykit-0.5.0/src/whykit/knowledge_visibility.py +154 -0
  133. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/lint.py +16 -0
  134. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/mcp_server.py +95 -4
  135. whykit-0.5.0/src/whykit/outcome_ledger.py +355 -0
  136. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/promote.py +76 -2
  137. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/query.py +33 -10
  138. whykit-0.5.0/src/whykit/retrieval.py +96 -0
  139. whykit-0.5.0/src/whykit/review_history.py +90 -0
  140. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/rules.py +1 -0
  141. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/scaffold.py +37 -2
  142. whykit-0.5.0/src/whykit/scope.py +402 -0
  143. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/sensitivity.py +39 -2
  144. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/snapshot.py +2 -1
  145. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/status.py +2 -2
  146. whykit-0.5.0/src/whykit/template/00-context/README.md +17 -0
  147. whykit-0.5.0/src/whykit/template/06-decisions/README.md +11 -0
  148. whykit-0.5.0/src/whykit/template/assets/README.md +6 -0
  149. whykit-0.5.0/src/whykit/template/reports/README.md +7 -0
  150. whykit-0.5.0/src/whykit/temporal_graph.py +116 -0
  151. whykit-0.5.0/src/whykit/workspace.py +144 -0
  152. whykit-0.3.4/PKG-INFO +0 -164
  153. whykit-0.3.4/README.md +0 -129
  154. {whykit-0.3.4 → whykit-0.5.0}/LICENSE +0 -0
  155. {whykit-0.3.4 → whykit-0.5.0}/NOTICE +0 -0
  156. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/00-context/evidence-register.md +0 -0
  157. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/00-context/review-log.md +0 -0
  158. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +0 -0
  159. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +0 -0
  160. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/06-decisions/decision-log.md +0 -0
  161. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/AGENTS.md +0 -0
  162. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/Home.md +0 -0
  163. {whykit-0.3.4 → whykit-0.5.0}/examples/approval/README.md +0 -0
  164. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/00-context/README.md +0 -0
  165. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/00-context/company.md +0 -0
  166. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/00-context/evidence-register.md +0 -0
  167. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/00-context/goals.md +0 -0
  168. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/00-context/review-log.md +0 -0
  169. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/00-context/terminology.md +0 -0
  170. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/01-strategy/README.md +0 -0
  171. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/01-strategy/icp.md +0 -0
  172. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/01-strategy/messaging.md +0 -0
  173. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/01-strategy/offer-architecture.md +0 -0
  174. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/01-strategy/positioning.md +0 -0
  175. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/02-discoverability/README.md +0 -0
  176. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/02-discoverability/content-system.md +0 -0
  177. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/02-discoverability/search-and-answers.md +0 -0
  178. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/03-website/README.md +0 -0
  179. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/03-website/information-architecture.md +0 -0
  180. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/03-website/page-brief-home.md +0 -0
  181. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/04-automation/README.md +0 -0
  182. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/04-automation/inbound-demo-routing.md +0 -0
  183. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/05-operations/README.md +0 -0
  184. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/05-operations/meeting-2026-09-04-pipeline.md +0 -0
  185. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/05-operations/qualification.md +0 -0
  186. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/README.md +0 -0
  187. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-001-git-markdown.md +0 -0
  188. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-002-icp-ops.md +0 -0
  189. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-003-no-paid.md +0 -0
  190. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-004-english.md +0 -0
  191. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-005-product-led-site.md +0 -0
  192. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-006-no-ai-in-h1.md +0 -0
  193. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-007-hubspot.md +0 -0
  194. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-008-discrete.md +0 -0
  195. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-009-partner-led.md +0 -0
  196. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-010-direct.md +0 -0
  197. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/d-011-direct-with-evidence.md +0 -0
  198. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/06-decisions/decision-log.md +0 -0
  199. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/07-research/README.md +0 -0
  200. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/07-research/competitors/vendor-a.md +0 -0
  201. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/07-research/competitors/vendor-b.md +0 -0
  202. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/07-research/interviews/example-region-maintenance-lead-2026-06-18.md +0 -0
  203. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/07-research/market-dach.md +0 -0
  204. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/07-research/sources/ingestion-2026-09-02.md +0 -0
  205. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/AGENTS.md +0 -0
  206. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/Home.md +0 -0
  207. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/INTEROP.md +0 -0
  208. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/OBSIDIAN.md +0 -0
  209. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/README.md +0 -0
  210. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/reports/README.md +0 -0
  211. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/reports/organic-baseline-2026-08-01.md +0 -0
  212. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/automation-spec-template.md +0 -0
  213. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/decision-record-template.md +0 -0
  214. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/document-template.md +0 -0
  215. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/experiment-template.md +0 -0
  216. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/meeting-note-template.md +0 -0
  217. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/page-brief-template.md +0 -0
  218. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/research-note-template.md +0 -0
  219. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/templates/source-ingestion-template.md +0 -0
  220. {whykit-0.3.4 → whykit-0.5.0}/examples/northline/whykit.toml +0 -0
  221. {whykit-0.3.4/examples/tiny → whykit-0.5.0/examples/payments}/00-context/README.md +0 -0
  222. {whykit-0.3.4/examples/tiny → whykit-0.5.0/examples/payments}/06-decisions/README.md +0 -0
  223. {whykit-0.3.4/examples/tiny → whykit-0.5.0/examples/payments}/assets/README.md +0 -0
  224. {whykit-0.3.4/examples/tiny → whykit-0.5.0/examples/payments}/reports/README.md +0 -0
  225. {whykit-0.3.4/examples/northline → whykit-0.5.0/examples/payments}/templates/README.md +0 -0
  226. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/.gitignore +0 -0
  227. {whykit-0.3.4/src/whykit/template → whykit-0.5.0/examples/tiny}/00-context/README.md +0 -0
  228. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/00-context/company.md +0 -0
  229. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/00-context/evidence-register.md +0 -0
  230. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/00-context/goals.md +0 -0
  231. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/00-context/review-log.md +0 -0
  232. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/00-context/terminology.md +0 -0
  233. {whykit-0.3.4/src/whykit/template → whykit-0.5.0/examples/tiny}/06-decisions/README.md +0 -0
  234. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/06-decisions/d-001-start-with-a-minimal-whykit-vault.md +0 -0
  235. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/06-decisions/d-002-keep-the-ledger-to-evidence-and-decisions.md +0 -0
  236. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/06-decisions/decision-log.md +0 -0
  237. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/AGENTS.md +0 -0
  238. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/Home.md +0 -0
  239. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/INTEROP.md +0 -0
  240. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/OBSIDIAN.md +0 -0
  241. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/README.md +0 -0
  242. {whykit-0.3.4/src/whykit/template → whykit-0.5.0/examples/tiny}/assets/README.md +0 -0
  243. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/notes/README.md +0 -0
  244. {whykit-0.3.4/src/whykit/template → whykit-0.5.0/examples/tiny}/reports/README.md +0 -0
  245. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/templates/README.md +0 -0
  246. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/templates/decision-record-template.md +0 -0
  247. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/templates/document-template.md +0 -0
  248. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/templates/research-note-template.md +0 -0
  249. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/templates/source-ingestion-template.md +0 -0
  250. {whykit-0.3.4 → whykit-0.5.0}/examples/tiny/whykit.toml +0 -0
  251. {whykit-0.3.4 → whykit-0.5.0}/hatch_build.py +0 -0
  252. {whykit-0.3.4 → whykit-0.5.0}/schemas/adopt-report.schema.json +0 -0
  253. {whykit-0.3.4 → whykit-0.5.0}/schemas/backlinks-report.schema.json +0 -0
  254. {whykit-0.3.4 → whykit-0.5.0}/schemas/check-report.schema.json +0 -0
  255. {whykit-0.3.4 → whykit-0.5.0}/schemas/context-bundle.schema.json +0 -0
  256. {whykit-0.3.4 → whykit-0.5.0}/schemas/context-pack.schema.json +0 -0
  257. {whykit-0.3.4 → whykit-0.5.0}/schemas/decision-approval-result.schema.json +0 -0
  258. {whykit-0.3.4 → whykit-0.5.0}/schemas/decision-record.schema.json +0 -0
  259. {whykit-0.3.4 → whykit-0.5.0}/schemas/diff-report.schema.json +0 -0
  260. {whykit-0.3.4 → whykit-0.5.0}/schemas/doctor-report.schema.json +0 -0
  261. {whykit-0.3.4 → whykit-0.5.0}/schemas/error.schema.json +0 -0
  262. {whykit-0.3.4 → whykit-0.5.0}/schemas/evidence-entry.schema.json +0 -0
  263. {whykit-0.3.4 → whykit-0.5.0}/schemas/evidence-list.schema.json +0 -0
  264. {whykit-0.3.4 → whykit-0.5.0}/schemas/evidence-retire-result.schema.json +0 -0
  265. {whykit-0.3.4 → whykit-0.5.0}/schemas/explorer-index.schema.json +0 -0
  266. {whykit-0.3.4 → whykit-0.5.0}/schemas/graph.schema.json +0 -0
  267. {whykit-0.3.4 → whykit-0.5.0}/schemas/history-report.schema.json +0 -0
  268. {whykit-0.3.4 → whykit-0.5.0}/schemas/impact-report.schema.json +0 -0
  269. {whykit-0.3.4 → whykit-0.5.0}/schemas/init-result.schema.json +0 -0
  270. {whykit-0.3.4 → whykit-0.5.0}/schemas/lint-report.schema.json +0 -0
  271. {whykit-0.3.4 → whykit-0.5.0}/schemas/lint-sarif.schema.json +0 -0
  272. {whykit-0.3.4 → whykit-0.5.0}/schemas/policy.schema.json +0 -0
  273. {whykit-0.3.4 → whykit-0.5.0}/schemas/provenance.schema.json +0 -0
  274. {whykit-0.3.4 → whykit-0.5.0}/schemas/publication-preview.schema.json +0 -0
  275. {whykit-0.3.4 → whykit-0.5.0}/schemas/query-result.schema.json +0 -0
  276. {whykit-0.3.4 → whykit-0.5.0}/schemas/record-create.schema.json +0 -0
  277. {whykit-0.3.4 → whykit-0.5.0}/schemas/recovery-result.schema.json +0 -0
  278. {whykit-0.3.4 → whykit-0.5.0}/schemas/review-event.schema.json +0 -0
  279. {whykit-0.3.4 → whykit-0.5.0}/schemas/review-queue.schema.json +0 -0
  280. {whykit-0.3.4 → whykit-0.5.0}/schemas/review-record-result.schema.json +0 -0
  281. {whykit-0.3.4 → whykit-0.5.0}/schemas/rule-catalog.schema.json +0 -0
  282. {whykit-0.3.4 → whykit-0.5.0}/schemas/rule-detail.schema.json +0 -0
  283. {whykit-0.3.4 → whykit-0.5.0}/schemas/snapshot-verify.schema.json +0 -0
  284. {whykit-0.3.4 → whykit-0.5.0}/schemas/snapshot.schema.json +0 -0
  285. {whykit-0.3.4 → whykit-0.5.0}/schemas/status-report.schema.json +0 -0
  286. {whykit-0.3.4 → whykit-0.5.0}/schemas/trace-report.schema.json +0 -0
  287. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/adopt.py +0 -0
  288. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/backlinks.py +0 -0
  289. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/check.py +0 -0
  290. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/ci_formats.py +0 -0
  291. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/completion.py +0 -0
  292. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/config.py +0 -0
  293. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/console.py +0 -0
  294. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/context.py +0 -0
  295. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/backlinks-report.schema.json +0 -0
  296. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/context-bundle.schema.json +0 -0
  297. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/context-pack.schema.json +0 -0
  298. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/impact-report.schema.json +0 -0
  299. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/query-result.schema.json +0 -0
  300. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/status-report.schema.json +0 -0
  301. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/contract_schemas/trace-report.schema.json +0 -0
  302. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/diff.py +0 -0
  303. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/evidence.py +0 -0
  304. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/init_layout.py +0 -0
  305. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/lsp.py +0 -0
  306. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/markdown_code.py +0 -0
  307. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/messages.py +0 -0
  308. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/pack.py +0 -0
  309. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/parse_cache.py +0 -0
  310. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/placeholders.py +0 -0
  311. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/py.typed +0 -0
  312. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/review.py +0 -0
  313. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/rule_policy.py +0 -0
  314. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/tables.py +0 -0
  315. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/00-context/company.md +0 -0
  316. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/00-context/evidence-register.md +0 -0
  317. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/00-context/goals.md +0 -0
  318. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/00-context/review-log.md +0 -0
  319. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/00-context/terminology.md +0 -0
  320. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/01-strategy/README.md +0 -0
  321. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/02-discoverability/README.md +0 -0
  322. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/03-website/README.md +0 -0
  323. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/04-automation/README.md +0 -0
  324. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/05-operations/README.md +0 -0
  325. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/06-decisions/decision-log.md +0 -0
  326. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/07-research/README.md +0 -0
  327. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/AGENTS.md +0 -0
  328. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/Home.md +0 -0
  329. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/INTEROP.md +0 -0
  330. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/OBSIDIAN.md +0 -0
  331. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/README.md +0 -0
  332. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/README.md +0 -0
  333. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/automation-spec-template.md +0 -0
  334. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/decision-record-template.md +0 -0
  335. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/document-template.md +0 -0
  336. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/experiment-template.md +0 -0
  337. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/meeting-note-template.md +0 -0
  338. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/page-brief-template.md +0 -0
  339. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/research-note-template.md +0 -0
  340. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/templates/source-ingestion-template.md +0 -0
  341. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/template/whykit.toml +0 -0
  342. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/trace.py +0 -0
  343. {whykit-0.3.4 → whykit-0.5.0}/src/whykit/vault_index.py +0 -0
@@ -44,3 +44,6 @@ apps/explorer/src/generated/findings.json
44
44
  apps/explorer/e2e/.build/
45
45
  apps/explorer/test-results/
46
46
  apps/explorer/playwright-report/
47
+
48
+ # GitHub Pages landing page build output (scripts/build-site.sh)
49
+ _site/
@@ -7,6 +7,235 @@ CLI and the lint rule codes.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.5.0] - 2026-11-14
11
+
12
+ ### Added
13
+
14
+ - `whykit connect` connects a code repository's AI agents to a vault. It prints
15
+ the read-only MCP configuration for Claude Code, Cursor, VS Code, Codex,
16
+ Claude Desktop or a generic host, with absolute paths filled in, and previews
17
+ a marked decision-checking block for the repository's `AGENTS.md` (or
18
+ `CLAUDE.md` for Claude Code). `--write` adds or refreshes only that block;
19
+ the vault path in it is always relative, and host configuration files are
20
+ never written. `--json` follows the new `connect-result.schema.json`.
21
+ - `whykit affected` maps changed or planned files in a code repository to the
22
+ live decisions that govern them, then runs the agent-preflight checks on each
23
+ match: retired, missing or stale sources, captured sources that changed since
24
+ a claim was pinned, overdue or failed reviews and unverifiable approvals. It
25
+ reports changed files no decision covers, live decisions without a scope and
26
+ invalid patterns, never judges the change itself (`semantics_checked` is
27
+ always false), and offers `--format markdown` for pull requests, `--strict`
28
+ to fail on review signals, `--max-sensitivity` to withhold titles and
29
+ `--json` following the new `affected-report.schema.json`. A configuration
30
+ gap (a source type without a maximum age) is reported once as a caveat.
31
+ - `whykit affected --adr DIR` works on a folder of plain ADRs (MADR, Nygard,
32
+ adr-tools) with no vault and no migration. Proposed, rejected, deprecated and
33
+ superseded ADRs are skipped; scope comes from `applies_to` front matter or is
34
+ inferred from repository paths the ADR mentions (reported as a caveat); a
35
+ mentioned path that no longer exists is a review signal. Without a vault,
36
+ `affected` points at a conventional ADR folder when it finds one.
37
+ - An eighth MCP tool, `affected`, takes the files an agent plans to change and
38
+ returns the same report. Decisions above the ceiling are absent, host paths
39
+ are never returned, and under a public ceiling evidence and claim codes are
40
+ withheld (`evidence_details: "withheld"`), as in `trace`.
41
+ - The GitHub Action's `affected` input adds the report to the job summary and,
42
+ with `comment`, to the decision diff comment. It is advisory and shows
43
+ decision titles only up to `affected-sensitivity` (default `public`).
44
+ - `whykit scope suggest` proposes `applies_to` patterns for live decisions
45
+ from Git history: the commits that changed the decision record and the
46
+ commits whose message names its exact ID. Files are grouped into a few
47
+ patterns, each with the commits and files behind it; lock files and
48
+ changelogs are ignored. `--write` fills in only decisions without a scope,
49
+ `--min-commits` drops weak patterns, and `--json` follows the new
50
+ `scope-suggestions.schema.json`.
51
+ - `whykit affected` reports `cited_source_changed` when a change modifies a
52
+ file that a live decision cites as evidence (an evidence location without a
53
+ URL scheme is read as a repository path), even when the decision's scope
54
+ does not cover the changed code. Matches are listed in `matched_sources`.
55
+ The MCP tool matches sources only when the register is within its ceiling.
56
+ - `watch_terms` on decisions (vault and ADR front matter, `whykit new decision
57
+ --watch-term`): whole words whose appearance in added or removed code lines
58
+ makes a decision apply. Comment-only lines, prose files, lock files and
59
+ changelogs are skipped. Checked in Git mode, with the new
60
+ `whykit affected --diff-file` (a planned patch, `-` for stdin) and through
61
+ the MCP tool's new `diff` argument; reported as unchecked otherwise. Like
62
+ `applies_to`, it may change on an approved decision.
63
+ - Decisions matched only through a pattern covering a whole top-level folder
64
+ are marked `broad`, counted separately and listed last.
65
+ - `whykit scope check` compares live decisions' `applies_to` patterns with the
66
+ repository's tracked files and their `watch_terms` with its source files,
67
+ reporting dead patterns, broad patterns, unseen terms, invalid entries and
68
+ unscoped decisions; `--strict` fails on dead or invalid patterns, and
69
+ `--json` follows the new `scope-check.schema.json`.
70
+ - `whykit scope suggest` also proposes `watch_terms` from a decision's
71
+ rejected alternatives, limited to code-looking names and never written.
72
+ - `scripts/eval_affected.py` replays a repository's commits through
73
+ `affected`, and `docs/field-evaluation.md` reports the first run on four
74
+ public ADR repositories.
75
+
76
+ - Decisions may declare `applies_to`: repository-relative globs for the code
77
+ they govern, set with `whykit new decision --applies-to`. Scope is routing,
78
+ not reasoning: an approved decision may change it without supersession, and
79
+ it is excluded from the approval hash. Existing approvals are unaffected.
80
+ - `examples/payments`, a synthetic vault in which every note is public, and a
81
+ live Explorer demo built from it on GitHub Pages (`WHYKIT_SITE_DEMO=1` in
82
+ `scripts/build-site.sh`).
83
+ - A tested tutorial, [catch decision drift](docs/tutorials/catch-decision-drift.md),
84
+ a reference page (`docs/affected.md`) with a pull-request workflow, a
85
+ `ROADMAP.md` with validation targets and a field-report issue form.
86
+ - A "Connect your AI agents" guide (`docs/agents.md`) and an animated Explorer
87
+ demo in the README.
88
+ - `server.json` describes the MCP server for the official MCP Registry
89
+ (`io.github.cometweb-io/whykit`, run with `uvx --from 'whykit[mcp]' whykit-mcp`),
90
+ and a manual `MCP Registry` workflow publishes it once the version is on PyPI.
91
+
92
+ ### Changed
93
+
94
+ - `whykit agent preflight` and `whykit affected` share one decision
95
+ assessment; preflight output is unchanged.
96
+ - The `whykit connect` instruction block asks agents to run `whykit affected`
97
+ on the files they plan to change.
98
+ - The README leads with the agent use case, shows the Explorer, the CI gate
99
+ and a comparison with ADRs and wikis, and moves the alpha limits into their
100
+ own section.
101
+ - Tests that need a non-root user or the installed `whykit` entry point now
102
+ skip with a reason instead of failing in containers and plain checkouts.
103
+
104
+ ### Fixed
105
+
106
+ Found by the [field evaluation](docs/field-evaluation.md):
107
+
108
+ - `new decision --from` accepted the adoption report `MIGRATION.md` written by
109
+ `whykit adopt` as an ADR; it is now refused.
110
+ - MADR "Pros and Cons of the Options" now fill the upside and risk columns of
111
+ the alternatives table; status badges and images are no longer offered as
112
+ evidence candidates; `deciders` / `decision-makers` become the owner unless
113
+ `--owner` is given; an ADR whose source status says superseded, deprecated
114
+ or rejected is promoted with a warning to supersede or archive it.
115
+ - `scope suggest` reads all decisions' history in two `git log` passes instead
116
+ of several per decision (22 s → 1.2 s for 15 decisions on a 77,000-commit
117
+ repository), and the `affected` text report shows five matched files and a
118
+ count instead of every file.
119
+ - ADR path inference ignored prose such as `dd/mm/yyyy`, `CI/CD` and domain
120
+ names only by luck; it now reads a path only when its first segment exists
121
+ at the repository root, so package-relative paths are no longer candidates
122
+ for "moved code".
123
+ - An ADR marked `[superseded]` (or deprecated, rejected) only in its title was
124
+ treated as in force.
125
+ - `scope suggest` learned from imports, sweeps and mass renames; it now
126
+ ignores commits wider than `--max-files` (default 25).
127
+ - `affected --adr` resolves the repository path before comparing it with the
128
+ ADR folder, so a checkout behind a symlink (macOS `/var` is `/private/var`)
129
+ keeps its inferred scopes and moved-code signals.
130
+
131
+ ## [0.4.0] - 2026-11-05
132
+
133
+ ### Added
134
+
135
+ - Add a conservative downgrade check and recovery guidance for the 0.3.4 client;
136
+ neither authorizes a downgrade nor changes the already-published old client.
137
+
138
+ - Optional `provenance.whykit_impact` declarations describe typed dependencies
139
+ on evidence, claims, decisions and implementation notes. Declarations use a
140
+ namespaced JSON scalar; existing records require no migration or rewrite.
141
+ - `impact.invalid` starts as a warning for malformed owned declarations.
142
+ Implementation cards and dependent native records receive a restricted
143
+ effective floor and a closed dependency view before graph construction or retrieval.
144
+
145
+ - Opt-in hybrid document retrieval combines BM25 with bounded typed-graph
146
+ proximity and explicit time/status/scope filters. Results expose score
147
+ components, paths, uncertainty and construction/traversal truncation; the
148
+ compiler can bind these explanations into its full byte budget. Existing
149
+ substring/BM25 defaults remain unchanged.
150
+
151
+ - Compiled contexts distinguish locally applicable decision premises from
152
+ explicit references, with declared validity and bounded visible review and
153
+ supersession history. Query eligibility is applied before ranking.
154
+
155
+ - Preview and import saved GitHub REST issue, pull-request and workflow-run
156
+ payloads into an existing restricted E-ID. Exact raw capture, observation
157
+ and immutable import receipt share a transaction. Exported metadata remains
158
+ untrusted attribution; no provider fetching or execution is performed.
159
+
160
+ - Optional restricted Outcome declarations distinguish exact decimal baselines,
161
+ targets and observations, with content-pinned historical source checks.
162
+ Numeric agreement, causal effect and execution authority remain unchecked.
163
+ - A scoped five-kind knowledge v2 view and explicit private migration bundles
164
+ preserve source bytes, directory inventory and extra fields. Restore uses a
165
+ new directory and transfers no Git history or trusted approval baseline.
166
+ Safe bundle export/restore currently require POSIX descriptor support.
167
+
168
+ - Offline answer evaluation, structural preflight, explicit local multi-vault
169
+ status and opt-in BM25 through the installed CLI.
170
+ - Byte-bounded compiled context with scoped input manifests and stale-report
171
+ verification; preflight can require current context covering every declared
172
+ decision. Results never grant execution authority.
173
+ - Typed transitive dependency explanations and pinned Git snapshots with a
174
+ separate, explicitly declared validity interval.
175
+ - Immutable local source captures and canonical Markdown claims with exact-byte
176
+ anchors. New decision approvals can pin the reviewed raw claim hashes;
177
+ preflight checks those pins, intervals and indirect evidence lifecycle.
178
+ - Transactional source-observation ledgers preserve capture deduplication and
179
+ A → B → A history. Claim verification and preflight distinguish matching old
180
+ anchors from changed, unknown, ambiguous or future observations; compiled
181
+ context binds permitted observation/capture hashes and warns about drift.
182
+
183
+ ### Changed
184
+
185
+ - Make the first-run CLI guidance and README example show how to record a
186
+ decision and trace it to a source. Machine-readable output is unchanged.
187
+
188
+ - Existing vaults and JSON v1 commands retain their current format. The optional
189
+ `claim` note type lives under `00-context/claims/`; captures use
190
+ `00-context/artifacts/`. Optional `outcome` notes live under
191
+ `00-context/outcomes/`. Older clients do not understand these new note types.
192
+ No command migrates or rewrites existing approved records. Add claim pins only
193
+ to a new draft before approval, or create a superseding decision.
194
+ - Quote-containing claim notes have a restricted sensitivity floor, including
195
+ metadata downgrades. Sensitivity remains a filter, not authentication or ACL.
196
+ See the synthetic [format decision](examples/provenance/README.md) and
197
+ [claim format](docs/claims.md) before opting in.
198
+ - Native claims without an observation ledger have unknown source freshness.
199
+ Review and recapture the source through preview/apply to record an observation;
200
+ old captures, claim pins and approval receipts are not migrated or rewritten.
201
+ `claim verify` now requires current observations for success and accepts
202
+ `--today` as a whole UTC calendar-day cutoff, rather than an instant clock.
203
+
204
+ ### Fixed
205
+
206
+ - Match canonically equivalent Unicode text in substring search and Explorer,
207
+ including casefolded search terms and metadata filters.
208
+ - Correct the evaluation and workspace documentation to show their installed
209
+ development-version CLI commands.
210
+
211
+ - Accept stable capture and claim files on Windows while retaining file identity
212
+ checks and detecting changes within both path and descriptor metadata.
213
+
214
+ - Reuse the captured graph constructor after hybrid permission and eligibility
215
+ admission, retaining full dependency closure and existing graph output.
216
+
217
+ - Avoid redundant key normalization and empty register projections during scoped
218
+ graph work; preserve strict POSIX single- and double-slash path anchors.
219
+
220
+ - Backdated confirmations cannot clear newer-dated review requests in compiled
221
+ premise selection or standalone preflight.
222
+
223
+ - Standalone preflight respects explicit future, expired and invalid decision
224
+ validity, using the same interval semantics as temporal queries.
225
+
226
+ - Withhold mixed decision/review-log raw bodies and whole-file hashes from compiled
227
+ context; bind visible row history without hidden-row ranking/count leakage.
228
+ - Preflight compiled-context coverage requires an admitted decision premise;
229
+ an explicit future, expired or nonbinding reference cannot satisfy it.
230
+
231
+ - Refuse FIFO, device and symlink inputs before blocking reads, including mutation
232
+ locks, evaluator inputs and proposal manifests; validate the opened descriptor.
233
+ - Keep unreadable classifications out of BM25 statistics and context manifests;
234
+ refresh granted paths without expanding the grant and withhold claim quotes
235
+ whose source IDs are outside its scope.
236
+ - Correct JSON Schema test equality for booleans/numbers and numeric, array and
237
+ string upper bounds; align the security documentation with current exports.
238
+
10
239
  ## [0.3.4] - 2026-11-03
11
240
 
12
241
  ### Fixed
@@ -1028,7 +1257,8 @@ Initial implementation. No package was published under this version.
1028
1257
  rules and common secret leaks.
1029
1258
  - JSON Schemas, a worked example vault, and an optional local Explorer.
1030
1259
 
1031
- [Unreleased]: https://github.com/CometWeb-io/whykit/compare/v0.3.2...HEAD
1260
+ [Unreleased]: https://github.com/CometWeb-io/whykit/compare/v0.5.0...HEAD
1261
+ [0.5.0]: https://github.com/CometWeb-io/whykit/compare/v0.4.0...v0.5.0
1032
1262
  [0.3.2]: https://github.com/CometWeb-io/whykit/compare/v0.3.1...v0.3.2
1033
1263
  [0.3.1]: https://github.com/CometWeb-io/whykit/tree/v0.3.1
1034
1264
  [0.3.0]: https://github.com/CometWeb-io/whykit/tree/v0.3.0
whykit-0.5.0/PKG-INFO ADDED
@@ -0,0 +1,297 @@
1
+ Metadata-Version: 2.5
2
+ Name: whykit
3
+ Version: 0.5.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
+ <div align="center">
39
+
40
+ # WhyKit
41
+
42
+ <!-- mcp-name: io.github.cometweb-io/whykit -->
43
+
44
+ ### Know which decisions a change touches, and which of them need another look.
45
+
46
+ Your coding agent sees the code, not the reasons behind it, so it "fixes"
47
+ things that were deliberate. WhyKit keeps decisions and their sources as plain
48
+ Markdown in Git, maps every change to the decisions that govern it, and flags
49
+ the ones whose evidence or review has gone out of date: in the pull request,
50
+ before merge, and for Claude Code, Cursor or Codex before they edit.
51
+
52
+ [![CI](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml/badge.svg)](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml)
53
+ [![PyPI](https://img.shields.io/pypi/v/whykit?color=05F29B)](https://pypi.org/project/whykit/)
54
+ [![Python](https://img.shields.io/pypi/pyversions/whykit)](https://pypi.org/project/whykit/)
55
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://opensource.org/licenses/Apache-2.0)
56
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/CometWeb-io/whykit/badge)](https://securityscorecards.dev/viewer/?uri=github.com/CometWeb-io/whykit)
57
+ [![Website](https://img.shields.io/badge/website-whykit.cometweb.io-05F29B)](https://whykit.cometweb.io/)
58
+
59
+ **No runtime dependencies · Offline by design · Your data stays Markdown**
60
+
61
+ [Live demo](https://whykit.cometweb.io/demo/) · [Tutorial](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/tutorials/catch-decision-drift.md) · [Connect agents](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/agents.md) · [Docs](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/README.md) · [Roadmap](https://github.com/CometWeb-io/whykit/blob/v0.5.0/ROADMAP.md)
62
+
63
+ ![WhyKit Explorer: decisions, their supersession chain and a timeline, from the synthetic Northline example vault.](https://raw.githubusercontent.com/CometWeb-io/whykit/v0.5.0/docs/media/explorer-demo.gif)
64
+
65
+ </div>
66
+
67
+ ## What it does
68
+
69
+ Each decision cites its sources (`E-001`) and declares the code it governs
70
+ (`applies_to: ["src/payments/**"]`). Before a change lands, one command answers
71
+ *which decisions does this touch, and has anything they rest on changed?*
72
+
73
+ ```console
74
+ $ whykit affected --root examples/payments --today 2026-11-12 \
75
+ --files src/payments/ledger.py src/webhooks/refunds.py README.md
76
+ WhyKit affected — 3 changed files · 2 decisions apply · 1 needs review · 1 file not covered by any decision
77
+ D-001 review Store money as integer cents
78
+ files: src/payments/ledger.py
79
+ - a cited source was retired
80
+ D-003 applies Make every webhook handler idempotent
81
+ files: src/webhooks/refunds.py
82
+ not covered by any decision: README.md
83
+ 1 live decision(s) declare no applies_to scope: D-005
84
+ ```
85
+
86
+ That is real output from the synthetic [payments example](https://github.com/CometWeb-io/whykit/blob/v0.5.0/examples/payments/);
87
+ a test keeps this block in step with the code. The ledger decision rests on an audit checklist
88
+ that has since been replaced, so its reasoning needs a look before this change
89
+ merges. WhyKit says what it checked and what it did not: uncovered files and
90
+ unscoped decisions are listed, and it never claims a change is safe.
91
+
92
+ ![A source, a decision and a review, kept together in WhyKit.](https://raw.githubusercontent.com/CometWeb-io/whykit/v0.5.0/docs/media/overview.svg)
93
+
94
+ - **Sources** get stable IDs and can be retired or replaced; captured sources
95
+ are pinned by their bytes.
96
+ - **Decisions** cite sources, declare their scope, carry an owner and a review
97
+ date, and are append-only: you supersede, you don't rewrite.
98
+ - **Changes** are mapped to decisions by `whykit affected`, locally, in CI and
99
+ by agents, with review signals for retired, missing, stale or changed
100
+ sources (including source files the change itself modifies) and overdue or
101
+ failed reviews. Scopes can be suggested from Git history.
102
+ - **Agents** read the same files through a read-only MCP server, and
103
+ `whykit connect` tells them to ask before they edit.
104
+
105
+ ## Try it
106
+
107
+ Install [uv](https://docs.astral.sh/uv/getting-started/installation/) (0.13.4+)
108
+ and use Python 3.11+. This creates a *vault*, a folder of Markdown files, with
109
+ one source and one draft decision that cites it:
110
+
111
+ <!-- quickstart:start -->
112
+ ```bash
113
+ uv tool install whykit
114
+
115
+ # Create a vault.
116
+ whykit init my-ledger
117
+
118
+ # Record a source, then a draft decision that cites it.
119
+ whykit new --root my-ledger evidence \
120
+ --source "Support ticket export, Q3" --type dataset \
121
+ --location "https://example.com/exports/q3-tickets.csv" \
122
+ --claims "Most onboarding tickets mention SSO"
123
+ whykit new --root my-ledger decision "Ship SSO before audit logs" \
124
+ --owner Platform --status draft --source E-001
125
+
126
+ # See the connection, then check the vault.
127
+ whykit trace --root my-ledger --decision D-001
128
+ whykit lint --root my-ledger
129
+ whykit review --root my-ledger list --due-days 120
130
+ ```
131
+ <!-- quickstart:end -->
132
+
133
+ The trace shows the decision and the source it cites:
134
+
135
+ ```text
136
+ D-001 06-decisions/d-001-ship-sso-before-audit-logs.md (draft)
137
+ E-001 active
138
+ ```
139
+
140
+ The lint check reports five expected warnings: one for the unfinished draft
141
+ and four for unanswered questions in the vault's `AGENTS.md`. Fill in the
142
+ draft's context, options and consequences, then
143
+ [approve it](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/guide.md#approve-a-decision). If `whykit` is not found, run
144
+ `uv tool update-shell` and open a new terminal.
145
+
146
+ ## Catch decision drift
147
+
148
+ Declare what each decision governs, then ask about any change, planned or
149
+ committed:
150
+
151
+ ```bash
152
+ whykit new --root my-ledger decision "Store money as integer cents" \
153
+ --owner Payments --status draft --source E-001 --applies-to 'src/payments/**'
154
+ whykit affected --root my-ledger --files src/payments/ledger.py # before you edit
155
+ whykit affected --root my-ledger --base origin/main --format markdown # in a pull request
156
+ ```
157
+
158
+ Don't want to write scopes by hand? Let Git suggest them from the commits that
159
+ changed each decision or name it in their message, then confirm:
160
+
161
+ ```bash
162
+ whykit scope suggest --root my-ledger # preview
163
+ whykit scope suggest --root my-ledger --write # fill in decisions without a scope
164
+ whykit scope check --root my-ledger --strict # in CI: fail when a scope points at code that moved
165
+ ```
166
+
167
+ A source kept in the repository (a benchmark, a spec) counts too: when a pull
168
+ request modifies it, every decision citing it is flagged.
169
+
170
+ Decisions about a library or a convention can watch for words instead of
171
+ paths: with `watch_terms: ["moment"]`, a change that adds `import moment`
172
+ surfaces the "Use Luxon" decision. An agent can send its planned patch before
173
+ applying it. We [replayed real ADR repositories](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/field-evaluation.md) to
174
+ tune this, and publish what did not work too.
175
+
176
+ Already have ADRs? Skip the vault and point it at the folder; scopes are
177
+ inferred from the paths each ADR mentions, and moved code is flagged:
178
+
179
+ ```bash
180
+ whykit affected --adr docs/decisions --base origin/main
181
+ ```
182
+
183
+ The [ten-minute tutorial](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/tutorials/catch-decision-drift.md) goes from an
184
+ empty repository to a flagged decision and its successor; every command in it
185
+ runs in the test suite. [Affected decisions](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/affected.md) covers scope
186
+ patterns, every signal and a pull-request workflow.
187
+
188
+ ## Connect your agents
189
+
190
+ One command prints the MCP configuration for your host and adds a short,
191
+ marked block to your code repository's `CLAUDE.md` or `AGENTS.md` telling the
192
+ agent to look up decisions before it changes what they cover:
193
+
194
+ ```bash
195
+ uv tool install --upgrade 'whykit[mcp]'
196
+ whykit connect --root my-ledger --host claude-code # preview
197
+ whykit connect --root my-ledger --host claude-code --write # apply
198
+ ```
199
+
200
+ Hosts: `claude-code`, `cursor`, `vscode`, `codex`, `claude-desktop` and
201
+ `generic`. The server is read-only with eight tools (`query`, `context`,
202
+ `impact`, `status`, `pack`, `trace`, `backlinks`, `affected`); records above your chosen
203
+ sensitivity ceiling are never returned. The instruction block also tells the
204
+ agent to call `affected` on the files it plans to change. `whykit connect`,
205
+ `whykit affected` and the `affected` tool are new in 0.5.0;
206
+ the MCP server itself is in 0.4.0.
207
+ [Read the agent guide](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/agents.md).
208
+
209
+ ## Gate pull requests
210
+
211
+ Instructions ask; CI enforces. On a pull request, the GitHub Action fails when
212
+ an accepted decision's reasoning is rewritten, a cited source is missing or a
213
+ credential slips into the vault:
214
+
215
+ ```yaml
216
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
217
+ with:
218
+ fetch-depth: 0
219
+ - uses: CometWeb-io/whykit@<reviewed-40-character-commit-sha>
220
+ with:
221
+ root: decisions
222
+ profile: ci
223
+ affected: "true" # add the decisions this change touches to the job summary
224
+ ```
225
+
226
+ See [gate pull requests](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/tutorials/gate-pull-requests.md) for the full
227
+ workflow and a good and a bad example, and [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/ci.md) for
228
+ PR comments, SARIF and other CI systems.
229
+
230
+ ## What would you like to do?
231
+
232
+ - **See it on a real-looking vault:** [live Explorer demo](https://whykit.cometweb.io/demo/) of the payments example.
233
+ - **Record a decision and change your mind later:** [record, check and supersede](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/tutorials/record-and-supersede.md).
234
+ - **Bring existing notes or ADRs:** [adopt existing Markdown](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/guide.md#already-have-a-pile-of-markdown).
235
+ - **Browse the vault in a web UI:** [run the Explorer](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/guide.md#browse-the-vault-in-the-explorer).
236
+ - **Edit in Obsidian or your editor:** [Obsidian](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/obsidian.md) · [language server](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/editors.md).
237
+ - **Review a changed source and share a filtered export:** [import, review and export](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/tutorials/review-and-export.md).
238
+
239
+ ## Why WhyKit
240
+
241
+ | | Plain ADRs | Wiki / Notion | WhyKit |
242
+ |---|---|---|---|
243
+ | Lives next to the code, in Git | ✓ | | ✓ |
244
+ | Maps a code change to the decisions that govern it | | | ✓ |
245
+ | Flags decisions whose sources were retired, replaced or changed | | | ✓ |
246
+ | Review dates that expire and get reported | | | ✓ |
247
+ | Rewriting accepted decisions blocked in CI | | | ✓ |
248
+ | Read-only MCP access for agents, sensitivity-filtered | | | ✓ |
249
+ | Works offline, no account, no service | ✓ | | ✓ |
250
+
251
+ Already happy with ADRs? Keep them; [here is when they are the better fit](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/project-positioning.md).
252
+ When you outgrow them, `whykit adopt --profile adr-only` brings them in.
253
+
254
+ ## Built to be trusted
255
+
256
+ - **Plain files are canonical.** Every view (queries, graphs, MCP, the
257
+ Explorer) is derived from Markdown you can read and diff.
258
+ - **Nothing phones home.** No telemetry, accounts or network calls; a test
259
+ breaks the socket layer and runs every vault command.
260
+ - **A stable machine contract.** Every `--json` output has a published
261
+ [JSON Schema](https://github.com/CometWeb-io/whykit/blob/v0.5.0/schemas/); error codes and exit codes are documented in the
262
+ [automation contract](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/automation.md).
263
+ - **Tested hard.** About 1,800 tests, property and fuzz tests for the parsers,
264
+ reproducible builds, an SBOM and OpenSSF Scorecard on every release.
265
+
266
+ ## Limits, stated plainly
267
+
268
+ WhyKit checks that reasoning is cited, dated and not rewritten. It does
269
+ **not** decide whether a source is true or a decision is right, and it does
270
+ not re-check external sources on its own. Sensitivity labels filter what the
271
+ MCP server and exports return; they are not access control, so keep real
272
+ vaults in private repositories. `whykit affected` matches files by path, not
273
+ by meaning, and sees only changes recorded in the vault. Agent instructions are
274
+ a request: pair them with the CI gate. The project is a public alpha; see the
275
+ [feature status](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/feature-status.md) and the
276
+ [0.4 upgrade guide](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/migration-0.4.md).
277
+
278
+ ## Documentation
279
+
280
+ - [Start here](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/README.md) · [Concepts](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/concepts.md) · [How-to guides](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/guide.md) · [Connect agents](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/agents.md) · [Affected decisions](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/affected.md)
281
+ - [Command reference](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/cli.md) · [Configuration](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/configuration.md) · [Lint rules](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/rules.md)
282
+ - [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/ci.md) · [MCP server](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/mcp.md) · [Troubleshooting](https://github.com/CometWeb-io/whykit/blob/v0.5.0/docs/troubleshooting.md)
283
+ - Example vaults: [payments](https://github.com/CometWeb-io/whykit/blob/v0.5.0/examples/payments/), [tiny](https://github.com/CometWeb-io/whykit/blob/v0.5.0/examples/tiny/) and [Northline](https://github.com/CometWeb-io/whykit/blob/v0.5.0/examples/northline/)
284
+
285
+ ## Contributing
286
+
287
+ Issues and pull requests are welcome. Start with [CONTRIBUTING.md](https://github.com/CometWeb-io/whykit/blob/v0.5.0/CONTRIBUTING.md);
288
+ the whole suite runs offline with the standard library. If WhyKit is useful to
289
+ you, a ⭐ helps other people find it.
290
+
291
+ [Contributing](https://github.com/CometWeb-io/whykit/blob/v0.5.0/CONTRIBUTING.md) · [Code of Conduct](https://github.com/CometWeb-io/whykit/blob/v0.5.0/CODE_OF_CONDUCT.md) ·
292
+ [Security policy](https://github.com/CometWeb-io/whykit/blob/v0.5.0/SECURITY.md) · [Release checklist](https://github.com/CometWeb-io/whykit/blob/v0.5.0/.github/RELEASE.md) ·
293
+ [Changelog](https://github.com/CometWeb-io/whykit/blob/v0.5.0/CHANGELOG.md) · [Roadmap](https://github.com/CometWeb-io/whykit/blob/v0.5.0/ROADMAP.md)
294
+
295
+ Copyright 2026 Maciej Zmitrukiewicz (hello@cometweb.io), licensed under
296
+ [Apache-2.0](https://github.com/CometWeb-io/whykit/blob/v0.5.0/LICENSE). [CometWeb](https://cometweb.io) is the product name, not
297
+ the copyright holder.