When the model omits a finding category, infer one deterministically from the finding body keywords and file path (e.g. test path → tests, security keywords → security), instead of a flat default. Pure heuristic function + tests; consumed by the parser default slice.
Deliverables
References
src/services/ai-review.ts:414
src/signals/path-matchers.ts:182
part of #1958
Part of #1958.
size: S · held for later release (gittensor:feature once activated)
When the model omits a finding category, infer one deterministically from the finding body keywords and file path (e.g. test path → tests, security keywords → security), instead of a flat default. Pure heuristic function + tests; consumed by the parser default slice.
Deliverables
inferFindingCategory(body: string, path: string): FindingCategoryusing keyword sets + path-matchers (src/signals/path-matchers.ts: isTestPath, isDocsFile, isConfigFile)References
src/services/ai-review.ts:414src/signals/path-matchers.ts:182part of #1958Part of #1958.
size: S · held for later release (gittensor:feature once activated)