graphite-code 1.5.0__tar.gz → 1.7.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.
- {graphite_code-1.5.0 → graphite_code-1.7.0}/CHANGELOG.md +235 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/CONTRIBUTING.md +8 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/PKG-INFO +3 -2
- {graphite_code-1.5.0 → graphite_code-1.7.0}/README.md +1 -1
- {graphite_code-1.5.0 → graphite_code-1.7.0}/pyproject.toml +12 -1
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/__init__.py +1 -1
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/cli.py +16 -2
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/daemon.py +112 -6
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/daemon_health.py +83 -2
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/doctor.py +9 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/git.py +12 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/ingest.py +49 -7
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_agent_hooks_session_tagging.py +92 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_context_builder.py +2 -2
- graphite_code-1.7.0/tests/test_daemon_snapshot_failure.py +581 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_doctor.py +131 -26
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_hardening.py +33 -2
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_listing_surfaces.py +2 -1
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_published_schemas.py +54 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_typescript_activation.py +89 -6
- {graphite_code-1.5.0 → graphite_code-1.7.0}/.gitignore +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/ARCHITECTURE.md +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/LICENSE +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/RELEASING.md +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/__main__.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/_cleanup_worker.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/_win32_ctypes.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/activation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/agent_hooks.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/agent_settings.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/analyze.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/answer_contract.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/bootstrap.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/buildlock.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/cache.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/channel.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/cluster.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/config.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/context.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/daemon_launch.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/debt.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/dependency_install.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/detach.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/doctor_probes.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/engine_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/export/__init__.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/export/html.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/export/json.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/export/md.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/extract/__init__.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/extract/ast.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/extract/pyscope.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/freshness.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/graph.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/graph_io.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/health.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/hook_entry.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/hookinstall.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/hookshim.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/incident_ledger.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/init.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/io.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/launchd_agent.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/listing.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/llm.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/llm_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/mcp.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/mcp_server.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/natural_query.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/overlays.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/ownership.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/probe_process.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/probe_workspace.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/process_contracts.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/programs.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/provider_observer.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/py.typed +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/query.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/query_plan.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/replacement_audit.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/resolve.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/review.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/__init__.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/approval.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/classifier.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/claude_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/claude_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/cli_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/codex_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/codex_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/context_builder.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/contracts.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/diff_policy.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/edit_apply.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/effort.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/lifecycle.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/lifecycle_operator.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/lifecycle_service.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/lifecycle_storage.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/ollama_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/ollama_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/openrouter_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/openrouter_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/policy.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/probe_runner.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/process_runner.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/profiles.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/prompt.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/registry.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/route_pool.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/route_pool_execution.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/schema_validation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/service.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/settings.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/shadow.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/storage.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/telemetry.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/worktree.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/zai_edit.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/zai_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/routing/zai_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/savings.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/systemd_unit.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/ts_bridge.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/ts_resolver.mjs +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/typescript_activation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/usage_ledger.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/validation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/watch.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/windows_job.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/windows_startup.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/src/graphite/windows_task.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/conftest.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/data/sqloracle/blindspots.py.txt +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/data/sqloracle/round69.py.txt +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/fake_clis/fake_cli.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/fixtures/provider_lifecycle_schema_v1.sql +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/fixtures/routing_schema_v2_ca77600.sql +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/fixtures/routing_schema_v3_94eb333.sql +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/fixtures/routing_schema_v4_lifecycle_migration.sql +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test__win32_ctypes.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_activation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_activation_backstop.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_agent_hook_activation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_agent_hooks.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_agent_hooks_session_books.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_agent_settings.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_answer_contract.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_arrow_and_constructor_binding.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_ast_make_id_length.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_ast_name_a_module_only_imports.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_ast_source_lines.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_ast_super_over_a_builtin_base.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_atomic_write.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_bootstrap.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_build_detach.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_buildlock.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cache_engine_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cache_entry_pruning.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cache_file_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cache_file_set.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cache_pruning.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_call_graph.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_case_ambiguous_answer.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_attribution.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_cli.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_core.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_kind.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_lock.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_log_integrity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_mcp.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_register.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_report.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_channel_status.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_class_field_arrow_binding.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_below_repository_root.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_build_missing_path.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_channel.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_channel_attribution.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_doctor_below_root.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_reference.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_usage.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cli_version.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cluster.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_compare_dist.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_configuration_reference.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_context.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cwd_relative_config.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_cycle_search.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_activation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_build_lock.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_child_lock.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_engine_staleness.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_health.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_health_activation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_launch.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_daemon_service_cli.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_debt.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_dependency_install.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_destructured_binding.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_determinism.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_dispatch_evidence.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_doctor_agent_hooks.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_doctor_hooks.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_doctor_managed_docs.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_doctor_probes.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_documentation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_edit_apply.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_engine_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_exit_codes_reference.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_external_calls.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_file_node_id_collision.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_git_security.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_go_rust.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_graph_io.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_graph_provider_isolation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_health.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_hook_entry.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_hook_template.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_hookinstall.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_hookshim.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_html_security.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_incident_ledger.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_init.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_init_activation_doctrine.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_init_hooks.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_init_validation_exit.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_launchd_agent.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_lifecycle_operator.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_listing.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_llm.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_llm_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_mcp.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_mcp_server.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_mcp_server_channel_attribution.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_member_call_receiver.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_method_dispatch_scope.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_monorepo.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_mutation_tests.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_natural_query.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_no_path_is_graded.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_node_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_ollama_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_overlays.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_path_leak_fixture.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_probe_diagnostics.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_probe_process.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_probe_workspace.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_process_contracts.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_programs.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_claude_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_codex_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_lifecycle.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_lifecycle_service.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_lifecycle_storage.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_observer.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_ollama_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_openrouter_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_provider_probe_runner.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_public_surface.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_pyscope.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_pyscopeoracle.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_builtin_named_symbols.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_import_bindings.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_inherits_edge.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_local_alias_call.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_reexport_follow.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_resolver.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_python_scope_identity.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_query_plan.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_reliability.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_replacement_audit.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_repository_root_ownership.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_resolve.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_resolve_python_reexports_of.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_review.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_route_pool.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_route_pool_execution.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_approval.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_benchmark.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_classifier.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_claude_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_cli.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_cli_contracts.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_cli_recovery.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_codex_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_context.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_contracts.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_diff_policy.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_openrouter_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_policy.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_process_runner.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_profiles.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_registry.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_schema_validation.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_security.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_service.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_shadow.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_storage.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_telemetry.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_worktree.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_zai_executor.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_routing_zai_probe.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_savings.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_search.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_self_super_dispatch.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_smoke.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_sqloracle.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_synthetic_repo.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_systemd_unit.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_ts_bridge.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_typescript_resolver.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_usage_ledger.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_verify_artifact.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_verify_published_release.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_watch.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_windows_startup.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_windows_task.py +0 -0
- {graphite_code-1.5.0 → graphite_code-1.7.0}/tests/test_zai_edit.py +0 -0
|
@@ -15,6 +15,241 @@ machine-checkable identity; the version is for humans.
|
|
|
15
15
|
|
|
16
16
|
## [Unreleased]
|
|
17
17
|
|
|
18
|
+
## [1.7.0] — 2026-10-28
|
|
19
|
+
|
|
20
|
+
A minor release: the daemon's log now says WHICH way enumerating a repository
|
|
21
|
+
failed, and `check --json`, `validate --json` and `daemon-health --json` carry
|
|
22
|
+
`schema_version`, with a schema published for each of them.
|
|
23
|
+
|
|
24
|
+
The three outputs are stable surfaces and a field is added to each, so this is
|
|
25
|
+
a minor by the rule in `docs/compatibility.md` -- "Fields are added in minors"
|
|
26
|
+
-- and by the precedent of 1.1.0, whose own note reads "The agent channel's
|
|
27
|
+
read surfaces gain fields, which is an addition to a stable surface." No
|
|
28
|
+
command, option, exit code or entry point is added, removed or renamed.
|
|
29
|
+
|
|
30
|
+
The field was added because the three outputs were the only ones in that list
|
|
31
|
+
without it, so a consumer branching on it had nothing to branch on. The
|
|
32
|
+
published schemas are deliberately open at the top level, because the same
|
|
33
|
+
rule lets a later minor add fields to them.
|
|
34
|
+
|
|
35
|
+
The daemon's change is a fix that adds no field: every way enumerating a
|
|
36
|
+
repository can fail raised the same path-free `IngestError`, so the cause
|
|
37
|
+
chain rendered the class name alone and four different failures read
|
|
38
|
+
"IngestError" and could not be told apart. Each failure now raises a cause
|
|
39
|
+
carrying its own reason, and the chain names it. The message a caller sees is
|
|
40
|
+
unchanged.
|
|
41
|
+
|
|
42
|
+
The graph changes by what these fixes add. Measured on this repository: the
|
|
43
|
+
v1.6.0 tree built by the installed 1.6.0 engine, and this tree built by this
|
|
44
|
+
engine, each into fresh output, cache and state directories:
|
|
45
|
+
|
|
46
|
+
- 9,298 nodes become 9,322 and 25,599 edges become 25,655. The 24 new nodes
|
|
47
|
+
are the functions the daemon's fix adds, the three published schemas, the
|
|
48
|
+
new test's function, and the fixtures and helpers that go with them;
|
|
49
|
+
- every node id survives: 9,298 of 9,298 are in both, 24 are new and none is
|
|
50
|
+
removed; 8,742 of them keep their denotation exactly;
|
|
51
|
+
- 6,752 definition ids become 6,768: 6,196 keep their id and their definition,
|
|
52
|
+
and 556 keep their id but move line -- every one of them in the six files
|
|
53
|
+
this release touches (`tests/test_doctor.py` 383, `src/graphite/cli.py` 89,
|
|
54
|
+
`src/graphite/daemon.py` 35, `tests/test_agent_hooks_session_tagging.py` 18,
|
|
55
|
+
`src/graphite/ingest.py` 16, `tests/test_published_schemas.py` 15). No
|
|
56
|
+
definition id is removed and 16 are new;
|
|
57
|
+
- `calls` goes from 16,418 relation triples to 16,457, `contains` from 6,750 to
|
|
58
|
+
6,766, `imports` stays at 2,480, and `inherits` goes from 121 to 122. 25,769
|
|
59
|
+
relation triples become 25,825, with 2 only in the old graph and 58 only in
|
|
60
|
+
the new one;
|
|
61
|
+
- 18 cycles where there were 18, the same ones, and 178 communities where
|
|
62
|
+
there were 175. The entry points, the orphans and the surprising
|
|
63
|
+
connections are identical; the god nodes and the top files by links differ,
|
|
64
|
+
because the new code adds and moves them;
|
|
65
|
+
- `resolution_health` is healthy on both sides: the `calls` ratio is 0.983
|
|
66
|
+
before and after, and `imports` is 1.0 on both.
|
|
67
|
+
|
|
68
|
+
`metadata.engine.fingerprint` moves, as it does whenever the engine's own
|
|
69
|
+
files change -- and they do: the identity hashes every `.py` and `.mjs` file
|
|
70
|
+
in the package, so a change to the daemon or the ingest moves it whether or
|
|
71
|
+
not the extraction changed.
|
|
72
|
+
|
|
73
|
+
The two builds above used different `tree-sitter` versions (0.25.2 for the
|
|
74
|
+
installed 1.6.0 and 0.26.0 for the dev environment), so the difference was
|
|
75
|
+
controlled for rather than assumed away: the SAME tree built by both engines
|
|
76
|
+
gives the same ids, the same edges and the same triples, node for node --
|
|
77
|
+
9,322 nodes, 25,655 edges and all 25,825 relation triples identical, with no
|
|
78
|
+
id moved and none removed, and identical cycles, entry points, god nodes,
|
|
79
|
+
orphans, surprising connections, top files by links, clusters and
|
|
80
|
+
`resolution_health`. The figures above are therefore attributable to this
|
|
81
|
+
change and not to the parsers.
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
- `check --json`, `validate --json` and `daemon-health --json` now carry
|
|
86
|
+
`schema_version`, which `docs/compatibility.md` already listed them as
|
|
87
|
+
carrying, and a schema for each is published under `docs/schemas/`. The
|
|
88
|
+
three outputs were the only ones in that list without the field, so a
|
|
89
|
+
consumer branching on it had nothing to branch on. A field is added to
|
|
90
|
+
three stable surfaces, so this is a minor by the rule in
|
|
91
|
+
`docs/compatibility.md` -- "Fields are added in minors" -- and the
|
|
92
|
+
published schemas are deliberately open at the top level, because the
|
|
93
|
+
same rule lets a later minor add fields to them.
|
|
94
|
+
|
|
95
|
+
### Fixed
|
|
96
|
+
|
|
97
|
+
- The daemon's log now says WHICH way enumerating a repository failed.
|
|
98
|
+
Every one of those failures raises the same path-free `IngestError`
|
|
99
|
+
message, and the cause chain rendered the class name alone, so four
|
|
100
|
+
different failures read "IngestError" and could not be told apart -- the
|
|
101
|
+
same loss #113 fixed for Git's exit status. Each failure now raises a
|
|
102
|
+
cause carrying its own reason (`nested_git_root`,
|
|
103
|
+
`output_not_nul_terminated`, `too_many_records`, `path_not_contained`),
|
|
104
|
+
and the chain names it. The message a caller sees is unchanged, and no
|
|
105
|
+
command, option, exit code or JSON field changes.
|
|
106
|
+
- Tests: the three mutation survivors in `src/graphite/agent_hooks.py` are
|
|
107
|
+
now killed. A mutant the suite cannot kill is a behaviour the suite does
|
|
108
|
+
not pin, and the mutation gate's ledger recorded three of them: `or` ->
|
|
109
|
+
`and` in `_entry_is_this_session`, and `0` -> `1` twice in `handle_stop`
|
|
110
|
+
-- in the ledger's byte length when there is no ledger, and in the
|
|
111
|
+
cursor's offset when the state has none. The first two are pinned by the
|
|
112
|
+
one case that distinguishes them. The third had no such case and needed
|
|
113
|
+
one: a cursor state that lost its offset is a damaged cursor, and the
|
|
114
|
+
ledger is newline-delimited JSON, so an offset of 1 would cut the first
|
|
115
|
+
entry in half -- it would no longer parse, and the turn's own use would
|
|
116
|
+
go uncounted without a word. The default is 0, which is what the
|
|
117
|
+
function already does with a damaged cursor elsewhere. Each kill is
|
|
118
|
+
proved by applying the mutation and watching the test that is meant to
|
|
119
|
+
kill it fail, with the source restored byte-identical afterwards.
|
|
120
|
+
|
|
121
|
+
## [1.6.0] — 2026-10-27
|
|
122
|
+
|
|
123
|
+
A minor release: the daemon's health report no longer reads "ok" while every
|
|
124
|
+
snapshot of an activated project fails (#113), and the daemon's log now
|
|
125
|
+
carries the cause of a failure instead of only its message. The
|
|
126
|
+
`daemon-health --json` output gains two fields on a failing project and a
|
|
127
|
+
new error code, and the `dev` extra gains one dependency, so this is a
|
|
128
|
+
minor by the rule in `docs/compatibility.md` -- "Fields are added in
|
|
129
|
+
minors" -- and by the precedent of 1.1.0, whose own note reads "The agent
|
|
130
|
+
channel's read surfaces gain fields, which is an addition to a stable
|
|
131
|
+
surface." No command, option, exit code or entry point is added, removed or
|
|
132
|
+
renamed, and the `daemon-status` output gains a listing where it had none.
|
|
133
|
+
|
|
134
|
+
The graph changes by what this fix adds. Measured on this repository: the
|
|
135
|
+
1.5.0 release tree built by the installed 1.5.0 engine, and this tree built
|
|
136
|
+
by this engine, each into fresh output, cache and state directories:
|
|
137
|
+
|
|
138
|
+
- 9,244 nodes become 9,298 and 25,415 edges become 25,599. The 54 new nodes
|
|
139
|
+
are the functions and classes this change adds, the file of the new test
|
|
140
|
+
file, and the fixtures and helpers that go with them;
|
|
141
|
+
- every node id survives: 9,244 of 9,244 are in both, 54 are new and none
|
|
142
|
+
is removed;
|
|
143
|
+
- 6,712 definition ids become 6,752: 6,495 survive naming the same
|
|
144
|
+
definition at the same line, and 217 survive by id but move line -- every
|
|
145
|
+
one of them in the eight files this change touches (`cli.py` 43,
|
|
146
|
+
`doctor.py` 37, `daemon.py` 31, `daemon_health.py` 18,
|
|
147
|
+
`tests/test_typescript_activation.py` 17, `git.py` 12,
|
|
148
|
+
`ingest.py` 2, `tests/test_hardening.py` 57). No definition id is
|
|
149
|
+
removed and 40 are new;
|
|
150
|
+
- `contains` goes from 6,710 relation triples to 6,750 and `imports` from
|
|
151
|
+
2,465 to 2,480; `calls` goes from 16,290 to 16,418; `inherits` (120)
|
|
152
|
+
becomes 121. 25,585 relation triples become 25,769, with none removed;
|
|
153
|
+
- 18 cycles where there were 18, the same ones, and 177 communities where
|
|
154
|
+
there were 175. Orphans and surprising connections are identical; the
|
|
155
|
+
entry points, the god nodes and the top files by links differ, because
|
|
156
|
+
the new code adds and moves them.
|
|
157
|
+
|
|
158
|
+
`metadata.engine.fingerprint` moves, as it does whenever the engine's own
|
|
159
|
+
files change -- and they do: the identity hashes every `.py` and `.mjs`
|
|
160
|
+
file in the package, so a change to the daemon, the health report, the
|
|
161
|
+
ingest or the Git wrapper moves it whether or not the extraction changed.
|
|
162
|
+
|
|
163
|
+
The two builds above used different `tree-sitter` versions (0.25.2 for the
|
|
164
|
+
installed 1.5.0 and 0.26.0 for the dev environment; `tree-sitter-python`
|
|
165
|
+
is 0.25.0 in both), so the difference was controlled for rather than
|
|
166
|
+
assumed away: the SAME tree built by both engines gives the same ids, the
|
|
167
|
+
same edges and the same triples, node for node -- 9,298 nodes, 25,599
|
|
168
|
+
edges and all 25,769 relation triples identical, with no id moved and none
|
|
169
|
+
removed, and the same resolution health. The figures above are therefore
|
|
170
|
+
attributable to this change and not to the parsers.
|
|
171
|
+
|
|
172
|
+
### Fixed
|
|
173
|
+
|
|
174
|
+
- Daemon: the health report no longer reads `ok` while every snapshot of an
|
|
175
|
+
activated project fails (#113). A project the daemon could not snapshot
|
|
176
|
+
was logged as `project_snapshot_failed` and then dropped: it never entered
|
|
177
|
+
the supervised set, so it was absent from `status.json`, nothing counted
|
|
178
|
+
it as failing, and `daemon-health` read `ok, 0 projects, 0 failing` while
|
|
179
|
+
no graph was being maintained at all. On 2026-10-27 the daemon failed every
|
|
180
|
+
snapshot of an activated repository -- ten failures across nine discovery
|
|
181
|
+
cycles, 01:50:22Z to 02:03:59Z -- and the report said `ok` throughout. The
|
|
182
|
+
daemon now keeps each failure -- its root and its reason -- under
|
|
183
|
+
`snapshot_failures` in `status.json`, counts the project as failing, and
|
|
184
|
+
names it with the reason in `daemon-health` and `daemon-status`. A
|
|
185
|
+
`status.json` written before this key existed is read unchanged, and a
|
|
186
|
+
failure whose reason is missing is still counted and named: the reason is
|
|
187
|
+
absent, not the failure. A project whose snapshot failed is still never
|
|
188
|
+
built -- with no snapshot there is no change set, and building on an empty
|
|
189
|
+
one would publish an empty graph over a working one -- and one broken
|
|
190
|
+
repository no longer blinds the daemon to the healthy ones beside it.
|
|
191
|
+
Measured on this machine against a repository whose `.git` is not a valid
|
|
192
|
+
repository, the failure the daemon hit on 2026-10-27: the health report
|
|
193
|
+
goes from `ok`, `0 total, 0 failing` to `degraded`, `2 total, 1 failing`,
|
|
194
|
+
naming the project and the reason, while the healthy repository beside it
|
|
195
|
+
is still built.
|
|
196
|
+
- Daemon: a snapshot failure now logs the cause, not just the sentence
|
|
197
|
+
(#113's follow-up). The daemon logged `str(exc)`, which for a failed
|
|
198
|
+
enumeration is the constant `unable to enumerate Git repository safely` and
|
|
199
|
+
nothing else: which step failed and which errno it was lived in the
|
|
200
|
+
exception's `__cause__` chain, and the chain was discarded. On 2026-10-27
|
|
201
|
+
the daemon failed every snapshot of an activated repository for thirteen
|
|
202
|
+
minutes, and the log could not say why. The `project_snapshot_failed` and
|
|
203
|
+
`project_scan_failed` events now carry a `cause`: the exception and its
|
|
204
|
+
chain, rendered path-free -- a `GitError` by its own `diagnostic()` (class,
|
|
205
|
+
step, errno) and every other exception by its class name alone, so no path
|
|
206
|
+
and no Git text can reach the log. The chain is bounded and a cycle cannot
|
|
207
|
+
make it loop. A Git command that runs and exits non-zero now leaves a
|
|
208
|
+
cause too: Git's own text is discarded on purpose, and the run's stderr
|
|
209
|
+
was never captured, but the exit status is an integer and is the only
|
|
210
|
+
thing left that says which failure this was -- previously that error
|
|
211
|
+
carried no cause at all.
|
|
212
|
+
- Tests: a stubbed module no longer outlives the test that made it. The
|
|
213
|
+
boundary test in `tests/test_typescript_activation.py` installs fake `mcp`
|
|
214
|
+
modules -- `mcp.types.Tool = object` -- to check that importing the MCP
|
|
215
|
+
server never reaches activation orchestration, and then imports
|
|
216
|
+
`graphite.mcp` against them. `monkeypatch.delitem(sys.modules, name,
|
|
217
|
+
raising=False)` records NOTHING when the key is absent, so the
|
|
218
|
+
`graphite.mcp` / `graphite.mcp_server` imported against the stubs stayed
|
|
219
|
+
reachable after the test: in `sys.modules`, and as the ATTRIBUTE the import
|
|
220
|
+
system sets on the parent package, which `from graphite import mcp_server`
|
|
221
|
+
returns without importing anything. A later test in the same worker that
|
|
222
|
+
read the module got the stub, and died with `AttributeError: type object
|
|
223
|
+
'object' has no attribute 'model_validate'`. The serial suite never saw
|
|
224
|
+
it, because every file that reads `graphite.mcp_server` sorts before the
|
|
225
|
+
one that stubs it; the parallel suite does, because `--dist loadfile`
|
|
226
|
+
reorders the work queue by test count per file (`--loadscope-reorder`
|
|
227
|
+
defaults to on) and the stubbing file is the largest in the suite. The
|
|
228
|
+
import is now undone in a `finally`, from both places it was reachable, and
|
|
229
|
+
a regression test pins that.
|
|
230
|
+
|
|
231
|
+
### Changed
|
|
232
|
+
|
|
233
|
+
- The test suite runs in parallel. The suite is WAIT-bound, not CPU-bound
|
|
234
|
+
-- the channel tests alone spend about 760s mostly sleeping on locks and
|
|
235
|
+
broker round trips -- so serial execution paid for nothing.
|
|
236
|
+
`pytest-xdist` is a declared dev dependency, which adds one
|
|
237
|
+
`Requires-Dist` line to the wheel's metadata for the `dev` extra alone,
|
|
238
|
+
and the pre-push gate runs the suite across six processes, distributed by
|
|
239
|
+
file so that a file's tests share one process and the suite keeps the
|
|
240
|
+
per-file semantics it has today. Measured on this machine, same
|
|
241
|
+
interpreter, the same tree six tests apart: **1,190s serial becomes
|
|
242
|
+
323s**, 3.7x faster, and green either way -- six tests cannot account
|
|
243
|
+
for the difference. No assertion changes; only how many of them run at
|
|
244
|
+
once. The gate's budgets are re-derived from that measurement rather than
|
|
245
|
+
left stale: `timeout_s` 1800 -> 1200 and `pre_push` 2100 -> 1800.
|
|
246
|
+
The gate also runs it with `--no-loadscope-reorder`, because `--dist
|
|
247
|
+
loadfile` alone does NOT keep the suite's order: pytest-xdist reorders the
|
|
248
|
+
work queue by test count per file unless that is turned off, so the
|
|
249
|
+
parallel run stops matching the serial one. Measured on this machine, same
|
|
250
|
+
tree, same interpreter: 412.5s with the reorder on, 329.9s with it off --
|
|
251
|
+
not slower, because the suite is WAIT-bound rather than CPU-bound.
|
|
252
|
+
|
|
18
253
|
## [1.5.0] — 2026-10-26
|
|
19
254
|
|
|
20
255
|
A minor release: one fix to the agent hooks' savings line (#110), and with
|
|
@@ -100,6 +100,14 @@ python -m graphite --help
|
|
|
100
100
|
|
|
101
101
|
Focused tests shorten the feedback loop; they do not replace the full Ruff, mypy, pytest, and CLI smoke checks. Add behavior-level tests for new or changed contracts and ensure failures are meaningful rather than dependent on local machine state.
|
|
102
102
|
|
|
103
|
+
The suite is WAIT-bound, not CPU-bound — the channel tests alone spend most of their time sleeping on locks and broker round trips — so `pytest-xdist` is a declared dev dependency and the suite can be run across processes:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
python -m pytest -q -rs -n 6 --dist loadfile --no-loadscope-reorder
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
`--dist loadfile` keeps a file's tests in one worker, which preserves the per-file semantics the suite has today; plain `-n` balances better but splits a file's tests across workers. `--no-loadscope-reorder` is needed because `--dist loadfile` alone does NOT keep the suite's order: pytest-xdist reorders the work queue by test count per file (descending) unless that is turned off, so the biggest file runs first and the parallel run stops matching the serial one. A test that depends on which file ran first is then order-dependent in a way the serial suite never was — which is how a stub-imported module in `tests/test_typescript_activation.py` reached a later test in the same worker and failed it. The pre-push gate runs the suite this way, and `aramid.toml` records the measurement.
|
|
110
|
+
|
|
103
111
|
What CI enforces on every push and pull request (`.github/workflows/ci.yml`): a `lint` job (ruff, mypy, the generated CLI reference in sync); a `test` matrix of Windows, Linux and macOS × Python 3.11–3.14 in which **every cell gates**; a `security` job that runs the same aramid pre-commit and pre-push gates as the local hooks (gitleaks, semgrep, ruff security rules, the repo-root shadow check, mypy, the suite) and asserts from the gate's JSON report that each scanner actually ran; the `coverage` floor; a `benchmark` job against the synthetic corpus; and an `artifact` job that builds the distribution twice and requires byte-identical results. The local git hooks are installed by `aramid` from the committed `aramid.toml`; do not push with `--no-verify`.
|
|
104
112
|
|
|
105
113
|
Doctor changes require focused tests for stable doctor JSON, deterministic ordering, redaction, end-to-end deadlines, process cleanup, missing tools, and optional semantics. Cover both successful and adversarial outcomes. Cross-platform behavior must have Windows and POSIX coverage; use narrowly scoped platform skips only when an operating-system primitive truly has no counterpart, and test the portable contract on every platform.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: graphite-code
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.0
|
|
4
4
|
Summary: Local-first, zero-LLM knowledge graph extraction for codebases.
|
|
5
5
|
Project-URL: Homepage, https://github.com/jared0565/graphite
|
|
6
6
|
Project-URL: Repository, https://github.com/jared0565/graphite
|
|
@@ -37,6 +37,7 @@ Provides-Extra: dev
|
|
|
37
37
|
Requires-Dist: mypy>=1.14; extra == 'dev'
|
|
38
38
|
Requires-Dist: pytest-cov>=5.0; extra == 'dev'
|
|
39
39
|
Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
|
|
40
|
+
Requires-Dist: pytest-xdist>=3.5; extra == 'dev'
|
|
40
41
|
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
41
42
|
Requires-Dist: ruff>=0.5; extra == 'dev'
|
|
42
43
|
Provides-Extra: local-llm
|
|
@@ -48,7 +49,7 @@ Description-Content-Type: text/markdown
|
|
|
48
49
|
|
|
49
50
|
Local-first, deterministic knowledge graph extraction for codebases — zero-LLM, daemon-maintained, agent-agnostic.
|
|
50
51
|
|
|
51
|
-
**Status: 1.
|
|
52
|
+
**Status: 1.7.0, production/stable.** Published on PyPI as
|
|
52
53
|
[`graphite-code`](https://pypi.org/project/graphite-code/) with PEP 740
|
|
53
54
|
attestations; supported on Windows, Linux and macOS with Python 3.11–3.14
|
|
54
55
|
(every cell gates CI). What 1.x promises — CLI, JSON outputs, `graph.json`,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Local-first, deterministic knowledge graph extraction for codebases — zero-LLM, daemon-maintained, agent-agnostic.
|
|
4
4
|
|
|
5
|
-
**Status: 1.
|
|
5
|
+
**Status: 1.7.0, production/stable.** Published on PyPI as
|
|
6
6
|
[`graphite-code`](https://pypi.org/project/graphite-code/) with PEP 740
|
|
7
7
|
attestations; supported on Windows, Linux and macOS with Python 3.11–3.14
|
|
8
8
|
(every cell gates CI). What 1.x promises — CLI, JSON outputs, `graph.json`,
|
|
@@ -116,7 +116,18 @@ mcp = ["mcp>=1.0,<3"]
|
|
|
116
116
|
# here because that job installs `[dev]`, and a `--timeout` flag without the
|
|
117
117
|
# plugin is an unknown-argument error -- which would turn a hang into a
|
|
118
118
|
# different silent failure rather than naming it. See #45.
|
|
119
|
-
|
|
119
|
+
# `pytest-xdist` runs the suite across processes. It is here because the
|
|
120
|
+
# suite is WAIT-bound, not CPU-bound: the channel tests alone spend about
|
|
121
|
+
# 760s mostly sleeping on locks and broker round trips, so serial execution
|
|
122
|
+
# pays for nothing. 6 workers is this machine's physical core count.
|
|
123
|
+
dev = [
|
|
124
|
+
"pytest>=8.0",
|
|
125
|
+
"ruff>=0.5",
|
|
126
|
+
"pytest-timeout>=2.3",
|
|
127
|
+
"pytest-cov>=5.0",
|
|
128
|
+
"pytest-xdist>=3.5",
|
|
129
|
+
"mypy>=1.14",
|
|
130
|
+
]
|
|
120
131
|
|
|
121
132
|
# Without these the package advertises no way back to its own source. A
|
|
122
133
|
# distribution page with no repository link is the shape a typosquat has, and it
|
|
@@ -38,4 +38,4 @@ __all__ = ["__version__"]
|
|
|
38
38
|
#: Coarse and hand-maintained by construction. It is a release label, not
|
|
39
39
|
#: evidence that a given fix is present -- to answer that, survey for the marker
|
|
40
40
|
#: the fix introduced, or compare `graphite --version` fingerprints.
|
|
41
|
-
__version__ = "1.
|
|
41
|
+
__version__ = "1.7.0"
|
|
@@ -783,6 +783,7 @@ def cmd_check(args: argparse.Namespace) -> int:
|
|
|
783
783
|
if not args.json:
|
|
784
784
|
raise ValueError(_below_a_root(root, top))
|
|
785
785
|
status: dict[str, Any] = {
|
|
786
|
+
"schema_version": 1,
|
|
786
787
|
"stale": True,
|
|
787
788
|
"reason": "below_repository_root",
|
|
788
789
|
"repository_root": top.as_posix() if trusted_root(top) else None,
|
|
@@ -799,6 +800,7 @@ def cmd_check(args: argparse.Namespace) -> int:
|
|
|
799
800
|
cfg = _project_scoped_config(args, root, canonical=True)
|
|
800
801
|
status = check_graph_freshness(root, cfg, ignore_engine=args.ignore_engine)
|
|
801
802
|
if args.json:
|
|
803
|
+
status["schema_version"] = 1
|
|
802
804
|
status["resolution_health"] = persisted_resolution(
|
|
803
805
|
root,
|
|
804
806
|
on_error=lambda exc: record_incident(
|
|
@@ -1288,7 +1290,7 @@ def cmd_validate(args: argparse.Namespace) -> int:
|
|
|
1288
1290
|
return 1
|
|
1289
1291
|
report = validate_graph_bundle(bundle)
|
|
1290
1292
|
if args.json:
|
|
1291
|
-
print(json.dumps(report, ensure_ascii=False, indent=2))
|
|
1293
|
+
print(json.dumps({"schema_version": 1, **report}, ensure_ascii=False, indent=2))
|
|
1292
1294
|
else:
|
|
1293
1295
|
if report["ok"]:
|
|
1294
1296
|
print(
|
|
@@ -2021,6 +2023,18 @@ def cmd_daemon_status(args: argparse.Namespace) -> int:
|
|
|
2021
2023
|
more_hint=" — use --json for the full list",
|
|
2022
2024
|
):
|
|
2023
2025
|
print(line)
|
|
2026
|
+
# A project the daemon could not snapshot is not in `projects` -- it
|
|
2027
|
+
# never entered the supervised set -- but it is a project the daemon
|
|
2028
|
+
# is failing to maintain, so it is named here too (#113).
|
|
2029
|
+
failures = status.get("snapshot_failures", [])
|
|
2030
|
+
for line in listing_lines(
|
|
2031
|
+
failures if isinstance(failures, list) else [],
|
|
2032
|
+
lambda f: f"{f.get('root')} | snapshot failed: {f.get('error')}",
|
|
2033
|
+
cap=_DAEMON_STATUS_PROJECT_CAP,
|
|
2034
|
+
empty=None,
|
|
2035
|
+
more_hint=" — use --json for the full list",
|
|
2036
|
+
):
|
|
2037
|
+
print(line)
|
|
2024
2038
|
return 0
|
|
2025
2039
|
|
|
2026
2040
|
|
|
@@ -2036,7 +2050,7 @@ def cmd_daemon_health(args: argparse.Namespace) -> int:
|
|
|
2036
2050
|
)
|
|
2037
2051
|
report = evaluate_daemon_health(base, state_dir=state_dir, options=options)
|
|
2038
2052
|
if args.json:
|
|
2039
|
-
print(json.dumps(report, ensure_ascii=False, indent=2))
|
|
2053
|
+
print(json.dumps({"schema_version": 1, **report}, ensure_ascii=False, indent=2))
|
|
2040
2054
|
else:
|
|
2041
2055
|
print(format_health_text(report), end="")
|
|
2042
2056
|
return 1 if args.fail_on_error and not report["ok"] else 0
|
|
@@ -164,6 +164,74 @@ class BuildResult:
|
|
|
164
164
|
return self.returncode == buildlock.REFUSED_EXIT_STATUS
|
|
165
165
|
|
|
166
166
|
|
|
167
|
+
_MAX_CAUSE_DEPTH = 5
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def _exception_identity(exc: BaseException) -> str:
|
|
171
|
+
"""One exception's path-free identity.
|
|
172
|
+
|
|
173
|
+
A `GitError` carries its own: `diagnostic()` names the class, the step
|
|
174
|
+
that failed and the errno, and is built from fixed tokens and an integer
|
|
175
|
+
so no path and no Git text can ride along. Every other exception
|
|
176
|
+
contributes its class name and nothing else -- the message may name a
|
|
177
|
+
path, and the class is what separates the causes.
|
|
178
|
+
|
|
179
|
+
An exception that is not a `GitError` may still know its own identity:
|
|
180
|
+
anything offering `diagnostic()` is asked for it, on the same contract
|
|
181
|
+
-- fixed tokens, no path, no message text. `IngestEnumerationError` is
|
|
182
|
+
the second class that offers one, and it is what separates the ways
|
|
183
|
+
enumerating a repository can fail. Asking rather than isinstance-ing
|
|
184
|
+
keeps the daemon from having to know where the exception came from.
|
|
185
|
+
"""
|
|
186
|
+
diagnostic = getattr(exc, "diagnostic", None)
|
|
187
|
+
if callable(diagnostic):
|
|
188
|
+
return str(diagnostic())
|
|
189
|
+
return type(exc).__name__
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def describe_exception_chain(exc: BaseException) -> str:
|
|
193
|
+
"""An exception and whatever caused it, in one path-free line.
|
|
194
|
+
|
|
195
|
+
`str(exc)` says WHAT failed and not WHY, and for the daemon's snapshot
|
|
196
|
+
path that difference is the whole diagnosis: seven distinct sites raise
|
|
197
|
+
`GitLaunchError` inside `_run_bounded` alone, and only its step token
|
|
198
|
+
and errno separate them. On 2026-10-27 the daemon failed every snapshot
|
|
199
|
+
of an activated repository for thirteen minutes and the log could not
|
|
200
|
+
say why -- the cause was in the exception's chain, and the chain was
|
|
201
|
+
discarded.
|
|
202
|
+
"""
|
|
203
|
+
parts: list[str] = []
|
|
204
|
+
seen: set[int] = set()
|
|
205
|
+
current: BaseException | None = exc
|
|
206
|
+
while current is not None and len(parts) < _MAX_CAUSE_DEPTH and id(current) not in seen:
|
|
207
|
+
seen.add(id(current))
|
|
208
|
+
parts.append(_exception_identity(current))
|
|
209
|
+
current = current.__cause__
|
|
210
|
+
return " <- ".join(parts)
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
@dataclass(frozen=True)
|
|
214
|
+
class SnapshotFailure:
|
|
215
|
+
"""An activated project the daemon could not snapshot (#113).
|
|
216
|
+
|
|
217
|
+
Kept out of the supervised set on purpose. A project with no snapshot has
|
|
218
|
+
no change set to diff and nothing to build, so putting it there would
|
|
219
|
+
make the build path act on an empty one. It is reported instead: a
|
|
220
|
+
failure that is only in the log is a failure nobody sees.
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
root: Path
|
|
224
|
+
error: str
|
|
225
|
+
failed_at: str = field(default_factory=utc_now)
|
|
226
|
+
|
|
227
|
+
def to_status(self) -> dict[str, object]:
|
|
228
|
+
return {
|
|
229
|
+
"root": str(self.root),
|
|
230
|
+
"error": self.error,
|
|
231
|
+
"failed_at": self.failed_at,
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
167
235
|
@dataclass
|
|
168
236
|
class ProjectRuntime:
|
|
169
237
|
root: Path
|
|
@@ -527,23 +595,30 @@ def _write_status(
|
|
|
527
595
|
options: DaemonOptions,
|
|
528
596
|
cycle: int,
|
|
529
597
|
provider_lifecycle: dict[str, object] | None = None,
|
|
598
|
+
snapshot_failures: dict[Path, SnapshotFailure] | None = None,
|
|
530
599
|
) -> dict[str, object]:
|
|
600
|
+
failures = list((snapshot_failures or {}).values())
|
|
531
601
|
projects = [state.to_status() for _, state in sorted(states.items(), key=lambda item: str(item[0]).lower())]
|
|
532
602
|
healthy = sum(1 for state in states.values() if state.last_error is None and not state.needs_initial_build)
|
|
533
|
-
|
|
603
|
+
# A project whose snapshot failed is a project the daemon is failing to
|
|
604
|
+
# maintain, so it counts as failing -- it was activated, and no graph is
|
|
605
|
+
# being kept for it (#113).
|
|
606
|
+
failing = sum(1 for state in states.values() if state.last_error is not None) + len(failures)
|
|
534
607
|
pending = sum(1 for state in states.values() if state.needs_initial_build)
|
|
535
608
|
payload: dict[str, object] = {
|
|
536
609
|
"status": "ok" if failing == 0 else "degraded",
|
|
537
610
|
"updated_at": utc_now(),
|
|
538
611
|
"base_path": str(base),
|
|
539
612
|
"cycle": cycle,
|
|
540
|
-
"project_count": len(projects),
|
|
613
|
+
"project_count": len(projects) + len(failures),
|
|
541
614
|
"healthy_projects": healthy,
|
|
542
615
|
"failing_projects": failing,
|
|
543
616
|
"pending_projects": pending,
|
|
544
617
|
# Repositories currently open in a coding agent -- the whole supervised
|
|
545
|
-
# set. An unopened repo is absent by construction, not by pruning.
|
|
546
|
-
|
|
618
|
+
# set. An unopened repo is absent by construction, not by pruning. A
|
|
619
|
+
# repo the daemon cannot snapshot is open but unsupervised, so it
|
|
620
|
+
# belongs here too (#113).
|
|
621
|
+
"active_projects": sorted(str(root) for root in set(states) | set(snapshot_failures or {})),
|
|
547
622
|
"limits": {
|
|
548
623
|
"scan_interval_seconds": options.scan_interval_seconds,
|
|
549
624
|
"discover_interval_seconds": options.discover_interval_seconds,
|
|
@@ -555,6 +630,10 @@ def _write_status(
|
|
|
555
630
|
"build_timeout_seconds": options.build_timeout_seconds,
|
|
556
631
|
},
|
|
557
632
|
"projects": projects,
|
|
633
|
+
"snapshot_failures": [
|
|
634
|
+
failure.to_status()
|
|
635
|
+
for failure in sorted(failures, key=lambda item: str(item.root).lower())
|
|
636
|
+
],
|
|
558
637
|
}
|
|
559
638
|
if provider_lifecycle is not None:
|
|
560
639
|
payload["provider_lifecycle"] = provider_lifecycle
|
|
@@ -627,6 +706,11 @@ def run_daemon(
|
|
|
627
706
|
provider_worker.start()
|
|
628
707
|
|
|
629
708
|
states: dict[Path, ProjectRuntime] = {}
|
|
709
|
+
# Projects that are activated but whose snapshot failed. They are NOT in
|
|
710
|
+
# `states` -- there is no snapshot to diff or build -- but they are
|
|
711
|
+
# reported, because a failure that only reaches the log is a failure
|
|
712
|
+
# nobody acts on (#113).
|
|
713
|
+
snapshot_failures: dict[Path, SnapshotFailure] = {}
|
|
630
714
|
last_discovery = 0.0
|
|
631
715
|
last_status: dict[str, object] = {}
|
|
632
716
|
cycle = 0
|
|
@@ -649,8 +733,21 @@ def run_daemon(
|
|
|
649
733
|
project_cfg = daemon_config_for_project(cfg, project, options)
|
|
650
734
|
snap = snapshot(project, project_cfg)
|
|
651
735
|
except Exception as exc:
|
|
652
|
-
|
|
736
|
+
# The error is kept, not just logged: the report has to
|
|
737
|
+
# be able to say WHY the graph is not being maintained
|
|
738
|
+
# (#113).
|
|
739
|
+
snapshot_failures[project] = SnapshotFailure(
|
|
740
|
+
root=project,
|
|
741
|
+
error=str(exc).strip() or type(exc).__name__,
|
|
742
|
+
)
|
|
743
|
+
logger.event(
|
|
744
|
+
"project_snapshot_failed",
|
|
745
|
+
project=str(project),
|
|
746
|
+
error=str(exc),
|
|
747
|
+
cause=describe_exception_chain(exc),
|
|
748
|
+
)
|
|
653
749
|
continue
|
|
750
|
+
snapshot_failures.pop(project, None)
|
|
654
751
|
states[project] = ProjectRuntime(
|
|
655
752
|
root=project,
|
|
656
753
|
snapshot=snap,
|
|
@@ -663,6 +760,9 @@ def run_daemon(
|
|
|
663
760
|
if project not in discovered:
|
|
664
761
|
logger.event("project_deactivated", project=str(project))
|
|
665
762
|
del states[project]
|
|
763
|
+
for project in list(snapshot_failures):
|
|
764
|
+
if project not in discovered:
|
|
765
|
+
del snapshot_failures[project]
|
|
666
766
|
|
|
667
767
|
# An engine upgrade invalidates every supervised graph at once, but
|
|
668
768
|
# the file-diff path cannot see it: a repo whose files are untouched
|
|
@@ -718,7 +818,12 @@ def run_daemon(
|
|
|
718
818
|
except Exception as exc:
|
|
719
819
|
state.last_error = str(exc)
|
|
720
820
|
state.failure_count += 1
|
|
721
|
-
logger.event(
|
|
821
|
+
logger.event(
|
|
822
|
+
"project_scan_failed",
|
|
823
|
+
project=str(project),
|
|
824
|
+
error=str(exc),
|
|
825
|
+
cause=describe_exception_chain(exc),
|
|
826
|
+
)
|
|
722
827
|
# Failures before a build is attempted (git enumeration,
|
|
723
828
|
# snapshotting, watcher errors) never reached the incident
|
|
724
829
|
# writer, so they were durable only in status.json, which ages
|
|
@@ -774,6 +879,7 @@ def run_daemon(
|
|
|
774
879
|
options,
|
|
775
880
|
cycle,
|
|
776
881
|
None if provider_worker is None else provider_worker.snapshot(),
|
|
882
|
+
snapshot_failures,
|
|
777
883
|
)
|
|
778
884
|
if options.once:
|
|
779
885
|
if provider_worker is not None:
|