graphite-code 1.9.2__tar.gz → 1.9.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. {graphite_code-1.9.2 → graphite_code-1.9.4}/CHANGELOG.md +99 -0
  2. {graphite_code-1.9.2 → graphite_code-1.9.4}/PKG-INFO +2 -2
  3. {graphite_code-1.9.2 → graphite_code-1.9.4}/README.md +1 -1
  4. {graphite_code-1.9.2 → graphite_code-1.9.4}/RELEASING.md +39 -11
  5. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/__init__.py +1 -1
  6. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/agent_hooks.py +13 -6
  7. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/cli.py +10 -8
  8. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/doctor.py +23 -4
  9. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/doctor_probes.py +171 -21
  10. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/incident_ledger.py +26 -0
  11. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/ingest.py +41 -0
  12. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/probe_process.py +11 -0
  13. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_activation_backstop.py +26 -15
  14. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_agent_hook_activation.py +15 -7
  15. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_below_repository_root.py +72 -1
  16. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_version.py +25 -1
  17. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_debt.py +7 -1
  18. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_doctor.py +381 -1
  19. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_incident_ledger.py +77 -0
  20. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_mutation_tests.py +48 -0
  21. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_probe_process.py +12 -0
  22. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_savings.py +6 -0
  23. {graphite_code-1.9.2 → graphite_code-1.9.4}/.gitignore +0 -0
  24. {graphite_code-1.9.2 → graphite_code-1.9.4}/.mcp.json +0 -0
  25. {graphite_code-1.9.2 → graphite_code-1.9.4}/ARCHITECTURE.md +0 -0
  26. {graphite_code-1.9.2 → graphite_code-1.9.4}/CONTRIBUTING.md +0 -0
  27. {graphite_code-1.9.2 → graphite_code-1.9.4}/LICENSE +0 -0
  28. {graphite_code-1.9.2 → graphite_code-1.9.4}/SECURITY.md +0 -0
  29. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/__init__.py +0 -0
  30. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/build_benchmark.py +0 -0
  31. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/realty_router/README.md +0 -0
  32. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/realty_router/__init__.py +0 -0
  33. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/realty_router/evaluate.py +0 -0
  34. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/realty_router/tasks.json +0 -0
  35. {graphite_code-1.9.2 → graphite_code-1.9.4}/benchmarks/synthetic_repo.py +0 -0
  36. {graphite_code-1.9.2 → graphite_code-1.9.4}/pyproject.toml +0 -0
  37. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/__init__.py +0 -0
  38. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/compare_dist.py +0 -0
  39. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/gen_cli_reference.py +0 -0
  40. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/mutation_tests.py +0 -0
  41. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/pyscopeoracle.py +0 -0
  42. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/sqloracle.py +0 -0
  43. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/verify_artifact.py +0 -0
  44. {graphite_code-1.9.2 → graphite_code-1.9.4}/scripts/verify_published_release.py +0 -0
  45. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/__main__.py +0 -0
  46. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/_cleanup_worker.py +0 -0
  47. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/_win32_ctypes.py +0 -0
  48. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/activation.py +0 -0
  49. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/agent_settings.py +0 -0
  50. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/analyze.py +0 -0
  51. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/answer_contract.py +0 -0
  52. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/bootstrap.py +0 -0
  53. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/buildlock.py +0 -0
  54. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/cache.py +0 -0
  55. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/channel.py +0 -0
  56. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/cluster.py +0 -0
  57. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/config.py +0 -0
  58. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/context.py +0 -0
  59. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/daemon.py +0 -0
  60. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/daemon_health.py +0 -0
  61. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/daemon_launch.py +0 -0
  62. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/debt.py +0 -0
  63. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/dependency_install.py +0 -0
  64. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/detach.py +0 -0
  65. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/engine_identity.py +0 -0
  66. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/export/__init__.py +0 -0
  67. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/export/html.py +0 -0
  68. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/export/json.py +0 -0
  69. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/export/md.py +0 -0
  70. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/extract/__init__.py +0 -0
  71. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/extract/ast.py +0 -0
  72. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/extract/pyscope.py +0 -0
  73. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/freshness.py +0 -0
  74. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/git.py +0 -0
  75. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/graph.py +0 -0
  76. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/graph_io.py +0 -0
  77. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/health.py +0 -0
  78. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/hook_entry.py +0 -0
  79. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/hookinstall.py +0 -0
  80. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/hookshim.py +0 -0
  81. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/init.py +0 -0
  82. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/io.py +0 -0
  83. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/launchd_agent.py +0 -0
  84. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/listing.py +0 -0
  85. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/llm.py +0 -0
  86. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/llm_probe.py +0 -0
  87. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/mcp.py +0 -0
  88. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/mcp_server.py +0 -0
  89. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/natural_query.py +0 -0
  90. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/overlays.py +0 -0
  91. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/ownership.py +0 -0
  92. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/probe_workspace.py +0 -0
  93. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/process_contracts.py +0 -0
  94. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/programs.py +0 -0
  95. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/provider_observer.py +0 -0
  96. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/py.typed +0 -0
  97. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/query.py +0 -0
  98. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/query_plan.py +0 -0
  99. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/replacement_audit.py +0 -0
  100. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/resolve.py +0 -0
  101. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/review.py +0 -0
  102. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/__init__.py +0 -0
  103. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/approval.py +0 -0
  104. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/classifier.py +0 -0
  105. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/claude_executor.py +0 -0
  106. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/claude_probe.py +0 -0
  107. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/cli_identity.py +0 -0
  108. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/codex_executor.py +0 -0
  109. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/codex_probe.py +0 -0
  110. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/context_builder.py +0 -0
  111. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/contracts.py +0 -0
  112. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/diff_policy.py +0 -0
  113. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/edit_apply.py +0 -0
  114. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/effort.py +0 -0
  115. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/lifecycle.py +0 -0
  116. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/lifecycle_operator.py +0 -0
  117. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/lifecycle_service.py +0 -0
  118. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/lifecycle_storage.py +0 -0
  119. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/ollama_executor.py +0 -0
  120. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/ollama_probe.py +0 -0
  121. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/openrouter_executor.py +0 -0
  122. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/openrouter_probe.py +0 -0
  123. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/policy.py +0 -0
  124. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/probe_runner.py +0 -0
  125. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/process_runner.py +0 -0
  126. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/profiles.py +0 -0
  127. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/prompt.py +0 -0
  128. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/registry.py +0 -0
  129. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/route_pool.py +0 -0
  130. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/route_pool_execution.py +0 -0
  131. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/schema_validation.py +0 -0
  132. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/service.py +0 -0
  133. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/settings.py +0 -0
  134. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/shadow.py +0 -0
  135. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/storage.py +0 -0
  136. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/telemetry.py +0 -0
  137. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/worktree.py +0 -0
  138. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/zai_edit.py +0 -0
  139. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/zai_executor.py +0 -0
  140. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/routing/zai_probe.py +0 -0
  141. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/savings.py +0 -0
  142. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/systemd_unit.py +0 -0
  143. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/ts_bridge.py +0 -0
  144. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/ts_resolver.mjs +0 -0
  145. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/typescript_activation.py +0 -0
  146. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/usage_ledger.py +0 -0
  147. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/validation.py +0 -0
  148. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/watch.py +0 -0
  149. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/windows_job.py +0 -0
  150. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/windows_startup.py +0 -0
  151. {graphite_code-1.9.2 → graphite_code-1.9.4}/src/graphite/windows_task.py +0 -0
  152. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/conftest.py +0 -0
  153. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/data/sqloracle/blindspots.py.txt +0 -0
  154. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/data/sqloracle/round69.py.txt +0 -0
  155. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/fake_clis/fake_cli.py +0 -0
  156. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/fixtures/provider_lifecycle_schema_v1.sql +0 -0
  157. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/fixtures/routing_schema_v2_ca77600.sql +0 -0
  158. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/fixtures/routing_schema_v3_94eb333.sql +0 -0
  159. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/fixtures/routing_schema_v4_lifecycle_migration.sql +0 -0
  160. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test__win32_ctypes.py +0 -0
  161. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_activation.py +0 -0
  162. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_agent_hooks.py +0 -0
  163. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_agent_hooks_session_books.py +0 -0
  164. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_agent_hooks_session_tagging.py +0 -0
  165. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_agent_settings.py +0 -0
  166. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_answer_contract.py +0 -0
  167. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_arrow_and_constructor_binding.py +0 -0
  168. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_ast_make_id_length.py +0 -0
  169. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_ast_name_a_module_only_imports.py +0 -0
  170. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_ast_source_lines.py +0 -0
  171. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_ast_super_over_a_builtin_base.py +0 -0
  172. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_atomic_write.py +0 -0
  173. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_bootstrap.py +0 -0
  174. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_build_detach.py +0 -0
  175. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_buildlock.py +0 -0
  176. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cache_engine_identity.py +0 -0
  177. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cache_entry_pruning.py +0 -0
  178. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cache_file_identity.py +0 -0
  179. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cache_file_set.py +0 -0
  180. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cache_pruning.py +0 -0
  181. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_call_graph.py +0 -0
  182. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_case_ambiguous_answer.py +0 -0
  183. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_attribution.py +0 -0
  184. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_cli.py +0 -0
  185. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_core.py +0 -0
  186. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_kind.py +0 -0
  187. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_lock.py +0 -0
  188. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_log_integrity.py +0 -0
  189. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_mcp.py +0 -0
  190. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_register.py +0 -0
  191. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_report.py +0 -0
  192. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_channel_status.py +0 -0
  193. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_class_field_arrow_binding.py +0 -0
  194. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_build_missing_path.py +0 -0
  195. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_channel.py +0 -0
  196. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_channel_attribution.py +0 -0
  197. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_doctor_below_root.py +0 -0
  198. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_reference.py +0 -0
  199. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cli_usage.py +0 -0
  200. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cluster.py +0 -0
  201. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_compare_dist.py +0 -0
  202. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_configuration_reference.py +0 -0
  203. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_context.py +0 -0
  204. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_context_builder.py +0 -0
  205. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cwd_relative_config.py +0 -0
  206. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_cycle_search.py +0 -0
  207. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon.py +0 -0
  208. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_activation.py +0 -0
  209. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_build_lock.py +0 -0
  210. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_child_lock.py +0 -0
  211. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_engine_staleness.py +0 -0
  212. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_health.py +0 -0
  213. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_health_activation.py +0 -0
  214. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_launch.py +0 -0
  215. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_service_cli.py +0 -0
  216. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_daemon_snapshot_failure.py +0 -0
  217. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_dependency_install.py +0 -0
  218. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_destructured_binding.py +0 -0
  219. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_determinism.py +0 -0
  220. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_dispatch_evidence.py +0 -0
  221. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_doctor_agent_hooks.py +0 -0
  222. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_doctor_hooks.py +0 -0
  223. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_doctor_managed_docs.py +0 -0
  224. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_doctor_probes.py +0 -0
  225. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_documentation.py +0 -0
  226. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_edit_apply.py +0 -0
  227. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_engine_identity.py +0 -0
  228. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_exit_codes_reference.py +0 -0
  229. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_external_calls.py +0 -0
  230. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_file_node_id_collision.py +0 -0
  231. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_git_security.py +0 -0
  232. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_go_rust.py +0 -0
  233. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_graph_io.py +0 -0
  234. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_graph_provider_isolation.py +0 -0
  235. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_hardening.py +0 -0
  236. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_health.py +0 -0
  237. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_hook_entry.py +0 -0
  238. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_hook_template.py +0 -0
  239. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_hookinstall.py +0 -0
  240. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_hookshim.py +0 -0
  241. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_html_security.py +0 -0
  242. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_init.py +0 -0
  243. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_init_activation_doctrine.py +0 -0
  244. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_init_hooks.py +0 -0
  245. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_init_validation_exit.py +0 -0
  246. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_launchd_agent.py +0 -0
  247. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_lifecycle_operator.py +0 -0
  248. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_listing.py +0 -0
  249. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_listing_surfaces.py +0 -0
  250. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_llm.py +0 -0
  251. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_llm_probe.py +0 -0
  252. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_mcp.py +0 -0
  253. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_mcp_server.py +0 -0
  254. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_mcp_server_channel_attribution.py +0 -0
  255. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_member_call_receiver.py +0 -0
  256. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_method_dispatch_scope.py +0 -0
  257. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_monorepo.py +0 -0
  258. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_natural_query.py +0 -0
  259. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_no_path_is_graded.py +0 -0
  260. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_node_identity.py +0 -0
  261. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_ollama_executor.py +0 -0
  262. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_overlays.py +0 -0
  263. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_path_leak_fixture.py +0 -0
  264. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_probe_diagnostics.py +0 -0
  265. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_probe_workspace.py +0 -0
  266. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_process_contracts.py +0 -0
  267. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_programs.py +0 -0
  268. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_claude_probe.py +0 -0
  269. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_codex_probe.py +0 -0
  270. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_lifecycle.py +0 -0
  271. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_lifecycle_service.py +0 -0
  272. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_lifecycle_storage.py +0 -0
  273. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_observer.py +0 -0
  274. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_ollama_probe.py +0 -0
  275. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_openrouter_probe.py +0 -0
  276. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_provider_probe_runner.py +0 -0
  277. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_public_surface.py +0 -0
  278. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_published_schemas.py +0 -0
  279. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_pyscope.py +0 -0
  280. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_pyscopeoracle.py +0 -0
  281. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_builtin_named_symbols.py +0 -0
  282. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_import_bindings.py +0 -0
  283. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_inherits_edge.py +0 -0
  284. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_local_alias_call.py +0 -0
  285. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_reexport_follow.py +0 -0
  286. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_resolver.py +0 -0
  287. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_python_scope_identity.py +0 -0
  288. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_query_plan.py +0 -0
  289. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_reliability.py +0 -0
  290. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_replacement_audit.py +0 -0
  291. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_repository_root_ownership.py +0 -0
  292. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_resolve.py +0 -0
  293. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_resolve_python_reexports_of.py +0 -0
  294. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_review.py +0 -0
  295. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_route_pool.py +0 -0
  296. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_route_pool_execution.py +0 -0
  297. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_approval.py +0 -0
  298. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_benchmark.py +0 -0
  299. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_classifier.py +0 -0
  300. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_claude_executor.py +0 -0
  301. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_cli.py +0 -0
  302. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_cli_contracts.py +0 -0
  303. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_cli_recovery.py +0 -0
  304. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_codex_executor.py +0 -0
  305. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_context.py +0 -0
  306. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_contracts.py +0 -0
  307. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_diff_policy.py +0 -0
  308. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_executor.py +0 -0
  309. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_openrouter_executor.py +0 -0
  310. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_policy.py +0 -0
  311. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_process_runner.py +0 -0
  312. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_profiles.py +0 -0
  313. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_registry.py +0 -0
  314. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_schema_validation.py +0 -0
  315. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_security.py +0 -0
  316. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_service.py +0 -0
  317. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_shadow.py +0 -0
  318. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_storage.py +0 -0
  319. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_telemetry.py +0 -0
  320. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_worktree.py +0 -0
  321. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_zai_executor.py +0 -0
  322. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_routing_zai_probe.py +0 -0
  323. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_search.py +0 -0
  324. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_self_super_dispatch.py +0 -0
  325. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_smoke.py +0 -0
  326. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_sqloracle.py +0 -0
  327. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_synthetic_repo.py +0 -0
  328. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_systemd_unit.py +0 -0
  329. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_ts_bridge.py +0 -0
  330. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_typescript_activation.py +0 -0
  331. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_typescript_resolver.py +0 -0
  332. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_usage_ledger.py +0 -0
  333. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_verify_artifact.py +0 -0
  334. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_verify_published_release.py +0 -0
  335. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_watch.py +0 -0
  336. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_windows_startup.py +0 -0
  337. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_windows_task.py +0 -0
  338. {graphite_code-1.9.2 → graphite_code-1.9.4}/tests/test_zai_edit.py +0 -0
@@ -13,6 +13,105 @@ machine-checkable identity; the version is for humans.
13
13
 
14
14
  [Keep a Changelog]: https://keepachangelog.com/en/1.1.0/
15
15
 
16
+ ## [1.9.4] — 2026-11-08
17
+
18
+ A patch release: one fix, and no change to any command, option, exit code,
19
+ entry point or published schema. Which folders a command or an agent session
20
+ registers with the daemon is not a stable surface (`docs/compatibility.md`),
21
+ and `graphite activate` is unchanged.
22
+
23
+ ### Fixed
24
+
25
+ **A command or agent session in a folder that is in no repository no longer
26
+ puts that folder under daemon supervision unless graphite is set up there,
27
+ and a drive or filesystem root never.** The CLI registers the repository a
28
+ command is typed in, so agents graphite cannot hook still get their
29
+ repository supervised. For a folder in no Git repository at all, it
30
+ registered the folder itself, whatever it was. A command typed in a drive
31
+ root, which is where release deploy steps run to keep a checkout off
32
+ `sys.path`, put the whole drive under supervision. Every build of it then
33
+ timed out after the daemon's 240-second limit and was retried, for the hour
34
+ until the marker expired. One machine's records show it four times, each on
35
+ a release day:
36
+ - three episodes ran for about an hour, with 17, 14 and 14 timed-out builds;
37
+ - the fourth, caused by commands run from the drive root after a deploy, was
38
+ cut short at 4 when its marker was removed.
39
+
40
+ A home directory is the same case.
41
+
42
+ Such a folder now registers only where graphite is set up: it has a graph,
43
+ or the `GRAPHITE.md` that `init` writes. A drive or filesystem root never
44
+ does, not even one holding `.git`, since a stray `.git` there is still the
45
+ whole drive; `trusted_root` already refuses such a root for the same reason.
46
+ The price: a repository whose root really is a drive root no longer
47
+ registers from a command or a session, and is registered with
48
+ `graphite activate` instead. A checkout's root anywhere else still registers
49
+ itself, set up or not, which is how a fresh clone gets its first graph. A
50
+ folder below a checkout's root still registers nothing.
51
+
52
+ The agent hooks follow the same rule from one shared definition. A session's
53
+ `cwd` follows a `cd` in the shell, and `Stop` renews the marker every turn,
54
+ so a session that wandered to a drive root would keep the drive supervised
55
+ for as long as it stayed there. `graphite activate` names its path and is
56
+ still believed as given.
57
+
58
+ In a folder outside any repository that has no graph yet, the `build` that
59
+ makes the first graph registers nothing, and the next command does.
60
+
61
+ ## [1.9.3] — 2026-11-08
62
+
63
+ A patch release: three fixes, and no change to any command, option, exit
64
+ code, entry point or published schema. `doctor --json` keeps every field and
65
+ every `details` value it had — the new explanations are in `summary` and
66
+ `remediation`, which are human wording (`docs/compatibility.md`) — and the
67
+ incident ledger code it adds is local diagnostics, not a stable surface.
68
+
69
+ ### Fixed
70
+
71
+ **`doctor --deep` no longer reports MCP `probe_failed` when the MCP
72
+ dependencies are installed beside graphite.** Before it starts the MCP server,
73
+ the deep probe builds a manifest of the server's dependencies from the
74
+ interpreter's package-metadata roots. It skipped the root that holds graphite
75
+ itself — an exemption meant only for graphite probing its own checkout, whose
76
+ source sits inside the repository being probed. pip's usual layout puts
77
+ graphite, `mcp` and `networkx` in one site-packages, and there skipping that
78
+ root left `mcp` and `networkx` with no installed copy at all. The probe
79
+ refused before the server ever started, and said `probe_failed` with nothing
80
+ to explain it. The MCP server itself was never affected. The test suite runs
81
+ from the source tree, where the dependencies live elsewhere, so it never saw
82
+ this — and nothing exercised an installed wheel's MCP server either. It
83
+ shipped in every wheel from 0.3.0 through 1.9.2: measured on the retained
84
+ 0.3.0 and 1.9.2 wheels, with the skip unchanged in between. CI now installs
85
+ the wheel it builds for every pull request and every push to `main` with the
86
+ `mcp` extra, and requires the deep probe to read `ready` from it.
87
+
88
+ The exemption now applies only where it was meant to: the root holding
89
+ graphite is skipped only when it lies inside the selected repository.
90
+ Anywhere else it is read like any other root. One consequence follows from
91
+ the rule every other root already obeys: a dependency installed both there
92
+ and in another root now has two candidates, and the probe refuses it.
93
+
94
+ **A deep MCP probe that refuses now says why.** Every refusal the probe made
95
+ while building its dependency manifest used to read `probe_failed`, with each
96
+ diagnostic field in the incident ledger `<none>` — which is how the failure
97
+ above went unnoticed. The report now names the cause and the remedy: a
98
+ dependency of the MCP server is not installed, is installed twice, an
99
+ environment with installed packages sits inside the repository being checked,
100
+ or graphite's installation changed while the probe ran. `details` still read
101
+ `{"code": "probe_failed"}`; the reason is in the summary and the remediation.
102
+ The ledger records each refusal as `deep_mcp_manifest_refused` with the reason
103
+ and the builder's exit status, a failure nothing classified records its
104
+ exception type, and a `deep_mcp_nonzero` incident now carries the child's exit
105
+ status instead of `returncode=<none>`. Nothing the probe's child process
106
+ writes reaches a report: the reason crosses as an exit status and is named by
107
+ graphite itself.
108
+
109
+ **`doctor` says when an acknowledged incident has happened again.** An ack
110
+ never re-opens an incident — only a resolve does — so an incident that kept
111
+ recurring after it was acked showed nothing but a rising count. The incident
112
+ check's summary now ends `, N recurred since ack`, and its remediation lists
113
+ them. The check's status is unchanged: it still turns only on open incidents.
114
+
16
115
  ## [1.9.2] — 2026-11-05
17
116
 
18
117
  A patch release: one fix, and no change to any command, option, exit code
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: graphite-code
3
- Version: 1.9.2
3
+ Version: 1.9.4
4
4
  Summary: Local-first, zero-LLM knowledge graph extraction for codebases.
5
5
  Project-URL: Homepage, https://github.com/jared0565/graphite
6
6
  Project-URL: Repository, https://github.com/jared0565/graphite
@@ -49,7 +49,7 @@ Description-Content-Type: text/markdown
49
49
 
50
50
  Local-first, deterministic knowledge graph extraction for codebases — zero-LLM, daemon-maintained, agent-agnostic.
51
51
 
52
- **Status: 1.9.2, production/stable.** Published on PyPI as
52
+ **Status: 1.9.4, production/stable.** Published on PyPI as
53
53
  [`graphite-code`](https://pypi.org/project/graphite-code/) with PEP 740
54
54
  attestations; supported on Windows, Linux and macOS with Python 3.11–3.14
55
55
  (every cell gates CI). What 1.x promises — CLI, JSON outputs, `graph.json`,
@@ -2,7 +2,7 @@
2
2
 
3
3
  Local-first, deterministic knowledge graph extraction for codebases — zero-LLM, daemon-maintained, agent-agnostic.
4
4
 
5
- **Status: 1.9.2, production/stable.** Published on PyPI as
5
+ **Status: 1.9.4, production/stable.** Published on PyPI as
6
6
  [`graphite-code`](https://pypi.org/project/graphite-code/) with PEP 740
7
7
  attestations; supported on Windows, Linux and macOS with Python 3.11–3.14
8
8
  (every cell gates CI). What 1.x promises — CLI, JSON outputs, `graph.json`,
@@ -21,12 +21,14 @@ be cited as a released artifact. Releases 0.3.0 through 0.5.3 published artifact
21
21
  maintainer had built locally; from 1.0.0 the published bytes are CI's.
22
22
 
23
23
  Note what a release is FOR here, because the answer is not only publication. Every
24
- consumer on this machine imports Graphite from one editable install pointed at the
25
- development tree, so a saved file reaches all of them immediately and there is no
26
- previous version to return to. A retained, hash-recorded artifact is what makes that
27
- recoverable: rollback is "reinstall the last known-good wheel", which is only possible
28
- if that wheel was built and kept. Building into a scratch directory and discarding it
29
- satisfies the gate below and leaves the gap open.
24
+ consumer on this machine runs an installed wheel, so a fix on `main` reaches none of
25
+ them until it is released and deployed. (Through 0.2.1 they all imported one editable
26
+ install of the development tree instead, so a saved file reached every one at once
27
+ with no previous version to return to; see "Retention and rollback".) A retained,
28
+ hash-recorded artifact is what makes a deploy recoverable: rollback is "reinstall the
29
+ last known-good wheel", which is only possible if that wheel was built and kept.
30
+ Building into a scratch directory and discarding it satisfies the gate below and
31
+ leaves the gap open.
30
32
 
31
33
  Releases are model-independent. No LLM or other model access is required, and model
32
34
  output is not release evidence. Run Graphite checks with model integration disabled.
@@ -255,9 +257,15 @@ graphite --help
255
257
 
256
258
  The printed version must exactly match the approved version, and the registrations must
257
259
  match the wheel's inspected `entry_points.txt`. Do not start `graphite-mcp` as a help
258
- probe: it is a protocol server rather than a help-style CLI and requires the optional
259
- `mcp` dependency. A separate protocol smoke test is permitted only when that dependency
260
- is included in the approved, hash-verified snapshot.
260
+ probe: it is a protocol server rather than a help-style CLI.
261
+
262
+ The approved snapshot must include the `mcp` extra, installed into the same environment
263
+ as the wheel. That layout -- mcp and networkx in the same site-packages as graphite -- is
264
+ what pip produces for an ordinary install, and it is the one the test suite cannot
265
+ build: the suite runs from `src/`, where the dependencies live elsewhere. 1.9.2 shipped
266
+ a deep MCP probe that refused in exactly this layout while every test passed. CI's
267
+ `artifact` job now checks it for every pull request and every push to `main`; check it
268
+ here too, on the bytes being released.
261
269
 
262
270
  Create a small temporary Git repository under the approved smoke workspace with one
263
271
  small Python file. From that repository run:
@@ -266,10 +274,14 @@ small Python file. From that repository run:
266
274
  graphite --llm none --output-dir graph-out --cache-dir cache scan .
267
275
  graphite --llm none --output-dir graph-out --cache-dir cache build .
268
276
  graphite validate --graph-json graph-out/graph.json --json
277
+ graphite doctor --deep --json .
269
278
  ```
270
279
 
271
- Confirm valid JSON, Markdown, and HTML. Retain artifact hashes and results in the release
272
- evidence. Clean disposable areas only after resolving and re-verifying their identity;
280
+ Confirm valid JSON, Markdown, and HTML. In the doctor report, `deep` must be true and the
281
+ check with code `deep_mcp` must be present and read `ready`. Read the payload, not
282
+ doctor's exit status: other checks are legitimately degraded in a throwaway repository,
283
+ and a degraded MCP probe does not change the exit status either. Retain artifact hashes
284
+ and results in the release evidence. Clean disposable areas only after resolving and re-verifying their identity;
273
285
  then require `git status --short` to be clean in the release checkout.
274
286
 
275
287
  ## Tag and publish
@@ -418,6 +430,22 @@ them:
418
430
  python -c "import graphite; print(graphite.__file__)"
419
431
  ```
420
432
 
433
+ A deploy -- installing a release on this machine -- is read back the same way, and then
434
+ exercised: from a repository, `graphite doctor --deep --json .` must report `deep_mcp`
435
+ as `ready`. Record that result in the store beside the version and fingerprint
436
+ readback. Until 1.9.3 the readback stopped at the version, so an MCP probe that refused
437
+ on every run with mcp beside graphite shipped unseen in every wheel from 0.3.0, the first
438
+ one deployed, through 1.9.2.
439
+
440
+ Run every `graphite` command of a readback from a repository, as `python -P -m graphite`
441
+ so the working directory cannot shadow the package. The `python -c` checks above are the
442
+ only part to run from a neutral directory. Through 1.9.3 a `graphite` command typed in a
443
+ folder that is in no repository registered that folder as open: typed in a drive root --
444
+ where deploy steps run to keep the checkout off `sys.path` -- it put the whole drive under
445
+ daemon supervision, and every build of it timed out until the marker expired an hour
446
+ later. A release with the fix no longer does that, but the installed version during a
447
+ deploy is the old one, so the rule holds for the readback either way.
448
+
421
449
  Prove a rollback path in a throwaway virtual environment before relying on it,
422
450
  and prove the return as well. An untested recovery step is not a recovery step.
423
451
 
@@ -38,4 +38,4 @@ __all__ = ["__version__"]
38
38
  #: Coarse and hand-maintained by construction. It is a release label, not
39
39
  #: evidence that a given fix is present -- to answer that, survey for the marker
40
40
  #: the fix introduced, or compare `graphite --version` fingerprints.
41
- __version__ = "1.9.2"
41
+ __version__ = "1.9.4"
@@ -23,7 +23,7 @@ from .graph import edge_relations
23
23
  from .graph_io import load_validated_graph_bundle
24
24
  from .health import _edge_language, is_placeholder, persisted_resolution
25
25
  from .incident_ledger import record_incident, repo_ledger_dir
26
- from .ingest import enclosing_git_root, repository_root
26
+ from .ingest import activation_root, repository_root
27
27
  from .query import _CALL_RELATIONS
28
28
 
29
29
  SESSION_CONTRACT = (
@@ -77,18 +77,25 @@ def _activate(root: Path) -> None:
77
77
  """Register this repo as open, so the daemon supervises it and leaves the
78
78
  rest of the machine alone.
79
79
 
80
- A directory below a checkout's root is never registered. No build can run
81
- there (`ingest` refuses it), so the daemon would fail on it at every
82
- discovery cycle for as long as the marker lived.
80
+ What is registered is `ingest.activation_root`'s answer, the rule the
81
+ CLI's backstop uses too. A directory below a checkout's root is never
82
+ registered: no build can run there, so the daemon would fail on it at
83
+ every discovery cycle for as long as the marker lived. A folder in no
84
+ repository is registered only where graphite is set up there, and a drive
85
+ or filesystem root never is, not even one holding `.git`. The payload's
86
+ `cwd` follows a `cd` in the shell and `Stop` renews the marker every turn,
87
+ so a session that wandered to a drive root would otherwise keep the whole
88
+ drive under supervision.
83
89
 
84
90
  Guarded separately from the caller's own try/except: activation is
85
91
  bookkeeping, and this module is fail-open by contract -- a broken registry
86
92
  must never cost the agent its session context or its graph-first reminder.
87
93
  """
88
94
  try:
89
- if enclosing_git_root(root) not in (None, root):
95
+ opened = activation_root(root)
96
+ if opened is None:
90
97
  return
91
- mark_active(root, "claude")
98
+ mark_active(opened, "claude")
92
99
  except Exception:
93
100
  return
94
101
 
@@ -53,7 +53,7 @@ from .graph_io import MAX_GRAPH_BYTES, GraphReadError, load_validated_graph_bund
53
53
  from .health import persisted_resolution, ratio_percent, resolution_health
54
54
  from . import hookinstall
55
55
  from .incident_ledger import record_incident, repo_ledger_dir
56
- from .ingest import collect_files, enclosing_git_root, repository_root, trusted_root
56
+ from .ingest import activation_root, collect_files, enclosing_git_root, repository_root, trusted_root
57
57
  from .init import init_project, platform_choices, resolve_platform_selection
58
58
  from .io import atomic_write_json
59
59
  from .listing import listing_lines
@@ -3704,14 +3704,16 @@ def main(argv: list[str] | None = None) -> int:
3704
3704
  # GRAPHITE_DAEMON_CHILD, without which activation would never expire.
3705
3705
  #
3706
3706
  # What is registered is the REPOSITORY the command is typed in, not the
3707
- # directory (#81): its root where graphite is set up there, and nothing at
3708
- # all for a folder below some other checkout's root. No build can run
3709
- # below a root, so the daemon would fail on such a marker at every
3710
- # discovery cycle for as long as it lived. `agent_hooks._activate` has
3711
- # made the same two choices since #80.
3707
+ # directory (#81), and `ingest.activation_root` decides it for this path
3708
+ # and for `agent_hooks._activate` alike: never a drive or filesystem root,
3709
+ # not even one holding `.git`; otherwise a checkout's root; nothing for a
3710
+ # folder below a root, where no build can run; and a folder in no
3711
+ # repository only where graphite is set up there. Registering any folder
3712
+ # a command ran in put a whole drive under supervision when a command was
3713
+ # typed at its root.
3712
3714
  if args.command not in _ACTIVATION_EXEMPT_COMMANDS and not _is_scratch_workspace(Path.cwd()):
3713
- opened = repository_root(Path.cwd())
3714
- if _root_above(opened) is None:
3715
+ opened = activation_root(Path.cwd())
3716
+ if opened is not None:
3715
3717
  activation.mark_active(opened, "cli")
3716
3718
 
3717
3719
  try:
@@ -621,25 +621,44 @@ def check_llm_config(cfg: Config) -> DoctorCheck:
621
621
 
622
622
 
623
623
  def _incidents_check(root: Path) -> DoctorCheck:
624
- from .incident_ledger import fold_incidents, read_incident_entries, repo_ledger_dir
624
+ from .incident_ledger import (
625
+ fold_incidents,
626
+ read_incident_entries,
627
+ recurred_since_ack,
628
+ repo_ledger_dir,
629
+ )
625
630
 
626
631
  entries, skipped = read_incident_entries(repo_ledger_dir(root))
627
632
  views = [v for v in fold_incidents(entries) if v.state != "resolved"]
628
633
  open_views = [v for v in views if v.state == "open"]
629
634
  top = [f"{v.fingerprint} {v.code} {v.subject} x{v.count}" for v in open_views[:10]]
630
635
  summary = f"{len(open_views)} open / {len(views) - len(open_views)} acked"
636
+ # Reported, not escalated: the status still turns only on open incidents,
637
+ # because an ack is the operator's decision. What changes is that a
638
+ # recurrence after it is SAID -- before, it raised a count and nothing else.
639
+ recurred = recurred_since_ack(entries)
640
+ recurred_views = [v for v in views if v.state == "acked" and v.fingerprint in recurred]
641
+ if recurred_views:
642
+ summary += f", {len(recurred_views)} recurred since ack"
631
643
  if skipped:
632
644
  summary += f", {skipped} corrupt line(s)"
633
645
  status: DoctorStatus = "degraded" if open_views else "ready"
646
+ remediation: tuple[str, ...] = ()
647
+ if open_views:
648
+ remediation += ("graphite incidents list", "graphite incidents ack <fingerprint> -m NOTE")
649
+ if recurred_views:
650
+ remediation += tuple(
651
+ f"recurred since ack: {v.fingerprint} {v.code} {v.subject} x{v.count}, last {v.last_seen}"
652
+ for v in recurred_views[:10]
653
+ )
654
+ remediation += ("An ack does not re-open on recurrence; read the incident again.",)
634
655
  return DoctorCheck(
635
656
  code="incidents",
636
657
  label="Incident ledger",
637
658
  status=status,
638
659
  summary=summary,
639
660
  details={"top_open": top},
640
- remediation=("graphite incidents list", "graphite incidents ack <fingerprint> -m NOTE")
641
- if open_views
642
- else (),
661
+ remediation=remediation,
643
662
  )
644
663
 
645
664
 
@@ -99,6 +99,74 @@ def identity_matches(stat, identity, require_directory):
99
99
  return [stat.st_dev, stat.st_ino] == identity[:2]
100
100
  return [stat.st_dev, stat.st_ino, stat.st_size, stat.st_mtime_ns] == identity
101
101
  '''
102
+ #: Why the manifest builder refused, carried as the exit status it refused with.
103
+ #:
104
+ #: The child's streams never cross into this process (see `ProbeProcessError`),
105
+ #: so every refusal used to arrive as a bare `nonzero` and surface as
106
+ #: `probe_failed` with every diagnostic field empty. That is how a probe that
107
+ #: refused on every install with mcp beside graphite went unnoticed for months.
108
+ #: A status is a number, so it may cross where the streams may not, and it is
109
+ #: decoded here onto this fixed vocabulary -- nothing the child writes reaches a
110
+ #: report. Classes split only where the remedy differs. 70 is the unclassified
111
+ #: refusal and the child's excepthook status; it has no entry on purpose.
112
+ _MCP_REFUSAL_UNCLASSIFIED = "unclassified"
113
+ _MCP_BUILDER_REFUSALS: Mapping[int, str] = {
114
+ 71: "installation_mismatch",
115
+ 72: "environment_in_repository",
116
+ 73: "dependency_missing",
117
+ 74: "dependency_duplicated",
118
+ }
119
+ #: The same table as names the builder bootstrap raises with. Generated rather
120
+ #: than written out, so the child's statuses cannot drift from the decoder's.
121
+ _MCP_REFUSAL_STATUSES = "".join(
122
+ f"REFUSED_{token.upper()} = {status}\n" for status, token in _MCP_BUILDER_REFUSALS.items()
123
+ )
124
+ #: What each refusal means to the operator: the phrase that ends the summary,
125
+ #: then the remediation lines. Human wording, not a stable surface; the check's
126
+ #: `details` stay `{"code": "probe_failed"}` for every refusal.
127
+ _MCP_REFUSAL_REPORTS: Mapping[str, tuple[str, tuple[str, ...]]] = {
128
+ "dependency_missing": (
129
+ "a dependency of the MCP server has no installed copy where the probe looks",
130
+ (
131
+ "The probe stopped before starting the server: mcp, networkx or one of "
132
+ "their requirements is not installed on this interpreter's package paths.",
133
+ 'Install the MCP extra into this interpreter: python -m pip install "graphite-code[mcp]"',
134
+ ),
135
+ ),
136
+ "dependency_duplicated": (
137
+ "a dependency of the MCP server is installed more than once",
138
+ (
139
+ "The probe stopped before starting the server: a distribution the server "
140
+ "needs is installed in two package directories, so it cannot tell which "
141
+ "copy the server would import.",
142
+ "Remove the extra copy; python -m pip list -v shows where each one is installed.",
143
+ ),
144
+ ),
145
+ "environment_in_repository": (
146
+ "installed packages were found inside the repository being checked",
147
+ (
148
+ "The probe stopped before starting the server: a package directory on "
149
+ "this interpreter's path lies inside the repository and holds installed "
150
+ "distributions -- usually a virtual environment created inside the clone.",
151
+ "Move the environment outside the repository.",
152
+ ),
153
+ ),
154
+ "installation_mismatch": (
155
+ "graphite's installation changed, or is not laid out as the probe verifies",
156
+ (
157
+ "The probe stopped before starting the server: the files it bound to "
158
+ "changed while it ran, or graphite is not installed where it was loaded from.",
159
+ "Run doctor again; if this repeats, reinstall graphite.",
160
+ ),
161
+ ),
162
+ _MCP_REFUSAL_UNCLASSIFIED: (
163
+ "the dependency manifest was refused for a reason the probe does not classify",
164
+ (
165
+ "The probe stopped before starting the server.",
166
+ "graphite incidents list records the refusal with its exit status.",
167
+ ),
168
+ ),
169
+ }
102
170
 
103
171
  _MCP_MANIFEST_BUILDER_BOOTSTRAP = """\
104
172
  import os
@@ -108,7 +176,7 @@ import sys
108
176
  from importlib.machinery import PathFinder
109
177
 
110
178
  sys.excepthook = lambda *_: os._exit(70)
111
- """ + _MCP_IDENTITY_MATCHER + """\
179
+ """ + _MCP_IDENTITY_MATCHER + _MCP_REFUSAL_STATUSES + """\
112
180
  def validate_binding(raw, require_directory):
113
181
  if not isinstance(raw, dict) or set(raw) != {"canonical", "identity", "lexical"}:
114
182
  raise SystemExit(70)
@@ -126,12 +194,12 @@ def validate_binding(raw, require_directory):
126
194
  ):
127
195
  raise SystemExit(70)
128
196
  if lexical.resolve(strict=True) != canonical or canonical.resolve(strict=True) != canonical:
129
- raise SystemExit(70)
197
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
130
198
  stat = canonical.stat()
131
199
  if not identity_matches(stat, identity, require_directory):
132
- raise SystemExit(70)
200
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
133
201
  if canonical.is_dir() != require_directory:
134
- raise SystemExit(70)
202
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
135
203
  return lexical, canonical
136
204
  def overlaps(left, right):
137
205
  try:
@@ -180,7 +248,7 @@ if (
180
248
  or expected_doctor.parent != trusted / "graphite"
181
249
  or expected_mcp.parent != trusted / "graphite"
182
250
  ):
183
- raise SystemExit(70)
251
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
184
252
  stdlib_path = list(sys.path)
185
253
  graphite_spec = PathFinder.find_spec("graphite", [str(trusted)])
186
254
  if (
@@ -191,7 +259,7 @@ if (
191
259
  or [pathlib.Path(item).resolve(strict=True) for item in graphite_spec.submodule_search_locations]
192
260
  != [expected_init.parent]
193
261
  ):
194
- raise SystemExit(70)
262
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
195
263
  doctor_spec = PathFinder.find_spec(
196
264
  "graphite.doctor_probes", list(graphite_spec.submodule_search_locations)
197
265
  )
@@ -200,11 +268,11 @@ if (
200
268
  or doctor_spec.origin is None
201
269
  or pathlib.Path(doctor_spec.origin).resolve(strict=True) != expected_doctor
202
270
  ):
203
- raise SystemExit(70)
271
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
204
272
  sys.path[:] = [str(trusted), *stdlib_path]
205
273
  from graphite import doctor_probes
206
274
  if pathlib.Path(doctor_probes.__file__).resolve(strict=True) != expected_doctor:
207
- raise SystemExit(70)
275
+ raise SystemExit(REFUSED_INSTALLATION_MISMATCH)
208
276
  cached_payload = sys.stdin.buffer.read()
209
277
  raw_metadata_roots = json.loads(sys.argv[3])
210
278
  if not isinstance(raw_metadata_roots, list) or len(raw_metadata_roots) > 64:
@@ -222,22 +290,32 @@ for raw in raw_metadata_roots:
222
290
  if not canonical_candidate.is_dir():
223
291
  continue
224
292
  _, lexical, root = bind_path(raw, True)
225
- if root == trusted:
293
+ # The trusted root is exempt from the refusal below and from nothing else:
294
+ # graphite probing its own checkout has its source inside the selected
295
+ # repository. Skipping it everywhere also dropped the site-packages an
296
+ # installed graphite usually shares with mcp and networkx: with them beside
297
+ # it, neither had a candidate and the probe read probe_failed.
298
+ if root == trusted and overlaps(root, selected):
226
299
  continue
227
300
  if overlaps(root, selected):
228
301
  if any(doctor_probes.metadata.Distribution.discover(path=[str(lexical)])):
229
- raise SystemExit(70)
302
+ raise SystemExit(REFUSED_ENVIRONMENT_IN_REPOSITORY)
230
303
  continue
231
304
  normalized = os.path.normcase(str(root))
232
305
  if normalized in seen_roots:
233
306
  raise SystemExit(70)
234
307
  seen_roots.add(normalized)
235
308
  metadata_roots.append(lexical)
236
- if cached_payload:
237
- manifest = json.loads(cached_payload.decode("utf-8"))
238
- manifest = doctor_probes._validate_mcp_manifest(manifest, selected)
239
- else:
240
- manifest = doctor_probes._mcp_import_manifest(selected, tuple(metadata_roots))
309
+ try:
310
+ if cached_payload:
311
+ manifest = json.loads(cached_payload.decode("utf-8"))
312
+ manifest = doctor_probes._validate_mcp_manifest(manifest, selected)
313
+ else:
314
+ manifest = doctor_probes._mcp_import_manifest(selected, tuple(metadata_roots))
315
+ except doctor_probes._McpDependencyMissing:
316
+ raise SystemExit(REFUSED_DEPENDENCY_MISSING) from None
317
+ except doctor_probes._McpDependencyDuplicated:
318
+ raise SystemExit(REFUSED_DEPENDENCY_DUPLICATED) from None
241
319
  envelope = {
242
320
  "bindings": {
243
321
  "doctor": doctor_binding,
@@ -853,7 +931,9 @@ def _stream_excerpt(raw: object, *, limit: int = _PROBE_DIAGNOSTIC_STREAM_CHARS,
853
931
  return f"{text[:limit]}...[{dropped} more chars]"
854
932
 
855
933
 
856
- def _record_probe_diagnostics(root: Path, failure: str, result: object = None) -> None:
934
+ def _record_probe_diagnostics(
935
+ root: Path, failure: str, result: object = None, *, reason: str | None = None
936
+ ) -> None:
857
937
  """Record what a failing probe knew, so the next occurrence explains itself.
858
938
 
859
939
  `DoctorCheck.details` deliberately stays `{"code": ...}`: callers assert
@@ -861,12 +941,17 @@ def _record_probe_diagnostics(root: Path, failure: str, result: object = None) -
861
941
  stderr should not travel. The repo incident ledger is local and bounded, so
862
942
  that is where the evidence goes.
863
943
 
944
+ `reason` leads the detail when the caller knows WHY -- a refusal class, or
945
+ the type of an exception nothing classified. Only ever this module's own
946
+ vocabulary or a class name, never text a child produced.
947
+
864
948
  Swallows everything. Diagnostics are a convenience; a probe that failed
865
949
  because its own logging failed would be worse than the opacity this fixes.
866
950
  """
867
951
  try:
868
952
  detail = " | ".join(
869
953
  (
954
+ *((f"reason={reason}",) if reason is not None else ()),
870
955
  f"returncode={getattr(result, 'returncode', '<none>')}",
871
956
  # Transport-side evidence, and the only evidence there IS when
872
957
  # the transport raised rather than returned (graphite#51).
@@ -951,6 +1036,26 @@ def _degraded_probe(code: str, label: str, failure: str) -> DoctorCheck:
951
1036
  )
952
1037
 
953
1038
 
1039
+ def _manifest_refused_probe(refusal: str) -> DoctorCheck:
1040
+ """`probe_failed`, as before, but saying why the builder refused.
1041
+
1042
+ The code is unchanged -- `doctor --json` is a stable surface and callers
1043
+ assert `details` exactly -- so the reason travels in the summary and the
1044
+ remediation, which are human wording.
1045
+ """
1046
+ phrase, remediation = _MCP_REFUSAL_REPORTS.get(
1047
+ refusal, _MCP_REFUSAL_REPORTS[_MCP_REFUSAL_UNCLASSIFIED]
1048
+ )
1049
+ return DoctorCheck(
1050
+ "deep_mcp",
1051
+ "MCP",
1052
+ "degraded",
1053
+ f"The MCP deep probe probe_failed: {phrase}.",
1054
+ {"code": "probe_failed"},
1055
+ remediation,
1056
+ )
1057
+
1058
+
954
1059
  def _paths_overlap(left: Path, right: Path) -> bool:
955
1060
  try:
956
1061
  left.relative_to(right)
@@ -1348,6 +1453,37 @@ def _declared_distribution_name(distribution: metadata.Distribution) -> str | No
1348
1453
  return meta["Name"] if "Name" in meta else None
1349
1454
 
1350
1455
 
1456
+ class _McpDependencyMissing(ValueError):
1457
+ """A distribution in the MCP closure has no copy on the metadata roots.
1458
+
1459
+ A `ValueError`, as the bare raise it replaces was, so every caller that
1460
+ already treats a closure failure as a refusal still does. The builder child
1461
+ catches it by type to exit with the status that says which refusal it was.
1462
+ """
1463
+
1464
+
1465
+ class _McpDependencyDuplicated(ValueError):
1466
+ """A distribution in the MCP closure has more than one copy on the roots.
1467
+
1468
+ Refused rather than resolved by path order: the probe cannot know that the
1469
+ copy it would pin is the one the real server imports.
1470
+ """
1471
+
1472
+
1473
+ class _McpManifestRefused(ValueError):
1474
+ """The manifest builder child refused, decoded to the parent's vocabulary.
1475
+
1476
+ `refusal` is only ever a key of `_MCP_REFUSAL_REPORTS`, chosen by this
1477
+ process from the child's exit status. `transport` is the error the runner
1478
+ raised, kept so its counts and timings reach the incident ledger.
1479
+ """
1480
+
1481
+ def __init__(self, refusal: str, transport: ProbeProcessError) -> None:
1482
+ super().__init__(refusal)
1483
+ self.refusal = refusal if refusal in _MCP_REFUSAL_REPORTS else _MCP_REFUSAL_UNCLASSIFIED
1484
+ self.transport = transport
1485
+
1486
+
1351
1487
  def _mcp_distribution_closure(
1352
1488
  metadata_roots: tuple[Path, ...] | None = None,
1353
1489
  ) -> dict[str, metadata.Distribution]:
@@ -1396,8 +1532,10 @@ def _mcp_distribution_closure(
1396
1532
  distribution = metadata.distribution(requested)
1397
1533
  else:
1398
1534
  candidates = discovered.get(normalized, [])
1399
- if len(candidates) != 1:
1400
- raise ValueError
1535
+ if not candidates:
1536
+ raise _McpDependencyMissing
1537
+ if len(candidates) > 1:
1538
+ raise _McpDependencyDuplicated
1401
1539
  distribution = candidates[0]
1402
1540
  declared_name = _declared_distribution_name(distribution)
1403
1541
  if not isinstance(declared_name, str) or _normalized_distribution_name(declared_name) != normalized:
@@ -1743,7 +1881,10 @@ def _build_mcp_manifest_bounded(
1743
1881
  with _MCP_MANIFEST_CACHE_LOCK:
1744
1882
  if _MCP_MANIFEST_CACHE == (cache_key, cached_payload):
1745
1883
  _MCP_MANIFEST_CACHE = None
1746
- raise ValueError from None
1884
+ # A status the table does not name -- 70, a crash, or a runner that
1885
+ # reported none -- is a refusal still, just an unclassified one.
1886
+ refusal = _MCP_BUILDER_REFUSALS.get(exc.returncode or 0, _MCP_REFUSAL_UNCLASSIFIED)
1887
+ raise _McpManifestRefused(refusal, exc) from None
1747
1888
  raise
1748
1889
  if len(result.stdout) + len(result.stderr) > _MCP_OUTPUT_LIMIT_BYTES:
1749
1890
  raise ProbeProcessError("output_limit")
@@ -1983,8 +2124,17 @@ def probe_mcp(
1983
2124
  # carried as a number.
1984
2125
  _record_probe_diagnostics(root, exc.code, exc)
1985
2126
  return _degraded_probe("deep_mcp", "MCP", exc.code)
1986
- except Exception:
1987
- _record_probe_diagnostics(root, "probe_failed")
2127
+ except _McpManifestRefused as exc:
2128
+ # Its own incident code, not `probe_failed`: that fingerprint was acked
2129
+ # long ago, and an ack never re-opens, so a refusal recorded under it
2130
+ # would only raise a count nobody reads.
2131
+ _record_probe_diagnostics(root, "manifest_refused", exc.transport, reason=exc.refusal)
2132
+ return _manifest_refused_probe(exc.refusal)
2133
+ except Exception as exc:
2134
+ # Still unexplained to the reader, but no longer to the ledger: the type
2135
+ # separates a parent-side refusal (ValueError, OSError) from a bug in
2136
+ # this probe, which used to look exactly like one.
2137
+ _record_probe_diagnostics(root, "probe_failed", reason=type(exc).__name__)
1988
2138
  return _degraded_probe("deep_mcp", "MCP", "probe_failed")
1989
2139
 
1990
2140
  try: