zikaron 0.3.2__tar.gz → 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. {zikaron-0.3.2 → zikaron-0.4.0}/PKG-INFO +257 -75
  2. {zikaron-0.3.2 → zikaron-0.4.0}/README.md +256 -74
  3. {zikaron-0.3.2 → zikaron-0.4.0}/pyproject.toml +1 -1
  4. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_access_log.py +8 -8
  5. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_agent_scan.py +10 -0
  6. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_cli_front_door.py +2 -1
  7. zikaron-0.4.0/tests/test_code_knowledge_claude_live.py +232 -0
  8. zikaron-0.4.0/tests/test_code_knowledge_command.py +817 -0
  9. zikaron-0.4.0/tests/test_code_knowledge_plan.py +488 -0
  10. zikaron-0.4.0/tests/test_code_knowledge_reminder.py +160 -0
  11. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_main.py +13 -0
  12. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_nudge.py +13 -0
  13. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_properties.py +8 -5
  14. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_rule_table.py +61 -19
  15. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_selfmatch_table.py +6 -4
  16. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_harness_table.py +50 -0
  17. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_components.py +12 -0
  18. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_connect.py +14 -5
  19. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_main.py +49 -1
  20. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_push.py +8 -10
  21. zikaron-0.4.0/tests/test_hook_reminder.py +441 -0
  22. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_rpc.py +53 -7
  23. zikaron-0.4.0/tests/test_hook_shell_search.py +167 -0
  24. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_spawn_warm.py +2 -2
  25. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_subagent_policy.py +9 -0
  26. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_warm_helper_integration.py +1 -1
  27. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_assets.py +7 -58
  28. zikaron-0.4.0/tests/test_install_code_knowledge.py +610 -0
  29. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_components.py +179 -8
  30. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_e2e.py +6 -2
  31. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_main.py +13 -8
  32. zikaron-0.4.0/tests/test_install_models.py +219 -0
  33. zikaron-0.4.0/tests/test_install_snapshots.py +29 -0
  34. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_targets.py +76 -18
  35. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_writer.py +101 -25
  36. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_build_invariants.py +15 -3
  37. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_build_log.py +5 -4
  38. zikaron-0.4.0/tests/test_knowledge_build_transactions.py +179 -0
  39. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_builds.py +48 -17
  40. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_cli.py +321 -45
  41. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_cli_integration.py +21 -34
  42. zikaron-0.4.0/tests/test_knowledge_corpus_migration.py +397 -0
  43. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_counters.py +10 -3
  44. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_database.py +21 -9
  45. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_detach.py +148 -13
  46. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_files.py +8 -8
  47. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_groups.py +65 -15
  48. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_indexer.py +4 -5
  49. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_integration.py +3 -0
  50. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_invariants.py +13 -8
  51. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_lifecycle.py +47 -27
  52. zikaron-0.4.0/tests/test_knowledge_linked_search.py +267 -0
  53. zikaron-0.4.0/tests/test_knowledge_links.py +167 -0
  54. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_lock_race.py +3 -1
  55. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_meta.py +1 -1
  56. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_repair.py +7 -2
  57. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_reporting.py +66 -30
  58. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_search.py +6 -1
  59. zikaron-0.4.0/tests/test_knowledge_source_hash.py +473 -0
  60. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_writes.py +5 -1
  61. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_project_scope.py +6 -6
  62. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_dispatch.py +1 -0
  63. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_dispatch_knowledge.py +2 -0
  64. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_knowledge_management.py +116 -26
  65. zikaron-0.4.0/tests/test_service_reminder.py +280 -0
  66. zikaron-0.4.0/tests/test_service_spawned_builds.py +276 -0
  67. zikaron-0.4.0/tests/test_service_version_check.py +225 -0
  68. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_write_contention.py +3 -8
  69. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_writer.py +4 -9
  70. zikaron-0.4.0/tests/test_spawned_interpreter.py +71 -0
  71. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_store_migration.py +49 -6
  72. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/cli/main.py +15 -17
  73. zikaron-0.4.0/zikaron/code_knowledge/__init__.py +6 -0
  74. zikaron-0.4.0/zikaron/code_knowledge/__main__.py +11 -0
  75. zikaron-0.4.0/zikaron/code_knowledge/apply.py +84 -0
  76. zikaron-0.4.0/zikaron/code_knowledge/main.py +234 -0
  77. zikaron-0.4.0/zikaron/code_knowledge/output.py +76 -0
  78. zikaron-0.4.0/zikaron/code_knowledge/survey.py +169 -0
  79. zikaron-0.4.0/zikaron/core/code_knowledge/__init__.py +6 -0
  80. zikaron-0.4.0/zikaron/core/code_knowledge/document.py +163 -0
  81. zikaron-0.4.0/zikaron/core/code_knowledge/layout.py +74 -0
  82. zikaron-0.4.0/zikaron/core/code_knowledge/plan.py +308 -0
  83. zikaron-0.4.0/zikaron/core/code_knowledge/readme.py +70 -0
  84. zikaron-0.4.0/zikaron/core/code_knowledge/reminder.py +78 -0
  85. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/config/keys.py +10 -0
  86. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/events.py +3 -4
  87. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/builds.py +34 -10
  88. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/counters.py +37 -10
  89. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/database.py +21 -11
  90. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/ddl.py +4 -0
  91. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/disposal.py +9 -1
  92. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/files.py +34 -13
  93. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/groups.py +60 -28
  94. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/lifecycle.py +39 -20
  95. zikaron-0.4.0/zikaron/core/knowledge/link_store.py +140 -0
  96. zikaron-0.4.0/zikaron/core/knowledge/links.py +165 -0
  97. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/meta.py +24 -11
  98. zikaron-0.4.0/zikaron/core/knowledge/migration.py +90 -0
  99. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/paths.py +13 -3
  100. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/reporting.py +99 -17
  101. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/scan.py +29 -1
  102. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/search.py +64 -2
  103. zikaron-0.4.0/zikaron/core/knowledge/source_hash.py +279 -0
  104. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/writes.py +5 -1
  105. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/holders.py +11 -10
  106. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/migration.py +9 -0
  107. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/pool.py +1 -1
  108. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/store.py +3 -3
  109. zikaron-0.4.0/zikaron/core/version.py +31 -0
  110. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/grep_filter.py +54 -15
  111. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/main.py +15 -11
  112. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/scratch.py +38 -11
  113. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/harness/spec.py +61 -5
  114. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/connect.py +25 -2
  115. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/failure.py +41 -1
  116. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/main.py +13 -4
  117. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/push.py +3 -41
  118. zikaron-0.4.0/zikaron/hook/reminder.py +154 -0
  119. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/rpc.py +74 -24
  120. zikaron-0.4.0/zikaron/hook/shell_search.py +211 -0
  121. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/spawn_warm.py +1 -0
  122. zikaron-0.4.0/zikaron/install/code_knowledge.py +660 -0
  123. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/entries.py +146 -14
  124. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/main.py +20 -25
  125. zikaron-0.4.0/zikaron/install/models.py +122 -0
  126. zikaron-0.4.0/zikaron/install/settings_hooks.py +331 -0
  127. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/targets.py +94 -296
  128. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/writer.py +102 -57
  129. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/client.py +66 -3
  130. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/indexer/build_log.py +3 -4
  131. zikaron-0.4.0/zikaron/knowledge/indexer/detach.py +163 -0
  132. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/indexer/main.py +9 -7
  133. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/main.py +119 -94
  134. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/scope.py +3 -3
  135. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/connection.py +28 -2
  136. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/primary.py +46 -40
  137. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/project/initialize.py +2 -1
  138. zikaron-0.4.0/zikaron/project/messages.py +27 -0
  139. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/project/report.py +6 -23
  140. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/project/resolve.py +12 -3
  141. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/context.py +14 -0
  142. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/dispatch.py +24 -10
  143. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/dispatch_knowledge.py +129 -28
  144. zikaron-0.4.0/zikaron/service/dispatch_reminder.py +75 -0
  145. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/lifecycle.py +17 -3
  146. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/methods.py +18 -2
  147. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/params.py +27 -4
  148. zikaron-0.4.0/zikaron/service/reminders.py +42 -0
  149. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/serialize_knowledge.py +37 -30
  150. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/server.py +2 -1
  151. zikaron-0.4.0/zikaron/service/spawned_builds.py +77 -0
  152. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron.egg-info/PKG-INFO +257 -75
  153. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron.egg-info/SOURCES.txt +45 -1
  154. zikaron-0.3.2/zikaron/knowledge/indexer/detach.py +0 -122
  155. {zikaron-0.3.2 → zikaron-0.4.0}/LICENSE +0 -0
  156. {zikaron-0.3.2 → zikaron-0.4.0}/setup.cfg +0 -0
  157. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_asyncio_compat.py +0 -0
  158. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_background_encoder.py +0 -0
  159. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_check_gate.py +0 -0
  160. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_ci_workflow.py +0 -0
  161. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_clock.py +0 -0
  162. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_config_keys.py +0 -0
  163. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_config_resolution.py +0 -0
  164. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_grouping.py +0 -0
  165. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_invariants.py +0 -0
  166. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_observability.py +0 -0
  167. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_planning.py +0 -0
  168. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_refusals.py +0 -0
  169. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_serving.py +0 -0
  170. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_snapshot_planning.py +0 -0
  171. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_consolidation_verbs.py +0 -0
  172. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_ddl.py +0 -0
  173. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_definition_of_done_sites.py +0 -0
  174. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_design_pointers_resolve.py +0 -0
  175. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_design_tables.py +0 -0
  176. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_distribution.py +0 -0
  177. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_doctor.py +0 -0
  178. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_embedder.py +0 -0
  179. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_error_codes.py +0 -0
  180. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_event_kinds.py +0 -0
  181. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_claude_live.py +0 -0
  182. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_docstring_examples.py +0 -0
  183. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_malformed.py +0 -0
  184. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_script_file.py +0 -0
  185. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_selfmatch.py +0 -0
  186. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_selfmatch_premise.py +0 -0
  187. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_guard_texts.py +0 -0
  188. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_harness_detect.py +0 -0
  189. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_harness_store_scope.py +0 -0
  190. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_harness_tier_guard.py +0 -0
  191. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_connect_edge_cases.py +0 -0
  192. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_connect_integration.py +0 -0
  193. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_connect_race.py +0 -0
  194. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_connect_real_service_integration.py +0 -0
  195. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_envelope.py +0 -0
  196. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_failure.py +0 -0
  197. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_stdlib_only.py +0 -0
  198. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_tripwire.py +0 -0
  199. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_warm_helper.py +0 -0
  200. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_hook_write_policy.py +0 -0
  201. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_indexing_acquisition.py +0 -0
  202. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_indexing_chunking.py +0 -0
  203. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_indexing_encoder.py +0 -0
  204. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_indexing_integration.py +0 -0
  205. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_indexing_model_cache.py +0 -0
  206. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_indexing_writes.py +0 -0
  207. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_injected_prose_log.py +0 -0
  208. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_claude_live.py +0 -0
  209. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_harness.py +0 -0
  210. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_limits.py +0 -0
  211. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_install_takeover.py +0 -0
  212. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_build_row_ordering.py +0 -0
  213. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_chunking.py +0 -0
  214. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_ddl.py +0 -0
  215. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_git.py +0 -0
  216. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_lock.py +0 -0
  217. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_registry.py +0 -0
  218. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_roots.py +0 -0
  219. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_scan.py +0 -0
  220. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_scan_git.py +0 -0
  221. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_state.py +0 -0
  222. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_text.py +0 -0
  223. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_vectors.py +0 -0
  224. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_knowledge_walk.py +0 -0
  225. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_markdown_renders_as_written.py +0 -0
  226. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_connection_ambiguous_failure.py +0 -0
  227. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_connection_cancellation.py +0 -0
  228. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_connection_concurrency.py +0 -0
  229. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_connection_integration.py +0 -0
  230. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_connection_labels.py +0 -0
  231. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_consolidator_bridge.py +0 -0
  232. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_errors.py +0 -0
  233. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_main.py +0 -0
  234. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_server.py +0 -0
  235. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_spill.py +0 -0
  236. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_tool_descriptions.py +0 -0
  237. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_mcp_wire_contracts.py +0 -0
  238. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_meta.py +0 -0
  239. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_permissions.py +0 -0
  240. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_publication_hygiene.py +0 -0
  241. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_quoted_design_prose_is_verbatim.py +0 -0
  242. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_readme_config_table.py +0 -0
  243. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_readme_internal_links.py +0 -0
  244. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_records_memory.py +0 -0
  245. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_records_receipts.py +0 -0
  246. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_records_supersession.py +0 -0
  247. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_retrieval_arms.py +0 -0
  248. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_retrieval_eligibility.py +0 -0
  249. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_retrieval_integration.py +0 -0
  250. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_retrieval_query.py +0 -0
  251. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_retrieval_ranking.py +0 -0
  252. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_retrieval_reads.py +0 -0
  253. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_context.py +0 -0
  254. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_context_assemble.py +0 -0
  255. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_diagnostics.py +0 -0
  256. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_diagnostics_integration.py +0 -0
  257. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_dispatch_consolidation.py +0 -0
  258. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_encoder_failure_stop.py +0 -0
  259. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_envelope.py +0 -0
  260. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_lifecycle.py +0 -0
  261. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_lifecycle_integration.py +0 -0
  262. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_log.py +0 -0
  263. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_main.py +0 -0
  264. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_ownership.py +0 -0
  265. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_params.py +0 -0
  266. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_paths.py +0 -0
  267. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_read_contention.py +0 -0
  268. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_rpc.py +0 -0
  269. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_security.py +0 -0
  270. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_server.py +0 -0
  271. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_service_surface_deadline.py +0 -0
  272. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_contention.py +0 -0
  273. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_dedup.py +0 -0
  274. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_horizon.py +0 -0
  275. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_repair.py +0 -0
  276. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_retirement.py +0 -0
  277. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_sessions.py +0 -0
  278. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_signals_writes.py +0 -0
  279. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_socket_path_budget.py +0 -0
  280. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_store.py +0 -0
  281. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_store_connection.py +0 -0
  282. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_store_pool.py +0 -0
  283. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_transaction_begin_sites.py +0 -0
  284. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_version_seam.py +0 -0
  285. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_write_dedup.py +0 -0
  286. {zikaron-0.3.2 → zikaron-0.4.0}/tests/test_write_tools.py +0 -0
  287. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/__init__.py +0 -0
  288. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/cli/__init__.py +0 -0
  289. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/__init__.py +0 -0
  290. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/clock.py +0 -0
  291. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/config/__init__.py +0 -0
  292. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/config/resolution.py +0 -0
  293. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/__init__.py +0 -0
  294. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/authorization.py +0 -0
  295. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/candidates.py +0 -0
  296. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/context.py +0 -0
  297. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/grouping.py +0 -0
  298. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/groups.py +0 -0
  299. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/payload.py +0 -0
  300. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/planning.py +0 -0
  301. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/rowstate.py +0 -0
  302. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/runs.py +0 -0
  303. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/serving.py +0 -0
  304. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/consolidation/verbs.py +0 -0
  305. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/errors.py +0 -0
  306. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/__init__.py +0 -0
  307. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/acquisition.py +0 -0
  308. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/chunking.py +0 -0
  309. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/encoder.py +0 -0
  310. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/lexical.py +0 -0
  311. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/model_cache.py +0 -0
  312. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/model_pin.py +0 -0
  313. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/vectors.py +0 -0
  314. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/indexing/writes.py +0 -0
  315. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/__init__.py +0 -0
  316. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/arms.py +0 -0
  317. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/candidates.py +0 -0
  318. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/changes.py +0 -0
  319. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/chunking.py +0 -0
  320. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/errors.py +0 -0
  321. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/git.py +0 -0
  322. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/lexical.py +0 -0
  323. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/lock.py +0 -0
  324. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/pending.py +0 -0
  325. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/registry.py +0 -0
  326. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/repair.py +0 -0
  327. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/roots.py +0 -0
  328. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/state.py +0 -0
  329. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/text.py +0 -0
  330. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/vectors.py +0 -0
  331. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/knowledge/walk.py +0 -0
  332. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/records/__init__.py +0 -0
  333. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/records/memory.py +0 -0
  334. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/records/receipts.py +0 -0
  335. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/records/supersession.py +0 -0
  336. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/__init__.py +0 -0
  337. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/arms.py +0 -0
  338. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/block.py +0 -0
  339. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/eligibility.py +0 -0
  340. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/query.py +0 -0
  341. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/ranking.py +0 -0
  342. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/reads.py +0 -0
  343. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/retrieve.py +0 -0
  344. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/retrieval/similarity.py +0 -0
  345. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/__init__.py +0 -0
  346. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/contention.py +0 -0
  347. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/dedup.py +0 -0
  348. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/horizon.py +0 -0
  349. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/repair.py +0 -0
  350. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/retirement.py +0 -0
  351. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/sessions.py +0 -0
  352. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/signals/writes.py +0 -0
  353. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/__init__.py +0 -0
  354. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/connection.py +0 -0
  355. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/ddl.py +0 -0
  356. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/deadline.py +0 -0
  357. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/embedder.py +0 -0
  358. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/meta.py +0 -0
  359. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/permissions.py +0 -0
  360. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/store/transactions.py +0 -0
  361. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/write/__init__.py +0 -0
  362. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/write/dedup.py +0 -0
  363. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/core/write/tools.py +0 -0
  364. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/doctor/__init__.py +0 -0
  365. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/doctor/checks.py +0 -0
  366. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/doctor/main.py +0 -0
  367. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/__init__.py +0 -0
  368. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/chars.py +0 -0
  369. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/decision.py +0 -0
  370. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/expression.py +0 -0
  371. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/forms.py +0 -0
  372. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/grammar.py +0 -0
  373. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/heredoc.py +0 -0
  374. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/inplace.py +0 -0
  375. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/interpreter.py +0 -0
  376. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/lexer.py +0 -0
  377. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/limits.py +0 -0
  378. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/literal_text.py +0 -0
  379. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/messages.py +0 -0
  380. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/nudge.py +0 -0
  381. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/override.py +0 -0
  382. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/patterns.py +0 -0
  383. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/position.py +0 -0
  384. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/programs.py +0 -0
  385. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/quoting.py +0 -0
  386. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/redirects.py +0 -0
  387. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/script_file.py +0 -0
  388. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/selfmatch.py +0 -0
  389. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/start_text.py +0 -0
  390. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/guard/writes.py +0 -0
  391. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/harness/__init__.py +0 -0
  392. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/harness/detect.py +0 -0
  393. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/__init__.py +0 -0
  394. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/components.py +0 -0
  395. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/envelope.py +0 -0
  396. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/limits.py +0 -0
  397. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/subagent_policy.py +0 -0
  398. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/tripwire.py +0 -0
  399. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/warm_helper.py +0 -0
  400. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/hook/write_policy.py +0 -0
  401. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/__init__.py +0 -0
  402. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/__main__.py +0 -0
  403. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/agent_scan.py +0 -0
  404. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/assets.py +0 -0
  405. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/harness.py +0 -0
  406. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/install/ownership.py +0 -0
  407. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/__init__.py +0 -0
  408. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/__main__.py +0 -0
  409. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/indexer/__init__.py +0 -0
  410. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/knowledge/indexer/__main__.py +0 -0
  411. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/__init__.py +0 -0
  412. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/consolidator.py +0 -0
  413. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/errors.py +0 -0
  414. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/main.py +0 -0
  415. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/server.py +0 -0
  416. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/spill.py +0 -0
  417. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/mcp/tool_names.py +0 -0
  418. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/project/__init__.py +0 -0
  419. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/project/__main__.py +0 -0
  420. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/py.typed +0 -0
  421. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/__init__.py +0 -0
  422. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/access_log.py +0 -0
  423. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/asyncio_compat.py +0 -0
  424. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/diagnostics.py +0 -0
  425. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/dispatch_consolidation.py +0 -0
  426. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/envelope.py +0 -0
  427. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/log.py +0 -0
  428. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/main.py +0 -0
  429. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/ownership.py +0 -0
  430. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/paths.py +0 -0
  431. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/rpc.py +0 -0
  432. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/security.py +0 -0
  433. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron/service/serialize.py +0 -0
  434. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron.egg-info/dependency_links.txt +0 -0
  435. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron.egg-info/entry_points.txt +0 -0
  436. {zikaron-0.3.2 → zikaron-0.4.0}/zikaron.egg-info/requires.txt +0 -0
  437. {zikaron-0.3.2 → zikaron-0.4.0}/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.0
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
@@ -132,7 +132,7 @@ reads which one it is addressing before it reads a description. Consolidation ne
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
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. |
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
@@ -174,7 +174,7 @@ and never fails your turn.
174
174
  nothing. A person running it from a terminal outside a session, into a project that has not been
