Repository navigation
fix: hygiene refs flags companion-workspace and run-output paths as dead - #584
Merged
Merged
Conversation
…output folders (#583) 16 of 19 refs findings in the 2026-11-04 sweep were false positives: HowTo prose pointing into its companion workspace, a sibling repo named on the same line, and folders a run creates (files/, cache/, cache_root/, work/) or a release generates (notebooks/). A reference dead in its own repo is now retried in those before it is reported; a path dead everywhere is still a finding. Co-Authored-By: Claude Opus 5.5 <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
In the 2026-11-04 sweep,
pyauto-brain hygiene refsreported 19 dead references, and 16 of them were false positives. The scanner now retries a reference that is dead in its own repo against the places it legitimately points to, before reporting it:scripts/interferometer/modeling.py". The pairing comes from the naming convention (HowTo<Name>toauto<name>_workspace), not a hard-coded list, so the tenant firewall stays clean. It only applies if that checkout exists.<project>_assistant'scolab/contexts.yaml".RUNTIME_DIRECTORIESaddsfiles,cache,cache_rootandwork. They are unresolvable, not dead, just likeoutputanddataset.notebooksis unresolvable in a checkout that doesn't commit it (generated at release).A path that is dead in its repo and in every alternative is still a finding.
Closes #583.
Tests
test_refs_checks_companion_workspace_and_named_sibling: references that resolve in the companion workspace or the named sibling aren't flagged, and a path dead in both still is.test_refs_treats_run_output_and_generated_folders_as_unresolvable.pytest tests/test_hygiene_*.pygives 88 passed.HowToDemoandautodemo_workspace.🤖 Generated with Claude Code