#13N_PLUS_ONE now raises one finding per unit of work. Repeat patterns are grouped by (unitKind, unitName), pods and windows are aggregated per statement shape before the thresholds apply, findings dedupe on rule + unit, and the evidence lists the top 5 repeated shapes (table, repeats, normalized SQL) plus a count of the rest. Existing per-shape findings close as "No longer detected" on the next analysis.
#14 New NumberText formats counts with grouping or K/M/B suffixes, percentages to one decimal and sizes in MB, with no scientific notation. Every rule's evidence table goes through it. MISSING_INDEX now names its candidate columns in the summary.
#15AttributionListener names statements that have no UnitOfWork instead of using one (none) bucket. Order: reported process, then the outermost process or backend step on the action stack (process:<name>), then the thread name with numbers collapsed (thread:alerts-worker-#), then (none). The unit kind stays OTHER, and names are bounded so attribution_max_keys still holds. Opening real units in core for durable job chunks, the health runner and alerts workers remains a core change.
Tests
StoredRuleTest: repeatsGroupByUnitNotByStatementShape and summariesAreHumanReadable (new). It also asserts that no rule emits scientific notation.
NumberTextTest (new).
AttributionTest: fallbackNamesStatementsWithoutAUnitOfWork and threadPatterns (new); the existing (none) assertions now use the thread pattern.
./mvnw verify passes: checkstyle, 135 tests and the JaCoCo gate.
## Summary
- **#13** `N_PLUS_ONE` now raises one finding per unit of work. Repeat patterns are grouped by `(unitKind, unitName)`, pods and windows are aggregated per statement shape before the thresholds apply, findings dedupe on rule + unit, and the evidence lists the top 5 repeated shapes (table, repeats, normalized SQL) plus a count of the rest. Existing per-shape findings close as "No longer detected" on the next analysis.
- **#14** New `NumberText` formats counts with grouping or K/M/B suffixes, percentages to one decimal and sizes in MB, with no scientific notation. Every rule's evidence table goes through it. `MISSING_INDEX` now names its candidate columns in the summary.
- **#15** `AttributionListener` names statements that have no `UnitOfWork` instead of using one `(none)` bucket. Order: reported process, then the outermost process or backend step on the action stack (`process:<name>`), then the thread name with numbers collapsed (`thread:alerts-worker-#`), then `(none)`. The unit kind stays `OTHER`, and names are bounded so `attribution_max_keys` still holds. Opening real units in core for durable job chunks, the health runner and alerts workers remains a core change.
## Tests
- `StoredRuleTest`: `repeatsGroupByUnitNotByStatementShape` and `summariesAreHumanReadable` (new). It also asserts that no rule emits scientific notation.
- `NumberTextTest` (new).
- `AttributionTest`: `fallbackNamesStatementsWithoutAUnitOfWork` and `threadPatterns` (new); the existing `(none)` assertions now use the thread pattern.
- `./mvnw verify` passes: checkstyle, 135 tests and the JaCoCo gate.
Fixes #13
Fixes #14
Fixes #15
🤖 Generated with [Claude Code](https://claude.com/claude-code)
- N_PLUS_ONE groups repeat patterns by (unitKind, unitName), dedupes on
rule + unit and lists the top 5 repeated statement shapes as evidence (#13)
- NumberText: grouping / K,M,B suffixes, one-decimal percentages, no
scientific notation in rule summaries and evidence; MISSING_INDEX names
its candidate columns (#14)
- AttributionListener names statements without a UnitOfWork by reported
process, outermost process on the action stack, then thread-name pattern
instead of one anonymous (none) bucket (#15)
Fixes#13Fixes#14Fixes#15
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
N_PLUS_ONEnow raises one finding per unit of work. Repeat patterns are grouped by(unitKind, unitName), pods and windows are aggregated per statement shape before the thresholds apply, findings dedupe on rule + unit, and the evidence lists the top 5 repeated shapes (table, repeats, normalized SQL) plus a count of the rest. Existing per-shape findings close as "No longer detected" on the next analysis.NumberTextformats counts with grouping or K/M/B suffixes, percentages to one decimal and sizes in MB, with no scientific notation. Every rule's evidence table goes through it.MISSING_INDEXnow names its candidate columns in the summary.AttributionListenernames statements that have noUnitOfWorkinstead of using one(none)bucket. Order: reported process, then the outermost process or backend step on the action stack (process:<name>), then the thread name with numbers collapsed (thread:alerts-worker-#), then(none). The unit kind staysOTHER, and names are bounded soattribution_max_keysstill holds. Opening real units in core for durable job chunks, the health runner and alerts workers remains a core change.Tests
StoredRuleTest:repeatsGroupByUnitNotByStatementShapeandsummariesAreHumanReadable(new). It also asserts that no rule emits scientific notation.NumberTextTest(new).AttributionTest:fallbackNamesStatementsWithoutAUnitOfWorkandthreadPatterns(new); the existing(none)assertions now use the thread pattern../mvnw verifypasses: checkstyle, 135 tests and the JaCoCo gate.Fixes #13
Fixes #14
Fixes #15
🤖 Generated with Claude Code