Repository navigation
Don't analyse CodeWiki's own output in the docs folder as repo code - #15
Merged
Merged
Conversation
`generate` copies validate_module_tree_ownership.py into the docs folder, and the next run parsed it as the user's code: about 17 extra functions in the graph (34 of 38 components in a small test repo), which could even get their own docs page. Caches under docs/temp were in scope too. The dependency analysis now skips <docs>/temp and <docs>/<validator> when the docs folder is inside the repo. Only those: the docs folder may hold the user's own files, and the script's real source elsewhere is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd
The wheel jobs run the tests from a copy outside the repo, where tests/../codewiki/templates/... does not exist (FileNotFoundError on Linux and Windows). The test is about which paths are skipped, so it now writes a small script under the helper's name instead of copying it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd
dandydarshan
force-pushed
the
fix/skip-own-docs-in-analysis
branch
from
November 7, 2026 01:53
cd57647 to
90fdafb
Compare
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
generatecopiesvalidate_module_tree_ownership.pyinto the docs folder, and the next run analysed it as the user's code. In a 4-component test repo, the graph after the second run had 38 components, 34 of them from that script. The extra functions inflate the graph and can get their own docs page, which costs LLM calls.The patterns are added only when the docs folder is inside the repo and isn't the repo root. They're deliberately narrow: the docs folder may also hold the user's own files (e.g. a Sphinx
conf.py), and the script's real source elsewhere in a repo must still be analysed. The filename moves tocodewiki/src/config.py, so the HTML generator and the analyser share one definition.Evidence
docs/validate_module_tree_ownership.py17 components,docs/b/validate_module_tree_ownership.py17,inventory/core.py4.test_codewikis_own_output_is_not_analysed_as_repo_code:Merge Danger
Door: two-way
Blast Radius: analysis scope
Repos documented before this change lose those helper components on their next
--update. If a page was generated for them, the updater treats them as deleted.🤖 Generated with Claude Code
https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd