doubled-graph 3.1.3__tar.gz → 3.2.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 (185) hide show
  1. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/PKG-INFO +13 -2
  2. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/README.md +12 -1
  3. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/for-ai-maintenance/README.md +1 -1
  4. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/for-humans/FAQ.md +18 -15
  5. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/for-humans/getting-started.md +21 -17
  6. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/README.md +2 -2
  7. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/ci-templates/github-actions.yml +22 -16
  8. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/ci-templates/gitlab-ci.yml +21 -14
  9. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/tools.md +2 -2
  10. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/upgrade-methodology/00-entry-prompt.md +16 -16
  11. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/pyproject.toml +1 -1
  12. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/cli.py +13 -5
  13. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-guide/SKILL.md +1 -1
  14. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/health.py +1 -2
  15. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/hooks_installer.py +5 -2
  16. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/integrations/cgc.py +4 -1
  17. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/integrations/grace_cli.py +258 -479
  18. doubled_graph-3.2.0/src/doubled_graph/integrations/grace_discovery.py +966 -0
  19. doubled_graph-3.2.0/src/doubled_graph/integrations/grace_node_boot.mjs +147 -0
  20. doubled_graph-3.2.0/src/doubled_graph/integrations/grace_node_loader.mjs +72 -0
  21. doubled_graph-3.2.0/src/doubled_graph/integrations/grace_process.py +429 -0
  22. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/integrations/graphd.py +13 -3
  23. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/integrations/service.py +175 -41
  24. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/setup.py +50 -9
  25. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/analyze.py +2 -2
  26. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/analyze_sync.py +2 -5
  27. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/provenance.py +3 -1
  28. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/uninstall.py +25 -2
  29. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/conftest.py +94 -17
  30. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/launchd_stub/fake_launchctl.py +45 -10
  31. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_analyze_sync.py +1 -1
  32. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_check_drift.py +22 -7
  33. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_cli_entrypoint.py +3 -3
  34. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_cli_surface.py +17 -1
  35. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_command_surface.py +8 -6
  36. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_daemon.py +5 -5
  37. doubled_graph-3.2.0/tests/test_grace_cli_coverage.py +2568 -0
  38. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_grace_cli_engine.py +13 -4
  39. doubled_graph-3.2.0/tests/test_grace_node_fallback.py +584 -0
  40. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_graphd_client.py +7 -7
  41. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_hook_public_coverage.py +8 -0
  42. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_migration_grace3_to_grace4.py +58 -8
  43. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_cgc_edges.py +20 -1
  44. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_hooks.py +7 -1
  45. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_packaging.py +4 -0
  46. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_provenance.py +7 -0
  47. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_service.py +108 -1
  48. doubled_graph-3.2.0/tests/test_service_async_unload.py +268 -0
  49. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_service_start_fallback.py +8 -1
  50. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_setup_coverage.py +50 -0
  51. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_setup_failure_semantics.py +7 -6
  52. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_setup_launchd_e2e.py +72 -1
  53. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_smoke.py +77 -36
  54. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_uninstall.py +68 -1
  55. doubled_graph-3.1.3/tests/test_grace_cli_coverage.py +0 -657
  56. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/.gitignore +0 -0
  57. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/ARTICLE.md +0 -0
  58. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/INDEX.md +0 -0
  59. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/LICENSE +0 -0
  60. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/for-ai-existing-project/README.md +0 -0
  61. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/for-ai-new-project/README.md +0 -0
  62. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/for-humans/deep-dive.md +0 -0
  63. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/approval-checkpoints.md +0 -0
  64. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/artifacts.md +0 -0
  65. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/auto-scaling.md +0 -0
  66. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/drift-and-priority.md +0 -0
  67. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/_template.md +0 -0
  68. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/csharp.md +0 -0
  69. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/go.md +0 -0
  70. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/java.md +0 -0
  71. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/python.md +0 -0
  72. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/rust.md +0 -0
  73. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/swift.md +0 -0
  74. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/language-adapters/typescript.md +0 -0
  75. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/principles.md +0 -0
  76. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/roles.md +0 -0
  77. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/_template.md +0 -0
  78. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/claude-code.md +0 -0
  79. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/codex.md +0 -0
  80. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/continue.md +0 -0
  81. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/cursor.md +0 -0
  82. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/local-llm.md +0 -0
  83. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/runtime-adapters/windsurf.md +0 -0
  84. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/methodology/workflow.md +0 -0
  85. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/maintenance/on-after-edit.md +0 -0
  86. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/maintenance/on-before-edit.md +0 -0
  87. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/maintenance/on-drift-detected.md +0 -0
  88. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/maintenance/on-user-manual-edit.md +0 -0
  89. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/00-entry-prompt.md +0 -0
  90. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/01-discover.md +0 -0
  91. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/02-reconstruct-intent.md +0 -0
  92. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/03-draft-plan.md +0 -0
  93. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/04-markup-codebase.md +0 -0
  94. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/05-verification-and-logs.md +0 -0
  95. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/migrate-existing-project/06-validation-gates.md +0 -0
  96. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/00-entry-prompt.md +0 -0
  97. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/01-intent-interview.md +0 -0
  98. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/02-requirements.md +0 -0
  99. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/03-technology.md +0 -0
  100. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/04-development-plan.md +0 -0
  101. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/05-verification-plan.md +0 -0
  102. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/06-generate.md +0 -0
  103. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/new-project/07-post-init-sync.md +0 -0
  104. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/prompts/upgrade-methodology/01-content-gaps.md +0 -0
  105. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/__init__.py +0 -0
  106. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/__main__.py +0 -0
  107. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/artifacts_repair.py +0 -0
  108. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/config.py +0 -0
  109. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/contracts.py +0 -0
  110. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/daemon/__init__.py +0 -0
  111. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/daemon/index_store.py +0 -0
  112. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/daemon/main.py +0 -0
  113. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/daemon/server.py +0 -0
  114. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-after-edit/SKILL.md +0 -0
  115. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-before-edit/SKILL.md +0 -0
  116. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-drift/SKILL.md +0 -0
  117. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-manual-edit/SKILL.md +0 -0
  118. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-refactor/SKILL.md +0 -0
  119. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/data/skills/doubled-graph-verify/SKILL.md +0 -0
  120. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/graphs/__init__.py +0 -0
  121. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/graphs/anchors.py +0 -0
  122. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/graphs/crossref.py +0 -0
  123. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/graphs/declared.py +0 -0
  124. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/graphs/grace4.py +0 -0
  125. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/__init__.py +0 -0
  126. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/discovery.py +0 -0
  127. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/linker.py +0 -0
  128. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/manifest.py +0 -0
  129. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/parse_cache.py +0 -0
  130. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/parser.py +0 -0
  131. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/index/snapshot.py +0 -0
  132. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/integrations/__init__.py +0 -0
  133. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/migrations/__init__.py +0 -0
  134. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/migrations/grace3_to_grace4.py +0 -0
  135. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/policy/__init__.py +0 -0
  136. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/policy/agents_md.py +0 -0
  137. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/policy/phase.py +0 -0
  138. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/server.py +0 -0
  139. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/storage/__init__.py +0 -0
  140. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/storage/paths.py +0 -0
  141. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/__init__.py +0 -0
  142. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/_meta.py +0 -0
  143. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/check_drift.py +0 -0
  144. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/context.py +0 -0
  145. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/impact.py +0 -0
  146. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/index_status.py +0 -0
  147. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/src/doubled_graph/tools/post_tool.py +0 -0
  148. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/__init__.py +0 -0
  149. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/launchd_stub/launchctl +0 -0
  150. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_anchors.py +0 -0
  151. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_artifacts_repair.py +0 -0
  152. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_bom_support.py +0 -0
  153. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_cgc_backend.py +0 -0
  154. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_cgc_contract.py +0 -0
  155. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_cgc_lifecycle.py +0 -0
  156. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_cli_daemon.py +0 -0
  157. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_contracts.py +0 -0
  158. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_crossref_drift.py +0 -0
  159. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_daemon_main.py +0 -0
  160. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_declared_coverage.py +0 -0
  161. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_doc_contract.py +0 -0
  162. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_e2e_acceptance.py +0 -0
  163. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_grace4_artifacts.py +0 -0
  164. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_health.py +0 -0
  165. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_index_core.py +0 -0
  166. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_index_graph.py +0 -0
  167. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_index_manifest.py +0 -0
  168. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_integration_daemon_cgc.py +0 -0
  169. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mcp_transport.py +0 -0
  170. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mcp_validation.py +0 -0
  171. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_migration_coverage.py +0 -0
  172. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_gate_script.py +0 -0
  173. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_cgc_fallback.py +0 -0
  174. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_cgc_misc.py +0 -0
  175. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_context.py +0 -0
  176. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_crossref.py +0 -0
  177. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_kill_impact.py +0 -0
  178. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_mutation_probes.py +0 -0
  179. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_platform_branches.py +0 -0
  180. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_protocol_v2.py +0 -0
  181. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_release_edges.py +0 -0
  182. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_release_script.py +0 -0
  183. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_repo_hygiene.py +0 -0
  184. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_setup_artifacts.py +0 -0
  185. {doubled_graph-3.1.3 → doubled_graph-3.2.0}/tests/test_snapshot_oracle.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: doubled-graph
3
- Version: 3.1.3
3
+ Version: 3.2.0
4
4
  Summary: MCP facade over CodeGraphContext + GRACE 4 (.grace artifacts): impact, context, drift-detect, migration for LLM-driven codebases.
5
5
  Project-URL: Homepage, https://github.com/rour/doubled-graph-mcp
6
6
  Project-URL: Repository, https://github.com/rour/doubled-graph-mcp
@@ -62,7 +62,18 @@ gateway-команды к движку GRACE (`lint`, `module`, `file`, `verify`
62
62
  ## Требования
63
63
 
64
64
  - Python **3.11–3.14**
65
- - Bun ≥ 1.3.14 либо Node + `tsx` — для движка `@osovv/grace-cli` 4.2.1
65
+ - Bun (поддерживаемая линия) либо Node ≥ 22.18 — для движка `@osovv/grace-cli` 4.2.1
66
+ (Node-fallback со встроенным TypeScript-loader и Bun-shim; `tsx` не требуется).
67
+ Точная нижняя граница Bun кодом не проверяется, поэтому и не обещается:
68
+ достаточно рабочего `bun`/`bunx` в поддерживаемой линии.
69
+ `setup` **не устанавливает Bun**: без Bun используется Node-fallback, а пакет
70
+ ставится через любой доступный `bun`/`npm`/`yarn`/`pnpm`. Полные требования
71
+ и обоснование — [docs/SPEC.md §0](docs/SPEC.md).
72
+ Порог 22.18: в этой линии есть и `import.meta.main`, и штатное снятие типов.
73
+ CI проверяет fallback на 22.18 и на 24.x. Порог меняется вместе с CI-джобом
74
+ на новой линии, а не сам по себе. Node ищется и вне `$PATH`
75
+ (Homebrew, `/usr/local`, nvm/fnm/asdf), как и сам `grace` (включая
76
+ `~/.bun/bin`): MCP-сервер из IDE часто стартует с минимальным `PATH`.
66
77
  - [pipx](https://pipx.pypa.io/)
67
78
 
68
79
  ## Установка
@@ -21,7 +21,18 @@ gateway-команды к движку GRACE (`lint`, `module`, `file`, `verify`
21
21
  ## Требования
22
22
 
23
23
  - Python **3.11–3.14**
24
- - Bun ≥ 1.3.14 либо Node + `tsx` — для движка `@osovv/grace-cli` 4.2.1
24
+ - Bun (поддерживаемая линия) либо Node ≥ 22.18 — для движка `@osovv/grace-cli` 4.2.1
25
+ (Node-fallback со встроенным TypeScript-loader и Bun-shim; `tsx` не требуется).
26
+ Точная нижняя граница Bun кодом не проверяется, поэтому и не обещается:
27
+ достаточно рабочего `bun`/`bunx` в поддерживаемой линии.
28
+ `setup` **не устанавливает Bun**: без Bun используется Node-fallback, а пакет
29
+ ставится через любой доступный `bun`/`npm`/`yarn`/`pnpm`. Полные требования
30
+ и обоснование — [docs/SPEC.md §0](docs/SPEC.md).
31
+ Порог 22.18: в этой линии есть и `import.meta.main`, и штатное снятие типов.
32
+ CI проверяет fallback на 22.18 и на 24.x. Порог меняется вместе с CI-джобом
33
+ на новой линии, а не сам по себе. Node ищется и вне `$PATH`
34
+ (Homebrew, `/usr/local`, nvm/fnm/asdf), как и сам `grace` (включая
35
+ `~/.bun/bin`): MCP-сервер из IDE часто стартует с минимальным `PATH`.
25
36
  - [pipx](https://pipx.pypa.io/)
26
37
 
27
38
  ## Установка
@@ -85,5 +85,5 @@ doubled-graph file show src/auth.py --contracts --blocks
85
85
  Если инструменты недоступны:
86
86
 
87
87
  - **MCP-сервер `doubled-graph` не отвечает** → fallback в Bash CLI: `doubled-graph analyze --touch X`, `doubled-graph impact <symbol>`, `doubled-graph check-drift`, `doubled-graph lint`. Эквивалентный результат, медленнее (subprocess overhead).
88
- - **`grace` CLI недоступен** (нужен для wrapper-tools `lint`/`module_show`/`file_show`) → ставится автоматически при `doubled-graph setup` (движок `@osovv/grace-cli` 4.2.1 через bun → npm/yarn/pnpm, с tsx-фолбеком на Node). Без него — `Read` `.grace/graph/main.xml` и `.grace/verification/main.xml` напрямую.
88
+ - **`grace` CLI недоступен** (нужен для wrapper-tools `lint`/`module_show`/`file_show`) → ставится автоматически при `doubled-graph setup` (движок `@osovv/grace-cli` 4.2.1 через bun → npm/yarn/pnpm; без Bun — Node-фолбек ≥ 22.18, `tsx` не ставится). Если всё равно `GRACE_CLI_MISSING` — проверь `node --version` (нужен ≥ 22.18) и что пакет лежит в global `node_modules`; ставить Bun или `tsx` нельзя (см. `docs/SPEC.md` §0). Без движка — `Read` `.grace/graph/main.xml` и `.grace/verification/main.xml` напрямую.
89
89
  - **`doubled-graph.impact` вернул `target_resolved.module_id=None`** → возможно символ не найден в computed graph. Прочти `graph/main.xml` напрямую, найди `<Path>` с тронутым файлом, классифицируй risk консервативно (default `MEDIUM`).
@@ -13,7 +13,7 @@
13
13
  **«Lite»-версии doubled-graph нет** (см. [auto-scaling.md](../methodology/auto-scaling.md) — решение 2026-04-18). Либо полная методология, либо не применяй doubled-graph. Частичное применение даёт меньше пользы, чем полный отказ. Если хочется «чего-то более лёгкого» — посмотри на BMAD-Method, Kiro-flow, GitHub Spec Kit.
14
14
 
15
15
  ### Q: Что если код уже разметан под GRACE, но по старой схеме?
16
- **A:** Сначала отдели разметку кода от артефактов. В GRACE 4 разметка кода — это `MODULE_CONTRACT` с UPPERCASE-ключами (`PURPOSE`, `SCOPE`, `DEPENDS`, `LINKS`), пары `CONTRACT: fn`, `BLOCK_*` и опциональный `CHANGE_SUMMARY`. Если схема совпадает — почти всё в порядке, но проверь две вещи: в `LINKS` должны быть **только** `M-*` (`UC-*`/`V-M-*` игнорируются, и файл остаётся непривязанным к модулю), а `MAP_MODE` должен соответствовать `ROLE` (`RUNTIME→EXPORTS`, `TEST→LOCALS`, `BARREL→SUMMARY`, `CONFIG→NONE`, `TYPES→EXPORTS`, `SCRIPT→LOCALS`). Старые `BEGIN_FUNCTION`/`END_FUNCTION` или атрибуты у якорей — одноразовый rename. Если же «старая схема» — это `docs/*.xml` с якорями `UC-*`, смотри раздел «Обновление на 3.1» ниже.
16
+ **A:** Сначала отдели разметку кода от артефактов. В GRACE 4 разметка кода — это `MODULE_CONTRACT` с UPPERCASE-ключами (`PURPOSE`, `SCOPE`, `DEPENDS`, `LINKS`), пары `CONTRACT: fn`, `BLOCK_*` и опциональный `CHANGE_SUMMARY`. Если схема совпадает — почти всё в порядке, но проверь две вещи: в `LINKS` должны быть **только** `M-*` (`UC-*`/`V-M-*` игнорируются, и файл остаётся непривязанным к модулю), а `MAP_MODE` должен соответствовать `ROLE` (`RUNTIME→EXPORTS`, `TEST→LOCALS`, `BARREL→SUMMARY`, `CONFIG→NONE`, `TYPES→EXPORTS`, `SCRIPT→LOCALS`). Старые `BEGIN_FUNCTION`/`END_FUNCTION` или атрибуты у якорей — одноразовый rename. Если же «старая схема» — это `docs/*.xml` с якорями `UC-*`, смотри раздел «Обновление на 3.2» ниже.
17
17
 
18
18
  ---
19
19
 
@@ -33,7 +33,7 @@ python3 -m pip install -e .
33
33
  ```
34
34
 
35
35
  ### Q: `grace` CLI не устанавливается (`bun add -g @osovv/grace-cli` не находит пакет).
36
- **A:** Нужен движок 4.x — `@osovv/grace-cli@4.2.1`; его ставит `doubled-graph setup` (через `bun`, а без Bun — через npm/yarn/pnpm + `tsx`). Если пакет не находится, возможно, сменилось имя пакета или publisher. Проверь [github.com/osovv/grace-marketplace](https://github.com/osovv/grace-marketplace) — там в README актуальная install-команда.
36
+ **A:** Нужен движок 4.x — `@osovv/grace-cli@4.2.1`; его ставит `doubled-graph setup` (через `bun`, а без Bun — через npm/yarn/pnpm, запуск на Node ≥ 22.18). Если пакет не находится, возможно, сменилось имя пакета или publisher. Проверь [github.com/osovv/grace-marketplace](https://github.com/osovv/grace-marketplace) — там в README актуальная install-команда.
37
37
 
38
38
  ### Q: FalkorDB Lite не работает (Python 3.11).
39
39
  **A:** FalkorDB Lite требует Python 3.12+. Либо обнови Python, либо выбери KuzuDB
@@ -54,16 +54,16 @@ cgc:
54
54
 
55
55
  ---
56
56
 
57
- ## Обновление на 3.1
57
+ ## Обновление на 3.2
58
58
 
59
- ### Q: Я на 2.x (или 1.9.x). Как перейти на 3.1 без потери проекта?
59
+ ### Q: Я на 2.x (или 1.9.x). Как перейти на 3.2 без потери проекта?
60
60
  **A:** Три шага:
61
61
 
62
62
  ```bash
63
- # 1. Поставить именно 3.1.0: pipx upgrade даст 3.0.7, пока 3.1.0 не в PyPI
63
+ # 1. Поставить именно 3.2.0: pipx upgrade даст 3.0.7, пока 3.2.0 не в PyPI
64
64
  python3.14 -m build --wheel
65
- pipx install --python python3.14 --force dist/doubled_graph-3.1.0-py3-none-any.whl
66
- doubled-graph --version # 3.1.0
65
+ pipx install --python python3.14 --force dist/doubled_graph-3.2.0-py3-none-any.whl
66
+ doubled-graph --version # 3.2.0
67
67
 
68
68
  # 2. В обычном шелле (не из песочницы), из каталога проекта
69
69
  cd your-project
@@ -74,19 +74,22 @@ doubled-graph daemon status # installed: true, running: true
74
74
  doubled-graph health # cgc.ok: true
75
75
  ```
76
76
 
77
- `setup` сам увидит legacy `docs/*.xml` и перенесёт их. Главное отличие 3.1 от
77
+ `setup` сам увидит legacy `docs/*.xml` и перенесёт их. Главное отличие 3.2 от
78
78
  2.x: графовые команды (`analyze`, `impact`, `context`) без демона возвращают
79
79
  `CGC_BACKEND_FAIL` и rc=1 — это не поломка, а требование запустить `graphd`.
80
80
  `check-drift` демона не требует: он сверяет `.grace` с диском и не открывает БД.
81
- Если сервис поставить нельзя, запускайте из обычного шелла с
82
- `DOUBLED_GRAPH_ENGINE=local`.
83
-
84
- ### Q: Почему `pipx upgrade doubled-graph` не обновляет до 3.1?
85
- **A:** Потому что на PyPI пока опубликована 3.0.7. `pipx upgrade` ставит
81
+ Если сервис поставить нельзя (Seatbelt, контейнер), графовые команды
82
+ недоступны: им нужен `graphd`. `check-drift` и `lint` работают без демона.
83
+ Для CI и отладки есть внутренний `DOUBLED_GRAPH_ENGINE=local` — его используют
84
+ поставляемые шаблоны; в обычной установке его применять не рекомендуется.
85
+
86
+ ### Q: Почему `pipx upgrade doubled-graph` не обновляет до 3.2?
87
+ **A:** Потому что на PyPI пока опубликована 3.0.7: версия 3.1.0 не
88
+ публиковалась, а текущая версия репозитория — 3.2.0. `pipx upgrade` ставит
86
89
  последнюю опубликованную версию, поэтому после него `doubled-graph --version`
87
- покажет 3.0.7. Для 3.1.0 нужен wheel из этого репозитория и явный
90
+ покажет 3.0.7. Для 3.2.0 нужен wheel из этого репозитория и явный
88
91
  `--python 3.14` (см. вопрос выше и [README §Установка](../README.md#2-установить-doubled-graph));
89
- после публикации — `pipx install --python python3.14 doubled-graph==3.1.0`.
92
+ после публикации — `pipx install --python python3.14 doubled-graph==3.2.0`.
90
93
 
91
94
  ### Q: В каком порядке удалять, чтобы не остался перезапускающийся сервис?
92
95
  **A:** Сначала `doubled-graph uninstall` (при необходимости с
@@ -13,7 +13,7 @@
13
13
  3. **Два графа** — declared (что замышлялось, `.grace/`) и computed (что есть, AST). Расхождение обнаруживается автоматически и обрабатывается по политике.
14
14
 
15
15
  Цена — два инструмента:
16
- - **grace-marketplace** — движок `@osovv/grace-cli` 4.x (CLI `grace`, Bun или Node+tsx, MIT): валидирует `.grace`, разметку и граф;
16
+ - **grace-marketplace** — движок `@osovv/grace-cli` 4.x (CLI `grace`, Bun или Node ≥ 22.18, MIT): валидирует `.grace`, разметку и граф;
17
17
  - **doubled-graph** (наш MCP-facade, Python, MIT).
18
18
 
19
19
  Без них методология не работает. Это осознанный выбор robust over agnostic.
@@ -24,7 +24,7 @@
24
24
 
25
25
  ## Установка за 90 секунд
26
26
 
27
- **Предусловия:** Python **3.11–3.14** (3.15 не поддерживается: CGC 0.6.13 → ladybug<0.20 без cp315-колёс), Bun ≥ 1.3.14 (или Node + tsx), git, IDE с MCP + tools, [pipx](https://pipx.pypa.io/).
27
+ **Предусловия:** Python **3.11–3.14** (3.15 не поддерживается: CGC 0.6.13 → ladybug<0.20 без cp315-колёс), Bun (поддерживаемая линия) или Node ≥ 22.18, git, IDE с MCP + tools, [pipx](https://pipx.pypa.io/).
28
28
 
29
29
  Если pipx ещё не стоит, поставь одной командой под твою OS:
30
30
 
@@ -44,7 +44,7 @@ pipx ensurepath
44
44
 
45
45
  (перезапусти терминал). Дальше — установка doubled-graph и онбординг репозитория.
46
46
 
47
- > **Версия.** На PyPI опубликована 3.0.7, а 3.1.0 ещё нет. Поэтому ставь
47
+ > **Версия.** На PyPI опубликована 3.0.7, а 3.2.0 ещё нет. Поэтому ставь
48
48
  > wheel этого репозитория и указывай `--python` явно: если сам pipx запущен на
49
49
  > 3.15, его venv тоже будет 3.15, и pip откажется ставить пакет. Подробнее —
50
50
  > [README §Установка](../README.md#установка).
@@ -52,12 +52,12 @@ pipx ensurepath
52
52
  ```bash
53
53
  python3.14 -m pip install build
54
54
  python3.14 -m build --wheel
55
- pipx install --python python3.14 --force dist/doubled_graph-3.1.0-py3-none-any.whl
55
+ pipx install --python python3.14 --force dist/doubled_graph-3.2.0-py3-none-any.whl
56
56
  doubled-graph setup
57
57
  ```
58
58
 
59
59
  > Работаешь в своём venv/conda? Тогда без pipx: `python3.14 -m pip install
60
- > dist/doubled_graph-3.1.0-py3-none-any.whl`. pipx нужен тем, кто ставит
60
+ > dist/doubled_graph-3.2.0-py3-none-any.whl`. pipx нужен тем, кто ставит
61
61
  > глобально — на новом Python/Homebrew/Debian обычный `pip install`
62
62
  > блокируется PEP 668.
63
63
 
@@ -78,12 +78,12 @@ doubled-graph setup
78
78
  С 2.x (или 1.9.x) по шагам:
79
79
 
80
80
  ```bash
81
- # 1. Поставить именно 3.1. `pipx upgrade doubled-graph` даст 3.0.7,
82
- # пока 3.1.0 не опубликована в PyPI. Нужен wheel и явный --python:
81
+ # 1. Поставить именно 3.2. `pipx upgrade doubled-graph` даст 3.0.7,
82
+ # пока 3.2.0 не опубликована в PyPI. Нужен wheel и явный --python:
83
83
  python3.14 -m pip install build
84
84
  python3.14 -m build --wheel
85
- pipx install --python python3.14 --force dist/doubled_graph-3.1.0-py3-none-any.whl
86
- doubled-graph --version # 3.1.0
85
+ pipx install --python python3.14 --force dist/doubled_graph-3.2.0-py3-none-any.whl
86
+ doubled-graph --version # 3.2.0
87
87
 
88
88
  # 2. В обычном шелле (не в песочнице), из каталога проекта:
89
89
  cd your-project
@@ -94,14 +94,16 @@ doubled-graph daemon status # installed: true, running: true
94
94
  doubled-graph health # cgc.ok: true
95
95
  ```
96
96
 
97
- После публикации 3.1.0 в PyPI команда установки станет обычной:
98
- `pipx install --python python3.14 doubled-graph==3.1.0`. Предупреждение про
97
+ После публикации 3.2.0 в PyPI команда установки станет обычной:
98
+ `pipx install --python python3.14 doubled-graph==3.2.0`. Предупреждение про
99
99
  `pipx upgrade` остаётся: он поставит последнюю опубликованную версию, пока
100
- это 3.0.7, и `--version` покажет не 3.1.0.
100
+ это 3.0.7, и `--version` покажет не 3.2.0.
101
101
 
102
- Если сервис поставить нельзя (Seatbelt, контейнер, read-only home), запускай
103
- из обычного шелла с `DOUBLED_GRAPH_ENGINE=local` — это явный standalone-режим
104
- для CI/отладки, а не молчаливый fallback.
102
+ Если сервис поставить нельзя (Seatbelt, контейнер, read-only home), сервис
103
+ нужно ставить в обычном шелле, а графовые команды в песочнице недоступны.
104
+ `check-drift` и `lint` работают без демона. Для CI и отладки есть внутренний
105
+ `DOUBLED_GRAPH_ENGINE=local` — его используют поставляемые шаблоны; в обычной
106
+ установке его применять не рекомендуется.
105
107
 
106
108
  **Если проект был на 1.9.x**, его артефакты — `docs/*.xml` (GRACE 3). `setup`
107
109
  сам перенесёт их в `.grace` (legacy не изменяется и не удаляется). Движок 4.x
@@ -252,13 +254,15 @@ doubled-graph health # cgc.ok: true
252
254
 
253
255
  ## Ограничения текущей версии
254
256
 
255
- Известные ограничения 3.1:
257
+ Известные ограничения 3.2:
256
258
 
257
259
  - **Демон обязателен для графовых команд.** `analyze` / `impact` / `context`
258
260
  без запущенного `graphd` возвращают `CGC_BACKEND_FAIL` и rc=1;
259
261
  `check-drift` демона не требует. Из песочницы
260
262
  (Seatbelt, контейнер) сервис не поставить — `setup` нужно запускать в обычном
261
- шелле. Явный `DOUBLED_GRAPH_ENGINE=local` работает только там же.
263
+ шелле, а графовые команды там недоступны. В CI эти команды идут через
264
+ внутренний `DOUBLED_GRAPH_ENGINE=local` (так делают шаблоны); для обычной
265
+ установки он не рекомендуется.
262
266
  - **Windows:** named pipe использует DACL по умолчанию — явного owner-only ACL
263
267
  нет (`docs/DAEMON.md §4`); Task Scheduler E2E и ACL-проверка не автоматизированы
264
268
  (BLOCKED), реальный запуск проверяйте на своей машине.
@@ -103,8 +103,8 @@ doubled-graph — методология разработки программн
103
103
 
104
104
  Методология **не работает** без стека:
105
105
 
106
- - `grace` CLI — `@osovv/grace-cli` **4.2.1** (модель `.grace` требует >= 4.1; 3.x-линия не умеет) — `bun add -g @osovv/grace-cli@4.2.1`; штатно его ставит `doubled-graph setup`.
107
- - `doubled-graph` 3.1 (MCP facade, Python, этот репозиторий) — wheel/`pipx install`
106
+ - `grace` CLI — `@osovv/grace-cli` **4.2.1** (модель `.grace` требует >= 4.1; 3.x-линия не умеет) — `bun add -g @osovv/grace-cli@4.2.1`, а без Bun — `npm install -g @osovv/grace-cli@4.2.1`; штатно его ставит `doubled-graph setup`, который сам выбирает доступный PM.
107
+ - `doubled-graph` 3.2 (MCP facade, Python, этот репозиторий) — wheel/`pipx install`
108
108
  (см. `README.md §Установка`; `pipx upgrade` пока даёт 3.0.7).
109
109
  - **Демон `graphd`** — сервис ОС (launchd / `systemd --user` / Task Scheduler).
110
110
  Его ставит `doubled-graph setup`; без запущенного демона `analyze`, `impact`
@@ -5,12 +5,12 @@
5
5
  # engine lint gate fails, or when the computed graph could not be built.
6
6
  #
7
7
  # CI has no login session and no OS supervisor for `graphd`, so the embedded
8
- # engine is selected explicitly (README §Демон): `DOUBLED_GRAPH_ENGINE=local`
9
- # is an opt-in, never a silent fallback. `check-drift` itself needs neither
8
+ # engine is selected explicitly (README §Демон), never as a silent
9
+ # fallback. `check-drift` itself needs neither
10
10
  # the daemon nor the database — it compares `.grace` with the disk snapshot.
11
11
  #
12
- # Install: the job uses the published 3.1.0. Until 3.1.0 is on PyPI, build a
13
- # wheel from the 3.1.0 checkout (`python -m build --wheel`, README §Установка)
12
+ # Install: the job uses the published 3.2.0. Until 3.2.0 is on PyPI, build a
13
+ # wheel from the 3.2.0 checkout (`python -m build --wheel`, README §Установка)
14
14
  # and set DG_WHEEL to its path. The install step validates that the file
15
15
  # exists and that the installed release really provides `check-drift`, so a
16
16
  # missing or old wheel fails with an actionable message, not a broken run.
@@ -23,9 +23,9 @@ on:
23
23
 
24
24
  env:
25
25
  DOUBLED_GRAPH_ENGINE: local
26
- # Optional. Empty means `pip install doubled-graph==3.1.0` from PyPI; set it
26
+ # Optional. Empty means `pip install doubled-graph==3.2.0` from PyPI; set it
27
27
  # to a wheel built from the sources, e.g.
28
- # DG_WHEEL=dist/doubled_graph-3.1.0-py3-none-any.whl
28
+ # DG_WHEEL=dist/doubled_graph-3.2.0-py3-none-any.whl
29
29
  DG_WHEEL: ""
30
30
 
31
31
  jobs:
@@ -34,7 +34,7 @@ jobs:
34
34
  steps:
35
35
  - uses: actions/checkout@v4
36
36
  with:
37
- # 3.1.0: `check-drift` compares the declared graph with a snapshot
37
+ # 3.2.0: `check-drift` compares the declared graph with a snapshot
38
38
  # of the disk, so it needs no merge base and no git history. Full
39
39
  # history is kept only for the provenance trailer.
40
40
  fetch-depth: 0
@@ -43,23 +43,25 @@ jobs:
43
43
  with:
44
44
  python-version: "3.12"
45
45
 
46
- - uses: oven-sh/setup-bun@v2
46
+ # Bun is not installed here. The engine runs on Node >= 22.18 (bundled
47
+ # fallback) or on Bun if the image already provides it.
48
+ - uses: actions/setup-node@v4
47
49
  with:
48
- bun-version: "1.3.14"
50
+ node-version: "24"
49
51
 
50
- - name: Install doubled-graph 3.1.0 and the GRACE engine
52
+ - name: Install doubled-graph 3.2.0 and the GRACE engine
51
53
  shell: bash
52
54
  run: |
53
55
  set -euo pipefail
54
56
  python -m pip install --upgrade pip
55
57
  if [ -n "${DG_WHEEL:-}" ]; then
56
58
  if [ ! -f "$DG_WHEEL" ]; then
57
- echo "::error::DG_WHEEL=$DG_WHEEL does not exist. Build the 3.1.0 wheel with 'python -m build --wheel' (README §Установка) and point DG_WHEEL at it, or unset DG_WHEEL to install the published release."
59
+ echo "::error::DG_WHEEL=$DG_WHEEL does not exist. Build the 3.2.0 wheel with 'python -m build --wheel' (README §Установка) and point DG_WHEEL at it, or unset DG_WHEEL to install the published release."
58
60
  exit 1
59
61
  fi
60
62
  python -m pip install "$DG_WHEEL"
61
- elif ! python -m pip install "doubled-graph==3.1.0"; then
62
- echo "::error::doubled-graph 3.1.0 is not published on PyPI yet. Build the wheel from the 3.1.0 checkout ('python -m build --wheel') and set DG_WHEEL to its path, e.g. DG_WHEEL=dist/doubled_graph-3.1.0-py3-none-any.whl."
63
+ elif ! python -m pip install "doubled-graph==3.2.0"; then
64
+ echo "::error::doubled-graph 3.2.0 is not published on PyPI yet. Build the wheel from the 3.2.0 checkout ('python -m build --wheel') and set DG_WHEEL to its path, e.g. DG_WHEEL=dist/doubled_graph-3.2.0-py3-none-any.whl."
63
65
  exit 1
64
66
  fi
65
67
  python - <<'PY'
@@ -67,14 +69,18 @@ jobs:
67
69
  import sys
68
70
 
69
71
  version = metadata.version("doubled-graph")
70
- if version != "3.1.0":
71
- sys.exit(f"doubled-graph {version} is installed; 3.1.0 is required")
72
+ if version != "3.2.0":
73
+ sys.exit(f"doubled-graph {version} is installed; 3.2.0 is required")
72
74
  print(f"doubled-graph {version} installed")
73
75
  PY
74
76
  # The release must actually ship the disk-only drift gate. This never
75
77
  # starts graphd and never opens the graph database.
76
78
  doubled-graph check-drift --help >/dev/null
77
- bun add -g @osovv/grace-cli@4.2.1
79
+ if command -v bun >/dev/null 2>&1; then
80
+ bun add -g @osovv/grace-cli@4.2.1
81
+ else
82
+ npm install -g @osovv/grace-cli@4.2.1
83
+ fi
78
84
 
79
85
  - name: Build the computed graph (embedded engine, no daemon)
80
86
  run: doubled-graph analyze --rebuild --strict
@@ -4,11 +4,11 @@
4
4
  # Fails the pipeline when check-drift reports drift or lint fails.
5
5
  #
6
6
  # CI has no OS supervisor for `graphd`: the embedded engine is selected
7
- # explicitly (DOUBLED_GRAPH_ENGINE=local, README §Демон), never as a silent
7
+ # explicitly (README §Демон), never as a silent
8
8
  # fallback. `check-drift` needs neither the daemon nor the database.
9
9
  #
10
- # Install: the job uses the published 3.1.0. Until 3.1.0 is on PyPI, build a
11
- # wheel from the 3.1.0 checkout (`python -m build --wheel`, README §Установка)
10
+ # Install: the job uses the published 3.2.0. Until 3.2.0 is on PyPI, build a
11
+ # wheel from the 3.2.0 checkout (`python -m build --wheel`, README §Установка)
12
12
  # and set DG_WHEEL to its path. The install step validates that the file
13
13
  # exists and that the installed release really provides `check-drift`.
14
14
  stages:
@@ -19,25 +19,27 @@ doubled-graph-drift:
19
19
  image: python:3.12
20
20
  variables:
21
21
  DOUBLED_GRAPH_ENGINE: "local"
22
- # Optional. Empty means `pip install doubled-graph==3.1.0` from PyPI; set
22
+ # Optional. Empty means `pip install doubled-graph==3.2.0` from PyPI; set
23
23
  # it to a wheel built from the sources, e.g.
24
- # DG_WHEEL=dist/doubled_graph-3.1.0-py3-none-any.whl
24
+ # DG_WHEEL=dist/doubled_graph-3.2.0-py3-none-any.whl
25
25
  DG_WHEEL: ""
26
26
  before_script:
27
27
  - apt-get update -qq && apt-get install -y -qq git curl unzip
28
- - curl -fsSL https://bun.sh/install | bash
29
- - export PATH="$HOME/.bun/bin:$PATH"
28
+ # Bun is not installed here: the engine runs on Node >= 22.18 through the
29
+ # bundled fallback, or on Bun if the image already provides it.
30
+ - curl -fsSL https://deb.nodesource.com/setup_24.x | bash -
31
+ - apt-get install -y -qq nodejs
30
32
  - pip install --upgrade pip
31
33
  - |
32
34
  set -euo pipefail
33
35
  if [ -n "${DG_WHEEL:-}" ]; then
34
36
  if [ ! -f "$DG_WHEEL" ]; then
35
- echo "ERROR: DG_WHEEL=$DG_WHEEL does not exist. Build the 3.1.0 wheel with 'python -m build --wheel' (README §Установка) and point DG_WHEEL at it, or unset DG_WHEEL to install the published release."
37
+ echo "ERROR: DG_WHEEL=$DG_WHEEL does not exist. Build the 3.2.0 wheel with 'python -m build --wheel' (README §Установка) and point DG_WHEEL at it, or unset DG_WHEEL to install the published release."
36
38
  exit 1
37
39
  fi
38
40
  pip install "$DG_WHEEL"
39
- elif ! pip install "doubled-graph==3.1.0"; then
40
- echo "ERROR: doubled-graph 3.1.0 is not published on PyPI yet. Build the wheel from the 3.1.0 checkout ('python -m build --wheel') and set DG_WHEEL to its path, e.g. DG_WHEEL=dist/doubled_graph-3.1.0-py3-none-any.whl."
41
+ elif ! pip install "doubled-graph==3.2.0"; then
42
+ echo "ERROR: doubled-graph 3.2.0 is not published on PyPI yet. Build the wheel from the 3.2.0 checkout ('python -m build --wheel') and set DG_WHEEL to its path, e.g. DG_WHEEL=dist/doubled_graph-3.2.0-py3-none-any.whl."
41
43
  exit 1
42
44
  fi
43
45
  python - <<'PY'
@@ -45,17 +47,22 @@ doubled-graph-drift:
45
47
  import sys
46
48
 
47
49
  version = metadata.version("doubled-graph")
48
- if version != "3.1.0":
49
- sys.exit(f"doubled-graph {version} is installed; 3.1.0 is required")
50
+ if version != "3.2.0":
51
+ sys.exit(f"doubled-graph {version} is installed; 3.2.0 is required")
50
52
  print(f"doubled-graph {version} installed")
51
53
  PY
52
54
  # The release must actually ship the disk-only drift gate. This never
53
55
  # starts graphd and never opens the graph database.
54
56
  doubled-graph check-drift --help >/dev/null
55
- - bun add -g @osovv/grace-cli@4.2.1
57
+ - |
58
+ if command -v bun >/dev/null 2>&1; then
59
+ bun add -g @osovv/grace-cli@4.2.1
60
+ else
61
+ npm install -g @osovv/grace-cli@4.2.1
62
+ fi
56
63
  script:
57
64
  - doubled-graph analyze --rebuild --strict
58
- # 3.1.0: the check is disk-based; no base revision selects files and no
65
+ # 3.2.0: the check is disk-based; no base revision selects files and no
59
66
  # daemon/database is involved.
60
67
  - doubled-graph check-drift --fail-on-drift
61
68
  - doubled-graph lint
@@ -119,13 +119,13 @@ graph (`.grace`). После правки `check-drift` строит **transient
119
119
  - **Версия** на момент написания методологии: движок `@osovv/grace-cli` **4.2.1** (модель артефактов GRACE 4, `.grace`; сверять актуальность).
120
120
  - **Что даёт:**
121
121
  - skills для Claude Code (агентные процедуры, не CLI).
122
- - CLI `grace` на Bun — валидация `.grace`, разметки кода и запросы к графу.
122
+ - CLI `grace` — Bun-пакет; `doubled-graph` запускает его и без Bun, через Node ≥ 22.18: валидация `.grace`, разметки кода и запросы к графу.
123
123
 
124
124
  **Как мы к ним обращаемся:**
125
125
  - **CLI `grace`** — агент вызывает через wrapper-tools `doubled-graph.lint`, `doubled-graph.module_show/find`, `doubled-graph.file_show` (см. §1 Wrappers), а `doubled-graph verify` — через `doubled-graph verify`. Это даёт единый namespace `doubled-graph.*`, общую точку логирования (`.doubled-graph/logs/`) и возможность enforcement'а policy.
126
126
  - **Upstream skills** (`grace-init`, `grace-plan`, `grace-execute`, etc.) — **методология их не использует**. Это markdown-инструкции для агента, не CLI. Аналогичные workflow'ы покрываются нашими SKILL.md (`doubled-graph-*` семейство, см. §1) и one-off prompts в `prompts/new-project/` и `prompts/migrate-existing-project/`.
127
127
 
128
- `doubled-graph setup` ставит движок автоматически (через `bun add -g @osovv/grace-cli`, либо через npm/yarn/pnpm + tsx-фолбек если Bun отсутствует).
128
+ `doubled-graph setup` ставит движок автоматически (через `bun add -g @osovv/grace-cli`, либо через npm/yarn/pnpm; без Bun работает Node-фолбек ≥ 22.18, `tsx` не ставится).
129
129
 
130
130
  ### CLI GRACE 4 — что важно знать
131
131
 
@@ -16,20 +16,20 @@
16
16
 
17
17
  ## Что меняется в 3.0 (одним абзацем)
18
18
 
19
- **Главное breaking-изменение 3.0:** computed-графом владеет демон `graphd`, запущенный супервизором ОС, а не процесс IDE. `analyze`, `impact` и `context` без демона возвращают `CGC_BACKEND_FAIL` (rc=1), а не тихо поднимают CGC внутри песочницы. `check-drift` демона не требует: он строит snapshot из диска, не открывает БД и не эмитит `CGC_*`. После установки пакета нужен `doubled-graph setup` в обычном шелле: он ставит/запускает сервис, регистрирует проект и только затем индексирует. Второе изменение (с 2.0) — движок `@osovv/grace-cli` 4.2.1 валидирует только `.grace`: legacy `docs/*.xml` остаётся на диске, но движок его больше не читает (`lint` → `project.grace3-detected`, query-команды → `invalid-project`). Поэтому обновление = поставить 3.1 → `setup` (движок, `.grace`, демон) → закрыть содержательные пробелы по коду и тестам.
19
+ **Главное breaking-изменение 3.0:** computed-графом владеет демон `graphd`, запущенный супервизором ОС, а не процесс IDE. `analyze`, `impact` и `context` без демона возвращают `CGC_BACKEND_FAIL` (rc=1), а не тихо поднимают CGC внутри песочницы. `check-drift` демона не требует: он строит snapshot из диска, не открывает БД и не эмитит `CGC_*`. После установки пакета нужен `doubled-graph setup` в обычном шелле: он ставит/запускает сервис, регистрирует проект и только затем индексирует. Второе изменение (с 2.0) — движок `@osovv/grace-cli` 4.2.1 валидирует только `.grace`: legacy `docs/*.xml` остаётся на диске, но движок его больше не читает (`lint` → `project.grace3-detected`, query-команды → `invalid-project`). Поэтому обновление = поставить 3.2 → `setup` (движок, `.grace`, демон) → закрыть содержательные пробелы по коду и тестам.
20
20
 
21
21
  ## Порядок действий (детерминированный)
22
22
 
23
- 1. Поставить именно 3.1. **`pipx upgrade doubled-graph` даст 3.0.7**, пока 3.1.0 не опубликована в PyPI. Собери wheel из этого репозитория и поставь его с явным интерпретатором:
23
+ 1. Поставить именно 3.2. **`pipx upgrade doubled-graph` даст 3.0.7**, пока 3.2.0 не опубликована в PyPI. Собери wheel из этого репозитория и поставь его с явным интерпретатором:
24
24
 
25
25
  ```bash
26
26
  python3.14 -m pip install build
27
27
  python3.14 -m build --wheel
28
- pipx install --python python3.14 --force dist/doubled_graph-3.1.0-py3-none-any.whl
29
- doubled-graph --version # должно быть 3.1.0
28
+ pipx install --python python3.14 --force dist/doubled_graph-3.2.0-py3-none-any.whl
29
+ doubled-graph --version # должно быть 3.2.0
30
30
  ```
31
31
 
32
- После публикации на PyPI: `pipx install --python python3.14 doubled-graph==3.1.0`. Если pipx запущен на Python 3.15, без `--python 3.14` его venv тоже будет 3.15, и pip откажется ставить пакет (`requires-python <3.15`).
32
+ После публикации на PyPI: `pipx install --python python3.14 doubled-graph==3.2.0`. Если pipx запущен на Python 3.15, без `--python 3.14` его venv тоже будет 3.15, и pip откажется ставить пакет (`requires-python <3.15`).
33
33
 
34
34
  2. Проверить состояние (только чтение):
35
35
 
@@ -96,9 +96,9 @@ MIGRATION: project_kind=grace4, legacy=0, created=0, kept_existing=9, modules=
96
96
 
97
97
  | Симптом команды | Что делать (без вопросов пользователю) |
98
98
  |---|---|
99
- | `daemon status` → `running: false`, `health` → `cgc.ok: false` | выполнить `setup` в обычном шелле; если сервис не ставится (Seatbelt/контейнер), запускать из обычного шелла с `DOUBLED_GRAPH_ENGINE=local` — это явный standalone-режим, а не молчаливый fallback |
99
+ | `daemon status` → `running: false`, `health` → `cgc.ok: false` | выполнить `setup` в обычном шелле; если сервис не ставится (Seatbelt/контейнер), графовые команды недоступны — работают `check-drift` и `lint`. В CI эти команды идут через внутренний `DOUBLED_GRAPH_ENGINE=local` (шаблоны), в обычной установке он не рекомендуется |
100
100
  | `status` → `grace_engine.upgrade_required: true` | `npm install -g @osovv/grace-cli@4.2.1` (или `bun add -g ...`), затем повторить `doubled-graph setup --repo .` |
101
- | `setup` → `grace_cli.status: failed`, `error_type: broken_runtime` | Установить рантайм: Bun (`brew install bun`) или `tsx` (`npm install -g tsx`), повторить `setup` |
101
+ | `setup` → `grace_cli.status: failed`, `error_type: broken_runtime` | Поставить Node ≥ 22.18 (fallback встроен) или Bun, повторить `setup`; `tsx` больше не нужен |
102
102
  | `setup` → `grace_cli.status: failed`, `error_type: engine_too_old` | Движок остался 3.x: удалить глобальный пакет и поставить пин (`npm uninstall -g @osovv/grace-cli && npm install -g @osovv/grace-cli@4.2.1`), повторить `setup` |
103
103
  | `lint` → `project.grace3-detected` | `doubled-graph migrate apply --repo .`; если `migration.grace4-present` — `.grace` уже есть, разбирай `doubled-graph lint --repo .` |
104
104
  | `lint` → `invalid-project` + `issues` | `doubled-graph lint --repo .` печатает коды; правь по порядку (чаще всего `projection.verification.missing-module-coverage`) |
@@ -112,7 +112,7 @@ MIGRATION: project_kind=grace4, legacy=0, created=0, kept_existing=9, modules=
112
112
 
113
113
  ## После обновления
114
114
 
115
- - `phase` остаётся `post_migration`; если вернулся в `migration` — `doubled-graph phase set post_migration --reason "upgrade to 3.1 complete"`.
115
+ - `phase` остаётся `post_migration`; если вернулся в `migration` — `doubled-graph phase set post_migration --reason "upgrade to 3.2 complete"`.
116
116
  - Артефакты `.grace` — ground-truth; каждая правка кода идёт через `prompts/maintenance/*`.
117
117
  - Демон должен быть `running: true`: `doubled-graph daemon status`.
118
118
  - Изменения 3.0: `CHANGELOG.md § 3.1.0`; для отката/удаления — `doubled-graph uninstall` (сначала он, потом `pipx uninstall doubled-graph`).
@@ -122,7 +122,7 @@ MIGRATION: project_kind=grace4, legacy=0, created=0, kept_existing=9, modules=
122
122
  # Промт
123
123
 
124
124
  ```
125
- Я обновляю внедрённую методологию doubled-graph с версии 2.x/1.9.x на 3.1 (демон `graphd` + GRACE 4, артефакты `.grace/`).
125
+ Я обновляю внедрённую методологию doubled-graph с версии 2.x/1.9.x на 3.2 (демон `graphd` + GRACE 4, артефакты `.grace/`).
126
126
  Это НЕ миграция с нуля и НЕ новый проект: артефакты и разметка уже есть (`.grace` или legacy `docs/*.xml`).
127
127
  `doubled-graph setup` я уже выполнил сам до запуска этого промта — повторно его не запускай.
128
128
 
@@ -137,13 +137,13 @@ verification, legacy не потерян), и закрыть то, что миг
137
137
  artifacts.project_kind (grace3 → setup не отработал, grace4 → перенесено, none → артефактов не было),
138
138
  daemon.running (после setup должен быть true; false — это BLOCKED, а не «ожидаемо»).
139
139
 
140
- Шаг 1. Поставь пакет 3.1 (выполняет человек, не ИИ):
141
- pipx upgrade doubled-graph # ВНИМАНИЕ: пока даст 3.0.7, а не 3.1.0
142
- # правильный путь до публикации 3.1.0 в PyPI:
140
+ Шаг 1. Поставь пакет 3.2 (выполняет человек, не ИИ):
141
+ pipx upgrade doubled-graph # ВНИМАНИЕ: пока даст 3.0.7, а не 3.2.0
142
+ # правильный путь до публикации 3.2.0 в PyPI:
143
143
  python3.14 -m pip install build && python3.14 -m build --wheel
144
- pipx install --python python3.14 --force dist/doubled_graph-3.1.0-py3-none-any.whl
145
- doubled-graph --version # 3.1.0
146
- # после публикации: pipx install --python python3.14 doubled-graph==3.1.0
144
+ pipx install --python python3.14 --force dist/doubled_graph-3.2.0-py3-none-any.whl
145
+ doubled-graph --version # 3.2.0
146
+ # после публикации: pipx install --python python3.14 doubled-graph==3.2.0
147
147
 
148
148
  Шаг 2. Обнови движок, артефакты и демон одной командой (в обычном шелле, не в песочнице):
149
149
  doubled-graph setup --repo .
@@ -182,7 +182,7 @@ verification, legacy не потерян), и закрыть то, что миг
182
182
  daemon status = running:false (analyze/impact/context = CGC_BACKEND_FAIL) → daemon install && daemon start
183
183
  (или повтори setup в обычном шелле); check-drift демона не требует — его complete=false чинится по коду warning;
184
184
  grace_engine.upgrade_required = true → npm install -g @osovv/grace-cli@4.2.1, повтори setup;
185
- grace_cli.status = failed / broken_runtime → установи Bun или tsx, повтори setup;
185
+ grace_cli.status = failed / broken_runtime → поставь Node ≥ 22.18 или Bun, повтори setup;
186
186
  grace_cli.status = failed / engine_too_old → удали глобальный пакет и поставь @osovv/grace-cli@4.2.1;
187
187
  lint = project.grace3-detected → doubled-graph migrate apply --repo ., повтори шаги 3–4;
188
188
  lint = invalid-project → lint печатает конкретные коды, исправляй по порядку;
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "doubled-graph"
7
- version = "3.1.3"
7
+ version = "3.2.0"
8
8
  description = "MCP facade over CodeGraphContext + GRACE 4 (.grace artifacts): impact, context, drift-detect, migration for LLM-driven codebases."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -309,6 +309,7 @@ def _cmd_status(args: argparse.Namespace) -> int:
309
309
  from doubled_graph.graphs.grace4 import legacy_documents, project_kind
310
310
  from doubled_graph.integrations.grace_cli import (
311
311
  PINNED_ENGINE_VERSION,
312
+ GraceCLIMissing,
312
313
  probe_engine,
313
314
  requires_upgrade,
314
315
  )
@@ -319,7 +320,14 @@ def _cmd_status(args: argparse.Namespace) -> int:
319
320
  repo = Path(args.repo or ".").resolve()
320
321
  cfg = load_config(repo)
321
322
  phase = read_phase(repo)
322
- engine = probe_engine(cfg.grace_cli_command)
323
+ # status must report, never crash: a broken DOUBLED_GRAPH_GRACE is shown
324
+ # in grace_engine.error and the rest of the report is still produced.
325
+ engine = None
326
+ engine_error: str | None = None
327
+ try:
328
+ engine = probe_engine(cfg.grace_cli_command)
329
+ except GraceCLIMissing as exc:
330
+ engine_error = str(exc)
323
331
  kind = project_kind(repo)
324
332
  index = index_status(repo, exclude=cfg.scan.exclude)
325
333
  try:
@@ -351,6 +359,7 @@ def _cmd_status(args: argparse.Namespace) -> int:
351
359
  "pinned": PINNED_ENGINE_VERSION,
352
360
  "detected": engine,
353
361
  "upgrade_required": requires_upgrade(engine),
362
+ **({"error": engine_error} if engine_error is not None else {}),
354
363
  },
355
364
  # Index readiness is reported, never repaired here: status is
356
365
  # read-only, and the index is a derivative (design 7.3).
@@ -1580,10 +1589,9 @@ def main(argv_default: list[str] | None = None, argv: list[str] | None = None) -
1580
1589
  "Environment: DOUBLED_GRAPH_NO_SERVICE=1 is a dev/test switch that "
1581
1590
  "skips step 10 (OS service install/start); the report then carries a "
1582
1591
  "`daemon_not_installed` warning. Step 11 (first analyze) still runs: "
1583
- "without the daemon it needs DOUBLED_GRAPH_ENGINE=local for rc=0, "
1584
- "otherwise it fails with CGC_BACKEND_FAIL and setup exits 1. Use "
1585
- "--skip-analyze to defer the analysis. Do not use it for a normal "
1586
- "install."
1592
+ "without the daemon it fails with CGC_BACKEND_FAIL and setup exits "
1593
+ "1. Use --skip-analyze to defer the analysis. Do not use it for a "
1594
+ "normal install."
1587
1595
  ),
1588
1596
  )
1589
1597
  p_setup.add_argument("--repo", help="target repository (default: cwd)")
@@ -81,7 +81,7 @@ rename/move -> refactor; нет V-<M-id> -> verify
81
81
 
82
82
  - **MCP не отвечает**: проверь `.mcp.json`; `doubled-graph setup` пересоздаёт регистрацию.
83
83
  - **MCP недоступен**: CLI-форма того же кода — `doubled-graph impact <symbol> --direction upstream`, `analyze --touch X`.
84
- - **`grace` не установлен**: `doubled-graph setup` ставит pinned 4.x (Bun, при его отсутствии — tsx).
84
+ - **`grace` не установлен**: `doubled-graph setup` ставит pinned 4.x (Bun или Node ≥ 22.18; `tsx` не нужен).
85
85
  - **`project.grace3-detected` / `invalid-project`**: `doubled-graph migrate check` → `migrate apply`. Без миграции `impact`/`context`/`check_drift` читают legacy `docs/*.xml` deprecated-парсером, `setup` бутстрапит пустой `.grace`, если артефактов нет вовсе.
86
86
 
87
87
 
@@ -197,8 +197,7 @@ def build_health_report(repo: Path) -> dict[str, Any]:
197
197
 
198
198
  # CGC parser sanity check — surface "tree-sitter broken" early instead of
199
199
  # letting analyze silently return 0 symbols. With the daemon this is a
200
- # `health` request (the engine lives in `graphd`); the standalone
201
- # `DOUBLED_GRAPH_ENGINE=local` mode still probes in-process. Either way the
200
+ # `health` request (the engine lives in `graphd`). Either way the
202
201
  # probe may touch the per-repo DB, so the client is closed before returning.
203
202
  cgc = open_graph(repo)
204
203
  try: