doubled-graph 3.1.0__tar.gz → 3.1.2__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 (176) hide show
  1. doubled_graph-3.1.2/PKG-INFO +242 -0
  2. doubled_graph-3.1.2/README.md +201 -0
  3. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/pyproject.toml +1 -1
  4. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/integrations/graphd.py +8 -1
  5. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/setup.py +23 -1
  6. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_command_surface.py +15 -1
  7. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_doc_contract.py +9 -2
  8. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_graphd_client.py +10 -1
  9. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_setup_coverage.py +41 -0
  10. doubled_graph-3.1.0/PKG-INFO +0 -629
  11. doubled_graph-3.1.0/README.md +0 -588
  12. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/.gitignore +0 -0
  13. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/ARTICLE.md +0 -0
  14. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/INDEX.md +0 -0
  15. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/LICENSE +0 -0
  16. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/for-ai-existing-project/README.md +0 -0
  17. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/for-ai-maintenance/README.md +0 -0
  18. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/for-ai-new-project/README.md +0 -0
  19. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/for-humans/FAQ.md +0 -0
  20. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/for-humans/deep-dive.md +0 -0
  21. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/for-humans/getting-started.md +0 -0
  22. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/README.md +0 -0
  23. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/approval-checkpoints.md +0 -0
  24. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/artifacts.md +0 -0
  25. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/auto-scaling.md +0 -0
  26. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/ci-templates/github-actions.yml +0 -0
  27. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/ci-templates/gitlab-ci.yml +0 -0
  28. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/drift-and-priority.md +0 -0
  29. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/_template.md +0 -0
  30. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/csharp.md +0 -0
  31. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/go.md +0 -0
  32. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/java.md +0 -0
  33. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/python.md +0 -0
  34. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/rust.md +0 -0
  35. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/swift.md +0 -0
  36. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/language-adapters/typescript.md +0 -0
  37. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/principles.md +0 -0
  38. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/roles.md +0 -0
  39. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/_template.md +0 -0
  40. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/claude-code.md +0 -0
  41. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/codex.md +0 -0
  42. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/continue.md +0 -0
  43. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/cursor.md +0 -0
  44. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/local-llm.md +0 -0
  45. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/runtime-adapters/windsurf.md +0 -0
  46. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/tools.md +0 -0
  47. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/methodology/workflow.md +0 -0
  48. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/maintenance/on-after-edit.md +0 -0
  49. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/maintenance/on-before-edit.md +0 -0
  50. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/maintenance/on-drift-detected.md +0 -0
  51. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/maintenance/on-user-manual-edit.md +0 -0
  52. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/00-entry-prompt.md +0 -0
  53. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/01-discover.md +0 -0
  54. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/02-reconstruct-intent.md +0 -0
  55. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/03-draft-plan.md +0 -0
  56. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/04-markup-codebase.md +0 -0
  57. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/05-verification-and-logs.md +0 -0
  58. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/migrate-existing-project/06-validation-gates.md +0 -0
  59. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/00-entry-prompt.md +0 -0
  60. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/01-intent-interview.md +0 -0
  61. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/02-requirements.md +0 -0
  62. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/03-technology.md +0 -0
  63. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/04-development-plan.md +0 -0
  64. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/05-verification-plan.md +0 -0
  65. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/06-generate.md +0 -0
  66. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/new-project/07-post-init-sync.md +0 -0
  67. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/upgrade-methodology/00-entry-prompt.md +0 -0
  68. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/prompts/upgrade-methodology/01-content-gaps.md +0 -0
  69. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/__init__.py +0 -0
  70. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/__main__.py +0 -0
  71. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/artifacts_repair.py +0 -0
  72. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/cli.py +0 -0
  73. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/config.py +0 -0
  74. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/contracts.py +0 -0
  75. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/daemon/__init__.py +0 -0
  76. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/daemon/index_store.py +0 -0
  77. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/daemon/main.py +0 -0
  78. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/daemon/server.py +0 -0
  79. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-after-edit/SKILL.md +0 -0
  80. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-before-edit/SKILL.md +0 -0
  81. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-drift/SKILL.md +0 -0
  82. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-guide/SKILL.md +0 -0
  83. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-manual-edit/SKILL.md +0 -0
  84. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-refactor/SKILL.md +0 -0
  85. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-verify/SKILL.md +0 -0
  86. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/graphs/__init__.py +0 -0
  87. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/graphs/anchors.py +0 -0
  88. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/graphs/crossref.py +0 -0
  89. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/graphs/declared.py +0 -0
  90. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/graphs/grace4.py +0 -0
  91. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/health.py +0 -0
  92. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/hooks_installer.py +0 -0
  93. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/__init__.py +0 -0
  94. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/discovery.py +0 -0
  95. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/linker.py +0 -0
  96. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/manifest.py +0 -0
  97. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/parse_cache.py +0 -0
  98. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/parser.py +0 -0
  99. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/index/snapshot.py +0 -0
  100. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/integrations/__init__.py +0 -0
  101. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/integrations/cgc.py +0 -0
  102. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/integrations/grace_cli.py +0 -0
  103. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/integrations/service.py +0 -0
  104. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/migrations/__init__.py +0 -0
  105. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/migrations/grace3_to_grace4.py +0 -0
  106. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/policy/__init__.py +0 -0
  107. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/policy/agents_md.py +0 -0
  108. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/policy/phase.py +0 -0
  109. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/server.py +0 -0
  110. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/storage/__init__.py +0 -0
  111. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/storage/paths.py +0 -0
  112. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/__init__.py +0 -0
  113. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/_meta.py +0 -0
  114. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/analyze.py +0 -0
  115. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/analyze_sync.py +0 -0
  116. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/check_drift.py +0 -0
  117. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/context.py +0 -0
  118. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/impact.py +0 -0
  119. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/index_status.py +0 -0
  120. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/post_tool.py +0 -0
  121. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/tools/provenance.py +0 -0
  122. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/src/doubled_graph/uninstall.py +0 -0
  123. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/__init__.py +0 -0
  124. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/conftest.py +0 -0
  125. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_analyze_sync.py +0 -0
  126. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_anchors.py +0 -0
  127. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_artifacts_repair.py +0 -0
  128. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_bom_support.py +0 -0
  129. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_cgc_backend.py +0 -0
  130. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_cgc_contract.py +0 -0
  131. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_cgc_lifecycle.py +0 -0
  132. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_check_drift.py +0 -0
  133. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_cli_daemon.py +0 -0
  134. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_cli_entrypoint.py +0 -0
  135. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_cli_surface.py +0 -0
  136. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_contracts.py +0 -0
  137. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_crossref_drift.py +0 -0
  138. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_daemon.py +0 -0
  139. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_daemon_main.py +0 -0
  140. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_declared_coverage.py +0 -0
  141. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_e2e_acceptance.py +0 -0
  142. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_grace4_artifacts.py +0 -0
  143. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_grace_cli_coverage.py +0 -0
  144. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_grace_cli_engine.py +0 -0
  145. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_health.py +0 -0
  146. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_hook_public_coverage.py +0 -0
  147. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_index_core.py +0 -0
  148. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_index_graph.py +0 -0
  149. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_index_manifest.py +0 -0
  150. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_integration_daemon_cgc.py +0 -0
  151. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mcp_transport.py +0 -0
  152. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mcp_validation.py +0 -0
  153. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_migration_coverage.py +0 -0
  154. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_migration_grace3_to_grace4.py +0 -0
  155. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_gate_script.py +0 -0
  156. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_cgc_edges.py +0 -0
  157. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_cgc_fallback.py +0 -0
  158. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_cgc_misc.py +0 -0
  159. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_context.py +0 -0
  160. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_crossref.py +0 -0
  161. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_hooks.py +0 -0
  162. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_kill_impact.py +0 -0
  163. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_mutation_probes.py +0 -0
  164. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_packaging.py +0 -0
  165. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_platform_branches.py +0 -0
  166. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_protocol_v2.py +0 -0
  167. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_provenance.py +0 -0
  168. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_release_edges.py +0 -0
  169. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_release_script.py +0 -0
  170. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_repo_hygiene.py +0 -0
  171. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_service.py +0 -0
  172. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_setup_artifacts.py +0 -0
  173. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_setup_failure_semantics.py +0 -0
  174. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_smoke.py +0 -0
  175. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_snapshot_oracle.py +0 -0
  176. {doubled_graph-3.1.0 → doubled_graph-3.1.2}/tests/test_uninstall.py +0 -0
