feat(review): add .gittensory.yml review.exclude_paths (skip files from AI review)#1353
Merged
Conversation
…om AI review) (#review-exclude-paths)
A CodeRabbit-parity path filter: a maintainer lists globs whose matching files are excluded from the AI
maintainer review (diff + grounding + RAG) — generated/vendored/lockfiles they don't want reviewed:
review:
exclude_paths:
- "*.lock"
- "pnpm-lock.yaml"
- "dist/**"
- "*.generated.ts"
Config-only (manifest.review, no DB migration). It ONLY narrows the AI review — the gate, slop detector,
and secret scan still operate on the full unfiltered diff, so excluding a path can never weaken a blocker.
Empty (default) / no match ⇒ every file is reviewed (byte-identical).
- focus-manifest.ts: `excludePaths` on FocusManifestReviewConfig; parse review.exclude_paths (non-empty
strings, trimmed, capped at 50, per-entry warnings) + serialize; resolveReviewPromptOverrides now also
returns excludePaths; excludeReviewPaths(files, globs) filters via the manifest's matchesManifestPath
(empty globs ⇒ same array reference).
- processors.ts: resolve excludePaths from the cached manifest at the AI-review call site and filter the
resolved files inside runAiReviewForAdvisory (pure, no extra fetch) before building the diff.
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1353 +/- ##
=======================================
Coverage 95.30% 95.30%
=======================================
Files 189 189
Lines 20447 20466 +19
Branches 7374 7381 +7
=======================================
+ Hits 19486 19505 +19
Misses 378 378
Partials 583 583
🚀 New features to boost your workflow:
|
This was referenced Jun 25, 2026
feat(review): add .gittensory.yml review.pre_merge_checks (deterministic pre-merge assertions)
#1357
Merged
Closed
12 tasks
This was referenced Jul 2, 2026
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
A CodeRabbit-parity path filter (
path_filters): a.gittensory.ymlreview.exclude_pathslist of globs whose matching files are excluded from the AI maintainer review (diff + grounding + RAG) — generated/vendored/lockfiles a maintainer doesn't want reviewed.manifest.review, no DB migration / OpenAPI.matchesManifestPathglob semantics (note:*collapses to.*and crosses slashes, so*.lockmatches a top-level lockfile; that's why the examples use*.lock, not**/*.lock).Changes
focus-manifest.ts—excludePathsonFocusManifestReviewConfig; parsereview.exclude_paths(non-empty strings, trimmed, capped at 50, per-entry warnings) + serialize;resolveReviewPromptOverridesnow also returnsexcludePaths;excludeReviewPaths(files, globs)filters viamatchesManifestPath(empty globs ⇒ same array reference — provable no-op).processors.ts— resolveexcludePathsfrom the already-cached manifest at the AI-review call site; filter the resolved files insiderunAiReviewForAdvisory(pure, no extra fetch) before building the diff/grounding/RAG.No linked issue — a config-as-code review enhancement in the CodeRabbit-parity series (follows #1347
review.profile, #1350review.path_instructions).Scope
src/only — config parse + resolver + a pure file filter + threading; no migration/OpenAPI/bindingValidation
npm run test:ci— exit 0; 4343 tests passnpm audit --audit-level=moderate— 0 vulnerabilitiesfocus-manifest.ts,processors.ts) — incl. blank/non-string drop, non-array, cap, the round-trip, and both filter branches (match / empty-globs no-op)excludeReviewPaths(filter / no-match / empty);resolveReviewPromptOverridescarriesexcludePathsSafety