doubled-graph 3.1.1__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.
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/PKG-INFO +1 -1
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/pyproject.toml +1 -1
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/integrations/graphd.py +8 -1
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/setup.py +23 -1
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_graphd_client.py +10 -1
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_setup_coverage.py +41 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/.gitignore +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/ARTICLE.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/INDEX.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/LICENSE +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/README.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/for-ai-existing-project/README.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/for-ai-maintenance/README.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/for-ai-new-project/README.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/for-humans/FAQ.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/for-humans/deep-dive.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/for-humans/getting-started.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/README.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/approval-checkpoints.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/artifacts.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/auto-scaling.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/ci-templates/github-actions.yml +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/ci-templates/gitlab-ci.yml +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/drift-and-priority.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/_template.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/csharp.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/go.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/java.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/python.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/rust.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/swift.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/language-adapters/typescript.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/principles.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/roles.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/_template.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/claude-code.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/codex.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/continue.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/cursor.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/local-llm.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/runtime-adapters/windsurf.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/tools.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/methodology/workflow.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/maintenance/on-after-edit.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/maintenance/on-before-edit.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/maintenance/on-drift-detected.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/maintenance/on-user-manual-edit.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/00-entry-prompt.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/01-discover.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/02-reconstruct-intent.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/03-draft-plan.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/04-markup-codebase.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/05-verification-and-logs.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/06-validation-gates.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/00-entry-prompt.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/01-intent-interview.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/02-requirements.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/03-technology.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/04-development-plan.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/05-verification-plan.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/06-generate.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/new-project/07-post-init-sync.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/upgrade-methodology/00-entry-prompt.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/upgrade-methodology/01-content-gaps.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/__main__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/artifacts_repair.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/cli.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/config.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/contracts.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/daemon/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/daemon/index_store.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/daemon/main.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/daemon/server.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-after-edit/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-before-edit/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-drift/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-guide/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-manual-edit/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-refactor/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/data/skills/doubled-graph-verify/SKILL.md +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/graphs/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/graphs/anchors.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/graphs/crossref.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/graphs/declared.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/graphs/grace4.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/health.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/hooks_installer.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/discovery.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/linker.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/manifest.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/parse_cache.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/parser.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/index/snapshot.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/integrations/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/integrations/cgc.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/integrations/grace_cli.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/integrations/service.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/migrations/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/migrations/grace3_to_grace4.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/policy/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/policy/agents_md.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/policy/phase.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/server.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/storage/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/storage/paths.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/_meta.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/analyze.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/analyze_sync.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/check_drift.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/context.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/impact.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/index_status.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/post_tool.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/tools/provenance.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/uninstall.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/__init__.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/conftest.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_analyze_sync.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_anchors.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_artifacts_repair.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_bom_support.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_cgc_backend.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_cgc_contract.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_cgc_lifecycle.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_check_drift.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_cli_daemon.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_cli_entrypoint.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_cli_surface.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_command_surface.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_contracts.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_crossref_drift.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_daemon.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_daemon_main.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_declared_coverage.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_doc_contract.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_e2e_acceptance.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_grace4_artifacts.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_grace_cli_coverage.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_grace_cli_engine.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_health.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_hook_public_coverage.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_index_core.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_index_graph.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_index_manifest.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_integration_daemon_cgc.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mcp_transport.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mcp_validation.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_migration_coverage.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_migration_grace3_to_grace4.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_gate_script.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_cgc_edges.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_cgc_fallback.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_cgc_misc.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_context.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_crossref.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_hooks.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_kill_impact.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_mutation_probes.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_packaging.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_platform_branches.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_protocol_v2.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_provenance.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_release_edges.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_release_script.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_repo_hygiene.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_service.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_setup_artifacts.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_setup_failure_semantics.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_smoke.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_snapshot_oracle.py +0 -0
- {doubled_graph-3.1.1 → doubled_graph-3.1.2}/tests/test_uninstall.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: doubled-graph
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.2
|
|
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
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "doubled-graph"
|
|
7
|
-
version = "3.1.
|
|
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: {
|
|
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
|
),
|
|
@@ -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
|
-
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/00-entry-prompt.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/03-draft-plan.md
RENAMED
|
File without changes
|
{doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/04-markup-codebase.md
RENAMED
|
File without changes
|
|
File without changes
|
{doubled_graph-3.1.1 → doubled_graph-3.1.2}/prompts/migrate-existing-project/06-validation-gates.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doubled_graph-3.1.1 → doubled_graph-3.1.2}/src/doubled_graph/migrations/grace3_to_grace4.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|