whykit 0.3.2__tar.gz → 0.3.4__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 (214) hide show
  1. {whykit-0.3.2 → whykit-0.3.4}/CHANGELOG.md +35 -0
  2. {whykit-0.3.2 → whykit-0.3.4}/PKG-INFO +20 -20
  3. {whykit-0.3.2 → whykit-0.3.4}/README.md +1 -1
  4. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/__init__.py +1 -1
  5. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/backlinks.py +2 -0
  6. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/ci_formats.py +6 -12
  7. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/cli.py +13 -8
  8. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/context.py +2 -0
  9. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/graph.py +2 -0
  10. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/immutability.py +34 -6
  11. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/impact.py +10 -6
  12. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/lint.py +46 -13
  13. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/mcp_server.py +11 -0
  14. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/pack.py +2 -0
  15. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/query.py +2 -0
  16. whykit-0.3.4/src/whykit/sensitivity.py +172 -0
  17. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/status.py +2 -0
  18. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/trace.py +2 -0
  19. whykit-0.3.2/src/whykit/sensitivity.py +0 -95
  20. {whykit-0.3.2 → whykit-0.3.4}/.gitignore +0 -0
  21. {whykit-0.3.2 → whykit-0.3.4}/LICENSE +0 -0
  22. {whykit-0.3.2 → whykit-0.3.4}/NOTICE +0 -0
  23. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/00-context/evidence-register.md +0 -0
  24. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/00-context/review-log.md +0 -0
  25. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/06-decisions/d-001-bind-approval-to-reviewed-record-bytes.md +0 -0
  26. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/06-decisions/d-002-classify-individual-evidence-rows-without-lowering-their-register-floor.md +0 -0
  27. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/06-decisions/decision-log.md +0 -0
  28. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/AGENTS.md +0 -0
  29. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/Home.md +0 -0
  30. {whykit-0.3.2 → whykit-0.3.4}/examples/approval/README.md +0 -0
  31. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/00-context/README.md +0 -0
  32. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/00-context/company.md +0 -0
  33. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/00-context/evidence-register.md +0 -0
  34. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/00-context/goals.md +0 -0
  35. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/00-context/review-log.md +0 -0
  36. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/00-context/terminology.md +0 -0
  37. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/01-strategy/README.md +0 -0
  38. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/01-strategy/icp.md +0 -0
  39. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/01-strategy/messaging.md +0 -0
  40. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/01-strategy/offer-architecture.md +0 -0
  41. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/01-strategy/positioning.md +0 -0
  42. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/02-discoverability/README.md +0 -0
  43. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/02-discoverability/content-system.md +0 -0
  44. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/02-discoverability/search-and-answers.md +0 -0
  45. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/03-website/README.md +0 -0
  46. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/03-website/information-architecture.md +0 -0
  47. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/03-website/page-brief-home.md +0 -0
  48. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/04-automation/README.md +0 -0
  49. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/04-automation/inbound-demo-routing.md +0 -0
  50. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/05-operations/README.md +0 -0
  51. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/05-operations/meeting-2026-09-04-pipeline.md +0 -0
  52. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/05-operations/qualification.md +0 -0
  53. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/README.md +0 -0
  54. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-001-git-markdown.md +0 -0
  55. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-002-icp-ops.md +0 -0
  56. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-003-no-paid.md +0 -0
  57. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-004-english.md +0 -0
  58. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-005-product-led-site.md +0 -0
  59. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-006-no-ai-in-h1.md +0 -0
  60. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-007-hubspot.md +0 -0
  61. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-008-discrete.md +0 -0
  62. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-009-partner-led.md +0 -0
  63. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-010-direct.md +0 -0
  64. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/d-011-direct-with-evidence.md +0 -0
  65. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/06-decisions/decision-log.md +0 -0
  66. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/07-research/README.md +0 -0
  67. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/07-research/competitors/vendor-a.md +0 -0
  68. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/07-research/competitors/vendor-b.md +0 -0
  69. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/07-research/interviews/example-region-maintenance-lead-2026-06-18.md +0 -0
  70. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/07-research/market-dach.md +0 -0
  71. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/07-research/sources/ingestion-2026-09-02.md +0 -0
  72. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/AGENTS.md +0 -0
  73. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/Home.md +0 -0
  74. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/INTEROP.md +0 -0
  75. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/OBSIDIAN.md +0 -0
  76. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/README.md +0 -0
  77. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/reports/README.md +0 -0
  78. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/reports/organic-baseline-2026-08-01.md +0 -0
  79. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/README.md +0 -0
  80. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/automation-spec-template.md +0 -0
  81. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/decision-record-template.md +0 -0
  82. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/document-template.md +0 -0
  83. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/experiment-template.md +0 -0
  84. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/meeting-note-template.md +0 -0
  85. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/page-brief-template.md +0 -0
  86. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/research-note-template.md +0 -0
  87. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/templates/source-ingestion-template.md +0 -0
  88. {whykit-0.3.2 → whykit-0.3.4}/examples/northline/whykit.toml +0 -0
  89. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/.gitignore +0 -0
  90. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/00-context/README.md +0 -0
  91. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/00-context/company.md +0 -0
  92. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/00-context/evidence-register.md +0 -0
  93. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/00-context/goals.md +0 -0
  94. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/00-context/review-log.md +0 -0
  95. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/00-context/terminology.md +0 -0
  96. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/06-decisions/README.md +0 -0
  97. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/06-decisions/d-001-start-with-a-minimal-whykit-vault.md +0 -0
  98. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/06-decisions/d-002-keep-the-ledger-to-evidence-and-decisions.md +0 -0
  99. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/06-decisions/decision-log.md +0 -0
  100. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/AGENTS.md +0 -0
  101. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/Home.md +0 -0
  102. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/INTEROP.md +0 -0
  103. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/OBSIDIAN.md +0 -0
  104. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/README.md +0 -0
  105. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/assets/README.md +0 -0
  106. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/notes/README.md +0 -0
  107. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/reports/README.md +0 -0
  108. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/templates/README.md +0 -0
  109. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/templates/decision-record-template.md +0 -0
  110. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/templates/document-template.md +0 -0
  111. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/templates/research-note-template.md +0 -0
  112. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/templates/source-ingestion-template.md +0 -0
  113. {whykit-0.3.2 → whykit-0.3.4}/examples/tiny/whykit.toml +0 -0
  114. {whykit-0.3.2 → whykit-0.3.4}/hatch_build.py +0 -0
  115. {whykit-0.3.2 → whykit-0.3.4}/pyproject.toml +0 -0
  116. {whykit-0.3.2 → whykit-0.3.4}/schemas/adopt-report.schema.json +0 -0
  117. {whykit-0.3.2 → whykit-0.3.4}/schemas/backlinks-report.schema.json +0 -0
  118. {whykit-0.3.2 → whykit-0.3.4}/schemas/check-report.schema.json +0 -0
  119. {whykit-0.3.2 → whykit-0.3.4}/schemas/context-bundle.schema.json +0 -0
  120. {whykit-0.3.2 → whykit-0.3.4}/schemas/context-pack.schema.json +0 -0
  121. {whykit-0.3.2 → whykit-0.3.4}/schemas/decision-approval-result.schema.json +0 -0
  122. {whykit-0.3.2 → whykit-0.3.4}/schemas/decision-record.schema.json +0 -0
  123. {whykit-0.3.2 → whykit-0.3.4}/schemas/diff-report.schema.json +0 -0
  124. {whykit-0.3.2 → whykit-0.3.4}/schemas/doctor-report.schema.json +0 -0
  125. {whykit-0.3.2 → whykit-0.3.4}/schemas/document-frontmatter.schema.json +0 -0
  126. {whykit-0.3.2 → whykit-0.3.4}/schemas/error.schema.json +0 -0
  127. {whykit-0.3.2 → whykit-0.3.4}/schemas/evidence-entry.schema.json +0 -0
  128. {whykit-0.3.2 → whykit-0.3.4}/schemas/evidence-list.schema.json +0 -0
  129. {whykit-0.3.2 → whykit-0.3.4}/schemas/evidence-retire-result.schema.json +0 -0
  130. {whykit-0.3.2 → whykit-0.3.4}/schemas/explorer-index.schema.json +0 -0
  131. {whykit-0.3.2 → whykit-0.3.4}/schemas/graph.schema.json +0 -0
  132. {whykit-0.3.2 → whykit-0.3.4}/schemas/history-report.schema.json +0 -0
  133. {whykit-0.3.2 → whykit-0.3.4}/schemas/impact-report.schema.json +0 -0
  134. {whykit-0.3.2 → whykit-0.3.4}/schemas/init-result.schema.json +0 -0
  135. {whykit-0.3.2 → whykit-0.3.4}/schemas/lint-report.schema.json +0 -0
  136. {whykit-0.3.2 → whykit-0.3.4}/schemas/lint-sarif.schema.json +0 -0
  137. {whykit-0.3.2 → whykit-0.3.4}/schemas/policy.schema.json +0 -0
  138. {whykit-0.3.2 → whykit-0.3.4}/schemas/provenance.schema.json +0 -0
  139. {whykit-0.3.2 → whykit-0.3.4}/schemas/publication-preview.schema.json +0 -0
  140. {whykit-0.3.2 → whykit-0.3.4}/schemas/query-result.schema.json +0 -0
  141. {whykit-0.3.2 → whykit-0.3.4}/schemas/record-create.schema.json +0 -0
  142. {whykit-0.3.2 → whykit-0.3.4}/schemas/recovery-result.schema.json +0 -0
  143. {whykit-0.3.2 → whykit-0.3.4}/schemas/review-event.schema.json +0 -0
  144. {whykit-0.3.2 → whykit-0.3.4}/schemas/review-queue.schema.json +0 -0
  145. {whykit-0.3.2 → whykit-0.3.4}/schemas/review-record-result.schema.json +0 -0
  146. {whykit-0.3.2 → whykit-0.3.4}/schemas/rule-catalog.schema.json +0 -0
  147. {whykit-0.3.2 → whykit-0.3.4}/schemas/rule-detail.schema.json +0 -0
  148. {whykit-0.3.2 → whykit-0.3.4}/schemas/snapshot-verify.schema.json +0 -0
  149. {whykit-0.3.2 → whykit-0.3.4}/schemas/snapshot.schema.json +0 -0
  150. {whykit-0.3.2 → whykit-0.3.4}/schemas/status-report.schema.json +0 -0
  151. {whykit-0.3.2 → whykit-0.3.4}/schemas/trace-report.schema.json +0 -0
  152. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/adopt.py +0 -0
  153. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/check.py +0 -0
  154. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/completion.py +0 -0
  155. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/config.py +0 -0
  156. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/console.py +0 -0
  157. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract.py +0 -0
  158. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/backlinks-report.schema.json +0 -0
  159. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/context-bundle.schema.json +0 -0
  160. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/context-pack.schema.json +0 -0
  161. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/impact-report.schema.json +0 -0
  162. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/query-result.schema.json +0 -0
  163. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/status-report.schema.json +0 -0
  164. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/contract_schemas/trace-report.schema.json +0 -0
  165. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/diff.py +0 -0
  166. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/evidence.py +0 -0
  167. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/explorer_index.py +0 -0
  168. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/init_layout.py +0 -0
  169. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/io.py +0 -0
  170. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/lsp.py +0 -0
  171. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/markdown_code.py +0 -0
  172. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/messages.py +0 -0
  173. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/parse_cache.py +0 -0
  174. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/placeholders.py +0 -0
  175. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/promote.py +0 -0
  176. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/py.typed +0 -0
  177. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/review.py +0 -0
  178. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/rule_policy.py +0 -0
  179. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/rules.py +0 -0
  180. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/scaffold.py +0 -0
  181. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/snapshot.py +0 -0
  182. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/tables.py +0 -0
  183. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/00-context/README.md +0 -0
  184. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/00-context/company.md +0 -0
  185. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/00-context/evidence-register.md +0 -0
  186. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/00-context/goals.md +0 -0
  187. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/00-context/review-log.md +0 -0
  188. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/00-context/terminology.md +0 -0
  189. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/01-strategy/README.md +0 -0
  190. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/02-discoverability/README.md +0 -0
  191. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/03-website/README.md +0 -0
  192. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/04-automation/README.md +0 -0
  193. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/05-operations/README.md +0 -0
  194. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/06-decisions/README.md +0 -0
  195. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/06-decisions/decision-log.md +0 -0
  196. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/07-research/README.md +0 -0
  197. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/AGENTS.md +0 -0
  198. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/Home.md +0 -0
  199. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/INTEROP.md +0 -0
  200. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/OBSIDIAN.md +0 -0
  201. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/README.md +0 -0
  202. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/assets/README.md +0 -0
  203. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/reports/README.md +0 -0
  204. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/README.md +0 -0
  205. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/automation-spec-template.md +0 -0
  206. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/decision-record-template.md +0 -0
  207. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/document-template.md +0 -0
  208. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/experiment-template.md +0 -0
  209. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/meeting-note-template.md +0 -0
  210. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/page-brief-template.md +0 -0
  211. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/research-note-template.md +0 -0
  212. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/templates/source-ingestion-template.md +0 -0
  213. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/template/whykit.toml +0 -0
  214. {whykit-0.3.2 → whykit-0.3.4}/src/whykit/vault_index.py +0 -0
@@ -7,6 +7,41 @@ CLI and the lint rule codes.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.3.4] - 2026-11-03
11
+
12
+ ### Fixed
13
+
14
+ - Allow the release secret scan to ignore one historical synthetic test marker
15
+ by its exact fingerprint; other findings remain subject to scanning.
16
+ - Include the previously unpublished 0.3.3 fixes: honor evidence-row grants in
17
+ scoped reports and packs, and withhold raw global decision and review logs
18
+ from MCP to prevent restricted metadata from leaking.
19
+ - Fix nested command help and preserve exact Git vault paths in history checks,
20
+ snapshot comparisons, hooks and CI. Previously generated hooks are not
21
+ rewritten; regenerate affected hooks with `whykit install-hooks --force`.
22
+
23
+ ## [0.3.3] - 2026-10-27
24
+
25
+ Source tag only. The release secret scan blocked publication before upload.
26
+
27
+ ### Fixed
28
+
29
+ - Honor captured evidence-row grants in scoped library reports. Public packs
30
+ filter note and evidence labels before building contexts; nested readers
31
+ cannot refill omitted rows or expose a partially granted register body.
32
+ - Render command and nested-action help with their own options instead of
33
+ inheriting the root-only grouped formatter and raising an exception.
34
+
35
+ - Withhold raw global decision/review logs from MCP at every ceiling: native
36
+ restricted records can copy their metadata into lower-labeled table rows.
37
+ Individual permitted records remain readable; omitted logs are not reopened
38
+ by confined lint through an ambient filesystem fallback.
39
+ - Preserve exact Git vault paths, including leading and trailing whitespace, in
40
+ history checks, snapshot comparisons, installed hooks and CI locations. Refuse ambiguous Git
41
+ locations instead of silently selecting a sibling vault or repository root.
42
+ Previously generated hooks are not rewritten: inspect an affected hook, then
43
+ regenerate it with `whykit install-hooks --force --root <vault>`.
44
+
10
45
  ## [0.3.2] - 2026-10-27
