Skip to content

Fix GuideStar IGNORED_DIRECTORIES pointing at wrong config dict - #319

Merged
squid-protocol merged 1 commit into
mainfrom
fix/guidestar-ignored-directories-config
Jul 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/guidestar-ignored-directories-config

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

  • GuideStarLens._gs_config is bound to GUIDESTAR_CONFIG, which only defined MANIFEST_MAP, INTENT_BIASED_SECTORS, and EXEC_PREFIX_MAP — no IGNORED_DIRECTORIES key.
  • _calculate_documentation_coverage's dirs[:] pruning (guidestar_lens.py:472) reads self._gs_config.get("IGNORED_DIRECTORIES", set()), which therefore always fell back to an empty set, so the fix from Documentation-coverage scan doesn't prune os.walk, walks every file in node_modules/.git/etc. anyway #256 was silently a no-op and every scan walked node_modules, .git, vendor, build, etc.
  • Fixed by adding "IGNORED_DIRECTORIES": APERTURE_CONFIG["IGNORED_DIRECTORIES"] to GUIDESTAR_CONFIG's definition in gitgalaxy_config.py, giving a single source of truth instead of a second set that can drift.

Fixes #311

Test plan

  • python -m pytest tests/core_engine/test_guidestar_lens.py -q — 5 passed
  • python -m pytest tests/ -q — 778 passed, 1 xfailed

Fixes #311. GUIDESTAR_CONFIG never defined IGNORED_DIRECTORIES, so
_calculate_documentation_coverage's dirs[:] pruning always fell back to
an empty set and silently scanned node_modules, .git, vendor, build,
etc. on every run. Reference APERTURE_CONFIG's set directly so there's
one source of truth instead of a second copy that can drift.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 25f8a35 into main Jul 23, 2026
22 checks passed
@squid-protocol
squid-protocol deleted the fix/guidestar-ignored-directories-config branch July 23, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GuideStar documentation-coverage ignore filter always empty -- reads IGNORED_DIRECTORIES from the wrong config dict

1 participant