@@ -0,0 +1,242 @@
1
+ Metadata-Version: 2.5
2
+ Name: doubled-graph
3
+ Version: 3.1.2
4
+ Summary: MCP facade over CodeGraphContext + GRACE 4 (.grace artifacts): impact, context, drift-detect, migration for LLM-driven codebases.
5
+ Project-URL: Homepage, https://github.com/rour/doubled-graph-mcp
6
+ Project-URL: Repository, https://github.com/rour/doubled-graph-mcp
7
+ Project-URL: Issues, https://github.com/rour/doubled-graph-mcp/issues
8
+ Project-URL: Documentation, https://github.com/rour/doubled-graph-mcp/blob/main/docs/SPEC.md
9
+ Author: doubled-graph methodology authors
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: ast,claude,codebase,continue,cursor,graph,llm,mcp
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Programming Language :: Python :: 3.14
23
+ Classifier: Topic :: Software Development
24
+ Classifier: Topic :: Software Development :: Code Generators
25
+ Classifier: Topic :: Software Development :: Documentation
26
+ Requires-Python: <3.15,>=3.11
27
+ Requires-Dist: anyio>=4.15.1
28
+ Requires-Dist: codegraphcontext<0.7,>=0.6.13
29
+ Requires-Dist: mcp<2,>=1.30.0
30
+ Requires-Dist: pydantic>=2.14.1
31
+ Requires-Dist: tree-sitter-language-pack>=1.22.1
32
+ Provides-Extra: dev
33
+ Requires-Dist: build>=1.2; extra == 'dev'
34
+ Requires-Dist: hatchling>=1.25; extra == 'dev'
35
+ Requires-Dist: mutmut<4,>=3.8.1; extra == 'dev'
36
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
37
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
38
+ Requires-Dist: pytest>=8.0; extra == 'dev'
39
+ Requires-Dist: ruff>=0.5; extra == 'dev'
40
+ Description-Content-Type: text/markdown
41
+
42
+ # doubled-graph
43
+
44
+ MCP-сервер для LLM-агентов, работающих с большими кодовыми базами.
45
+ Агент правит код, не зная, кто вызывает функцию и какой у неё контракт — отсюда регрессии и тихий дрейф.
46
+
47
+ `doubled-graph` даёт агенту сразу два графа:
48
+ - **computed** — AST-граф реального кода ([CodeGraphContext](https://github.com/Shashankss1205/CodeGraphContext)): кто что вызывает и где определено;
49
+ - **declared** — замысел и контракты из артефактов GRACE 4 (`.grace/`).
50
+
51
+ | MCP-инструмент | Назначение |
52
+ |---|---|
53
+ | `analyze` | построить или обновить граф |
54
+ | `impact` | радиус влияния изменения — **до** правки |
55
+ | `context` | 360°-вид: символ, контракт, вызовы |
56
+ | `check_drift` | расхождение кода и артефактов — **до** коммита |
57
+
58
+ `check_drift` различает шесть видов дрейфа: `code_without_module`, `module_without_code`, `contract_mismatch`, `stale_crosslinks`, `missing_verification`, `markup_missing`.
59
+
60
+ gateway-команды к движку GRACE (`lint`, `module`, `file`, `verify`) и диагностика (`status`, `health`).
61
+
62
+ ## Требования
63
+
64
+ - Python **3.11–3.14**
65
+ - Bun ≥ 1.3.14 либо Node + `tsx` — для движка `@osovv/grace-cli` 4.2.1
66
+ - [pipx](https://pipx.pypa.io/)
67
+
68
+ ## Установка
69
+
70
+ ```bash
71
+ pipx ensurepath # один раз: добавить pipx-папку в PATH
72
+ pipx install doubled-graph
73
+ ```
74
+
75
+ `pipx` ставит пакет в изолированный venv, кладёт бинарь в PATH и обходит PEP 668 (`externally-managed-environment`) на Homebrew/Debian/Ubuntu. Своё окружение тоже подойдёт: `python3.14 -m pip install doubled-graph`.
76
+
77
+ ### Быстрый старт
78
+
79
+ ```bash
80
+ cd your-project
81
+ doubled-graph setup
82
+ ```
83
+
84
+ Одна команда:
85
+ - ставит движок `@osovv/grace-cli@4.2.1` (первым найденным из `bun` → `npm` → `yarn` → `pnpm`),
86
+ - готовит артефакты `.grace` (миграция `docs/*.xml` из GRACE 3 либо пустой скелет),
87
+ - копирует `prompts/` и `methodology/`,
88
+ - раскладывает skills под все известные IDE,
89
+ - регистрирует MCP-сервер,
90
+ - ставит git post-commit хук,
91
+ - поднимает демон графа
92
+ - и строит первый граф.
93
+
94
+ План без изменений — `setup --dry-run`.
95
+
96
+ > `setup` перезаписывает скопированные `prompts/` и `methodology/` при каждом
97
+ > запуске — считайте их managed-контентом. Свои правки держите отдельно.
98
+
99
+ ### Первый промт
100
+
101
+ Дальше работу ведёт ИИ: дайте ему один промт, остальные он подтянет сам.
102
+
103
+ - новый проект — [`prompts/new-project/00-entry-prompt.md`](prompts/new-project/00-entry-prompt.md);
104
+ - миграция существующего — [`prompts/migrate-existing-project/00-entry-prompt.md`](prompts/migrate-existing-project/00-entry-prompt.md);
105
+ - обновление методики (2.x → 3.1) — [`prompts/upgrade-methodology/00-entry-prompt.md`](prompts/upgrade-methodology/00-entry-prompt.md).
106
+
107
+
108
+ ## MCP вручную
109
+
110
+ `setup` пишет `.mcp.json` сам, с абсолютным путём к Python.
111
+
112
+ Если прописываете руками:
113
+
114
+ ```json
115
+ {
116
+ "mcpServers": {
117
+ "doubled-graph": {
118
+ "command": "/Users/you/.local/pipx/venvs/doubled-graph/bin/python",
119
+ "args": ["-m", "doubled_graph", "serve"]
120
+ }
121
+ }
122
+ }
123
+ ```
124
+
125
+ ## Проверка установки
126
+
127
+ ```bash
128
+ doubled-graph --version
129
+ doubled-graph status --repo . # artifacts.project_kind = grace4
130
+ doubled-graph daemon status # installed: true, running: true
131
+ doubled-graph health --repo . # cgc.ok = true
132
+ doubled-graph lint --repo . # summary.errors = 0
133
+ ```
134
+
135
+ ## Команды
136
+
137
+ ```bash
138
+ # граф
139
+ doubled-graph analyze # синхронизировать с диском
140
+ doubled-graph analyze --rebuild # пересобрать с нуля
141
+ doubled-graph impact <symbol>
142
+ doubled-graph context <symbol>
143
+ doubled-graph check-drift [--fail-on-drift]
144
+
145
+ # артефакты GRACE
146
+ doubled-graph lint
147
+ doubled-graph status
148
+ doubled-graph module show M-AUTH
149
+ doubled-graph module health M-AUTH
150
+ doubled-graph file show src/auth.py
151
+ doubled-graph verify V-M-AUTH
152
+ doubled-graph phase get
153
+
154
+ # миграция и починка
155
+ doubled-graph migrate check # только диагностика
156
+ doubled-graph migrate apply [--dry-run]
157
+ doubled-graph repair [--dry-run] # экранирование XML в .grace
158
+
159
+ # хуки: git + Claude Code + provenance
160
+ doubled-graph init-hooks --all
161
+ ```
162
+
163
+ `check-drift` не трогает ни БД, ни демон: он сверяет `.grace` со свежим снимком диска.
164
+ Без флагов он возвращает rc=0 даже при находках, поэтому CI-гейт — `--fail-on-drift`.
165
+
166
+
167
+ ## Демон графа
168
+
169
+ AST-движок и его база живут в демоне `graphd` под супервизором ОС (launchd /
170
+ `systemd --user` / Task Scheduler), а не в процессе IDE: CGC при старте пишет
171
+ `graph.settings` и Unix-сокет рядом с БД, и в песочнице это падает.
172
+ Клиент в песочнице только спрашивает демон и не пишет ни в код, ни в `.grace`, ни в корень проекта.
173
+
174
+ ```bash
175
+ doubled-graph daemon status # сервис, живой демон, версии клиента и демона
176
+ doubled-graph daemon restart # свежий процесс из текущей установки
177
+ doubled-graph daemon logs --lines 100
178
+ doubled-graph daemon run # foreground для отладки
179
+ ```
180
+
181
+ Демон один на пользователя, при работе с двумя репозиториями второй выгружает первый, а запросы к одному репозиторию идут по очереди.
182
+ Реестр и токен — в `~/.doubled-graph/` с правами 0700/0600.
183
+
184
+ Без демона `analyze`, `impact` и `context` не деградируют молча: они возвращают `CGC_BACKEND_FAIL` и rc=1.
185
+
186
+ ## Если что-то не так
187
+
188
+ | Симптом | Что делать |
189
+ |---|---|
190
+ | `project_kind` = `grace3` | `doubled-graph setup --repo .` |
191
+ | `grace_engine.upgrade_required` = `true` | `npm install -g @osovv/grace-cli@4.2.1`, затем `setup` |
192
+ | `daemon.running` = `false`, `cgc.ok` = `false` | `doubled-graph setup` из обычного шелла |
193
+ | `Operation not permitted` на `~/.codegraphcontext` | демон не запущен: `daemon install && daemon start` |
194
+ | `Can't handle RDB format version 13` | база несовместима: движок переименует её и перезапустится |
195
+ | `lint` → `markup.module-map-missing` | содержательная работа: [01-content-gaps.md](prompts/upgrade-methodology/01-content-gaps.md) |
196
+
197
+
198
+ ## Обновление с 1.9.x / 2.x
199
+
200
+ Движок 4.x читает только `.grace` и отказывается от `docs/*.xml`. `setup`
201
+ выполняет переход целиком: конвертирует `docs/*.xml` → `.grace` (модули `M-*`,
202
+ зависимости, `V-M-*` с командами и тест-файлами), создаёт недостающие
203
+ обязательные документы, дописывает `LINKS: M-*` в `MODULE_CONTRACT` и приводит
204
+ `MAP_MODE` в соответствие с `ROLE`. Legacy `docs/` не изменяются и не удаляются.
205
+
206
+ ```bash
207
+ pipx upgrade doubled-graph
208
+ cd your-project && doubled-graph setup
209
+ ```
210
+
211
+ Дальше остаётся содержательная работа — заполнить `V-<M>` и `MODULE_MAP` по
212
+ реальному коду и тестам: [prompts/upgrade-methodology/01-content-gaps.md](prompts/upgrade-methodology/01-content-gaps.md)
213
+ (выдуманные команды запрещены — иначе «не проверено» станет «проверено»).
214
+
215
+ ## Удаление
216
+
217
+ Порядок важен: сначала CLI, потом пакет. Иначе unit ОС останется с `KeepAlive` и
218
+ будет перезапускать несуществующий бинарь, а команды для его снятия уже не будет.
219
+
220
+ ```bash
221
+ doubled-graph uninstall # сервис + ~/.doubled-graph
222
+ doubled-graph uninstall --purge-project # + артефакты setup в репозитории
223
+ pipx uninstall doubled-graph
224
+ ```
225
+
226
+ `--purge-project` снимает git-хуки, managed-блок в `AGENTS.md`, записи в
227
+ MCP-конфигах и наши skills; ваш текст вокруг блока сохраняется.
228
+ Исходники и `.grace` не трогаются.
229
+ Скопированные `prompts/`, `methodology/` и кеш `.doubled-graph/` остаются на месте — удалите вручную, если не нужны.
230
+
231
+
232
+ ## Документация
233
+
234
+ - [SPEC.md](docs/SPEC.md) — архитектура, хранилище `.doubled-graph/`
235
+ - [TOOLS.md](docs/TOOLS.md) — схемы инструментов и коды ошибок
236
+ - [HOOKS.md](docs/HOOKS.md) — git и Claude Code хуки
237
+ - [DAEMON.md](docs/DAEMON.md) — демон `graphd`: протокол, сервис, безопасность
238
+ - [CHANGELOG.md](docs/CHANGELOG.md) — история изменений
239
+
240
+ ## Лицензия
241
+
242
+ MIT. Upstream-компоненты (CodeGraphContext, grace-marketplace) — MIT.
@@ -0,0 +1,201 @@
1
+ # doubled-graph
2
+
3
+ MCP-сервер для LLM-агентов, работающих с большими кодовыми базами.
4
+ Агент правит код, не зная, кто вызывает функцию и какой у неё контракт — отсюда регрессии и тихий дрейф.
5
+
6
+ `doubled-graph` даёт агенту сразу два графа:
7
+ - **computed** — AST-граф реального кода ([CodeGraphContext](https://github.com/Shashankss1205/CodeGraphContext)): кто что вызывает и где определено;
8
+ - **declared** — замысел и контракты из артефактов GRACE 4 (`.grace/`).
9
+
10
+ | MCP-инструмент | Назначение |
11
+ |---|---|
12
+ | `analyze` | построить или обновить граф |
13
+ | `impact` | радиус влияния изменения — **до** правки |
14
+ | `context` | 360°-вид: символ, контракт, вызовы |
15
+ | `check_drift` | расхождение кода и артефактов — **до** коммита |
16
+
17
+ `check_drift` различает шесть видов дрейфа: `code_without_module`, `module_without_code`, `contract_mismatch`, `stale_crosslinks`, `missing_verification`, `markup_missing`.
18
+
19
+ gateway-команды к движку GRACE (`lint`, `module`, `file`, `verify`) и диагностика (`status`, `health`).
20
+
21
+ ## Требования
22
+
23
+ - Python **3.11–3.14**
24
+ - Bun ≥ 1.3.14 либо Node + `tsx` — для движка `@osovv/grace-cli` 4.2.1
25
+ - [pipx](https://pipx.pypa.io/)
26
+
27
+ ## Установка
28
+
29
+ ```bash
30
+ pipx ensurepath # один раз: добавить pipx-папку в PATH
31
+ pipx install doubled-graph
32
+ ```
33
+
34
+ `pipx` ставит пакет в изолированный venv, кладёт бинарь в PATH и обходит PEP 668 (`externally-managed-environment`) на Homebrew/Debian/Ubuntu. Своё окружение тоже подойдёт: `python3.14 -m pip install doubled-graph`.
35
+
36
+ ### Быстрый старт
37
+
38
+ ```bash
39
+ cd your-project
40
+ doubled-graph setup
41
+ ```
42
+
43
+ Одна команда:
44
+ - ставит движок `@osovv/grace-cli@4.2.1` (первым найденным из `bun` → `npm` → `yarn` → `pnpm`),
45
+ - готовит артефакты `.grace` (миграция `docs/*.xml` из GRACE 3 либо пустой скелет),
46
+ - копирует `prompts/` и `methodology/`,
47
+ - раскладывает skills под все известные IDE,
48
+ - регистрирует MCP-сервер,
49
+ - ставит git post-commit хук,
50
+ - поднимает демон графа
51
+ - и строит первый граф.
52
+
53
+ План без изменений — `setup --dry-run`.
54
+
55
+ > `setup` перезаписывает скопированные `prompts/` и `methodology/` при каждом
56
+ > запуске — считайте их managed-контентом. Свои правки держите отдельно.
57
+
58
+ ### Первый промт
59
+
60
+ Дальше работу ведёт ИИ: дайте ему один промт, остальные он подтянет сам.
61
+
62
+ - новый проект — [`prompts/new-project/00-entry-prompt.md`](prompts/new-project/00-entry-prompt.md);
63
+ - миграция существующего — [`prompts/migrate-existing-project/00-entry-prompt.md`](prompts/migrate-existing-project/00-entry-prompt.md);
64
+ - обновление методики (2.x → 3.1) — [`prompts/upgrade-methodology/00-entry-prompt.md`](prompts/upgrade-methodology/00-entry-prompt.md).
65
+
66
+
67
+ ## MCP вручную
68
+
69
+ `setup` пишет `.mcp.json` сам, с абсолютным путём к Python.
70
+
71
+ Если прописываете руками:
72
+
73
+ ```json
74
+ {
75
+ "mcpServers": {
76
+ "doubled-graph": {
77
+ "command": "/Users/you/.local/pipx/venvs/doubled-graph/bin/python",
78
+ "args": ["-m", "doubled_graph", "serve"]
79
+ }
80
+ }
81
+ }
82
+ ```
83
+
84
+ ## Проверка установки
85
+
86
+ ```bash
87
+ doubled-graph --version
88
+ doubled-graph status --repo . # artifacts.project_kind = grace4
89
+ doubled-graph daemon status # installed: true, running: true
90
+ doubled-graph health --repo . # cgc.ok = true
91
+ doubled-graph lint --repo . # summary.errors = 0
92
+ ```
93
+
94
+ ## Команды
95
+
96
+ ```bash
97
+ # граф
98
+ doubled-graph analyze # синхронизировать с диском
99
+ doubled-graph analyze --rebuild # пересобрать с нуля
100
+ doubled-graph impact <symbol>
101
+ doubled-graph context <symbol>
102
+ doubled-graph check-drift [--fail-on-drift]
103
+
104
+ # артефакты GRACE
105
+ doubled-graph lint
106
+ doubled-graph status
107
+ doubled-graph module show M-AUTH
108
+ doubled-graph module health M-AUTH
109
+ doubled-graph file show src/auth.py
110
+ doubled-graph verify V-M-AUTH
111
+ doubled-graph phase get
112
+
113
+ # миграция и починка
114
+ doubled-graph migrate check # только диагностика
115
+ doubled-graph migrate apply [--dry-run]
116
+ doubled-graph repair [--dry-run] # экранирование XML в .grace
117
+
118
+ # хуки: git + Claude Code + provenance
119
+ doubled-graph init-hooks --all
120
+ ```
121
+
122
+ `check-drift` не трогает ни БД, ни демон: он сверяет `.grace` со свежим снимком диска.
123
+ Без флагов он возвращает rc=0 даже при находках, поэтому CI-гейт — `--fail-on-drift`.
124
+
125
+
126
+ ## Демон графа
127
+
128
+ AST-движок и его база живут в демоне `graphd` под супервизором ОС (launchd /
129
+ `systemd --user` / Task Scheduler), а не в процессе IDE: CGC при старте пишет
130
+ `graph.settings` и Unix-сокет рядом с БД, и в песочнице это падает.
131
+ Клиент в песочнице только спрашивает демон и не пишет ни в код, ни в `.grace`, ни в корень проекта.
132
+
133
+ ```bash
134
+ doubled-graph daemon status # сервис, живой демон, версии клиента и демона
135
+ doubled-graph daemon restart # свежий процесс из текущей установки
136
+ doubled-graph daemon logs --lines 100
137
+ doubled-graph daemon run # foreground для отладки
138
+ ```
139
+
140
+ Демон один на пользователя, при работе с двумя репозиториями второй выгружает первый, а запросы к одному репозиторию идут по очереди.
141
+ Реестр и токен — в `~/.doubled-graph/` с правами 0700/0600.
142
+
143
+ Без демона `analyze`, `impact` и `context` не деградируют молча: они возвращают `CGC_BACKEND_FAIL` и rc=1.
144
+
145
+ ## Если что-то не так
146
+
147
+ | Симптом | Что делать |
148
+ |---|---|
149
+ | `project_kind` = `grace3` | `doubled-graph setup --repo .` |
150
+ | `grace_engine.upgrade_required` = `true` | `npm install -g @osovv/grace-cli@4.2.1`, затем `setup` |
151
+ | `daemon.running` = `false`, `cgc.ok` = `false` | `doubled-graph setup` из обычного шелла |
152
+ | `Operation not permitted` на `~/.codegraphcontext` | демон не запущен: `daemon install && daemon start` |
153
+ | `Can't handle RDB format version 13` | база несовместима: движок переименует её и перезапустится |
154
+ | `lint` → `markup.module-map-missing` | содержательная работа: [01-content-gaps.md](prompts/upgrade-methodology/01-content-gaps.md) |
155
+
156
+
157
+ ## Обновление с 1.9.x / 2.x
158
+
159
+ Движок 4.x читает только `.grace` и отказывается от `docs/*.xml`. `setup`
160
+ выполняет переход целиком: конвертирует `docs/*.xml` → `.grace` (модули `M-*`,
161
+ зависимости, `V-M-*` с командами и тест-файлами), создаёт недостающие
162
+ обязательные документы, дописывает `LINKS: M-*` в `MODULE_CONTRACT` и приводит
163
+ `MAP_MODE` в соответствие с `ROLE`. Legacy `docs/` не изменяются и не удаляются.
164
+
165
+ ```bash
166
+ pipx upgrade doubled-graph
167
+ cd your-project && doubled-graph setup
168
+ ```
169
+
170
+ Дальше остаётся содержательная работа — заполнить `V-<M>` и `MODULE_MAP` по
171
+ реальному коду и тестам: [prompts/upgrade-methodology/01-content-gaps.md](prompts/upgrade-methodology/01-content-gaps.md)
172
+ (выдуманные команды запрещены — иначе «не проверено» станет «проверено»).
173
+
174
+ ## Удаление
175
+
176
+ Порядок важен: сначала CLI, потом пакет. Иначе unit ОС останется с `KeepAlive` и
177
+ будет перезапускать несуществующий бинарь, а команды для его снятия уже не будет.
178
+
179
+ ```bash
180
+ doubled-graph uninstall # сервис + ~/.doubled-graph
181
+ doubled-graph uninstall --purge-project # + артефакты setup в репозитории
182
+ pipx uninstall doubled-graph
183
+ ```
184
+
185
+ `--purge-project` снимает git-хуки, managed-блок в `AGENTS.md`, записи в
186
+ MCP-конфигах и наши skills; ваш текст вокруг блока сохраняется.
187
+ Исходники и `.grace` не трогаются.
188
+ Скопированные `prompts/`, `methodology/` и кеш `.doubled-graph/` остаются на месте — удалите вручную, если не нужны.
189
+
190
+
191
+ ## Документация
192
+
193
+ - [SPEC.md](docs/SPEC.md) — архитектура, хранилище `.doubled-graph/`
194
+ - [TOOLS.md](docs/TOOLS.md) — схемы инструментов и коды ошибок
195
+ - [HOOKS.md](docs/HOOKS.md) — git и Claude Code хуки
196
+ - [DAEMON.md](docs/DAEMON.md) — демон `graphd`: протокол, сервис, безопасность
197
+ - [CHANGELOG.md](docs/CHANGELOG.md) — история изменений
198
+
199
+ ## Лицензия
200
+
201
+ MIT. Upstream-компоненты (CodeGraphContext, grace-marketplace) — MIT.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "doubled-graph"
7
- version = "3.1.0"
7
+ version = "3.1.2"
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" }
@@ -64,7 +64,11 @@ FAST_TIMEOUT_S = 2.0
64
64
  #: Everything except indexing gets a bounded request timeout, so a wedged
65
65
  #: daemon cannot hang an IDE forever.
66
66
  DEFAULT_TIMEOUT_S = 60.0
67
- #: Indexing is explicitly unbounded (§6).
67
+ #: Indexing is explicitly unbounded (§6): a full rebuild of a large repository
68
+ #: routinely outlives ``DEFAULT_TIMEOUT_S``. Capping it made the client abandon
69
+ #: an apply the daemon was still finishing — the graph got written, but the
70
+ #: manifest never advanced, so every retry resent the whole tree. A caller can
71
+ #: still bound it through ``GraphClient(timeouts={"index_apply": N})``.
68
72
  INDEXING_TIMEOUT_S: float | None = None
69
73
  #: Hard cap on a single JSON frame (a runaway query must not exhaust RAM).
70
74
  MAX_MESSAGE_BYTES = 64 * 1024 * 1024
@@ -640,6 +644,9 @@ class GraphClient:
640
644
  return self._timeouts[method]
641
645
  if method in {"ping", "health"}:
642
646
  return FAST_TIMEOUT_S
647
+ if method == "index_apply":
648
+ # ``None`` means "wait as long as the daemon needs" (DAEMON.md §6).
649
+ return INDEXING_TIMEOUT_S
643
650
  return DEFAULT_TIMEOUT_S
644
651
 
645
652
  def _roundtrip(
@@ -1204,6 +1204,21 @@ def _first_analyze(repo: Path, dry_run: bool) -> dict[str, Any]:
1204
1204
  "hint": str(e),
1205
1205
  }
1206
1206
  warning_codes = [w.code for w in res.warnings]
1207
+ # Codes alone are not a diagnosis: `CGC_BACKEND_FAIL` says "a backend
1208
+ # problem", the detail says *which* call failed and why. Keep the full
1209
+ # detail in the report so a failed setup can be investigated from its JSON.
1210
+ warning_details = [
1211
+ {
1212
+ "code": warning.code,
1213
+ "detail": str(getattr(warning, "detail", "") or ""),
1214
+ **(
1215
+ {"file": warning.file}
1216
+ if getattr(warning, "file", None)
1217
+ else {}
1218
+ ),
1219
+ }
1220
+ for warning in res.warnings
1221
+ ]
1207
1222
  repaired = [
1208
1223
  getattr(w, "detail", "")
1209
1224
  for w in res.warnings
@@ -1217,12 +1232,18 @@ def _first_analyze(repo: Path, dry_run: bool) -> dict[str, Any]:
1217
1232
  stats = getattr(res, "stats", None)
1218
1233
  files_processed = int(getattr(stats, "files_processed", 0) or 0)
1219
1234
  fatal = [code for code in warning_codes if code in _ANALYZE_FATAL_WARNINGS]
1235
+ fatal_details = [
1236
+ f"{item['code']}: {item['detail'][:300]}"
1237
+ for item in warning_details
1238
+ if item["code"] in _ANALYZE_FATAL_WARNINGS and item["detail"]
1239
+ ]
1220
1240
  result = {
1221
1241
  "status": "ok",
1222
1242
  "mode_used": res.mode_used,
1223
1243
  "duration_ms": res.duration_ms,
1224
1244
  "files_processed": files_processed,
1225
1245
  "warnings": warning_codes,
1246
+ "warning_details": warning_details,
1226
1247
  # The engine may have healed itself during this very step. Keep the
1227
1248
  # evidence in the setup report: a silent repair looks like "it just
1228
1249
  # worked", and the next failure would be investigated from scratch.
@@ -1233,12 +1254,13 @@ def _first_analyze(repo: Path, dry_run: bool) -> dict[str, Any]:
1233
1254
  # Fail closed: `analyze()` reports backend/parse failures as warnings,
1234
1255
  # not exceptions. The old code therefore labelled a run that indexed
1235
1256
  # nothing as `ok` and printed "Setup complete." (audit cycle-26 P1-b).
1257
+ detail_text = "; ".join(fatal_details) if fatal_details else ", ".join(fatal)
1236
1258
  result.update(
1237
1259
  status="failed",
1238
1260
  via="doubled-graph analyze",
1239
1261
  error_type=fatal[0] if fatal else "CGC_NO_FILES",
1240
1262
  hint=(
1241
- f"first full analyze indexed 0 files (warnings: {', '.join(fatal)})"
1263
+ f"first full analyze indexed 0 files (warnings: {detail_text})"
1242
1264
  if fatal
1243
1265
  else "first full analyze indexed 0 files"
1244
1266
  ),
@@ -500,7 +500,6 @@ _NEW_GUARD_SAMPLES = [
500
500
 
501
501
 
502
502
  _VERSIONED_DOCS = [
503
- ROOT / "README.md",
504
503
  ROOT / "for-humans" / "getting-started.md",
505
504
  ROOT / "for-humans" / "FAQ.md",
506
505
  ROOT / "prompts" / "upgrade-methodology" / "00-entry-prompt.md",
@@ -526,6 +525,21 @@ def test_docs_name_the_current_release_wheel() -> None:
526
525
  assert old not in text, f"{path.relative_to(ROOT)}: stale {old}"
527
526
 
528
527
 
528
+ def test_readme_keeps_the_install_unpinned() -> None:
529
+ """The PyPI long description is a user document, not release paperwork.
530
+
531
+ A pre-release wheel path or a "this version is not published yet" paragraph
532
+ turns into a false statement the moment the release ships, and it is the
533
+ first thing a visitor reads on the project page. The install stays one
534
+ command; the exact wheel of a given release belongs in the release notes.
535
+ """
536
+ text = (ROOT / "README.md").read_text(encoding="utf-8")
537
+ assert "pipx install doubled-graph" in text
538
+ assert "py3-none-any.whl" not in text
539
+ assert "dist/doubled_graph-" not in text
540
+ assert "не опубликована" not in text
541
+
542
+
529
543
  def test_tools_status_section_documents_the_grace4_exit_code() -> None:
530
544
  """P1-1: status is rc=1 outside grace4, and the example is snake_case."""
531
545
  text = (ROOT / "docs" / "TOOLS.md").read_text(encoding="utf-8")
@@ -73,14 +73,21 @@ def test_lint_guidance_never_offers_fail_on_as_a_wrapper_flag() -> None:
73
73
 
74
74
 
75
75
  def test_article_upgrade_path_is_the_31_wheel_not_pipx_upgrade() -> None:
76
- """P1-2: pipx upgrade installs the published 3.0.7, never 3.1.0 yet."""
76
+ """P1-2: the article's upgrade path names the release wheel explicitly.
77
+
78
+ README.md is exempt on purpose: it is the PyPI long description, read by
79
+ people who just want `pipx install doubled-graph`. Pre-release wheel
80
+ instructions there age into a false statement on release day, so that text
81
+ lives in the article/FAQ/hook docs instead (see
82
+ tests/test_command_surface.py::test_readme_keeps_the_install_unpinned).
83
+ """
77
84
  article = _read("ARTICLE.md")
78
85
  assert "dist/doubled_graph-3.1.0-py3-none-any.whl" in article
79
86
  assert "pipx install --python" in article
80
87
  assert "3.0.7" in article
81
88
  stale = "два шага: `pipx upgrade doubled-graph` и `doubled-graph setup`"
82
89
  assert stale not in article
83
- for rel in ("README.md", "for-humans/FAQ.md"):
90
+ for rel in ("for-humans/FAQ.md",):
84
91
  text = _read(rel)
85
92
  assert "3.1.0" in text and "3.0.7" in text, rel
86
93
  assert "pipx install --python" in text or "-m build --wheel" in text, rel
@@ -1090,11 +1090,20 @@ def test_roundtrip_accepts_matching_response(monkeypatch) -> None:
1090
1090
  def test_timeout_for_reads_overrides_and_defaults() -> None:
1091
1091
  client = graphd.GraphClient(Path("/tmp"), timeouts={"status": 0.25})
1092
1092
  assert client._timeout_for("status") == 0.25
1093
- assert client._timeout_for("index_apply") == graphd.DEFAULT_TIMEOUT_S
1093
+ # Indexing is unbounded by design (§6): a 60 s cap abandoned applies the
1094
+ # daemon was still finishing, so the manifest never advanced.
1095
+ assert client._timeout_for("index_apply") is None
1096
+ assert client._timeout_for("index_apply") == graphd.INDEXING_TIMEOUT_S
1094
1097
  assert client._timeout_for("ping") == graphd.FAST_TIMEOUT_S
1095
1098
  assert client._timeout_for("impact") == graphd.DEFAULT_TIMEOUT_S
1096
1099
 
1097
1100
 
1101
+ def test_index_apply_timeout_can_be_bounded_by_the_caller() -> None:
1102
+ """The unbounded default is a design choice, not a lock-in."""
1103
+ client = graphd.GraphClient(Path("/tmp"), timeouts={"index_apply": 5.0})
1104
+ assert client._timeout_for("index_apply") == 5.0
1105
+
1106
+
1098
1107
  def test_apply_diag_ignores_unknown_and_non_dict(monkeypatch) -> None:
1099
1108
  client = graphd.GraphClient(Path("/tmp"))
1100
1109
  assert client._apply_diag(5) == 5
@@ -651,6 +651,9 @@ def test_first_analyze_success_and_failure(monkeypatch, tmp_path: Path) -> None:
651
651
  ok = setup_mod._first_analyze(tmp_path, False)
652
652
  assert ok["status"] == "ok"
653
653
  assert ok["warnings"] == ["HASKELL_PARSER_UNSTABLE"]
654
+ assert ok["warning_details"] == [
655
+ {"code": "HASKELL_PARSER_UNSTABLE", "detail": ""}
656
+ ]
654
657
  assert ok["files_processed"] == 3
655
658
 
656
659
  monkeypatch.setattr(
@@ -661,6 +664,44 @@ def test_first_analyze_success_and_failure(monkeypatch, tmp_path: Path) -> None:
661
664
  assert "boom" in failed["hint"]
662
665
 
663
666
 
667
+ def test_first_analyze_keeps_warning_details_in_the_report(
668
+ tmp_path: Path, monkeypatch
669
+ ) -> None:
670
+ """A code alone is not a diagnosis: the detail must survive into the report.
671
+
672
+ `CGC_BACKEND_FAIL` says "a backend problem"; the detail says which call
673
+ timed out / broke, which is the only way to debug a failed setup from its
674
+ JSON report after the daemon log has rotated.
675
+ """
676
+ from doubled_graph.tools import analyze as analyze_mod
677
+
678
+ fake = SimpleNamespace(
679
+ mode_used="full",
680
+ duration_ms=12,
681
+ stats=SimpleNamespace(files_processed=0),
682
+ warnings=[
683
+ SimpleNamespace(
684
+ code="CGC_BACKEND_FAIL",
685
+ detail="graph daemon did not answer `index_apply` within 60s.",
686
+ file=None,
687
+ )
688
+ ],
689
+ )
690
+ monkeypatch.setattr(analyze_mod, "analyze", lambda **_kw: fake)
691
+
692
+ report = setup_mod._first_analyze(tmp_path, False)
693
+
694
+ assert report["status"] == "failed"
695
+ assert report["warnings"] == ["CGC_BACKEND_FAIL"]
696
+ assert report["warning_details"] == [
697
+ {
698
+ "code": "CGC_BACKEND_FAIL",
699
+ "detail": "graph daemon did not answer `index_apply` within 60s.",
700
+ }
701
+ ]
702
+ assert "did not answer" in report["hint"]
703
+
704
+
664
705
  def test_first_analyze_dry_run_names_a_possible_quarantine(
665
706
  tmp_path: Path, monkeypatch
666
707
  ) -> None: