fix: restore real skip-list defaults in scan_config.yaml#127
Merged
Conversation
Commit d313677 (2026-04-25) bundled config/scan_config.yaml inside project-tracker to drop the cross-project dependency on project-scaffolding, but shipped it with empty skip_dirs / skip_files / skip_patterns / ignore_projects / protected_projects. Every graph rebuild for the past two weeks ingested vendored deps (venv, .venv, node_modules, .git), build output (dist, build, .next), and projects that were explicitly excluded (openclaw, dreamhost-backup, github-repos, etc.), collapsing the project graph from clean per-project galaxies into a single dense hairball. Populate the bundled YAML with the real defaults that were already working in project-scaffolding/config/scan_config.yaml. This completes the intent of d313677 — project-tracker is now genuinely self-contained for graph scanning, with no behavioural regression. After fix: - data/graph.json: 44 MB / hairball → 3.3 MB / 4,500 nodes / 8,241 edges with distinct project communities. - brain.db graph: 236,022 edges → 90,288 edges. - tests/test_config_and_cron_fallbacks.py regression tests pass. Closes #6060. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config/scan_config.yaml(bundled by commit d313677 on 2026-04-25) shipped with emptyskip_dirs/skip_files/skip_patterns/ignore_projects/protected_projects. The graph builder atscripts/discovery/graph_builder.py:54-58reads those lists; with them empty, every rebuild for ~2 weeks ingestedvenv/.venv/node_modules/.git, build output, and projects explicitly excluded from scans (openclaw, dreamhost-backup, github-repos, nanoclaw, etc.), collapsing the project graph into a single dense hairball.project-scaffolding/config/scan_config.yaml, completing the intent of d313677 (project-tracker self-contained for graph scanning) without behavioural regression.data/graph.json44 MB → 3.3 MB (4,500 nodes / 8,241 edges with clean project galaxies);brain.dbgraph 236,022 edges → 90,288 edges.Test plan
tests/test_config_and_cron_fallbacks.py::test_graph_builder_uses_bundled_scan_config_without_warningpasses (no "Config not found" warning, CONFIG_PATH is bundled and exists).tests/test_config_and_cron_fallbacks.py::test_config_runtime_defaults_are_project_tracker_localpasses (noproject-scaffoldingin runtime defaults).python -c "import yaml; c=yaml.safe_load(open('config/scan_config.yaml'))"→skip_dirs27 entries,ignore_projects7 entries (openclaw, dreamhost-backup, github-repos, kaperion, nanoclaw, writing, fci-plugins)../pt graph build --forceproduces healthy graph (90,288 edges, distinct project communities);data/graph.jsonrebuild produces clean galaxies as confirmed by visual diff against 2026-04-25 baseline screenshot.Related