175
175
  set up yet, is the case where nothing says anything and `--harness` is required.
176
176
 
177
- Under kiro it additionally validates the consolidator's model id against the binary, because kiro
177
+ Under kiro it additionally validates the shipped agents' model id against the binary, because kiro
178
178
  substitutes an unknown model silently; Claude Code refuses one itself, at spawn, so no such check
179
179
  is needed there.
180
180
 
@@ -298,26 +298,63 @@ exists for. `zikaron doctor` afterwards says whether a Claude Code project's Zik
298
298
  **What upgrading the package does not do by itself:**
299
299
 
300
300
  - **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.
301
+ stopped — `pkill -f '[z]ikaron.service.main'`, bracketed so that, run from a script or by an
302
+ agent, it does not match the shell running it. Until then `zikaron init` and every
303
+ `zikaron knowledge` verb refuse it, naming both versions and the service's pid: if the command is
304
+ the newer install, stop that process and the next command starts one that matches; if the service
305
+ is newer, run the command from the install that started it — the one the project's hook and
306
+ `.mcp.json` name. The hook and the agent's MCP tools go on using whichever service is running.
304
307
  - **A store moves forward, never back.** The first time a newer service opens a project's store it
305
308
  migrates it in one transaction, without saying so, and an older Zikaron then refuses that store —
306
309
  `0.1.0` cannot open one `0.3.0` has opened. If more than one environment serves the same project,
307
- upgrade them together.
310
+ upgrade them together. That includes the install a project's `.mcp.json` names: once a newer
311
+ service has moved the store, an agent session running an older `zikaron-mcp` is refused the store
312
+ (`schema_incompatible`) and loses its memory and knowledge tools until that install is upgraded
313
+ and the session restarts its MCP server.
314
+
315
+ Finally, if the project is a git repository, tell git to ignore everything the install wrote.
316
+ **None of it works without a local install**: the subagents call Zikaron's tools, which a clone has
317
+ no server for, and the skills run the `zikaron` beside the `zikaron-mcp` your MCP configuration
318
+ names. A committed copy would show up in a clone-mate's agent and skill lists and fail when used,
319
+ and would pin your Zikaron version's text against theirs. Each clone runs the installer, which
320
+ writes its own. Under Claude Code:
308
321
 
309
- Finally, if the project is a git repository, tell git to ignore the store — and, under Claude Code,
310
- the MCP config too:
322
+ ```bash
323
+ cat >> .gitignore <<'EOF'
324
+ /.zikaron/
325
+ /.mcp.json*
326
+ /.claude/settings.local.json*
327
+ /.claude/agents/zikaron-*
328
+ /.claude/skills/zikaron-*/
329
+ EOF
330
+ ```
331
+
332
+ and under kiro:
311
333
 