11
46
 
12
47
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: whykit
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Git-native evidence and decision ledger for teams and AI agents
5
5
  Project-URL: Homepage, https://github.com/CometWeb-io/whykit
6
6
  Project-URL: Documentation, https://github.com/CometWeb-io/whykit#readme
@@ -43,11 +43,11 @@ WhyKit keeps sources, decisions, their reasoning, and review events together in
43
43
  plain Markdown and Git. It gives people and tools a shared, inspectable record of
44
44
  what is known, what was decided, and what still needs checking.
45
45
 
46
- ![WhyKit links evidence to a decision, then checks its structure and review date.](https://raw.githubusercontent.com/CometWeb-io/whykit/v0.3.2/docs/media/overview.svg)
46
+ ![WhyKit links evidence to a decision, then checks its structure and review date.](https://raw.githubusercontent.com/CometWeb-io/whykit/v0.3.4/docs/media/overview.svg)
47
47
 
48
48
  **Python 3.11+ · No runtime dependencies · Apache-2.0**
49
49
 
50
- **Status:** public alpha, available on [PyPI](https://pypi.org/project/whykit/). Source version: `0.3.2`.
50
+ **Status:** public alpha, available on [PyPI](https://pypi.org/project/whykit/). Source version: `0.3.4`.
51
51
 
52
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
53
 
@@ -80,7 +80,7 @@ whykit review --root my-ledger list --due-days 120
80
80
 
81
81
  If `whykit` is not found, run `uv tool update-shell` and open a new terminal.
82
82
  Use `uv tool upgrade whykit` to update an existing installation. For development
83
- or the optional Explorer, see [running from a checkout](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/guide.md#run-whykit-from-a-checkout).
83
+ or the optional Explorer, see [running from a checkout](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/guide.md#run-whykit-from-a-checkout).
84
84
 
85
85
  What you should see:
86
86
 
@@ -94,7 +94,7 @@ created D-001: 06-decisions/d-001-ship-sso-before-audit-logs.md
94
94
 
95
95
  The vault now holds an evidence row (`E-001`), a decision record that cites it
96
96
  (`D-001`), and a matching decision-log entry. The record is a draft until you
97
- complete and [approve it](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/guide.md#approve-a-decision). Four of
97
+ complete and [approve it](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/guide.md#approve-a-decision). Four of
98
98
  the warnings are the questions in the vault's `AGENTS.md` that only you can
99
99
  answer (reply language, branching rule, tone-of-voice owner, safety rules).
100
100
  The fifth, `decision.placeholder`, says the new record still holds the
@@ -110,9 +110,9 @@ Next: write the real context and rationale into `06-decisions/d-001-*.md`,
110
110
  preview and approve the completed record, `git init` the vault, and commit it.
111
111
  Choose a complete workflow:
112
112
 
113
- - [Import an ADR, review changed evidence and export public data](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/tutorials/review-and-export.md): keep source provenance, find the affected decision and retain its review warning in a filtered export.
114
- - [Record, check and supersede a decision](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/tutorials/record-and-supersede.md): replace an accepted choice without rewriting its reasoning.
115
- - [Gate pull requests in GitHub Actions](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/tutorials/gate-pull-requests.md): check changes against a trusted Git baseline.
113
+ - [Import an ADR, review changed evidence and export public data](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/tutorials/review-and-export.md): keep source provenance, find the affected decision and retain its review warning in a filtered export.
114
+ - [Record, check and supersede a decision](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/tutorials/record-and-supersede.md): replace an accepted choice without rewriting its reasoning.
115
+ - [Gate pull requests in GitHub Actions](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/tutorials/gate-pull-requests.md): check changes against a trusted Git baseline.
116
116
 
117
117
  ## Why WhyKit
118
118
 
@@ -140,25 +140,25 @@ keep permitted records and their known warnings while filtering non-public data.
140
140
 
141
141
  WhyKit checks structure and traceability, **not whether a source or conclusion
142
142
  is true**. It is not an AI memory service, a vector database or an
143
- access-control boundary; [Positioning](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/project-positioning.md) says when
143
+ access-control boundary; [Positioning](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/project-positioning.md) says when
144
144
  plain ADRs are the better choice.
145
145
 
146
146
  ## Documentation
147
147
 
148
- Start at the [documentation index](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/README.md). The most used pages:
148
+ Start at the [documentation index](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/README.md). The most used pages:
149
149
 
150
- - [Concepts](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/concepts.md): evidence, decisions, supersession and the review cycle.
151
- - [How-to guides](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/guide.md): adopt existing Markdown, manage evidence, hand context to agents.
152
- - [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/ci.md) and [troubleshooting](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/troubleshooting.md).
153
- - [Command reference](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/cli.md), [configuration](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/configuration.md) and [lint rules](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/rules.md).
154
- - [Automation (JSON contract)](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/automation.md) and the [MCP server](https://github.com/CometWeb-io/whykit/blob/v0.3.2/docs/mcp.md).
150
+ - [Concepts](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/concepts.md): evidence, decisions, supersession and the review cycle.
151
+ - [How-to guides](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/guide.md): adopt existing Markdown, manage evidence, hand context to agents.
152
+ - [CI integration](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/ci.md) and [troubleshooting](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/troubleshooting.md).
153
+ - [Command reference](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/cli.md), [configuration](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/configuration.md) and [lint rules](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/rules.md).
154
+ - [Automation (JSON contract)](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/automation.md) and the [MCP server](https://github.com/CometWeb-io/whykit/blob/v0.3.4/docs/mcp.md).
155
155
 
156
- The example vaults show the format at two scales: [tiny](https://github.com/CometWeb-io/whykit/blob/v0.3.2/examples/tiny/) and
157
- the fully linked, fictional [Northline](https://github.com/CometWeb-io/whykit/blob/v0.3.2/examples/northline/).
156
+ The example vaults show the format at two scales: [tiny](https://github.com/CometWeb-io/whykit/blob/v0.3.4/examples/tiny/) and
157
+ the fully linked, fictional [Northline](https://github.com/CometWeb-io/whykit/blob/v0.3.4/examples/northline/).
158
158
 
159
- [Contributing](https://github.com/CometWeb-io/whykit/blob/v0.3.2/CONTRIBUTING.md) · [Code of Conduct](https://github.com/CometWeb-io/whykit/blob/v0.3.2/CODE_OF_CONDUCT.md) ·
160
- [Security policy](https://github.com/CometWeb-io/whykit/blob/v0.3.2/SECURITY.md) · [Release checklist](https://github.com/CometWeb-io/whykit/blob/v0.3.2/.github/RELEASE.md)
159
+ [Contributing](https://github.com/CometWeb-io/whykit/blob/v0.3.4/CONTRIBUTING.md) · [Code of Conduct](https://github.com/CometWeb-io/whykit/blob/v0.3.4/CODE_OF_CONDUCT.md) ·
160
+ [Security policy](https://github.com/CometWeb-io/whykit/blob/v0.3.4/SECURITY.md) · [Release checklist](https://github.com/CometWeb-io/whykit/blob/v0.3.4/.github/RELEASE.md)
161
161
 
162
162
  Copyright 2026 Maciej Zmitrukiewicz (hello@cometweb.io), licensed under
163
- [Apache-2.0](https://github.com/CometWeb-io/whykit/blob/v0.3.2/LICENSE). [CometWeb](https://cometweb.io) is the product name, not
163
+ [Apache-2.0](https://github.com/CometWeb-io/whykit/blob/v0.3.4/LICENSE). [CometWeb](https://cometweb.io) is the product name, not
164
164
  the copyright holder.
@@ -12,7 +12,7 @@ what is known, what was decided, and what still needs checking.
12
12
 
13
13
  **Python 3.11+ · No runtime dependencies · Apache-2.0**
14
14
 
15
- **Status:** public alpha, available on [PyPI](https://pypi.org/project/whykit/). Source version: `0.3.2`.
15
+ **Status:** public alpha, available on [PyPI](https://pypi.org/project/whykit/). Source version: `0.3.4`.
16
16
 
17
17
  [![CI](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml/badge.svg)](https://github.com/CometWeb-io/whykit/actions/workflows/ci.yml)
18
18
 
@@ -10,7 +10,7 @@ shadow the `whykit.lint` submodule for anyone importing it.
10
10
  """
11
11
  from __future__ import annotations
12
12
 
13
- __version__ = "0.3.2"
13
+ __version__ = "0.3.4"
14
14
  __all__ = ["__version__", "TEMPLATE_DIR", "find_vault_root", "is_vault_root", "lint_vault"]
15
15
 
16
16
  from pathlib import Path
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  from .io import consistent_read
5
+ from .sensitivity import scoped_report
5
6
 
6
7
  import argparse
7
8
  import json
@@ -55,6 +56,7 @@ def _normalize_target(root: Path, target: str, vault: VaultIndex) -> tuple[str,
55
56
 
56
57
 
57
58
  @consistent_read
59
+ @scoped_report
58
60
  @path_cache()
59
61
  def build_backlinks(root: Path, target: str, *, vault: VaultIndex | None = None) -> dict:
60
62
  root = root.resolve()
@@ -16,6 +16,7 @@ not ``Home.md``. Outside Git the paths stay vault-relative.
16
16
  from __future__ import annotations
17
17
 
18
18
  import hashlib
19
+ import errno
19
20
  import shutil
20
21
  import subprocess
21
22
  from collections.abc import Iterable, Mapping
@@ -24,6 +25,7 @@ from typing import Any
24
25
  from urllib.parse import quote
25
26
 
26
27
  from . import __version__
28
+ from .immutability import GitScopeError, _git_vault_location
27
29
  from .rules import RULES, Rule
28
30
 
29
31
  SARIF_VERSION = "2.1.0"
@@ -51,19 +53,11 @@ def _git_location(root: Path) -> tuple[Path, str] | None:
51
53
  if shutil.which("git") is None:
52
54
  return None
53
55
  try:
54
- result = subprocess.run(
55
- ["git", "-C", str(root), "rev-parse", "--show-toplevel", "--show-prefix"],
56
- capture_output=True, text=True, encoding="utf-8", errors="surrogateescape", check=False,
57
- )
58
- except OSError:
59
- return None
60
- lines = result.stdout.splitlines()
61
- if result.returncode != 0 or not lines:
56
+ return _git_vault_location(str(root))
57
+ except GitScopeError:
58
+ raise OSError(errno.EINVAL, "Git vault scope could not be verified; ambiguous paths are refused") from None
59
+ except (OSError, subprocess.CalledProcessError):
62
60
  return None
63
- prefix = lines[1].strip().replace("\\", "/") if len(lines) > 1 else ""
64
- if prefix and not prefix.endswith("/"):
65
- prefix += "/"
66
- return Path(lines[0].strip()), prefix
67
61
 
68
62
 
69
63
  def source_root(root: Path) -> tuple[Path, str]:
@@ -713,19 +713,22 @@ def _git_hooks_location(vault: Path) -> tuple[Path, str] | None:
713
713
  worktree (where `.git` is a file), and `core.hooksPath` may move the hooks,
714
714
  so ask Git instead of assuming `<vault>/.git/hooks`.
715
715
  """
716
+ from .immutability import GitScopeError, _git_prefix, git
717
+
716
718
  if not shutil.which("git"):
717
719
  return None
718
- result = subprocess.run(
719
- ["git", "-C", str(vault), "rev-parse", "--git-path", "hooks", "--show-prefix"],
720
- capture_output=True, text=True, encoding="utf-8", errors="replace",
721
- )
722
- lines = result.stdout.splitlines()
723
- if result.returncode != 0 or not lines:
720
+ try:
721
+ prefix = _git_prefix(str(vault))
722
+ output = git("rev-parse", "--git-path", "hooks", root=str(vault))
723
+ except GitScopeError:
724
+ raise OSError(errno.EINVAL, "Git vault scope could not be verified; ambiguous paths are refused") from None
725
+ except subprocess.CalledProcessError:
724
726
  return None
725
- hooks = Path(lines[0])
727
+ if not output.endswith("\n") or not output[:-1] or any(char in output[:-1] for char in "\r\n\0"):
728
+ raise OSError(errno.EINVAL, "Git hook location could not be verified; ambiguous paths are refused")
729
+ hooks = Path(output[:-1])
726
730
  if not hooks.is_absolute():
727
731
  hooks = vault / hooks
728
- prefix = lines[1].strip() if len(lines) > 1 else ""
729
732
  return hooks, prefix
730
733
 
731
734
 
@@ -1128,6 +1131,8 @@ class _TopParser(_Parser):
1128
1131
  return super().parse_known_args(_hoist_root(raw, set(_subcommand_helps(self))), namespace)
1129
1132
 
1130
1133
  def format_help(self) -> str:
1134
+ if self.prog != "whykit":
1135
+ return super().format_help()
1131
1136
  formatter = self._get_formatter()
1132
1137
  formatter.add_usage(self.usage, self._actions, self._mutually_exclusive_groups)
1133
1138
  formatter.add_text(self.description)
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  from .io import consistent_read
5
+ from .sensitivity import scoped_report
5
6
 
6
7
  import argparse
7
8
  import json
@@ -79,6 +80,7 @@ def _budgeted(note: Note, max_chars: int) -> tuple[str, bool]:
79
80
 
80
81
 
81
82
  @consistent_read
83
+ @scoped_report
82
84
  @path_cache()
83
85
  def build_context(
84
86
  root: Path,
@@ -6,6 +6,7 @@ documents can also cite evidence and decisions can supersede one another.
6
6
  from __future__ import annotations
7
7
 
8
8
  from .io import consistent_read
9
+ from .sensitivity import scoped_report
9
10
 
10
11
  import argparse
11
12
  import re
@@ -51,6 +52,7 @@ def wikilink_resolutions(note, vault_index: VaultIndex) -> Iterator[tuple[str, P
51
52
 
52
53
 
53
54
  @consistent_read
55
+ @scoped_report
54
56
  @path_cache()
55
57
  def build_graph(
56
58
  root: Path,
@@ -19,6 +19,7 @@ import argparse
19
19
  import datetime as dt
20
20
  import hashlib
21
21
  import os
22
+ from pathlib import Path
22
23
  import re
23
24
  import subprocess
24
25
  import sys
@@ -57,8 +58,12 @@ def git(*args: str, root: str | None = None) -> str:
57
58
  ).stdout
58
59
 
59
60
 
60
- def _git_prefix(root: str | None) -> str:
61
- """Return the path from the Git work tree to *root*, with a trailing slash.
61
+ class GitScopeError(subprocess.CalledProcessError):
62
+ """Git answered, but its namespace cannot safely identify the requested vault."""
63
+
64
+
65
+ def _git_vault_location(root: str | None) -> tuple[Path, str]:
66
+ """Return the verified Git work tree and exact relative vault prefix.
62
67
 
63
68
  When the vault lives in a subdirectory (``examples/northline``), ``git diff
64
69
  --relative`` speaks in vault-relative paths but ``git show REV:path`` needs
@@ -66,11 +71,34 @@ def _git_prefix(root: str | None) -> str:
66
71
  they silently skip every decision record. Without *root* the vault is the
67
72
  working directory, which may itself be a subdirectory.
68
73
  """
74
+ prefix_output = git("rev-parse", "--show-prefix", root=root)
69
75
  try:
70
- prefix = git("rev-parse", "--show-prefix", root=root).strip().replace("\\", "/")
71
- except subprocess.CalledProcessError:
72
- return ""
73
- return prefix if not prefix or prefix.endswith("/") else f"{prefix}/"
76
+ top_output = git("rev-parse", "--show-toplevel", root=root)
77
+ def line(output: str) -> str:
78
+ if not output.endswith("\n") or any(char in output[:-1] for char in "\r\n\0"):
79
+ raise ValueError("ambiguous Git location output")
80
+ return output[:-1]
81
+ prefix, top = line(prefix_output), line(top_output)
82
+ if os.name == "nt":
83
+ prefix = prefix.replace("\\", "/")
84
+ relative, repository = Path(prefix), Path(top)
85
+ if relative.is_absolute() or ".." in relative.parts or not repository.is_absolute():
86
+ raise ValueError("unsafe Git location output")
87
+ requested = Path(root or os.getcwd()).resolve(strict=True)
88
+ located = (repository / relative).resolve(strict=True)
89
+ if not located.samefile(requested):
90
+ raise ValueError("Git location does not match requested vault")
91
+ except (OSError, ValueError, subprocess.CalledProcessError):
92
+ raise GitScopeError(
93
+ 128, ["git", "rev-parse", "--show-prefix", "--show-toplevel"], output="",
94
+ stderr="Git vault scope could not be verified; ambiguous paths are refused",
95
+ ) from None
96
+ return repository.resolve(strict=True), prefix if not prefix or prefix.endswith("/") else f"{prefix}/"
97
+
98
+
99
+ def _git_prefix(root: str | None) -> str:
100
+ """Return the verified work-tree-relative vault path, with a trailing slash."""
101
+ return _git_vault_location(root)[1]
74
102
 
75
103
 
76
104
  def _git_object_path(vault_rel: str, prefix: str) -> str:
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  from .io import consistent_read
5
+ from .sensitivity import scoped_report
5
6
 
6
7
  import argparse
7
8
  import json
@@ -107,12 +108,14 @@ def _wikilink_view(root: Path, vault_index: VaultIndex) -> _WikilinkView:
107
108
  rare full-graph fallback reads the register: a register rewritten under a
108
109
  reused index is re-read.
109
110
  """
110
- register = root / "00-context" / "evidence-register.md"
111
- try:
112
- stat = register.stat()
113
- stamp: tuple[int, int] | None = (stat.st_mtime_ns, stat.st_size)
114
- except OSError:
115
- stamp = None
111
+ stamp: tuple[int, int] | None = None
112
+ if not vault_index.confined:
113
+ register = root / "00-context" / "evidence-register.md"
114
+ try:
115
+ stat = register.stat()
116
+ stamp = (stat.st_mtime_ns, stat.st_size)
117
+ except OSError:
118
+ pass
116
119
  key = ("impact.wikilinks", os.fspath(root), stamp)
117
120
  cached = vault_index.derived.get(key)
118
121
  if cached is None:
@@ -121,6 +124,7 @@ def _wikilink_view(root: Path, vault_index: VaultIndex) -> _WikilinkView:
121
124
 
122
125
 
123
126
  @consistent_read
127
+ @scoped_report
124
128
  @path_cache()
125
129
  def analyze_impact(root: Path, target: str, *, vault: VaultIndex | None = None) -> dict:
126
130
  vault_index = vault or VaultIndex.load(root)
@@ -31,6 +31,7 @@ from collections.abc import Callable, Iterator
31
31
  from typing import Iterable
32
32
 
33
33
  from .io import _lock_owner, consistent_read
34
+ from .sensitivity import scoped_report
34
35
  from .tables import split_table_row as _split_table_row, review_table_header
35
36
  from .config import CONFIG_FILE, ConfigError, load_config
36
37
  from .markdown_code import mask_code as _mask_code
@@ -1194,10 +1195,34 @@ class _EvidenceView:
1194
1195
  _EVIDENCE_VIEW: contextvars.ContextVar[_EvidenceView | None] = contextvars.ContextVar("whykit_evidence_view", default=None)
1195
1196
 
1196
1197
 
1198
+ def _captured_evidence(root: Path) -> tuple | None:
1199
+ """Return the active request's frozen rows, without an ambient fallback."""
1200
+ view = _EVIDENCE_VIEW.get()
1201
+ cache = _request_cache()
1202
+ if view is None or not view.active or cache is None or view.request is not cache or view.root != _real(root):
1203
+ return None
1204
+ if callable(view.rows):
1205
+ view.rows = view.rows()
1206
+ active, retired, occurrences = view.rows
1207
+ return ({key: dict(row) for key, row in active.items()}, {key: dict(row) for key, row in retired.items()}, list(occurrences))
1208
+
1209
+
1210
+ def _intersect_evidence(parent: tuple, child: tuple) -> tuple:
1211
+ """A child may narrow IDs, but cannot refresh or expand its parent's rows."""
1212
+ active, retired, occurrences = parent
1213
+ ids = set(child[0]) | set(child[1])
1214
+ return ({key: dict(row) for key, row in active.items() if key in ids},
1215
+ {key: dict(row) for key, row in retired.items() if key in ids},
1216
+ [(key, line) for key, line in occurrences if key in ids])
1217
+
1218
+
1197
1219
  @contextlib.contextmanager
1198
1220
  def evidence_view(root: Path, rows: tuple | Callable[[], tuple]):
1199
1221
  """Use one captured, filtered register throughout a read-only request."""
1200
1222
  with path_cache():
1223
+ parent = _captured_evidence(root)
1224
+ if parent is not None:
1225
+ rows = _intersect_evidence(parent, rows() if callable(rows) else rows)
1201
1226
  view = _EvidenceView(_real(root), rows, _request_cache())
1202
1227
  token = _EVIDENCE_VIEW.set(view)
1203
1228
  try:
@@ -1208,12 +1233,10 @@ def evidence_view(root: Path, rows: tuple | Callable[[], tuple]):
1208
1233
 
1209
1234
 
1210
1235
  def evidence_register(root: Path) -> tuple[dict[str, dict[str, str]], dict[str, dict[str, str]], list[tuple[str, int]]]:
1211
- view = _EVIDENCE_VIEW.get()
1236
+ captured = _captured_evidence(root)
1237
+ if captured is not None:
1238
+ return captured
1212
1239
  cache = _request_cache()
1213
- if view is not None and view.active and cache is not None and view.request is cache and view.root == _real(root):
1214
- rows = view.rows() if callable(view.rows) else view.rows
1215
- active, retired, occurrences = rows
1216
- return ({key: dict(row) for key, row in active.items()}, {key: dict(row) for key, row in retired.items()}, list(occurrences))
1217
1240
  path = root / "00-context" / "evidence-register.md"
1218
1241
  if not path.exists() or not _within(root, path):
1219
1242
  return {}, {}, []
@@ -1444,9 +1467,10 @@ def decision_log_rows(root: Path, *, text: str | None = None) -> list[dict[str,
1444
1467
  return rows
1445
1468
 
1446
1469
 
1447
- def check_decision_log(root: Path, notes: list[Note], findings: list[Finding], resolve: Resolver | None = None) -> None:
1470
+ def check_decision_log(root: Path, notes: list[Note], findings: list[Finding], resolve: Resolver | None = None,
1471
+ *, text: str | None = None) -> None:
1448
1472
  path = root / "06-decisions" / "decision-log.md"
1449
- if not path.exists():
1473
+ if text is None and not path.exists():
1450
1474
  return
1451
1475
  record_notes: dict[str, Note] = {}
1452
1476
  for note in notes:
@@ -1457,7 +1481,7 @@ def check_decision_log(root: Path, notes: list[Note], findings: list[Finding], r
1457
1481
  if did:
1458
1482
  record_notes[did] = note
1459
1483
 
1460
- rows = decision_log_rows(root)
1484
+ rows = decision_log_rows(root, text=text)
1461
1485
  log_seen: dict[str, int] = {}
1462
1486
  row_ids: set[str] = set()
1463
1487
  status_map = {"draft": "proposed", "in_review": "proposed", "approved": "accepted", "superseded": "superseded", "archived": "archived"}
@@ -1734,12 +1758,14 @@ def check_config(root: Path, findings: list[Finding]) -> None:
1734
1758
  add(findings, root, path, 1, "error", "config.invalid", str(exc))
1735
1759
 
1736
1760
 
1737
- def check_review_log(root: Path, notes: list[Note], findings: list[Finding], resolve: Resolver | None = None) -> None:
1761
+ def check_review_log(root: Path, notes: list[Note], findings: list[Finding], resolve: Resolver | None = None,
1762
+ *, text: str | None = None) -> None:
1738
1763
  path = root / "00-context" / "review-log.md"
1739
- if not path.exists():
1764
+ if text is None and not path.exists():
1740
1765
  return
1741
1766
  real = _real(path)
1742
- note = next((item for item in notes if _real(item.path) == real), None) or load_note(path)
1767
+ note = (load_note(path, text=text) if text is not None
1768
+ else next((item for item in notes if _real(item.path) == real), None) or load_note(path))
1743
1769
  lines = note.text.splitlines()
1744
1770
  header_idx = review_table_header(lines)
1745
1771
  if header_idx is None or header_idx + 1 >= len(lines):
@@ -1968,6 +1994,7 @@ def _path_order(path: Path) -> list[str]:
1968
1994
 
1969
1995
 
1970
1996
  @consistent_read
1997
+ @scoped_report(project_notes=False)
1971
1998
  @path_cache()
1972
1999
  def lint(
1973
2000
  root: Path,
@@ -2028,7 +2055,10 @@ def lint(
2028
2055
  check_evidence_register(root, findings, today, config)
2029
2056
  check_evidence_ids(root, notes, findings)
2030
2057
  check_decision_ids(root, notes, findings)
2031
- check_decision_log(root, all_notes, findings, index_model.resolve_link)
2058
+ captured_log = index_model.note_for(root / "06-decisions/decision-log.md") if index_model.confined else None
2059
+ if not index_model.confined or captured_log is not None:
2060
+ decision_log_text = captured_log.text if captured_log is not None else None
2061
+ check_decision_log(root, all_notes, findings, index_model.resolve_link, text=decision_log_text)
2032
2062
  check_decision_review(root, notes, findings)
2033
2063
  check_decision_placeholders(root, notes, findings)
2034
2064
  if config is None:
@@ -2042,7 +2072,10 @@ def lint(
2042
2072
  if not paths:
2043
2073
  check_config(root, findings)
2044
2074
  check_path_collisions(root, all_notes, findings)
2045
- check_review_log(root, all_notes, findings, index_model.resolve_link)
2075
+ captured_reviews = index_model.note_for(root / "00-context/review-log.md") if index_model.confined else None
2076
+ if not index_model.confined or captured_reviews is not None:
2077
+ review_log_text = captured_reviews.text if captured_reviews is not None else None
2078
+ check_review_log(root, all_notes, findings, index_model.resolve_link, text=review_log_text)
2046
2079
  check_agents_configured(root, findings)
2047
2080
  if orphans and not paths:
2048
2081
  check_orphans(root, notes, findings, index_model.resolve_link)
@@ -701,6 +701,13 @@ def _validate_cursor(value: object) -> str | None:
701
701
  _MCP_REQUEST: contextvars.ContextVar[tuple[object, object, dict] | None] = contextvars.ContextVar("whykit_mcp_request", default=None)
702
702
 
703
703
 
704
+ def _native_global_ledger(path: str) -> bool:
705
+ """Native writers may copy stricter record metadata into these raw tables."""
706
+ return path.replace("\\", "/").casefold() in {
707
+ "06-decisions/decision-log.md", "00-context/review-log.md",
708
+ }
709
+
710
+
704
711
  def _vault_request(handler):
705
712
  @functools.wraps(handler)
706
713
  def guarded(self, *args, **kwargs):
@@ -743,6 +750,8 @@ class VaultTools:
743
750
  return current[2]["index"]
744
751
  ceiling = SENSITIVITY_LEVEL[self.policy]
745
752
  index = VaultIndex.load(self.vault)
753
+ # Exclude raw mixed-target tables before every tool/resource view, including full_index.
754
+ index = index.subset(lambda note: not _native_global_ledger(index.relative(note.path)))
746
755
  active, retired, occurrences, per_row = classified_evidence(index)
747
756
  registers = evidence_register_notes(index)
748
757
  register_paths = {note.path for note in registers}
@@ -898,6 +907,8 @@ class VaultTools:
898
907
 
899
908
  def finding_visible(item: dict) -> bool:
900
909
  path = str(item.get("path") or "")
910
+ if _native_global_ledger(path):
911
+ return False
901
912
  if path in hidden_paths:
902
913
  # File-level checks (secret scanning) still read every file.
903
914
  return False
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  from .io import consistent_read
5
+ from .sensitivity import scoped_report
5
6
 
6
7
  import argparse
7
8
  import json
@@ -76,6 +77,7 @@ def _record_key(context: dict[str, Any]) -> str:
76
77
 
77
78
 
78
79
  @consistent_read
80
+ @scoped_report
79
81
  @path_cache()
80
82
  def build_pack(
81
83
  root: Path,
@@ -2,6 +2,7 @@
2
2
  from __future__ import annotations
3
3
 
4
4
  from .io import consistent_read
5
+ from .sensitivity import scoped_report
5
6
 
6
7
  import argparse
7
8
  import json
@@ -41,6 +42,7 @@ def _summary(index: VaultIndex, note) -> dict:
41
42
 
42
43
 
43
44
  @consistent_read
45
+ @scoped_report
44
46
  @path_cache()
45
47
  def query_vault(
46
48
  root: Path,