Conversation
Bortlesboat
reviewed
Oct 1, 2026
Bortlesboat
left a comment
There was a problem hiding this comment.
Tested 79bf5acb217ca94815c5cdacb8951b1b43891a79 with GNU grep in Git Bash on Windows, including POSIX shell mode.
The original command returned 10 fixture markers; this version returned exactly the 4 source markers. Both root and nested .git/dependency/build exclusions behave as intended. A source path containing spaces and a similarly named build-tools directory remain searchable; ordinary prose mentioning ponytail: does not become a ledger row.
No issue found in this change. This validates the scan command, not an agent's subsequent ledger generation.
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.
Fixes #948.
The
/ponytail-debtscan says it skips Git metadata, dependencies, and build output, but itsgrep -rcommand descended into all four directories. This adds explicit GNU grep exclusions for.git,node_modules,dist, andbuild, preventing third-party or generated markers from polluting the ledger and reducing unnecessary scanning. Separate flags also work without shell brace expansion.Verification: In a fixture with markers in
.git/config,node_modules/vendor.js, andsrc.js, the original command returned all three. The updated command returned onlysrc.js.git diff --checkpassed.