zikaron 0.3.2__tar.gz → 0.4.1__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 (455) hide show
  1. {zikaron-0.3.2/zikaron.egg-info → zikaron-0.4.1}/PKG-INFO +386 -142
  2. {zikaron-0.3.2 → zikaron-0.4.1}/README.md +385 -141
  3. {zikaron-0.3.2 → zikaron-0.4.1}/pyproject.toml +1 -1
  4. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_access_log.py +17 -12
  5. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_agent_scan.py +10 -0
  6. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_background_encoder.py +1 -1
  7. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_cli_front_door.py +2 -1
  8. zikaron-0.4.1/tests/test_code_knowledge_claude_live.py +232 -0
  9. zikaron-0.4.1/tests/test_code_knowledge_command.py +817 -0
  10. zikaron-0.4.1/tests/test_code_knowledge_kiro_live.py +264 -0
  11. zikaron-0.4.1/tests/test_code_knowledge_plan.py +488 -0
  12. zikaron-0.4.1/tests/test_code_knowledge_reminder.py +164 -0
  13. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_snapshot_planning.py +6 -2
  14. zikaron-0.4.1/tests/test_guard_kiro_live.py +131 -0
  15. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_main.py +181 -21
  16. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_nudge.py +14 -1
  17. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_properties.py +8 -5
  18. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_rule_table.py +62 -20
  19. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_selfmatch_table.py +7 -5
  20. zikaron-0.4.1/tests/test_guard_texts.py +261 -0
  21. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_harness_detect.py +56 -13
  22. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_harness_table.py +138 -65
  23. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_components.py +39 -2
  24. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_connect.py +20 -9
  25. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_connect_edge_cases.py +15 -6
  26. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_connect_integration.py +1 -1
  27. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_connect_race.py +1 -1
  28. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_connect_real_service_integration.py +2 -2
  29. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_envelope.py +22 -29
  30. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_main.py +67 -17
  31. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_push.py +62 -34
  32. zikaron-0.4.1/tests/test_hook_reminder.py +443 -0
  33. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_rpc.py +65 -16
  34. zikaron-0.4.1/tests/test_hook_session_relay.py +197 -0
  35. zikaron-0.4.1/tests/test_hook_shell_search.py +167 -0
  36. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_spawn_warm.py +5 -5
  37. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_stdlib_only.py +1 -1
  38. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_subagent_policy.py +9 -0
  39. zikaron-0.4.1/tests/test_hook_tripwire.py +92 -0
  40. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_warm_helper_integration.py +2 -2
  41. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_write_policy.py +29 -46
  42. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_indexing_chunking.py +42 -8
  43. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_indexing_integration.py +16 -0
  44. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_assets.py +204 -131
  45. zikaron-0.4.1/tests/test_install_code_knowledge.py +819 -0
  46. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_components.py +198 -13
  47. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_e2e.py +55 -22
  48. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_harness.py +127 -23
  49. zikaron-0.4.1/tests/test_install_kiro_guards.py +278 -0
  50. zikaron-0.4.1/tests/test_install_kiro_live.py +315 -0
  51. zikaron-0.4.1/tests/test_install_limits.py +217 -0
  52. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_main.py +129 -42
  53. zikaron-0.4.1/tests/test_install_models.py +193 -0
  54. zikaron-0.4.1/tests/test_install_snapshots.py +29 -0
  55. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_takeover.py +1 -1
  56. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_targets.py +121 -42
  57. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_writer.py +784 -272
  58. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_build_invariants.py +15 -3
  59. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_build_log.py +5 -4
  60. zikaron-0.4.1/tests/test_knowledge_build_transactions.py +179 -0
  61. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_builds.py +48 -17
  62. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_cli.py +321 -45
  63. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_cli_integration.py +21 -34
  64. zikaron-0.4.1/tests/test_knowledge_corpus_migration.py +397 -0
  65. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_counters.py +23 -12
  66. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_database.py +21 -9
  67. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_detach.py +148 -13
  68. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_files.py +8 -8
  69. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_groups.py +65 -15
  70. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_indexer.py +4 -5
  71. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_integration.py +3 -0
  72. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_invariants.py +13 -8
  73. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_lifecycle.py +47 -27
  74. zikaron-0.4.1/tests/test_knowledge_linked_search.py +276 -0
  75. zikaron-0.4.1/tests/test_knowledge_links.py +167 -0
  76. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_lock_race.py +10 -6
  77. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_meta.py +1 -1
  78. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_registry.py +9 -4
  79. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_repair.py +7 -2
  80. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_reporting.py +66 -30
  81. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_search.py +6 -1
  82. zikaron-0.4.1/tests/test_knowledge_source_hash.py +488 -0
  83. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_writes.py +5 -1
  84. zikaron-0.4.1/tests/test_loop_lateness.py +87 -0
  85. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_connection_integration.py +19 -14
  86. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_connection_labels.py +50 -24
  87. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_spill.py +36 -15
  88. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_project_scope.py +6 -6
  89. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_context.py +2 -2
  90. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_context_assemble.py +1 -1
  91. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_diagnostics.py +20 -3
  92. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_dispatch.py +1 -0
  93. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_dispatch_knowledge.py +2 -0
  94. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_knowledge_management.py +116 -26
  95. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_lifecycle.py +20 -7
  96. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_lifecycle_integration.py +1 -1
  97. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_read_contention.py +41 -26
  98. zikaron-0.4.1/tests/test_service_reminder.py +280 -0
  99. zikaron-0.4.1/tests/test_service_spawned_builds.py +276 -0
  100. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_surface_deadline.py +15 -8
  101. zikaron-0.4.1/tests/test_service_version_check.py +226 -0
  102. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_write_contention.py +3 -8
  103. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_writer.py +67 -43
  104. zikaron-0.4.1/tests/test_spawned_interpreter.py +71 -0
  105. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_store_migration.py +49 -6
  106. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_store_pool.py +9 -4
  107. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/cli/main.py +15 -17
  108. zikaron-0.4.1/zikaron/code_knowledge/__init__.py +6 -0
  109. zikaron-0.4.1/zikaron/code_knowledge/__main__.py +11 -0
  110. zikaron-0.4.1/zikaron/code_knowledge/apply.py +84 -0
  111. zikaron-0.4.1/zikaron/code_knowledge/main.py +234 -0
  112. zikaron-0.4.1/zikaron/code_knowledge/output.py +76 -0
  113. zikaron-0.4.1/zikaron/code_knowledge/survey.py +169 -0
  114. zikaron-0.4.1/zikaron/core/code_knowledge/__init__.py +6 -0
  115. zikaron-0.4.1/zikaron/core/code_knowledge/document.py +163 -0
  116. zikaron-0.4.1/zikaron/core/code_knowledge/layout.py +74 -0
  117. zikaron-0.4.1/zikaron/core/code_knowledge/plan.py +308 -0
  118. zikaron-0.4.1/zikaron/core/code_knowledge/readme.py +70 -0
  119. zikaron-0.4.1/zikaron/core/code_knowledge/reminder.py +78 -0
  120. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/config/keys.py +10 -0
  121. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/events.py +3 -4
  122. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/chunking.py +35 -8
  123. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/builds.py +34 -10
  124. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/counters.py +37 -10
  125. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/database.py +21 -11
  126. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/ddl.py +4 -0
  127. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/disposal.py +9 -1
  128. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/files.py +34 -13
  129. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/groups.py +60 -28
  130. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/lifecycle.py +39 -20
  131. zikaron-0.4.1/zikaron/core/knowledge/link_store.py +140 -0
  132. zikaron-0.4.1/zikaron/core/knowledge/links.py +165 -0
  133. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/meta.py +24 -11
  134. zikaron-0.4.1/zikaron/core/knowledge/migration.py +90 -0
  135. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/paths.py +13 -3
  136. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/reporting.py +99 -17
  137. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/scan.py +29 -1
  138. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/search.py +64 -2
  139. zikaron-0.4.1/zikaron/core/knowledge/source_hash.py +279 -0
  140. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/writes.py +5 -1
  141. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/block.py +11 -11
  142. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/holders.py +11 -10
  143. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/migration.py +9 -0
  144. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/pool.py +1 -1
  145. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/store.py +3 -3
  146. zikaron-0.4.1/zikaron/core/version.py +31 -0
  147. zikaron-0.4.1/zikaron/guard/__init__.py +2 -0
  148. zikaron-0.4.1/zikaron/guard/arguments.py +36 -0
  149. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/decision.py +5 -3
  150. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/grep_filter.py +54 -15
  151. zikaron-0.4.1/zikaron/guard/main.py +180 -0
  152. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/messages.py +49 -18
  153. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/scratch.py +38 -11
  154. zikaron-0.4.1/zikaron/guard/start_text.py +63 -0
  155. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/harness/detect.py +23 -3
  156. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/harness/spec.py +174 -89
  157. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/connect.py +26 -3
  158. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/envelope.py +17 -38
  159. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/failure.py +41 -1
  160. zikaron-0.4.1/zikaron/hook/limits.py +27 -0
  161. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/main.py +25 -8
  162. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/push.py +22 -55
  163. zikaron-0.4.1/zikaron/hook/reminder.py +154 -0
  164. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/rpc.py +74 -24
  165. zikaron-0.4.1/zikaron/hook/session_relay.py +110 -0
  166. zikaron-0.4.1/zikaron/hook/shell_search.py +211 -0
  167. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/spawn_warm.py +14 -13
  168. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/tripwire.py +5 -14
  169. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/warm_helper.py +1 -1
  170. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/assets.py +124 -43
  171. zikaron-0.4.1/zikaron/install/code_knowledge.py +713 -0
  172. zikaron-0.4.1/zikaron/install/entries.py +657 -0
  173. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/harness.py +59 -4
  174. zikaron-0.4.1/zikaron/install/kiro_merge.py +837 -0
  175. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/main.py +25 -39
  176. zikaron-0.4.1/zikaron/install/models.py +111 -0
  177. zikaron-0.4.1/zikaron/install/settings_hooks.py +331 -0
  178. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/targets.py +167 -332
  179. zikaron-0.4.1/zikaron/install/writer.py +470 -0
  180. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/client.py +66 -3
  181. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/indexer/build_log.py +3 -4
  182. zikaron-0.4.1/zikaron/knowledge/indexer/detach.py +163 -0
  183. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/indexer/main.py +9 -7
  184. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/main.py +119 -94
  185. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/scope.py +3 -3
  186. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/connection.py +39 -7
  187. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/primary.py +46 -40
  188. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/server.py +9 -2
  189. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/spill.py +29 -17
  190. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/project/initialize.py +2 -1
  191. zikaron-0.4.1/zikaron/project/messages.py +27 -0
  192. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/project/report.py +6 -23
  193. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/project/resolve.py +12 -3
  194. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/context.py +14 -0
  195. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/dispatch.py +24 -10
  196. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/dispatch_knowledge.py +129 -28
  197. zikaron-0.4.1/zikaron/service/dispatch_reminder.py +75 -0
  198. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/lifecycle.py +17 -3
  199. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/methods.py +18 -2
  200. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/params.py +27 -4
  201. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/paths.py +16 -1
  202. zikaron-0.4.1/zikaron/service/reminders.py +42 -0
  203. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/serialize_knowledge.py +37 -30
  204. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/server.py +2 -1
  205. zikaron-0.4.1/zikaron/service/spawned_builds.py +77 -0
  206. {zikaron-0.3.2 → zikaron-0.4.1/zikaron.egg-info}/PKG-INFO +386 -142
  207. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron.egg-info/SOURCES.txt +54 -1
  208. zikaron-0.3.2/tests/test_guard_texts.py +0 -143
  209. zikaron-0.3.2/tests/test_hook_tripwire.py +0 -93
  210. zikaron-0.3.2/tests/test_install_limits.py +0 -313
  211. zikaron-0.3.2/zikaron/guard/__init__.py +0 -1
  212. zikaron-0.3.2/zikaron/guard/main.py +0 -135
  213. zikaron-0.3.2/zikaron/guard/start_text.py +0 -19
  214. zikaron-0.3.2/zikaron/hook/limits.py +0 -63
  215. zikaron-0.3.2/zikaron/install/entries.py +0 -432
  216. zikaron-0.3.2/zikaron/install/writer.py +0 -1013
  217. zikaron-0.3.2/zikaron/knowledge/indexer/detach.py +0 -122
  218. {zikaron-0.3.2 → zikaron-0.4.1}/LICENSE +0 -0
  219. {zikaron-0.3.2 → zikaron-0.4.1}/setup.cfg +0 -0
  220. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_asyncio_compat.py +0 -0
  221. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_check_gate.py +0 -0
  222. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_ci_workflow.py +0 -0
  223. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_clock.py +0 -0
  224. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_config_keys.py +0 -0
  225. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_config_resolution.py +0 -0
  226. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_grouping.py +0 -0
  227. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_invariants.py +0 -0
  228. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_observability.py +0 -0
  229. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_planning.py +0 -0
  230. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_refusals.py +0 -0
  231. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_serving.py +0 -0
  232. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_consolidation_verbs.py +0 -0
  233. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_ddl.py +0 -0
  234. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_definition_of_done_sites.py +0 -0
  235. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_design_pointers_resolve.py +0 -0
  236. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_design_tables.py +0 -0
  237. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_distribution.py +0 -0
  238. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_doctor.py +0 -0
  239. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_embedder.py +0 -0
  240. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_error_codes.py +0 -0
  241. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_event_kinds.py +0 -0
  242. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_claude_live.py +0 -0
  243. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_docstring_examples.py +0 -0
  244. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_malformed.py +0 -0
  245. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_script_file.py +0 -0
  246. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_selfmatch.py +0 -0
  247. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_guard_selfmatch_premise.py +0 -0
  248. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_harness_store_scope.py +0 -0
  249. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_harness_tier_guard.py +0 -0
  250. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_failure.py +0 -0
  251. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_hook_warm_helper.py +0 -0
  252. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_indexing_acquisition.py +0 -0
  253. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_indexing_encoder.py +0 -0
  254. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_indexing_model_cache.py +0 -0
  255. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_indexing_writes.py +0 -0
  256. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_injected_prose_log.py +0 -0
  257. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_install_claude_live.py +0 -0
  258. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_build_row_ordering.py +0 -0
  259. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_chunking.py +0 -0
  260. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_ddl.py +0 -0
  261. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_git.py +0 -0
  262. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_lock.py +0 -0
  263. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_roots.py +0 -0
  264. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_scan.py +0 -0
  265. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_scan_git.py +0 -0
  266. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_state.py +0 -0
  267. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_text.py +0 -0
  268. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_vectors.py +0 -0
  269. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_knowledge_walk.py +0 -0
  270. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_markdown_renders_as_written.py +0 -0
  271. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_connection_ambiguous_failure.py +0 -0
  272. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_connection_cancellation.py +0 -0
  273. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_connection_concurrency.py +0 -0
  274. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_consolidator_bridge.py +0 -0
  275. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_errors.py +0 -0
  276. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_main.py +0 -0
  277. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_server.py +0 -0
  278. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_tool_descriptions.py +0 -0
  279. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_mcp_wire_contracts.py +0 -0
  280. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_meta.py +0 -0
  281. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_permissions.py +0 -0
  282. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_publication_hygiene.py +0 -0
  283. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_quoted_design_prose_is_verbatim.py +0 -0
  284. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_readme_config_table.py +0 -0
  285. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_readme_internal_links.py +0 -0
  286. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_records_memory.py +0 -0
  287. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_records_receipts.py +0 -0
  288. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_records_supersession.py +0 -0
  289. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_retrieval_arms.py +0 -0
  290. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_retrieval_eligibility.py +0 -0
  291. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_retrieval_integration.py +0 -0
  292. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_retrieval_query.py +0 -0
  293. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_retrieval_ranking.py +0 -0
  294. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_retrieval_reads.py +0 -0
  295. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_diagnostics_integration.py +0 -0
  296. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_dispatch_consolidation.py +0 -0
  297. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_encoder_failure_stop.py +0 -0
  298. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_envelope.py +0 -0
  299. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_log.py +0 -0
  300. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_main.py +0 -0
  301. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_ownership.py +0 -0
  302. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_params.py +0 -0
  303. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_paths.py +0 -0
  304. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_rpc.py +0 -0
  305. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_security.py +0 -0
  306. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_service_server.py +0 -0
  307. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_contention.py +0 -0
  308. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_dedup.py +0 -0
  309. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_horizon.py +0 -0
  310. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_repair.py +0 -0
  311. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_retirement.py +0 -0
  312. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_sessions.py +0 -0
  313. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_signals_writes.py +0 -0
  314. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_socket_path_budget.py +0 -0
  315. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_store.py +0 -0
  316. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_store_connection.py +0 -0
  317. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_transaction_begin_sites.py +0 -0
  318. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_version_seam.py +0 -0
  319. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_write_dedup.py +0 -0
  320. {zikaron-0.3.2 → zikaron-0.4.1}/tests/test_write_tools.py +0 -0
  321. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/__init__.py +0 -0
  322. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/cli/__init__.py +0 -0
  323. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/__init__.py +0 -0
  324. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/clock.py +0 -0
  325. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/config/__init__.py +0 -0
  326. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/config/resolution.py +0 -0
  327. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/__init__.py +0 -0
  328. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/authorization.py +0 -0
  329. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/candidates.py +0 -0
  330. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/context.py +0 -0
  331. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/grouping.py +0 -0
  332. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/groups.py +0 -0
  333. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/payload.py +0 -0
  334. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/planning.py +0 -0
  335. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/rowstate.py +0 -0
  336. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/runs.py +0 -0
  337. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/serving.py +0 -0
  338. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/consolidation/verbs.py +0 -0
  339. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/errors.py +0 -0
  340. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/__init__.py +0 -0
  341. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/acquisition.py +0 -0
  342. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/encoder.py +0 -0
  343. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/lexical.py +0 -0
  344. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/model_cache.py +0 -0
  345. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/model_pin.py +0 -0
  346. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/vectors.py +0 -0
  347. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/indexing/writes.py +0 -0
  348. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/__init__.py +0 -0
  349. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/arms.py +0 -0
  350. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/candidates.py +0 -0
  351. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/changes.py +0 -0
  352. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/chunking.py +0 -0
  353. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/errors.py +0 -0
  354. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/git.py +0 -0
  355. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/lexical.py +0 -0
  356. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/lock.py +0 -0
  357. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/pending.py +0 -0
  358. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/registry.py +0 -0
  359. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/repair.py +0 -0
  360. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/roots.py +0 -0
  361. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/state.py +0 -0
  362. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/text.py +0 -0
  363. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/vectors.py +0 -0
  364. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/knowledge/walk.py +0 -0
  365. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/records/__init__.py +0 -0
  366. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/records/memory.py +0 -0
  367. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/records/receipts.py +0 -0
  368. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/records/supersession.py +0 -0
  369. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/__init__.py +0 -0
  370. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/arms.py +0 -0
  371. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/eligibility.py +0 -0
  372. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/query.py +0 -0
  373. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/ranking.py +0 -0
  374. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/reads.py +0 -0
  375. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/retrieve.py +0 -0
  376. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/retrieval/similarity.py +0 -0
  377. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/__init__.py +0 -0
  378. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/contention.py +0 -0
  379. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/dedup.py +0 -0
  380. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/horizon.py +0 -0
  381. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/repair.py +0 -0
  382. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/retirement.py +0 -0
  383. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/sessions.py +0 -0
  384. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/signals/writes.py +0 -0
  385. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/__init__.py +0 -0
  386. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/connection.py +0 -0
  387. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/ddl.py +0 -0
  388. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/deadline.py +0 -0
  389. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/embedder.py +0 -0
  390. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/meta.py +0 -0
  391. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/permissions.py +0 -0
  392. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/store/transactions.py +0 -0
  393. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/write/__init__.py +0 -0
  394. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/write/dedup.py +0 -0
  395. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/core/write/tools.py +0 -0
  396. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/doctor/__init__.py +0 -0
  397. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/doctor/checks.py +0 -0
  398. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/doctor/main.py +0 -0
  399. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/chars.py +0 -0
  400. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/expression.py +0 -0
  401. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/forms.py +0 -0
  402. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/grammar.py +0 -0
  403. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/heredoc.py +0 -0
  404. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/inplace.py +0 -0
  405. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/interpreter.py +0 -0
  406. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/lexer.py +0 -0
  407. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/limits.py +0 -0
  408. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/literal_text.py +0 -0
  409. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/nudge.py +0 -0
  410. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/override.py +0 -0
  411. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/patterns.py +0 -0
  412. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/position.py +0 -0
  413. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/programs.py +0 -0
  414. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/quoting.py +0 -0
  415. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/redirects.py +0 -0
  416. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/script_file.py +0 -0
  417. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/selfmatch.py +0 -0
  418. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/guard/writes.py +0 -0
  419. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/harness/__init__.py +0 -0
  420. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/__init__.py +0 -0
  421. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/components.py +0 -0
  422. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/subagent_policy.py +0 -0
  423. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/hook/write_policy.py +0 -0
  424. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/__init__.py +0 -0
  425. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/__main__.py +0 -0
  426. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/agent_scan.py +0 -0
  427. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/install/ownership.py +0 -0
  428. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/__init__.py +0 -0
  429. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/__main__.py +0 -0
  430. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/indexer/__init__.py +0 -0
  431. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/knowledge/indexer/__main__.py +0 -0
  432. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/__init__.py +0 -0
  433. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/consolidator.py +0 -0
  434. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/errors.py +0 -0
  435. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/main.py +0 -0
  436. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/mcp/tool_names.py +0 -0
  437. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/project/__init__.py +0 -0
  438. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/project/__main__.py +0 -0
  439. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/py.typed +0 -0
  440. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/__init__.py +0 -0
  441. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/access_log.py +0 -0
  442. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/asyncio_compat.py +0 -0
  443. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/diagnostics.py +0 -0
  444. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/dispatch_consolidation.py +0 -0
  445. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/envelope.py +0 -0
  446. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/log.py +0 -0
  447. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/main.py +0 -0
  448. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/ownership.py +0 -0
  449. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/rpc.py +0 -0
  450. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/security.py +0 -0
  451. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron/service/serialize.py +0 -0
  452. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron.egg-info/dependency_links.txt +0 -0
  453. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron.egg-info/entry_points.txt +0 -0
  454. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron.egg-info/requires.txt +0 -0
  455. {zikaron-0.3.2 → zikaron-0.4.1}/zikaron.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zikaron
3
- Version: 0.3.2
3
+ Version: 0.4.1
4
4
  Summary: Memory and searchable project knowledge for coding agents
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/nathan-shapiro/Zikaron
@@ -61,12 +61,12 @@ yes, it is out of scope. That store is for what cost somebody time to discover,
61
61
  be discovered again by the next agent, at full price. A knowledge base has no such test — it is
62
62
  whatever corpus you point it at.
63
63
 
64
- **And, on request, guards for Claude Code** — two deterministic hooks, independent of both stores.
65
- One refuses two kinds of command: a find-replace edit to an authored file (`sed -i`, an inline
66
- script, a heredoc into the file), pointing the agent at `Read` and `Edit`, and a `pgrep -f` or
67
- `pkill -f` whose pattern matches the shell running it. The other reminds the agent, after each
68
- edit, to re-read what it changed. See [Guards](#guards-claude-code-on-request); a project may install the memory store, the
69
- guards, or both.
64
+ **And, on request, guards** — deterministic hooks, independent of both stores. One refuses two
65
+ kinds of command: a find-replace edit to an authored file (`sed -i`, an inline script, a heredoc
66
+ into the file), pointing the agent at the harness's read and edit tools, and a `pgrep -f` or
67
+ `pkill -f` whose pattern matches the shell running it. Under Claude Code a second reminds the
68
+ agent, after each edit, to re-read what it changed; kiro offers no route for such a reminder. See
69
+ [Guards](#guards-on-request); a project may install the memory store, the guards, or both.
70
70
 
71
71
  It runs entirely on your machine: SQLite databases under `.zikaron/`, a local embedding model, and a
72
72
  small background service on a Unix socket. **Zikaron reaches the network for exactly one thing** —
@@ -107,10 +107,10 @@ nothing is ever hard-deleted — a retired record stops surfacing but stays audi
107
107
  consolidation verbs and no way to search or fetch is handed groups of related entries that code
108
108
  selected for it, and decides for each whether to merge, promote or discard. Keeping it separate
109
109
  means a fresh context, and it cannot write outside the group it was handed — every verb refuses a
110
- uuid that was not served to it. Under kiro those four verbs are its whole surface. Under Claude Code
111
- it is also granted a file-reading tool, because a group too large to return is handed to it as a
112
- file instead; that grant cannot be restricted to one path there, so what keeps it off everything
113
- else is its prompt.
110
+ uuid that was not served to it. It is also granted a file-reading tool, because a group too large
111
+ to return is handed to it as a file instead. Under kiro its own rules hold that read to the directory
112
+ the file is written to and refuse every other read and search; under Claude Code the grant cannot be
113
+ restricted to one path in subagent config, so what keeps it off everything else is its prompt.
114
114
 
115
115
  **No agent can put its own words into the text a knowledge base searches.** The searchable content
116
116
  comes only from the files on disk: an indexer walks the tree you pointed it at, chunks them, and
@@ -131,8 +131,8 @@ reads which one it is addressing before it reads a description. Consolidation ne
131
131
  | **service** | A long-running process per project. Holds the embedding model in memory and the databases open, and answers requests over a Unix socket. Starts itself when needed and stops itself when idle. |
132
132
  | **MCP server** | Translates the agent's tool calls into requests to the service. One process per agent instance; loads no model. |
133
133
  | **hook** | A single-shot executable your agent runs on start, before each message, and — under Claude Code — when it spawns a subagent. Deliberately tiny; loads no model and never touches the databases directly. |
134
- | **guard** | Claude Code only, installed on request: a single-shot executable the harness runs before each `Bash` or `Monitor` call and after each edit. Regular expressions over the call, plus one bounded read of a script the call runs from a scratch directory — no model, no service, no store. |
135
- | **indexer** | A detached process started per knowledge-base build — by the service on every `add`/`refresh`, whether an agent asked or you did, or by you running the foreground command a build result prints. It outlives the call that started it, loads a model, saturates a core for a minute or more, and exits when the build finishes. If you see one in `ps`, that is a corpus building, not a runaway. |
134
+ | **guard** | Installed on request: a single-shot executable the harness runs before each shell call — `Bash` or `Monitor` under Claude Code, `execute_bash` under kiro — and, under Claude Code, after each edit. Regular expressions over the call, plus one bounded read of a script the call runs from a scratch directory — no model, no service, no store. |
135
+ | **indexer** | A detached process started per knowledge-base build — by the service on every `add`/`refresh`, whether an agent asked or you did, or by you running it by hand. One the service started writes what it prints to the build log `zikaron knowledge status` names. It outlives the call that started it, loads a model, saturates a core for a minute or more, and exits when the build finishes. If you see one in `ps`, that is a corpus building, not a runaway. |
136
136
 
137
137
  The service exists for one measured reason: loading the embedding model costs about **780 ms**, and
138
138
  retrieval sits on the path of every message you send. Keeping the model resident turns that into a
@@ -158,7 +158,10 @@ and never fails your turn.
158
158
  hard install failure on the third, and Windows needs a second RPC transport rather than a flag.
159
159
  `design/distribution.md` §1 has the detail.
160
160
  - **Python 3.12 or newer.** Tested versions: 3.12, 3.13, 3.14.
161
- - **A supported harness installed: `kiro-cli` or Claude Code.** Zikaron installs hook and MCP
161
+ - **A supported harness installed: `kiro-cli` 2.35.1 or newer, on its V3 agent engine, or Claude
162
+ Code.** V3 is kiro-cli 3.0's default; on 2.35, start kiro with `--v3`. Under kiro's older V2
163
+ engine the shipped agents' first tool call asks for permission with nobody to answer it, and
164
+ the installer refuses a kiro-cli older than 2.35.1. Zikaron installs hook and MCP
162
165
  entries whose only reader is that harness's own binary, so the installer checks it is on your
163
166
  `PATH` and **refuses if it is not** — writing those files where nothing reads them would exit 0
164
167
  and leave you with no Zikaron tools and no error to search for. Pass `--print-only` to see exactly
@@ -174,9 +177,9 @@ and never fails your turn.
174
177
  nothing. A person running it from a terminal outside a session, into a project that has not been
175
178
  set up yet, is the case where nothing says anything and `--harness` is required.
176
179
 
177
- Under kiro it additionally validates the consolidator's model id against the binary, because kiro
178
- substitutes an unknown model silently; Claude Code refuses one itself, at spawn, so no such check
179
- is needed there.
180
+ Under kiro it additionally validates the shipped agents' model id against the binary, because kiro
181
+ replaces an unknown model with its default; Claude Code refuses one itself, at spawn, so no such
182
+ check is needed there.
180
183
 
181
184
  ## Install
182
185
 
@@ -243,8 +246,8 @@ cd /path/to/your/project
243
246
  zikaron install --project . --harness claude-code # or: --harness kiro
244
247
  ```
245
248
 
246
- Under Claude Code, `--components` adds the [guards](#guards-claude-code-on-request), or
247
- installs them alone; without it you get the memory store only, exactly as before:
249
+ `--components` adds the [guards](#guards-on-request), or installs them alone — under kiro
250
+ with `--agent` too; without it you get the memory store only, exactly as before:
248
251
 
249
252
  ```bash
250
253
  zikaron install --project . --harness claude-code --components both # memory and guards
@@ -268,6 +271,14 @@ Under **kiro**, also name the config for the agent you actually work in:
268
271
  zikaron install --project . --harness kiro --agent .kiro/agents/<your-agent>.json
269
272
  ```
270
273
 
274
+ That config has to be one kiro's V3 engine reads. One `kiro-cli agent create` writes is; one written
275
+ for V2 — `allowedTools` or a non-empty `toolsSettings`, and no `permissions` block — is refused, because V3 refuses
276
+ it, and the refusal names `kiro-cli agent upgrade <dir>`, which converts it. **A headless run needs
277
+ `--require-mcp-startup`**: kiro starts a session's first turn without waiting for its MCP servers, and
278
+ `zikaron-mcp` takes about two seconds to start, so without the flag that turn has no Zikaron tools. The
279
+ flag does not make an interactive session wait, even one given its first prompt on the command line, so
280
+ there a first prompt may find no Zikaron tools, as it may under Claude Code.
281
+
271
282
  If `zikaron` is not on your `PATH` — a source checkout whose virtualenv you have not activated —
272
283
  three commands have a module form you can run with that virtualenv's interpreter, and the spelling
273
284
  is not uniform:
@@ -292,32 +303,72 @@ earlier version wrote into your project, and a release can change a merged entry
292
303
  one such change. On both harnesses re-running upgrades those entries in place and needs no
293
304
  `--force`; it refuses only where another Zikaron install owns something, or, under Claude Code,
294
305
  where you have added a hook of your own inside Zikaron's group (both below), which is what `--force`
295
- exists for. `zikaron doctor` afterwards says whether a Claude Code project's Zikaron entries carry
306
+ exists for. **Under kiro it also refuses an agent config still in V2's shape** — every config an
307
+ install made before Zikaron supported kiro's V3 engine merged into, unless kiro has converted it
308
+ since. Run `kiro-cli agent upgrade <dir>` over that config's directory, then re-run the installer.
309
+ `zikaron doctor` afterwards says whether a Claude Code project's Zikaron entries carry
296
310
  `alwaysLoad` — the one thing about `.mcp.json` it judges.
297
311
 
298
312
  **What upgrading the package does not do by itself:**
299
313
 
300
314
  - **A service already running keeps the old code** until it idles out (`idle_timeout`, below) or is
301
- stopped — `pkill -f zikaron.service.main`. Until then `zikaron knowledge` may be refused with a
302
- `bounds` error naming a field you never typed: that is the older service not knowing the newer
303
- command.
315
+ stopped — `pkill -f '[z]ikaron.service.main'`, bracketed so that, run from a script or by an
316
+ agent, it does not match the shell running it. Until then `zikaron init` and every
317
+ `zikaron knowledge` verb refuse it, naming both versions and the service's pid: if the command is
318
+ the newer install, stop that process and the next command starts one that matches; if the service
319
+ is newer, run the command from the install that started it — the one the project's hook and
320
+ `.mcp.json` name. The hook and the agent's MCP tools go on using whichever service is running.
304
321
  - **A store moves forward, never back.** The first time a newer service opens a project's store it
305
322
  migrates it in one transaction, without saying so, and an older Zikaron then refuses that store —
306
323
  `0.1.0` cannot open one `0.3.0` has opened. If more than one environment serves the same project,
307
- upgrade them together.
324
+ upgrade them together. That includes the install a project's `.mcp.json` names: once a newer
325
+ service has moved the store, an agent session running an older `zikaron-mcp` is refused the store
326
+ (`schema_incompatible`) and loses its memory and knowledge tools until that install is upgraded
327
+ and the session restarts its MCP server.
328
+
329
+ Finally, if the project is a git repository, tell git to ignore everything the install wrote.
330
+ **None of it works without a local install**: the subagents call Zikaron's tools, which a clone has
331
+ no server for, and the skills run the `zikaron` beside the `zikaron-mcp` your MCP configuration
332
+ names. A committed copy would show up in a clone-mate's agent and skill lists and fail when used,
333
+ and would pin your Zikaron version's text against theirs. Each clone runs the installer, which
334
+ writes its own. Under Claude Code:
335
+
336
+ ```bash
337
+ cat >> .gitignore <<'EOF'
338
+ /.zikaron/
339
+ /.mcp.json*
340
+ /.claude/settings.local.json*
341
+ /.claude/agents/zikaron-*
342
+ /.claude/skills/zikaron-*/
343
+ EOF
344
+ ```
308
345
 
309
- Finally, if the project is a git repository, tell git to ignore the store — and, under Claude Code,
310
- the MCP config too:
346
+ and under kiro:
311
347
 
312
348
  ```bash
313
- echo '.zikaron/' >> .gitignore
314
- echo '.mcp.json*' >> .gitignore # Claude Code only; see below
349
+ cat >> .gitignore <<'EOF'
350
+ /.zikaron/
351
+ /.kiro/agents/zikaron-*
352
+ /.kiro/agents/*.json.bak
353
+ /.kiro/skills/zikaron-*/
354
+ EOF
315
355
  ```
316
356
 
317
- **The `*` covers `.mcp.json.bak`**, the copy the installer takes of `.mcp.json` before the first
318
- merge that finds none there (the backup rule is below). It sits at the repository root and holds the
319
- file as it then stood — the same absolute paths, and whatever the entry held at the time, an `env`
320
- included — and it is where `--force` sends you to look for a key it dropped.
357
+ **Every line starts with `/`, so each matches only at the project's top**, where the install writes.
358
+ A `.zikaron/` anywhere else is a store some session made in the wrong directory, and is better
359
+ seen in `git status` than hidden.
360
+
361
+ **The agent config you named under kiro is your own file**, so it is not on the list; the hook and
362
+ `mcpServers` entries the install merged into it name your virtualenv by absolute path too. **Nor is
363
+ `code-knowledge/`**: the documents are plain Markdown, readable without Zikaron, and whether you
364
+ commit them is yours ([Code knowledge](#code-knowledge)).
365
+
366
+ **The `*` and the `.bak` lines cover the installer's backups** — `.mcp.json.bak`,
367
+ `.claude/settings.local.json.bak` and, under kiro, `<your-agent>.json.bak`, each the file as it
368
+ stood before the first merge into it (the backup rule is below); a refreshed agent's or skill's own
369
+ `.bak` falls under the `zikaron-*` lines. Each holds the same absolute
370
+ paths, and whatever the entry held at the time, an `env` included, and it is where `--force` sends
371
+ you to look for a key it dropped.
321
372
 
322
373
  **`.mcp.json` is the awkward one.** Claude Code intends that file to be committed and shared — that
323
374
  is what "project-scoped" means — but the entries Zikaron writes into it name absolute paths inside
@@ -331,17 +382,28 @@ is the clone-mate case.
331
382
 
332
383
  The installer does not edit `.gitignore` for you; appending to it is not a decision an installer
333
384
  should make silently. But it matters and is easy to forget: without it the memory database and its
334
- write-ahead log, every knowledge base's index and the service logs all show up as untracked, and a
335
- routine `git add -A` commits the lot. None of it is useful to anyone else, and none of it is
336
- reproducible from your repository.
385
+ write-ahead log, every knowledge base's index, the service logs and the installed agents and
386
+ skills all show up as untracked, and a routine `git add -A` commits the lot. None of it is useful
387
+ to anyone else, and none of it is reproducible from your repository.
337
388
 
338
389
  What it writes under **kiro**, relative to the project:
339
390
 
340
391
  | Path | What |
341
392
  |---|---|
342
- | `.kiro/agents/zikaron-consolidator.json` | the consolidation subagent: its model, its four tools, its prompt |
393
+ | `.kiro/agents/zikaron-consolidator.json` | the consolidation subagent: its model, its four tools and a file read held by its rules to the directory a too-large group is written to, the rules allowing them, its prompt |
343
394
  | `.kiro/skills/zikaron-consolidate/SKILL.md` | how to run a consolidation, and how to recover a stuck one |
344
- | the agent config you named | `hooks` for start and per-message, an `mcpServers` entry, `@zikaron` in `tools` and `allowedTools`, the consolidator in `toolsSettings.crew`, and the skill in `resources` |
395
+ | `.kiro/agents/zikaron-documenter.json` | the documentation subagent: its model and effort, its four file tools and `@zikaron` with its own `mcpServers` entry, the rules allowing reading, writing and Zikaron's tools, its prompt ending with the write policy |
396
+ | `.kiro/agents/zikaron-code-orchestrator.json` | the subagent your session spawns, and waits for, to run a code-documentation run: its model and effort, its tools, the rules allowing them, its prompt ending with the write policy |
397
+ | `.kiro/skills/zikaron-document-code/SKILL.md` | how to document a module of your code ([Code knowledge](#code-knowledge)) |
398
+ | the agent config you named | hooks for session start and each message, an `mcpServers` entry, `@zikaron` in `tools`, two rules in `permissions.rules` — Zikaron's tools, and loading a skill — and both skills in `resources`; on a config that also carries `allowedTools`, as one `kiro-cli agent create` writes does, `@zikaron` there too and Zikaron's three agents in a `toolsSettings.crew.availableAgents` that already lists agents |
399
+
400
+ With `--components guards` a kiro install writes into the agent config you named alone, and in it
401
+ only two hooks: a session-start hook carrying a short note about the guards, and the guard itself,
402
+ before each `execute_bash` call. No agent, no skill, no server and no rule, and `--agent` is
403
+ required unless you pass `--print-only`, since without it nothing would be written. With
404
+ `--components both` you get all of the
405
+ above together, the note in a session-start hook of its own beside the write policy's, since kiro
406
+ cuts each hook's output at 3,000 characters.
345
407
 
346
408
  and under **Claude Code**:
347
409
 
@@ -349,22 +411,27 @@ and under **Claude Code**:
349
411
  |---|---|
350
412
  | `.claude/agents/zikaron-consolidator.md` | the consolidation subagent, as frontmatter plus its prompt |
351
413
  | `.claude/skills/zikaron-consolidate/SKILL.md` | how to run a consolidation, and how to recover a stuck one |
352
- | `.claude/settings.local.json` | three hooks — session start, per-message, and per-subagent — plus both approval keys, `enabledMcpjsonServers` and `permissions.allow` |
414
+ | `.claude/agents/zikaron-documenter.md` | the documentation subagent, as frontmatter plus its prompt |
415
+ | `.claude/agents/zikaron-code-orchestrator.md` | the subagent your session spawns, in the background, to run a code-documentation run |
416
+ | `.claude/skills/zikaron-document-code/SKILL.md` | how to document a module of your code ([Code knowledge](#code-knowledge)) |
417
+ | `.claude/settings.local.json` | hooks for session start, each message, each subagent start and each search ([Code knowledge](#code-knowledge)), plus both approval keys, `enabledMcpjsonServers` and `permissions.allow` |
353
418
  | `.mcp.json` | both servers: `zikaron` for your own tools, `zikaron-consolidator` for the consolidation verbs — each marked `alwaysLoad` so their descriptions are in context from the start rather than fetched per tool |
354
419
 
355
420
  With `--components guards` the install writes `.claude/settings.local.json` alone, and in it only
356
421
  hooks: the session-start and per-subagent hooks, which carry a short note about the guards, and the
357
422
  two guard hooks — before each `Bash` or `Monitor` call, after each edit. No server, no approval
358
- key, no consolidator. With `--components both` you get all of the above together, and the start hooks carry
359
- the write policy and the guards' note.
423
+ key, no subagent and no skill. With `--components both` you get all of the above together, and
424
+ the start hooks carry the write policy and the guards' note.
360
425
 
361
426
  **`settings.local.json`, not `settings.json`**, and it matters if you commit your settings: the hook
362
427
  entries name absolute paths inside *your* virtualenv, so they are meaningless in anyone else's clone.
363
428
  The third hook is the one with no kiro counterpart — it hands the write policy to each subagent you
364
- spawn, which kiro achieves by firing its ordinary hooks for subagent sessions instead.
429
+ spawn. kiro has no hook for a subagent's start, so there Zikaron's documenter and orchestrator carry
430
+ the policy at the end of their prompts, and a subagent of your own does not get it.
365
431
 
366
- It backs up any file it merges into (`<file>.bak`, and the first backup wins), and **refreshes a
367
- shipped file whose contents are not what this version ships** — after backing it up, and saying so.
432
+ It backs up any file it merges into (`<file>.bak`, and the first backup wins), leaving one that
433
+ already carries every entry untouched, backup included, and **refreshes a shipped file whose
434
+ contents are not what this version ships** — after backing it up, and saying so.
368
435
  That is what makes upgrading work, and the cost is that a hand-edit to a shipped file is reverted on
369
436
  the next install rather than kept. **Under Claude Code the same holds inside a file it *merges*
370
437
  into**: a Zikaron hook entry whose command is this install's but whose `timeout` or matcher you
@@ -384,13 +451,19 @@ wins, so the `.bak` on disk may have been written before or after you added the
384
451
 
385
452
  Under kiro the same rules hold inside the agent config you name: the `mcpServers` entry merges per
386
453
  key, a Zikaron hook entry whose command is this install's is rewritten and its trigger named, and
387
- only an entry naming a different install's command, or another `--mode`, refuses. A hook of Zikaron's
388
- on a trigger this install does not write is left alone. Kiro's install also validates the
389
- consolidator's model id, because an unknown model would otherwise be silently replaced by the
390
- harness's default.
454
+ only an entry naming a different install's command, or another `--mode`, refuses. That includes an
455
+ entry `kiro-cli agent upgrade` converted from an older Zikaron install, under the upgrader's own
456
+ names and triggers: it is recognized and rewritten, not doubled. A hook of Zikaron's on a trigger
457
+ this install does not write is left alone, and so are the other selection's hooks: a memory install
458
+ leaves the guards' alone and the reverse, telling the memory store's session-start hook from the
459
+ guards' by the arguments each runs with. Hooks are written in the array form V3 reads; a config
460
+ whose `hooks` are in the older object form is rewritten if they are all Zikaron's, and refused,
461
+ showing your entries in the array form, if any is yours. Kiro's install also validates each shipped
462
+ agent's model id, because an unknown model would otherwise be replaced by the harness's default.
391
463
 
392
464
  `@zikaron` has to be in `tools` or Zikaron's tools are simply absent: the `mcpServers` entry
393
- *configures* the server and `tools` is what *selects* from it. It goes into `allowedTools` too, so the
465
+ *configures* the server and `tools` is what *selects* from it — unless `tools` is `["*"]`, which
466
+ selects everything already. A rule allowing Zikaron's tools goes into `permissions.rules` too, so the
394
467
  agent can record without interrupting you. That is deliberate rather than lax — the whole design leans
395
468
  on the agent writing freely, and a permission prompt per write both suppresses that and trains you to
396
469
  click through prompts. What it trusts is still narrow, but it is not only rows. The memory tools read
@@ -404,36 +477,42 @@ into your project outside `.zikaron/`. A mistaken memory write is *recoverable*
404
477
  undoable: `zikaron_memory_retire` withdraws a record from ordinary retrieval and leaves it
405
478
  auditable, while an amend overwrites prose that nothing restores. A mistaken
406
479
  `zikaron_knowledge_remove` destroys that corpus's index, which is rebuildable from the files it was
407
- built from but not instantly. Pass `--no-trust-tools` if you would rather approve each one.
480
+ built from but not instantly. The second rule lets the agent load a skill without asking; without it
481
+ either skill asks before it loads, and a headless run loads neither. Pass `--no-trust-tools` if you
482
+ would rather approve each one: it withholds both rules.
408
483
 
409
484
  **That trust stops at the primary agent's tools.** Spawning the consolidator is a separate grant — a
410
- subagent with its own model invocation, four mutation verbs and, under Claude Code, a file read —
411
- and the installer does not make it for you. **Under kiro** that grant is
412
- `toolsSettings.crew.trustedAgents`, which the installer only ever reads: starting a consolidation
413
- therefore asks your permission once, and adding `zikaron-consolidator` there yourself is what stops
414
- it. Claude Code has no such key, so there is nothing to add and nothing withheld.
415
-
416
- **Three keys under kiro only, and Claude Code has none of them.** The consolidator also has to be
417
- reachable by the `subagent` tool, so if your config already restricts which agents may be spawned
418
- (`toolsSettings.crew.availableAgents`), the installer adds `zikaron-consolidator` to that list. If
419
- you have no such restriction it leaves it alone — an empty list means *every* agent is available,
420
- and writing one entry into it would restrict you to just this one. The skill is also declared in the
421
- agent's `resources` unless something there already covers it. Skills normally arrive by inheritance,
422
- so that entry is usually redundant — but it is the only thing that makes the skill loadable if you
423
- have set `chat.disableInheritingDefaultResources`, and declaring a resource does not disable
424
- inheritance, so it can only help.
425
-
426
- **One thing the kiro install deliberately does not do:** add the `subagent` tool itself, which the
427
- consolidation skill needs in order to spawn the consolidator. Its reach is much wider than Zikaron's
428
- own tools, so that grant stays yours. The installer says so if it is missing. Under Claude Code none
429
- of this arises — the shipped skill is an ordinary project file, and the consolidator is spawned
430
- through whatever subagent tool the harness already gives your agent.
431
-
432
- **Installing into a clone of the Zikaron repository itself, under kiro,** finds
433
- `.kiro/agents/zikaron-consolidator.json` already tracked, carrying whichever virtualenv path the last
434
- committer had. The installer notices that the file names a different install, backs it up, and
435
- rewrites it for yours. Under Claude Code there is nothing tracked to collide with — the consolidator
436
- config is not in this repository — so the installer simply writes it.
485
+ subagent with its own model invocation, four mutation verbs and a file read — and the installer
486
+ does not make it for you. **Under kiro an agent your session spawns may do only what your agent's
487
+ rules allow** — its own allow rules add nothing to them, and only a deny in its own config narrows
488
+ them — so the rules your agent carries decide what Zikaron's agents may do. The consolidation skill
489
+ spawns the consolidator, and the documentation skill the code orchestrator, through the `subagent`
490
+ tool, which takes `subagent` in `tools` and a `{"capability": "subagent", "effect": "allow"}` rule;
491
+ the same rule decides the orchestrator's spawns of `zikaron-documenter`, one per file, and without it
492
+ kiro asks before each spawn. The orchestrator runs the planner as a shell command, which takes a
493
+ `{"capability": "shell", "effect": "allow"}` rule, and `shell` need not be in your `tools`. A
494
+ documenter writes its document only if your agent allows that write —
495
+ `{"capability": "fs_write", "match": ["./code-knowledge/**"], "effect": "allow"}` was measured to be
496
+ enough — and reads its source, and the consolidator a group too large to deliver inline, only if
497
+ your agent allows reads; the `./**` read rule `kiro-cli agent create` writes covers both. Their reach
498
+ is much wider than Zikaron's own tools, so those grants stay yours, and the installer says which is
499
+ missing. Claude Code has no such grant to make: the shipped skills are ordinary project files, and
500
+ their agents are spawned through whatever subagent tool the harness already gives your agent.
501
+
502
+ **Keys under kiro only.** If your config also carries kiro's older `allowedTools`, as one
503
+ `kiro-cli agent create` writes does, `@zikaron` goes there as well, and if it restricts which agents
504
+ may be spawned (`toolsSettings.crew.availableAgents`), the installer adds `zikaron-consolidator`,
505
+ `zikaron-documenter` and `zikaron-code-orchestrator` to that list — kiro documents rebuilding a converted config's permission rules
506
+ from those fields, so they carry Zikaron's grant too. If the list is empty it is left alone — an empty
507
+ list means *every* agent is available, and writing entries into it would restrict you to just these.
508
+ Both skills are also declared in the agent's `resources` unless something there already covers them.
509
+ Skills normally arrive by inheritance, so those entries are usually redundant — but they are the only
510
+ thing that makes the skills loadable if you have set `chat.disableInheritingDefaultResources`, and
511
+ declaring a resource does not disable inheritance, so it can only help.
512
+
513
+ **Installing into a clone of the Zikaron repository itself** finds none of the files an install
514
+ ships already tracked, under either harness: the repository keeps a snapshot of them under
515
+ `tests/fixtures/installed/`, outside both harnesses' dot-directories, and no installed copy.
437
516
 
438
517
  ### What to know under Claude Code
439
518
 
@@ -451,10 +530,12 @@ they are present but every write interrupts you, it is `permissions.allow` that
451
530
  large for the harness to deliver, the group is written to a file and Claude Code asks whether the
452
531
  consolidator may read from the runtime directory. Allow it for the session — and expect it again in
453
532
  the next one, because session scope is the only scope that grant has. It is not pre-answered on
454
- purpose: a file-reading tool cannot be restricted to one path in subagent config, so this prompt is
455
- the only point at which that grant is put to you as a question.
533
+ purpose: Claude Code cannot restrict a file-reading tool to one path in subagent config, so this
534
+ prompt is the only point at which that grant is put to you as a question.
456
535
 
457
- `--no-trust-tools` withholds both written keys for *your* tools. It does not withhold them for the
536
+ `--no-trust-tools` withholds both written keys for *your* tools. It withholds them from the
537
+ code-documentation run as well, whose orchestrator and documenters call the same server, so under
538
+ that flag a run asks in your session per Zikaron call. It does not withhold them for the
458
539
  consolidator's: a subagent has nobody to answer a permission prompt, so an unapproved **MCP** tool
459
540
  there does not ask, it fails at the moment consolidation needs it. The file read above is the
460
541
  exception — that one prompts.
@@ -475,30 +556,39 @@ guard, the receipts and the lease are untouched — but an unauthorized consolid
475
556
  tokens and could write a poorly-judged long-term record. `permissions.deny` is **not** the fix: it is
476
557
  global and unregisters the tool, after which the consolidator itself refuses to start.
477
558
 
478
- ### Guards (Claude Code, on request)
559
+ ### Guards (on request)
479
560
 
480
- `--components guards` (or `both`) installs two deterministic hooks that hold an agent to three
481
- rules, with no model and no store behind them (`design/guards.md`):
561
+ `--components guards` (or `both`) installs deterministic hooks that hold an agent to three rules,
562
+ with no model and no store behind them (`design/guards.md`) — two hooks under Claude Code, and under
563
+ kiro one, carrying the two refusals alone:
482
564
 
483
565
  - **A find-replace edit to an authored file is refused** — `sed -i`, `perl -pi`, an inline Python
484
- or node script that writes a file, a heredoc or `echo` redirected into one, and a script under
485
- `/tmp` or `$TMPDIR` that the command runs and that does any of these. The refusal reaches the
486
- agent as the tool's result and tells it to use `Read` and `Edit`, or `Write` for a new file.
487
- Paths under `/tmp`, `/var/tmp` and `$TMPDIR` are exempt, and so is a command carrying the
488
- override the refusal itself describes, for the files whose bytes a program owns.
566
+ or node script that writes a file, a heredoc or `echo` redirected into one, and a script in
567
+ scratch that the command runs and that does any of these. The refusal reaches the
568
+ agent as the tool's result and tells it to use the harness's read and edit tools — `Read` and
569
+ `Edit`, or `Write` for a new file, under Claude Code; `read_file` and `str_replace`, or
570
+ `fs_write`, under kiro. Paths under `/tmp`, `/var/tmp`, `$TMPDIR` and a Claude Code background
571
+ job's `$CLAUDE_JOB_DIR/tmp` are exempt, and so is a command carrying the override the refusal
572
+ itself describes, for the files whose bytes a program owns.
489
573
  - **After each edit, the agent is reminded** that the file has not been re-read, and asked for one
490
574
  re-read of the edited material once that file's editing is done. A Bash command gets no such
491
575
  reminder, so when the agent overrides a refusal, the guard's acknowledgement names what the
492
- command changes and asks for that re-read instead.
493
- - **A `pgrep -f` or `pkill -f` whose pattern matches its own command is refused.** Claude Code
494
- runs each command inside a shell whose command line carries the command's text, so on Linux such
576
+ command changes and asks for that re-read instead. **Claude Code only**: no output a kiro hook
577
+ gives after a tool runs reaches the model, so under kiro there is no reminder and no
578
+ acknowledgement, and the refusal itself says that an accepted override is not acknowledged and
579
+ asks for the re-read once the command has run.
580
+ - **A `pgrep -f` or `pkill -f` whose pattern matches its own command is refused.** Each harness
581
+ runs a command inside a shell whose command line carries the command's text, so on Linux such
495
582
  a pattern matches that shell: `pkill` kills it, and `pgrep` always finds it, so a check for a
496
583
  process that has exited never sees it gone. The refusal shows where the pattern matched and gives
497
584
  the fix: `-A`, where `pgrep` has it, or a bracketed character (`[m]onth_monitor.py`). On macOS,
498
585
  whose `pgrep` already leaves out the shell, only `-a` brings it back.
499
586
 
500
- Both refusals judge `Bash` and `Monitor` commands alike. An install made by an earlier version
501
- judges `Bash` alone; re-running it with the same `--components` adds `Monitor`.
587
+ Under Claude Code both refusals judge `Bash` and `Monitor` commands alike. An install made by an
588
+ earlier version judges `Bash` alone; re-running it with the same `--components` adds `Monitor`.
589
+ Under kiro they judge `execute_bash`, its shell tool, and the subagents your session spawns are
590
+ judged by your session's hook, so they meet a refusal too, though no subagent sees the session-start
591
+ note that comes first in a session.
502
592
 
503
593
  They are not a security boundary: a script the guard reads is one run from a scratch directory,
504
594
  and a script anywhere else — one of the project's own programs — is never read, by design. A guard
@@ -513,7 +603,9 @@ from a scratch directory such as `/tmp`, the same command is exempt and prints n
513
603
  printf '%s' '{"hook_event_name":"PreToolUse","tool_name":"Bash","cwd":"'"$PWD"'","tool_input":{"command":"sed -i s/a/b/ README.md"}}' | zikaron-guard
514
604
  ```
515
605
 
516
- It prints the deny the agent would read as the command's result. Asking an agent to run `sed -i`
606
+ It prints the deny the agent would read as the command's result. Kiro's install runs the guard as
607
+ `zikaron-guard --harness kiro`, which takes `"tool_name":"execute_bash"`, prints the deny to stderr
608
+ and exits 2, the one way a kiro hook refuses a call. Asking an agent to run `sed -i`
517
609
  usually shows something else: told the rule when its session starts, it reaches for `Read` and
518
610
  `Edit` without trying.
519
611
 
@@ -523,16 +615,20 @@ usually shows something else: told the rule when its session starts, it reaches
523
615
  |---|---|
524
616
  | `--project <dir>` | the project to install into. Also where the store lives (default: the current directory) |
525
617
  | `--harness {auto,kiro,claude-code}` | which harness to install for. `auto` reads the project, then the `CLAUDECODE` marker; it refuses when the project has **both** dotdirs, and when neither source says |
526
- | `--agent <path>` | **kiro only.** Merge the hook and MCP entries into that config, after backing it up |
618
+ | `--agent <path>` | **kiro only.** Merge the hook and MCP entries into that config, after backing it up; required by a guards-only install, unless `--print-only` |
527
619
  | `--print-only` | print what would be written and write nothing at all |
528
- | `--model <id>` | the consolidator's model (default: `claude-sonnet-5` under kiro, `sonnet` under Claude Code) |
529
- | `--format {object,array}` | **kiro only.** Which hook format to write when the target config has none yet |
620
+ | `--model <id>` | the model of every agent Zikaron ships whose own flag below is not given — the consolidator, the documenter and the code orchestrator. Each defaults to the same model on both harnesses, as Claude Code names it by alias and kiro by id: `sonnet` / `claude-sonnet-5.5` for the consolidator, `haiku` / `claude-haiku-5.5` for the documenter, `opus` / `claude-opus-5.5` for the orchestrator |
621
+ | `--consolidator-model <id>` | the consolidator's model, over `--model` |
622
+ | `--documenter-model <id>` | the code documenter's model, over `--model` |
623
+ | `--orchestrator-model <id>` | the code orchestrator's model, over `--model` |
530
624
  | `--no-trust-tools` | do not pre-approve Zikaron's own tools, so every Zikaron tool call asks permission |
531
- | `--components {memory,guards,both}` | what to install: the memory store (the default), the guards below, or both. **Claude Code only** for `guards` and `both`; `--model` is refused with `guards`, which ships no consolidator |
625
+ | `--components {memory,guards,both}` | what to install: the memory store (the default), the guards above, or both; every model flag is refused with `guards`, which ships no agent |
532
626
  | `--force` | replace a symlink at a shipped path, and overwrite entries wired to a different Zikaron install that would otherwise be refused. It also stops merging: a server entry — `.mcp.json`'s, or kiro's `mcpServers` — is replaced **whole**, so a key you added to Zikaron's own entry goes, and under Claude Code a Zikaron hook group is replaced whole, so a hook of your own inside it goes too. Both are named in the output |
533
627
 
534
- Both hook formats kiro accepts are supported, and a config that already uses one keeps it: kiro
535
- rewrites a config in whichever format it read, so mixing them in one file has no defined meaning.
628
+ A model id is the harness's own: under kiro, one `kiro-cli chat --list-models` lists, which the
629
+ install checks; under Claude Code, an alias such as `sonnet` or a full id, which Claude Code itself
630
+ refuses at spawn if it does not know it. An install is for one harness, so a project set up for
631
+ both installs twice, each run with that harness's ids.
536
632
 
537
633
  ## Verify
538
634
 
@@ -573,7 +669,7 @@ write policy goes into the model's context, not to your terminal. Then, from the
573
669
 
574
670
  ```bash
575
671
  # a service should be running for this project after your first message
576
- pgrep -af zikaron.service.main
672
+ pgrep -af '[z]ikaron.service.main'
577
673
 
578
674
  # one line per hook failure, missed cold start, write-policy-override note, or session/environment mismatch; absent means none happened
579
675
  cat .zikaron/hook.log
@@ -641,19 +737,145 @@ answers nothing until it finishes. `status` says how far it has got.
641
737
  In a script or a CI step, use `zikaron knowledge refresh --wait`: it reports progress and returns
642
738
  once every build against those corpora has let go of its corpus — including one an earlier `add`
643
739
  started, which it waits for rather than stepping past — exiting non-zero if any build left its corpus
644
- unusable. By then each build's record of what it cost has been written to `memory.db`, or dropped if
645
- the store stayed locked; the indexer process itself may still be exiting. Without `--wait` the step
646
- can finish while an indexer is still running, and whatever kills the step kills the build too.
740
+ unusable, and naming the build log of each one that did, or that never started. By then each build's
741
+ record of what it cost has been written to `memory.db`, or dropped if the store stayed locked; the
742
+ indexer process itself may still be exiting, and still writing the last lines of that log. Without
743
+ `--wait` the step can finish while an indexer is still running, and whatever kills the step kills the
744
+ build too.
647
745
 
648
746
  **Nothing updates an index on its own.** There is no watcher and no schedule: a corpus drifts from
649
747
  its files until somebody refreshes it. A search says so when it can — a result whose file has
650
748
  changed since it was indexed comes back marked `stale`.
651
749
 
750
+ **A document can say which file it was written from, and a search then says whether that file has
751
+ moved since.** A summary of a long document, a translation, a description of a source file: open it
752
+ with a front-matter block naming the file and the hash of the version you wrote from —
753
+
754
+ ```markdown
755
+ ---
756
+ zikaron-source: src/billing/invoice.py
757
+ zikaron-source-blob: 3f2a9c0d41e7b8a65c1d2e3f4a5b6c7d8e9f0a1b
758
+ ---
759
+ # What invoice.py does
760
+ ```
761
+
762
+ — and every result from that document carries `source: {path, state}`, where `state` is `fresh` (the
763
+ file is still the version you wrote from), `changed`, `missing`, or `unverifiable` (it could not be
764
+ checked). The path is relative to the project directory — the one holding `.zikaron/` — whichever
765
+ directory the document is in, may climb out of it with `..`, and is at most 1,024 characters. The
766
+ hash is git's object id, what `git hash-object` prints for the file's real path, run from the
767
+ project directory; outside a repository the same command still gives the right answer. The block
768
+ must close within the document's first 4,096 characters, and any other keys it carries are ignored.
769
+ A block that names a link and gets it wrong — one key without the other, a hash in capitals — comes
770
+ back `unverifiable` rather than looking unlinked. `zikaron knowledge status` counts the linked files and how often a
771
+ search met a source that had moved.
772
+
652
773
  **An index holds the text of every file in it.** Do not point one at a directory holding
653
774
  credentials. The databases are `0600`, the same as `memory.db`, and they are under `.zikaron/`, so
654
775
  the `.gitignore` line above already covers them — but what is *in* one is searchable by every agent
655
776
  working in this project.
656
777
 
778
+ ### Code knowledge
779
+
780
+ An agent new to a codebase searches it by keyword to find where to start. **Code knowledge** gives
781
+ it a corpus to search instead: one document per source file — what the file is for, every class and
782
+ function it declares with its declaration, its non-trivial behavior, and the files it depends on —
783
+ written by agents, kept as files in your project, and indexed as an ordinary knowledge base. Ask
784
+ for it in plain words — *"create code documentation"*, *"document `src/billing`"* — or with the
785
+ installed skill, naming directories of your code, or none:
786
+
787
+ ```
788
+ /zikaron-document-code # every documented module, or the whole project
789
+ /zikaron-document-code src/billing
790
+ /zikaron-document-code src/billing --slice 20 # just twenty files, to see what it costs
791
+ /zikaron-document-code services/api --exclude '*_generated.go'
792
+ ```
793
+
794
+ With no directory named it updates every module you have documented, or, where you have documented
795
+ none, documents the whole project, into one knowledge base of its own; globs and `--slice` need
796
+ one module. Your session spawns the `zikaron-code-orchestrator` subagent to run it. **Under Claude
797
+ Code it runs in the background**, so your session stays free while it works and receives its report
798
+ when it ends; under kiro your session waits for it, busy until the run ends. Either way it runs a
799
+ **planner**, `zikaron code-knowledge plan`,
800
+ which decides from hashes which documents are missing, out of date or malformed, removes the ones a
801
+ deleted or renamed source left behind — moving a renamed file's document instead of rewriting it —
802
+ and lists the rest. It then spawns a `zikaron-documenter` subagent per listed file, and runs the
803
+ planner again until it reports the module up to date; the module's `README.md` is written last,
804
+ an overview of the module from its documents, listing no files. Run it again after the code has
805
+ moved and only what moved is rewritten. The planner never starts the service and changes nothing
806
+ outside the documents directory but the list of role lines it hands the README's writer, under
807
+ `.zikaron/`; without `--apply` it changes nothing at all, so you can run it yourself to see where a
808
+ module stands:
809
+
810
+ ```bash
811
+ zikaron code-knowledge plan --module src/billing --limit 10
812
+ ```
813
+
814
+ **Pass the same `--include` and `--exclude` every time** you document a directory: they are part of
815
+ what it is, and a narrower set makes the planner remove the documents it no longer admits. So a
816
+ directory documented with globs is updated by naming it with them: the plain update passes none and
817
+ documents such a directory in full — its report says `globs: none` — and the next run naming it with
818
+ its globs removes what the update added.
819
+
820
+ The documents go under `code-knowledge/`, mirroring your tree —
821
+ `code-knowledge/src/billing/invoice.py.md` describes `src/billing/invoice.py` — and **each module
822
+ is a knowledge base of its own**: the skill registers `code-knowledge/src/billing/` as the knowledge
823
+ base `code-knowledge/src/billing`, or refreshes it, so a search can keep to one module. A directory
824
+ inside one you have documented, or containing one, is refused, since its documents would be
825
+ indexed twice. **Whether you commit them is yours to decide**: each corpus is created with
826
+ `git_mode: off`, so a document is searchable whether it is committed, uncommitted, or fetched from
827
+ somewhere a build published it to.
828
+
829
+ **What a run needs.** The documenter can read files, write one and correct it in place, and use
830
+ Zikaron's tools — the project's memory, which it may search and add to, and its knowledge bases,
831
+ which it may search, code knowledge's own excepted since a document there can be stale, and
832
+ changes none of — and nothing else; it has no shell. Under Claude Code the background run's
833
+ permission prompts appear in your session, naming the subagent asking: you are asked to approve the
834
+ orchestrator's shell commands — the one it finds the project root with, then the planner's when it
835
+ first runs; allow that for the session, or you are asked again at later batches — and each
836
+ document a documenter writes, unless you allow edits for the session. Under auto mode, the
837
+ interactive default since Claude Code 2.1.283, none is put to you: the classifier decides the
838
+ commands, and an edit inside the project is approved outright. One run at a time in a session: a
839
+ second request while a run is out waits, and your session starts it when the first run reports. A
840
+ headless run asks nothing and so is refused unless you give it the permission up front:
841
+ `--permission-mode bypassPermissions`, best kept to a copy of the project, or `--allowedTools`
842
+ naming the planner command by the path the orchestrator runs it with —
843
+ `Bash(<venv>/bin/zikaron code-knowledge plan:*)`, the `zikaron` beside the install's
844
+ `zikaron-mcp`, never a bare `zikaron`, which it does not use — then `Bash(pwd:*)` and
845
+ `Bash(cat:*)` — the orchestrator has found the project root with `pwd -P && cat .mcp.json` in
846
+ every measured run, and a run without them writes nothing — `Agent`, `Skill`, the file tools
847
+ `Read`, `Grep`, `Glob`, `Write` and `Edit`, and `mcp__zikaron`, since a headless run in a folder you never trusted interactively does not read the
848
+ install's own allow rule — and `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0`, without which a headless
849
+ run that waits ten idle minutes on background work is stopped. **Under kiro your agent's rules
850
+ decide what the orchestrator and its documenters may do**, since an agent your session spawns may
851
+ do only what your session's rules allow, whatever its own say. So the agent you run needs
852
+ `subagent` among its tools, to spawn the orchestrator, and allow rules for `subagent`, `shell`,
853
+ `fs_read`, and `fs_write` over `./code-knowledge/**`; it need not hold `shell` or `write` as tools. Unless the `subagent` rule
854
+ covers `zikaron-code-orchestrator` and `zikaron-documenter` — one with no `match`, or a `match` naming
855
+ them — you are asked before each spawn; without the `shell` rule, before each planner run; without
856
+ the `fs_write` rule, before each document write, and a headless run writes none. The installer says
857
+ which is missing.
858
+
859
+ **Using it.** Ask for it in your prompt, naming the module's knowledge base to keep to one module:
860
+
861
+ > Answer the following question using the knowledge tool, and then verify it against the actual
862
+ > code: …
863
+
864
+ Under Claude Code, a search of a documented module — `grep`, `rg` or `git grep` in a shell, or the
865
+ `Grep` and `Glob` tools — is followed by one line naming the knowledge bases that document it: on
866
+ the first such search after each prompt you send, and then at most once every five minutes for
867
+ each agent by default (`retrieval.knowledge_reminder_interval`). It reminds an agent that is already
868
+ searching; it does not make one use the documents, so the instruction in your prompt stays the way
869
+ to have it do that. Kiro has no reminder: no output a kiro hook gives after a tool runs reaches the
870
+ model.
871
+
872
+ **Read every result as a lead, not as a fact.** Each one carries `source.state`: `fresh` means the
873
+ file has not changed since its document was written — not that the document is right, since a
874
+ document can be wrong from the day it was written — and `changed` means the file has moved since,
875
+ so the document still says roughly where to look and its particulars are suspect. `missing` means
876
+ the file is gone, and `unverifiable` that it could not be checked. Either way the answer rests on
877
+ the code. `design/code-knowledge.md` is the design, and why the code decides.
878
+
657
879
  ---
658
880
 
659
881
  ## Configuration
@@ -701,6 +923,7 @@ idle_timeout = 1800 # seconds of inactivity before the service stops itse
701
923
  | `retrieval` | `fts_query_max_terms` | `64` | 1–512 | the largest full-text query built from one prompt |
702
924
  | `retrieval` | `knowledge_max_chunks_per_file` | `2` | 1–20 | **knowledge bases:** how many fragments one file may contribute to a result set |
703
925
  | `retrieval` | `knowledge_snippet_max_chars` | `1200` | 80–24000 | **knowledge bases:** how much text a single returned fragment carries, counted in code points |
926
+ | `retrieval` | `knowledge_reminder_interval` | `300` | 0–86400 | **code knowledge, Claude Code:** seconds an agent goes unreminded after a search of a documented module reminds it; `0` reminds on every such search |
704
927
  | `dedup` | `dedup_threshold` | `0.8` | 0.0–1.0 | how similar a new record must be to be offered back as a near-duplicate |
705
928
  | `dedup` | `dedup_max` | `3` | 0–20 | how many near-duplicates are handed back at once |
706
929
  | `consolidation` | `mutual_k` | `5` | 2–50 | how many neighbours each entry considers when grouping |
@@ -709,7 +932,7 @@ idle_timeout = 1800 # seconds of inactivity before the service stops itse
709
932
  | `consolidation` | `group_max` | `12` | 2–64 | members per group before it is split into shards |
710
933
  | `consolidation` | `max_group_serves` | `3` | 1–16 | how many times one group may be re-served before it is abandoned |
711
934
  | `consolidation` | `run_lease` | `1800` | 60–86400 | seconds a consolidation run holds the store |
712
- | `consolidation` | `spill_threshold` | `27000` | 4096–1048576 | **Claude Code only:** bytes past which a consolidator tool result is written beside the socket instead of returned inline. Nothing spills under kiro, where the key has no effect |
935
+ | `consolidation` | `spill_threshold` | `27000` | 4096–1048576 | bytes past which a consolidator tool result is written to a file instead of returned inline — beside the socket under Claude Code, in `.zikaron/spill/` under kiro. Under kiro a value of 30,000 or above lets a result kiro cuts through unspilled, and the consolidator gets kiro's preview of its two ends instead |
713
936
  | `service` | `idle_timeout` | `1800` | 60–86400 | seconds of inactivity before the service stops itself |
714
937
  | `signals` | `signal_horizon_days` | `30` | 1–3650 | the window the write-policy instrumentation reports over |
715
938
 
@@ -761,9 +984,14 @@ it is `0600` or `0700`. The **installer** also writes harness config — the fil
761
984
  memory.db the store itself — never commit this
762
985
  memory.db-wal SQLite's write-ahead log; part of the store
763
986
  memory.db-shm SQLite's shared-memory index; part of the store
764
- knowledge/ one database per knowledge base, named by a generated id.
987
+ knowledge/ one database per knowledge base, named by a generated id, and beside
988
+ each the log of the last build the service spawned for it.
765
989
  Absent until you create one
990
+ code-knowledge/ the list of role lines the planner hands a module README's writer, one
991
+ directory per module. Present only while that README is owed
766
992
  config.toml your per-project overrides, if you wrote any
993
+ spill/ under kiro, a consolidation group too large to deliver, while the
994
+ consolidator reads it
767
995
  service.log the background service: startup, resolved config, errors, why it stopped,
768
996
  any request running longer than 30 s, and the stack dumps below
769
997
  hook.log one line per hook failure, missed cold start, write-policy-override note, or
@@ -792,7 +1020,8 @@ result also spills to a file beside them, carrying that group's record prose ver
792
1020
  the same store hash; it is deleted when the consolidator asks for its next group — or, if that
793
1021
  process is killed first, by the next one that starts. It is the one copy of memory text that lives
794
1022
  outside `.zikaron/`, which is why the erasure procedure under [Secrets](#secrets) removes it by hand.
795
- Nothing spills under kiro.
1023
+ **Under kiro** the same file goes to `.zikaron/spill/` instead, the one directory the consolidator's
1024
+ rules let it read, and is released and swept the same way; deleting `.zikaron/` reaches it.
796
1025
 
797
1026
  **What `service.log` tells you about a service that stopped, or stopped answering.** A clean stop
798
1027
  writes one `stopping: reason=…` line: `idle`, `store_replaced`, `socket_lost` (its socket file was
@@ -816,18 +1045,21 @@ on every **memory** read and write — used to measure whether the write policy
816
1045
  the database because those rows must commit alongside the change they describe. It also holds an
817
1046
  access log, best-effort: a `call` row for each request the service answers — which method, how long
818
1047
  it took, and what it refused, if anything — and a `knowledge_build` row for each corpus build.
819
- Neither carries text. A knowledge base's own database has no event log: it keeps four **search**
820
- counters in its metadata — searches, empty searches,
821
- results returned, results stale — which `zikaron_knowledge_status` reports beside the last build's
822
- own file, byte and skip-reason counts.
1048
+ Neither carries text. A knowledge base's own database has no event log: it keeps **search**
1049
+ counters in its metadata — searches, empty searches, results returned, results stale, and, of the
1050
+ results from linked documents, how many there were and how many had a source that had changed, had
1051
+ gone or could not be checked — which `zikaron_knowledge_status` reports beside the last build's own
1052
+ file, byte and skip-reason counts.
823
1053
 
824
1054
  ---
825
1055
 
826
1056
  ## When something is wrong
827
1057
 
828
1058
  Zikaron is built to fail quietly rather than get in your way. A hook that cannot reach the service
829
- prints a short note asking the agent to tell you, writes one line to `hook.log`, and exits cleanly. It
830
- never blocks your message, and it never reads the store directly.
1059
+ when you send a message prints a short note asking the agent to tell you, writes one line to
1060
+ `hook.log`, and exits cleanly. It never blocks your message, and it never reads the store directly.
1061
+ The reminder after a search says nothing when no service is running and starts none; one that
1062
+ reaches a service and fails writes a `hook.log` line marked `remind` after its kind.
831
1063
 
832
1064
  The service stops itself after a stretch of idleness, and the next message starts it again. That
833
1065
  message waits a few seconds longer — the hook allows a start more time than a running service — and
@@ -848,25 +1080,29 @@ symptoms it cannot see.
848
1080
  |---|---|
849
1081
  | nothing searchable works at all | `zikaron doctor` — extension loading, FTS5 and `sqlite-vec` are the three that fail this way, and all three are properties of the interpreter rather than of your project |
850
1082
  | the MCP server starts and immediately dies | `zikaron doctor` — an over-long `$XDG_RUNTIME_DIR` makes the socket path exceed what the platform allows, and this is the only channel that says so |
851
- | no memories are being injected | `.zikaron/hook.log`, then `pgrep -af zikaron.service.main` |
1083
+ | no memories are being injected | `.zikaron/hook.log`, then `pgrep -af '[z]ikaron.service.main'` |
1084
+ | kiro: a session has none of Zikaron's hooks or tools, and nothing says why | kiro's V3 engine skipped your agent config and ran its default agent. Either the config is still in V2's shape — what an install made before Zikaron supported V3 left, and what kiro-cli 3.0's update finds — so run `kiro-cli agent upgrade <dir>` and then re-run the installer; or, interactively, the folder was not trusted at kiro's trust screen, which loads no workspace agent, hook or MCP server until it is |
852
1085
  | the agent has no `zikaron_*` tools | kiro: `/tools`, and check `@zikaron` is in the agent's `tools`. Claude Code: `/mcp`, and check neither server is pending approval — then check whether that agent's own frontmatter sets `tools:`, which overrides the project-wide registration entirely (below) |
853
- | every Zikaron tool call asks permission | kiro: add `@zikaron` to the agent's `allowedTools`. Claude Code: it is `permissions.allow` in `settings.local.json` that did not take |
854
- | a knowledge search returns nothing, or too little | `zikaron_knowledge_status` (or `zikaron knowledge status <name>`) — a corpus **refreshing** answers from what is already indexed, but one building for the first time answers nothing until it finishes. `reindex_required` means it has no usable index **right now**: never built, or a rebuild emptied it and was interrupted before it finished, or its database is gone, or the configured embedding model changed since it was built. `refresh` rebuilds it |
1086
+ | every Zikaron tool call asks permission | kiro: the agent's `permissions.rules` lacks the `mcp` rule over `zikaron/*` — re-run the installer without `--no-trust-tools`, or add `{"capability": "mcp", "match": ["zikaron/*"], "effect": "allow"}` yourself. Claude Code: it is `permissions.allow` in `settings.local.json` that did not take |
1087
+ | a knowledge search returns nothing, or too little | `zikaron_knowledge_status` (or `zikaron knowledge status <name>`) — a corpus **refreshing** answers from what is already indexed, but one building for the first time answers nothing until it finishes. `reindex_required` means it has no usable index **right now**: never built, or a rebuild emptied it and was interrupted before it finished, or its database is gone, or the configured embedding model changed since it was built. `refresh` rebuilds it — and if it does not, the `log` line of `zikaron knowledge status <name>` names where that build wrote why |
855
1088
  | knowledge results look wrong for the file on disk | the index has drifted; nothing refreshes it on a schedule. A result whose file changed since indexing is marked `stale` — run `refresh` |
856
- | "Agents not available for crew stages: zikaron-consolidator" | add it to `toolsSettings.crew.availableAgents`, or re-run the installer |
1089
+ | `zikaron init` or `zikaron knowledge` refuses: "this project's service … runs …", or "… is older than this command … and names no version" | the running service is another version than the command — usually one started before an upgrade. Do what the message says: stop that process if the command is the newer install, or run the command from the install the project's hook and `.mcp.json` name |
1090
+ | "Agents not available for crew stages: zikaron-consolidator" | a profile that still carries kiro's `toolsSettings.crew.availableAgents` restricts which agents spawn: add `zikaron-consolidator`, `zikaron-documenter` and `zikaron-code-orchestrator` there yourself. The installer adds them only on a profile that also carries `allowedTools` beside `permissions`, the shape `kiro-cli agent create` writes, and leaves `toolsSettings` alone on any other |
857
1091
  | consolidation seems stuck | ask to consolidate again — that takes the run over |
858
1092
  | the service will not start | `.zikaron/service.log`; a change to a **hard** store-coupled key (`embed_model`, `embed_dim`) is the usual cause. A soft one never refuses **over what is already stored** — but any key set outside its range refuses at startup, whatever its coupling |
859
- | the service is running but stops answering | `.zikaron/service.log`'s last `long request:` lines name the request it is stuck in; `kill -USR2 <pid>` adds the requests in flight and every task's stack, and `kill -USR1 <pid>` every thread's stack if the loop itself is blocked (`pgrep -af zikaron.service.main` gives the pid). A `memory_plan_groups` or `memory_next_group` under five minutes is a plan, not a wedge. `hook.log` says which kind it is: **`transport`** on every push, though the socket connects, is a blocked loop; **`deadline_passed`** — or `unanswered`, when the answer lost the race to the hook's deadline — on every push with **no `call` rows** behind them in the event table is a request holding the store's writer, and the same run **with** `call` rows is every read connection taken; **`unanswered`** alone is a push whose own request hangs. One kind looks healthy in `hook.log`: pushes succeed while every write answers `store_busy` after about five seconds — the writer's lock held with nothing running — and the `long request:` line names that one too |
1093
+ | the service is running but stops answering | `.zikaron/service.log`'s last `long request:` lines name the request it is stuck in; `kill -USR2 <pid>` adds the requests in flight and every task's stack, and `kill -USR1 <pid>` every thread's stack if the loop itself is blocked (`pgrep -af '[z]ikaron.service.main'` gives the pid). A `memory_plan_groups` or `memory_next_group` under five minutes is a plan, not a wedge. `hook.log` says which kind it is: **`transport`** on every push, though the socket connects, is a blocked loop; **`deadline_passed`** — or `unanswered`, when the answer lost the race to the hook's deadline — on every push with **no `call` rows** behind them in the event table is a request holding the store's writer, and the same run **with** `call` rows is every read connection taken; **`unanswered`** alone is a push whose own request hangs. One kind looks healthy in `hook.log`: pushes succeed while every write answers `store_busy` after about five seconds — the writer's lock held with nothing running — and the `long request:` line names that one too |
860
1094
  | Zikaron's tools are listed but arrive name-only, or the agent's first calls are refused for argument shape | Claude Code: an install predating `alwaysLoad`, which `zikaron doctor` reports. Upgrade Zikaron where the project was installed from and re-run the installer there; the entry upgrades in place and needs no `--force` |
861
1095
  | a hook command "not found" | the config names a different virtualenv than the one you installed from; re-run the installer with `--force` |
862
1096
  | a memory looks half-written when injected | an over-long gist; see the note below |
863
1097
 
864
- **One known limit, now narrow.** kiro truncates a hook's output past a byte cap and says nothing
865
- when it does. Gist length is bounded in *tokens*, and tokens bound neither characters nor bytes — a
866
- single unbroken 4000-character string counts as one token — so a pathologically long gist could
867
- once push the injected block past that cap and lose the tail of it silently. **New writes can no
868
- longer do this:** a gist over 1,024 characters is rejected outright, which keeps a five-row block
869
- comfortably inside every supported harness's budget. (Emoji and other characters outside the common
1098
+ **One known limit, now narrow.** kiro cuts a hook's output at 3,000 characters and marks the cut
1099
+ to the model alone; Claude Code cuts at 10,000, loudly. Gist length is bounded in *tokens*, and
1100
+ tokens bound neither characters nor bytes — a single unbroken 4000-character string counts as one
1101
+ token — so a pathologically long gist could once push the injected block past a cut and lose the
1102
+ tail of it. **New writes are bounded:** a gist over 1,024 characters is rejected outright, which
1103
+ keeps a five-row block inside Claude Code's budget. Under kiro a block fits while its five gists stay
1104
+ within 404 characters each — every gist in the stores this was measured on does, the longest being
1105
+ 246 — and an overrun is recorded as `push_oversize` in `.zikaron/hook.log`. (Emoji and other characters outside the common
870
1106
  range count as two each, so a gist made mostly of them is capped nearer 512 — the matching count
871
1107
  rather than a conservative one, because the injection budget was measured to count them the same
872
1108
  way.) Only records written before that bound existed can still be over-long. If you see a
@@ -890,20 +1126,20 @@ behind: the index then returns hits for a row that no longer exists, and the nex
890
1126
  can corrupt the database. Two safe options, in order of preference:
891
1127
 
892
1128
  1. Stop the service, delete the whole store, **and delete the spill files, which are not in it**:
893
- `pkill -f zikaron.service.main; rm -rf .zikaron; rm -f "${XDG_RUNTIME_DIR:-/tmp}"/zikaron*/*.json`.
1129
+ `pkill -f '[z]ikaron.service.main'; rm -rf .zikaron; rm -f "${XDG_RUNTIME_DIR:-/tmp}"/zikaron*/*.json`.
894
1130
  You lose every memory **and every knowledge base**; the store rebuilds itself empty on the next
895
1131
  session.
896
1132
  **The separator is `;` rather than `&&` deliberately**: the service stops itself after
897
1133
  `service.idle_timeout`, so it is usually *not* running, and `pkill` exits 1 when nothing
898
1134
  matched — which with `&&` skips the deletion silently, leaving the store you believe you
899
1135
  just erased.
900
- **The third command is the one that is easy to miss.** A consolidator group too large to return
901
- is written to the runtime directory rather than into your project, with the record prose in it
902
- verbatim, so `rm -rf .zikaron` does not reach it and a record erased from the store can survive
903
- there until the next reboot. That glob takes every store's spill files rather than only this
904
- one's, which is recoverable rather than free: a consolidation still in flight fails its next
905
- read loudly and is re-served the group with a fresh copy. It is a Claude Code path — nothing
906
- spills under kiro.
1136
+ **The third command is the one that is easy to miss.** Under Claude Code a consolidator group
1137
+ too large to return is written to the runtime directory rather than into your project, with the
1138
+ record prose in it verbatim, so `rm -rf .zikaron` does not reach it and a record erased from the
1139
+ store can survive there until the next reboot. That glob takes every store's spill files rather
1140
+ than only this one's, which is recoverable rather than free: a consolidation still in flight
1141
+ fails its next read loudly and is re-served the group with a fresh copy. Under kiro the group is
1142
+ written to `.zikaron/spill/`, which `rm -rf .zikaron` already reaches.
907
1143
  2. Follow the ordered procedure in `design/write-policy.md` §"The emergency erasure procedure,
908
1144
  exactly", which removes the index terms and vectors before the content row.
909
1145
 
@@ -915,19 +1151,20 @@ deleting the copy.
915
1151
  From the project directory, first the part that is the same on both harnesses:
916
1152
 
917
1153
  ```bash
918
- pkill -f zikaron.service.main # or just let it idle out
919
- rm -rf .zikaron # the memory store, every knowledge base, and the logs
1154
+ pkill -f '[z]ikaron.service.main' # or just let it idle out
1155
+ rm -rf .zikaron # the memory store, every knowledge base, the logs, kiro's spill
920
1156
  rm -f "${XDG_RUNTIME_DIR:-/tmp}"/zikaron*/*.json # Claude Code only: spilled consolidator groups
921
1157
  ```
922
1158
 
923
- The third line is there for the reason [Secrets](#secrets) gives: spill files sit outside the
924
- project, so `rm -rf .zikaron` does not reach them.
1159
+ The third line is there for the reason [Secrets](#secrets) gives: under Claude Code spill files sit
1160
+ outside the project, so `rm -rf .zikaron` does not reach them; under kiro it does.
925
1161
 
926
1162
  Then the harness's own artefacts. Under **kiro**:
927
1163
 
928
1164
  ```bash
929
- rm -rf .kiro/skills/zikaron-consolidate
930
- rm .kiro/agents/zikaron-consolidator.json
1165
+ rm -rf .kiro/skills/zikaron-consolidate .kiro/skills/zikaron-document-code
1166
+ rm .kiro/agents/zikaron-consolidator.json .kiro/agents/zikaron-documenter.json
1167
+ rm .kiro/agents/zikaron-code-orchestrator.json
931
1168
  mv .kiro/agents/<your-agent>.json.bak .kiro/agents/<your-agent>.json
932
1169
  ```
933
1170
 
@@ -937,8 +1174,9 @@ config, remove the `hooks`, `mcpServers` and `@zikaron` entries by hand instead.
937
1174
  Under **Claude Code** the artefacts are project files rather than one merged config:
938
1175
 
939
1176
  ```bash
940
- rm .claude/agents/zikaron-consolidator.md
941
- rm -rf .claude/skills/zikaron-consolidate
1177
+ rm .claude/agents/zikaron-consolidator.md .claude/agents/zikaron-documenter.md
1178
+ rm .claude/agents/zikaron-code-orchestrator.md
1179
+ rm -rf .claude/skills/zikaron-consolidate .claude/skills/zikaron-document-code
942
1180
  ```
943
1181
 
944
1182
  and then remove Zikaron's `hooks`, `enabledMcpjsonServers` and `permissions` entries from
@@ -947,15 +1185,21 @@ than deleted, because both hold settings that are not Zikaron's. **All three set
947
1185
  the install writes three** — leaving `enabledMcpjsonServers` behind names two servers that no longer
948
1186
  exist, which loads nothing and breaks nothing but is not an uninstall.
949
1187
 
950
- **The guards** live only in `.claude/settings.local.json`: remove the `PreToolUse` and
951
- `PostToolUse` hook groups whose command is `zikaron-guard`, and the `SessionStart` and
1188
+ **The guards**, under Claude Code, live in `.claude/settings.local.json`: remove the `PreToolUse`
1189
+ and `PostToolUse` hook groups whose command is `zikaron-guard`, and the `SessionStart` and
952
1190
  `SubagentStart` groups whose command is `zikaron-hook`. To keep the memory store and drop only the
953
1191
  guards, re-running the installer will not do it — an install never removes a selection — so delete
954
- the two guard groups and the `--components …` arguments from the two start groups' command.
1192
+ the two guard groups and the `--components …` arguments from the two start groups' command. Under
1193
+ kiro they are the two `hooks` entries named `zikaron-guards-SessionStart` and
1194
+ `zikaron-guards-PreToolUse` in the agent profile you passed as `--agent`; delete those two, and the
1195
+ memory store's two stay.
955
1196
 
956
1197
  Note that `rm -rf .zikaron` takes the knowledge bases with it. They are rebuildable — an index is a
957
1198
  view onto files you still have — but rebuilding one takes minutes per corpus.
958
1199
 
1200
+ Documents the code-documentation skill wrote stay where it wrote them — `code-knowledge/` by
1201
+ default — since they are your project's files; `rm -rf .zikaron` above already removed their index.
1202
+
959
1203
  **The embedding model is not in your project and survives all of the above.** It is per user, not per
960
1204
  project, so it is deliberately left alone by a single project's uninstall — another project using
961
1205
  Zikaron still needs it. Remove it only when you are done with Zikaron everywhere: