Skip to content

fix: limit unmanaged target scans to pattern roots#8

Merged
shpoont merged 1 commit intomainfrom
fix/pattern-scoped-target-scan
Feb 18, 2026
Merged

fix: limit unmanaged target scans to pattern roots#8
shpoont merged 1 commit intomainfrom
fix/pattern-scoped-target-scan

Conversation

@shpoont
Copy link
Copy Markdown
Owner

@shpoont shpoont commented Feb 18, 2026

Summary

  • avoid full-home target walks when unmanaged discovery is enabled on broad targets (for example target: .)
  • derive literal scan roots from configured unmanaged patterns and scan only those subtrees
  • keep broad scans only for wildcard-first patterns that cannot be rooted
  • add tests for prefix extraction, scope overlap, unreadable sibling directories, and outside-root safety
  • update user docs to explain rooted scanning behavior

Validation

  • go test ./...
  • go test -tags=contract ./...
  • go test -tags=integration ./...
  • bash scripts/ci/run-static-checks.sh true
  • bash scripts/ci/run-tests.sh unit linux true
  • bash scripts/ci/run-tests.sh integration linux true
  • bash scripts/ci/run-tests.sh contract linux true
  • bash scripts/ci/coverage-aggregate.sh artifacts/coverage-unit.out artifacts/coverage-integration.out artifacts/coverage-contract.out artifacts/branch-metrics.json

@shpoont shpoont merged commit 17695eb into main Feb 18, 2026
8 checks passed
@shpoont shpoont deleted the fix/pattern-scoped-target-scan branch February 18, 2026 09:17
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.

1 participant