312
334
  ```bash
313
- echo '.zikaron/' >> .gitignore
314
- echo '.mcp.json*' >> .gitignore # Claude Code only; see below
335
+ cat >> .gitignore <<'EOF'
336
+ /.zikaron/
337
+ /.kiro/agents/zikaron-*
338
+ /.kiro/agents/*.json.bak
339
+ /.kiro/skills/zikaron-*/
340
+ EOF
315
341
  ```
316
342
 
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.
343
+ **Every line starts with `/`, so each matches only at the project's top**, where the install writes.
344
+ A `.zikaron/` anywhere else is a store some session made in the wrong directory, and is better
345
+ seen in `git status` than hidden.
346
+
347
+ **The agent config you named under kiro is your own file**, so it is not on the list; the hook and
348
+ `mcpServers` entries the install merged into it name your virtualenv by absolute path too. **Nor is
349
+ `code-knowledge/`**: the documents are plain Markdown, readable without Zikaron, and whether you
350
+ commit them is yours ([Code knowledge](#code-knowledge)).
351
+
352
+ **The `*` and the `.bak` lines cover the installer's backups** — `.mcp.json.bak`,
353
+ `.claude/settings.local.json.bak` and, under kiro, `<your-agent>.json.bak`, each the file as it
354
+ stood before the first merge into it (the backup rule is below); a refreshed agent's or skill's own
355
+ `.bak` falls under the `zikaron-*` lines. Each holds the same absolute
356
+ paths, and whatever the entry held at the time, an `env` included, and it is where `--force` sends
357
+ you to look for a key it dropped.
321
358
 
322
359
  **`.mcp.json` is the awkward one.** Claude Code intends that file to be committed and shared — that
323
360
  is what "project-scoped" means — but the entries Zikaron writes into it name absolute paths inside
@@ -331,9 +368,9 @@ is the clone-mate case.
331
368
 
332
369
  The installer does not edit `.gitignore` for you; appending to it is not a decision an installer
333
370
  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.
371
+ write-ahead log, every knowledge base's index, the service logs and the installed agents and
372
+ skills all show up as untracked, and a routine `git add -A` commits the lot. None of it is useful
373
+ to anyone else, and none of it is reproducible from your repository.
337
374
 
338
375
  What it writes under **kiro**, relative to the project:
339
376
 
@@ -341,7 +378,9 @@ What it writes under **kiro**, relative to the project:
341
378
  |---|---|
342
379
  | `.kiro/agents/zikaron-consolidator.json` | the consolidation subagent: its model, its four tools, its prompt |
343
380
  | `.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` |
381
+ | `.kiro/agents/zikaron-documenter.json` | the documentation subagent: its model, its four file tools and `@zikaron` with its own `mcpServers` entry, its prompt |
382
+ | `.kiro/skills/zikaron-document-code/SKILL.md` | how to document a module of your code ([Code knowledge](#code-knowledge)) |
383
+ | the agent config you named | `hooks` for start and per-message, an `mcpServers` entry, `@zikaron` in `tools` and `allowedTools`, the consolidator and the documenter in `toolsSettings.crew`, and both skills in `resources` |
345
384
 
346
385
  and under **Claude Code**:
347
386
 
@@ -349,22 +388,26 @@ and under **Claude Code**:
349
388
  |---|---|
350
389
  | `.claude/agents/zikaron-consolidator.md` | the consolidation subagent, as frontmatter plus its prompt |
351
390
  | `.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` |
391
+ | `.claude/agents/zikaron-documenter.md` | the documentation subagent, as frontmatter plus its prompt |
392
+ | `.claude/agents/zikaron-code-orchestrator.md` | the subagent your session spawns, in the background, to run a code-documentation run |
393
+ | `.claude/skills/zikaron-document-code/SKILL.md` | how to document a module of your code ([Code knowledge](#code-knowledge)) |
394
+ | `.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
395
  | `.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
396
 
355
397
  With `--components guards` the install writes `.claude/settings.local.json` alone, and in it only
356
398
  hooks: the session-start and per-subagent hooks, which carry a short note about the guards, and the
357
399
  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.
400
+ key, no subagent and no skill. With `--components both` you get all of the above together, and
401
+ the start hooks carry the write policy and the guards' note.
360
402
 
361
403
  **`settings.local.json`, not `settings.json`**, and it matters if you commit your settings: the hook
362
404
  entries name absolute paths inside *your* virtualenv, so they are meaningless in anyone else's clone.
363
405
  The third hook is the one with no kiro counterpart — it hands the write policy to each subagent you
364
406
  spawn, which kiro achieves by firing its ordinary hooks for subagent sessions instead.
365
407
 
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.
408
+ It backs up any file it merges into (`<file>.bak`, and the first backup wins), leaving one that
409
+ already carries every entry untouched, backup included, and **refreshes a shipped file whose
410
+ contents are not what this version ships** — after backing it up, and saying so.
368
411
  That is what makes upgrading work, and the cost is that a hand-edit to a shipped file is reverted on
369
412
  the next install rather than kept. **Under Claude Code the same holds inside a file it *merges*
370
413
  into**: a Zikaron hook entry whose command is this install's but whose `timeout` or matcher you
@@ -411,29 +454,31 @@ subagent with its own model invocation, four mutation verbs and, under Claude Co
411
454
  and the installer does not make it for you. **Under kiro** that grant is
412
455
  `toolsSettings.crew.trustedAgents`, which the installer only ever reads: starting a consolidation
413
456
  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.
457
+ it. The documentation skill spawns `zikaron-documenter` once per file, so unless you add it there
458
+ too you are asked before each spawn, unless kiro keeps the answer, which is unmeasured. Claude Code
459
+ has no such key, so there is nothing to add and nothing withheld.
460
+
461
+ **Three keys under kiro only, and Claude Code has none of them.** The consolidator and the
462
+ documenter also have to be reachable by the `subagent` tool, so if your config already restricts
463
+ which agents may be spawned (`toolsSettings.crew.availableAgents`), the installer adds
464
+ `zikaron-consolidator` and `zikaron-documenter` to that list. If you have no such restriction it
465
+ leaves it alone — an empty list means *every* agent is available, and writing entries into it would
466
+ restrict you to just these. Both skills are also declared in the agent's `resources` unless
467
+ something there already covers them. Skills normally arrive by inheritance, so those entries are
468
+ usually redundant — but they are the only thing that makes the skills loadable if you have set
469
+ `chat.disableInheritingDefaultResources`, and declaring a resource does not disable inheritance, so
470
+ it can only help.
471
+
472
+ **One thing the kiro install deliberately does not do:** add the `subagent` tool itself, which both
473
+ skills need to spawn their agents, or `shell`, which the documentation skill needs to run its
474
+ planner. Their reach is much wider than Zikaron's own tools, so those grants stay yours. The
475
+ installer says so if either is missing. Under Claude Code none of this arises — the shipped skills
476
+ are ordinary project files, and their agents are spawned through whatever subagent tool the harness
477
+ already gives your agent.
478
+
479
+ **Installing into a clone of the Zikaron repository itself** finds none of the files an install
480
+ ships already tracked, under either harness: the repository keeps a snapshot of them under
481
+ `tests/fixtures/installed/`, outside both harnesses' dot-directories, and no installed copy.
437
482
 
438
483
  ### What to know under Claude Code
439
484
 
@@ -454,7 +499,9 @@ the next one, because session scope is the only scope that grant has. It is not
454
499
  purpose: a file-reading tool cannot be restricted to one path in subagent config, so this prompt is
455
500
  the only point at which that grant is put to you as a question.
456
501
 
457
- `--no-trust-tools` withholds both written keys for *your* tools. It does not withhold them for the
502
+ `--no-trust-tools` withholds both written keys for *your* tools. It withholds them from the
503
+ code-documentation run as well, whose orchestrator and documenters call the same server, so under
504
+ that flag a run asks in your session per Zikaron call. It does not withhold them for the
458
505
  consolidator's: a subagent has nobody to answer a permission prompt, so an unapproved **MCP** tool
459
506
  there does not ask, it fails at the moment consolidation needs it. The file read above is the
460
507
  exception — that one prompts.
@@ -481,11 +528,12 @@ global and unregisters the tool, after which the consolidator itself refuses to
481
528
  rules, with no model and no store behind them (`design/guards.md`):
482
529
 
483
530
  - **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
531
+ or node script that writes a file, a heredoc or `echo` redirected into one, and a script in
532
+ scratch that the command runs and that does any of these. The refusal reaches the
486
533
  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.
534
+ Paths under `/tmp`, `/var/tmp`, `$TMPDIR` and a background job's `$CLAUDE_JOB_DIR/tmp` are
535
+ exempt, and so is a command carrying the override the refusal itself describes, for the files
536
+ whose bytes a program owns.
489
537
  - **After each edit, the agent is reminded** that the file has not been re-read, and asked for one
490
538
  re-read of the edited material once that file's editing is done. A Bash command gets no such
491
539
  reminder, so when the agent overrides a refusal, the guard's acknowledgement names what the
@@ -525,12 +573,20 @@ usually shows something else: told the rule when its session starts, it reaches
525
573
  | `--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
574
  | `--agent <path>` | **kiro only.** Merge the hook and MCP entries into that config, after backing it up |
527
575
  | `--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) |
576
+ | `--model <id>` | the model of every agent Zikaron ships whose own flag below is not given — the consolidator, the documenter and, under Claude Code, the code orchestrator (default: `claude-sonnet-5` under kiro; under Claude Code `haiku` for the documenter, `opus` for the orchestrator and `sonnet` for the consolidator) |
577
+ | `--consolidator-model <id>` | the consolidator's model, over `--model` |
578
+ | `--documenter-model <id>` | the code documenter's model, over `--model` |
579
+ | `--orchestrator-model <id>` | **Claude Code only.** The code orchestrator's model, over `--model`. Refused under kiro, which ships no orchestrator |
529
580
  | `--format {object,array}` | **kiro only.** Which hook format to write when the target config has none yet |
530
581
  | `--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 |
582
+ | `--components {memory,guards,both}` | what to install: the memory store (the default), the guards below, or both. **Claude Code only** for `guards` and `both`; every model flag is refused with `guards`, which ships no agent |
532
583
  | `--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
584
 
585
+ A model id is the harness's own: under kiro, one `kiro-cli chat --list-models` lists, which the
586
+ install checks; under Claude Code, an alias such as `sonnet` or a full id, which Claude Code itself
587
+ refuses at spawn if it does not know it. An install is for one harness, so a project set up for
588
+ both installs twice, each run with that harness's ids.
589
+
534
590
  Both hook formats kiro accepts are supported, and a config that already uses one keeps it: kiro
535
591
  rewrites a config in whichever format it read, so mixing them in one file has no defined meaning.
536
592
 
@@ -573,7 +629,7 @@ write policy goes into the model's context, not to your terminal. Then, from the
573
629
 
574
630
  ```bash
575
631
  # a service should be running for this project after your first message
576
- pgrep -af zikaron.service.main
632
+ pgrep -af '[z]ikaron.service.main'
577
633
 
578
634
  # one line per hook failure, missed cold start, write-policy-override note, or session/environment mismatch; absent means none happened
579
635
  cat .zikaron/hook.log
@@ -641,19 +697,133 @@ answers nothing until it finishes. `status` says how far it has got.
641
697
  In a script or a CI step, use `zikaron knowledge refresh --wait`: it reports progress and returns
642
698
  once every build against those corpora has let go of its corpus — including one an earlier `add`
643
699
  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.
700
+ unusable, and naming the build log of each one that did, or that never started. By then each build's
701
+ record of what it cost has been written to `memory.db`, or dropped if the store stayed locked; the
702
+ indexer process itself may still be exiting, and still writing the last lines of that log. Without
703
+ `--wait` the step can finish while an indexer is still running, and whatever kills the step kills the
704
+ build too.
647
705
 
648
706
  **Nothing updates an index on its own.** There is no watcher and no schedule: a corpus drifts from
649
707
  its files until somebody refreshes it. A search says so when it can — a result whose file has
650
708
  changed since it was indexed comes back marked `stale`.
651
709
 
710
+ **A document can say which file it was written from, and a search then says whether that file has
711
+ moved since.** A summary of a long document, a translation, a description of a source file: open it
712
+ with a front-matter block naming the file and the hash of the version you wrote from —
713
+
714
+ ```markdown
715
+ ---
716
+ zikaron-source: src/billing/invoice.py
717
+ zikaron-source-blob: 3f2a9c0d41e7b8a65c1d2e3f4a5b6c7d8e9f0a1b
718
+ ---
719
+ # What invoice.py does
720
+ ```
721
+
722
+ — and every result from that document carries `source: {path, state}`, where `state` is `fresh` (the
723
+ file is still the version you wrote from), `changed`, `missing`, or `unverifiable` (it could not be
724
+ checked). The path is relative to the project directory — the one holding `.zikaron/` — whichever
725
+ directory the document is in, may climb out of it with `..`, and is at most 1,024 characters. The
726
+ hash is git's object id, what `git hash-object` prints for the file's real path, run from the
727
+ project directory; outside a repository the same command still gives the right answer. The block
728
+ must close within the document's first 4,096 characters, and any other keys it carries are ignored.
729
+ A block that names a link and gets it wrong — one key without the other, a hash in capitals — comes
730
+ back `unverifiable` rather than looking unlinked. `zikaron knowledge status` counts the linked files and how often a
731
+ search met a source that had moved.
732
+
652
733
  **An index holds the text of every file in it.** Do not point one at a directory holding
653
734
  credentials. The databases are `0600`, the same as `memory.db`, and they are under `.zikaron/`, so
654
735
  the `.gitignore` line above already covers them — but what is *in* one is searchable by every agent
655
736
  working in this project.
656
737
 
738
+ ### Code knowledge
739
+
740
+ An agent new to a codebase searches it by keyword to find where to start. **Code knowledge** gives
741
+ it a corpus to search instead: one document per source file — what the file is for, every class and
742
+ function it declares with its declaration, its non-trivial behavior, and the files it depends on —
743
+ written by agents, kept as files in your project, and indexed as an ordinary knowledge base. Ask
744
+ for it in plain words — *"create code documentation"*, *"document `src/billing`"* — or with the
745
+ installed skill, naming directories of your code, or none:
746
+
747
+ ```
748
+ /zikaron-document-code # every documented module, or the whole project
749
+ /zikaron-document-code src/billing
750
+ /zikaron-document-code src/billing --slice 20 # just twenty files, to see what it costs
751
+ /zikaron-document-code services/api --exclude '*_generated.go'
752
+ ```
753
+
754
+ With no directory named it updates every module you have documented, or, where you have documented
755
+ none, documents the whole project, into one knowledge base of its own; globs and `--slice` need
756
+ one module. **Under Claude Code the skill runs in the background**: your session spawns the
757
+ `zikaron-code-orchestrator` subagent to run it, so your session stays free while it works and
758
+ receives its report when it ends; under kiro it runs in your session. Either way it runs a **planner**, `zikaron code-knowledge plan`,
759
+ which decides from hashes which documents are missing, out of date or malformed, removes the ones a
760
+ deleted or renamed source left behind — moving a renamed file's document instead of rewriting it —
761
+ and lists the rest. It then spawns a `zikaron-documenter` subagent per listed file, and runs the
762
+ planner again until it reports the module up to date; the module's `README.md` is written last,
763
+ an overview of the module from its documents, listing no files. Run it again after the code has
764
+ moved and only what moved is rewritten. The planner never starts the service and changes nothing
765
+ outside the documents directory but the list of role lines it hands the README's writer, under
766
+ `.zikaron/`; without `--apply` it changes nothing at all, so you can run it yourself to see where a
767
+ module stands:
768
+
769
+ ```bash
770
+ zikaron code-knowledge plan --module src/billing --limit 10
771
+ ```
772
+
773
+ **Pass the same `--include` and `--exclude` every time** you document a directory: they are part of
774
+ what it is, and a narrower set makes the planner remove the documents it no longer admits. So a
775
+ directory documented with globs is updated by naming it with them: the plain update passes none and
776
+ documents such a directory in full — its report says `globs: none` — and the next run naming it with
777
+ its globs removes what the update added.
778
+
779
+ The documents go under `code-knowledge/`, mirroring your tree —
780
+ `code-knowledge/src/billing/invoice.py.md` describes `src/billing/invoice.py` — and **each module
781
+ is a knowledge base of its own**: the skill registers `code-knowledge/src/billing/` as the knowledge
782
+ base `code-knowledge/src/billing`, or refreshes it, so a search can keep to one module. A directory
783
+ inside one you have documented, or containing one, is refused, since its documents would be
784
+ indexed twice. **Whether you commit them is yours to decide**: each corpus is created with
785
+ `git_mode: off`, so a document is searchable whether it is committed, uncommitted, or fetched from
786
+ somewhere a build published it to.
787
+
788
+ **What a run needs.** The documenter can read files, write one and correct it in place, and use
789
+ Zikaron's tools — the project's memory, which it may search and add to, and its knowledge bases,
790
+ which it may search, code knowledge's own excepted since a document there can be stale, and
791
+ changes none of — and nothing else; it has no shell. Under Claude Code the background run's
792
+ permission prompts appear in your session, naming the subagent asking: you are asked to approve the
793
+ planner's command when it first runs — allow it for the session, or you are asked again at later
794
+ batches — and the first document a documenter writes. Under auto mode, the interactive default
795
+ since Claude Code 2.1.283, neither is put to you: the classifier decides the command, and an edit
796
+ inside the project is approved outright. One run at a time in a session: a second request while a
797
+ run is out waits, and your session starts it when the first run reports. A headless run asks nothing and so is refused unless you
798
+ give it the permission up front: `--permission-mode bypassPermissions`, best kept to a copy of the
799
+ project, or
800
+ `--allowedTools` naming the planner command, the subagent tool, the file tools and `mcp__zikaron`,
801
+ since a headless run in a folder you never trusted interactively does not read the install's own
802
+ allow rule — and `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0`, without which a headless run that waits
803
+ ten idle minutes on background work is stopped. Under kiro the agent you run needs `subagent` and
804
+ `shell` among its tools — the installer says so if they are missing — and, unless you add
805
+ `zikaron-documenter` to `toolsSettings.crew.trustedAgents`, you are asked before each documenter is
806
+ spawned; the documenter's own config already allows its tools.
807
+
808
+ **Using it.** Ask for it in your prompt, naming the module's knowledge base to keep to one module:
809
+
810
+ > Answer the following question using the knowledge tool, and then verify it against the actual
811
+ > code: …
812
+
813
+ Under Claude Code, a search of a documented module — `grep`, `rg` or `git grep` in a shell, or the
814
+ `Grep` and `Glob` tools — is followed by one line naming the knowledge bases that document it: on
815
+ the first such search after each prompt you send, and then at most once every five minutes for
816
+ each agent by default (`retrieval.knowledge_reminder_interval`). It reminds an agent that is already
817
+ searching; it does not make one use the documents, so the instruction in your prompt stays the way
818
+ to have it do that. Kiro has no reminder.
819
+
820
+ **Read every result as a lead, not as a fact.** Each one carries `source.state`: `fresh` means the
821
+ file has not changed since its document was written — not that the document is right, since a
822
+ document can be wrong from the day it was written — and `changed` means the file has moved since,
823
+ so the document still says roughly where to look and its particulars are suspect. `missing` means
824
+ the file is gone, and `unverifiable` that it could not be checked. Either way the answer rests on
825
+ the code. `design/code-knowledge.md` is the design, and why the code decides.
826
+
657
827
  ---
658
828
 
659
829
  ## Configuration
@@ -701,6 +871,7 @@ idle_timeout = 1800 # seconds of inactivity before the service stops itse
701
871
  | `retrieval` | `fts_query_max_terms` | `64` | 1–512 | the largest full-text query built from one prompt |
702
872
  | `retrieval` | `knowledge_max_chunks_per_file` | `2` | 1–20 | **knowledge bases:** how many fragments one file may contribute to a result set |
703
873
  | `retrieval` | `knowledge_snippet_max_chars` | `1200` | 80–24000 | **knowledge bases:** how much text a single returned fragment carries, counted in code points |
874
+ | `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
875
  | `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
876
  | `dedup` | `dedup_max` | `3` | 0–20 | how many near-duplicates are handed back at once |
706
877
  | `consolidation` | `mutual_k` | `5` | 2–50 | how many neighbours each entry considers when grouping |
@@ -761,8 +932,11 @@ it is `0600` or `0700`. The **installer** also writes harness config — the fil
761
932
  memory.db the store itself — never commit this
762
933
  memory.db-wal SQLite's write-ahead log; part of the store
763
934
  memory.db-shm SQLite's shared-memory index; part of the store
764
- knowledge/ one database per knowledge base, named by a generated id.
935
+ knowledge/ one database per knowledge base, named by a generated id, and beside
936
+ each the log of the last build the service spawned for it.
765
937
  Absent until you create one
938
+ code-knowledge/ the list of role lines the planner hands a module README's writer, one
939
+ directory per module. Present only while that README is owed
766
940
  config.toml your per-project overrides, if you wrote any
767
941
  service.log the background service: startup, resolved config, errors, why it stopped,
768
942
  any request running longer than 30 s, and the stack dumps below
@@ -816,18 +990,21 @@ on every **memory** read and write — used to measure whether the write policy
816
990
  the database because those rows must commit alongside the change they describe. It also holds an
817
991
  access log, best-effort: a `call` row for each request the service answers — which method, how long
818
992
  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.
993
+ Neither carries text. A knowledge base's own database has no event log: it keeps **search**
994
+ counters in its metadata — searches, empty searches, results returned, results stale, and, of the
995
+ results from linked documents, how many there were and how many had a source that had changed, had
996
+ gone or could not be checked — which `zikaron_knowledge_status` reports beside the last build's own
997
+ file, byte and skip-reason counts.
823
998
 
824
999
  ---
825
1000
 
826
1001
  ## When something is wrong
827
1002
 
828
1003
  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.
1004
+ when you send a message prints a short note asking the agent to tell you, writes one line to
1005
+ `hook.log`, and exits cleanly. It never blocks your message, and it never reads the store directly.
1006
+ The reminder after a search says nothing when no service is running and starts none; one that
1007
+ reaches a service and fails writes a `hook.log` line marked `remind` after its kind.
831
1008
 
832
1009
  The service stops itself after a stretch of idleness, and the next message starts it again. That
833
1010
  message waits a few seconds longer — the hook allows a start more time than a running service — and
@@ -848,15 +1025,16 @@ symptoms it cannot see.
848
1025
  |---|---|
849
1026
  | 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
1027
  | 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` |
1028
+ | no memories are being injected | `.zikaron/hook.log`, then `pgrep -af '[z]ikaron.service.main'` |
852
1029
  | 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
1030
  | 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 |
1031
+ | 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
1032
  | 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` |
1033
+ | `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 |
856
1034
  | "Agents not available for crew stages: zikaron-consolidator" | add it to `toolsSettings.crew.availableAgents`, or re-run the installer |
857
1035
  | consolidation seems stuck | ask to consolidate again — that takes the run over |
858
1036
  | 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 |
1037
+ | 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
1038
  | 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
1039
  | a hook command "not found" | the config names a different virtualenv than the one you installed from; re-run the installer with `--force` |
862
1040
  | a memory looks half-written when injected | an over-long gist; see the note below |
@@ -890,7 +1068,7 @@ behind: the index then returns hits for a row that no longer exists, and the nex
890
1068
  can corrupt the database. Two safe options, in order of preference:
891
1069
 
892
1070
  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`.
1071
+ `pkill -f '[z]ikaron.service.main'; rm -rf .zikaron; rm -f "${XDG_RUNTIME_DIR:-/tmp}"/zikaron*/*.json`.
894
1072
  You lose every memory **and every knowledge base**; the store rebuilds itself empty on the next
895
1073
  session.
896
1074
  **The separator is `;` rather than `&&` deliberately**: the service stops itself after
@@ -915,8 +1093,8 @@ deleting the copy.
915
1093
  From the project directory, first the part that is the same on both harnesses:
916
1094
 
917
1095
  ```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
1096
+ pkill -f '[z]ikaron.service.main' # or just let it idle out
1097
+ rm -rf .zikaron # the memory store, every knowledge base, and the logs
920
1098
  rm -f "${XDG_RUNTIME_DIR:-/tmp}"/zikaron*/*.json # Claude Code only: spilled consolidator groups
921
1099
  ```
922
1100
 
@@ -926,8 +1104,8 @@ project, so `rm -rf .zikaron` does not reach them.
926
1104
  Then the harness's own artefacts. Under **kiro**:
927
1105
 
928
1106
  ```bash
929
- rm -rf .kiro/skills/zikaron-consolidate
930
- rm .kiro/agents/zikaron-consolidator.json
1107
+ rm -rf .kiro/skills/zikaron-consolidate .kiro/skills/zikaron-document-code
1108
+ rm .kiro/agents/zikaron-consolidator.json .kiro/agents/zikaron-documenter.json
931
1109
  mv .kiro/agents/<your-agent>.json.bak .kiro/agents/<your-agent>.json
932
1110
  ```
933
1111
 
@@ -937,8 +1115,9 @@ config, remove the `hooks`, `mcpServers` and `@zikaron` entries by hand instead.
937
1115
  Under **Claude Code** the artefacts are project files rather than one merged config:
938
1116
 
939
1117
  ```bash
940
- rm .claude/agents/zikaron-consolidator.md
941
- rm -rf .claude/skills/zikaron-consolidate
1118
+ rm .claude/agents/zikaron-consolidator.md .claude/agents/zikaron-documenter.md
1119
+ rm .claude/agents/zikaron-code-orchestrator.md
1120
+ rm -rf .claude/skills/zikaron-consolidate .claude/skills/zikaron-document-code
942
1121
  ```
943
1122
 
944
1123
  and then remove Zikaron's `hooks`, `enabledMcpjsonServers` and `permissions` entries from
@@ -956,6 +1135,9 @@ the two guard groups and the `--components …` arguments from the two start gro
956
1135
  Note that `rm -rf .zikaron` takes the knowledge bases with it. They are rebuildable — an index is a
957
1136
  view onto files you still have — but rebuilding one takes minutes per corpus.
958
1137
 
1138
+ Documents the code-documentation skill wrote stay where it wrote them — `code-knowledge/` by
1139
+ default — since they are your project's files; `rm -rf .zikaron` above already removed their index.
1140
+
959
1141
  **The embedding model is not in your project and survives all of the above.** It is per user, not per
960
1142
  project, so it is deliberately left alone by a single project's uninstall — another project using
961
1143
  Zikaron still needs it. Remove it only when you are done with Zikaron everywhere: