feat(review): add review.max_findings display caps for blockers/nits (#2049) - #3783
Conversation
…SONbored#2049) Parse review.max_findings in the focus manifest and truncate unified-comment blocker/nit sections with a deterministic +N more footer. Gate logic unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
|
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 #3783 +/- ##
=======================================
Coverage 93.30% 93.30%
=======================================
Files 317 317
Lines 32377 32403 +26
Branches 11873 11887 +14
=======================================
+ Hits 30208 30234 +26
Misses 1537 1537
Partials 632 632
🚀 New features to boost your workflow:
|
…ONbored#2049) Add render, serialize, buildUnifiedReviewInput, and queue integration tests for review.max_findings display caps; always pass manifest caps from the processor so the wiring line is exercised on every unified-comment publish. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-06 10:01:06 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Closes #2049
Summary
review.max_findings.{blockers,nits}in the focus manifest and wire caps through the unified-comment render path.+N morefooter; gate logic is unchanged (display-only)..gittensory.yml.exampleandconfig/examples/gittensory.full.yml(kept in sync).Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.md.help wanted,gittensor:feature).Validation
git diff --checknpm run typechecknpm run test:coverage -- test/unit/focus-manifest.test.ts test/unit/unified-comment.test.ts test/unit/unified-comment-bridge.test.ts test/unit/config-templates.test.ts test/unit/queue.test.ts -t "max_findings|maxFindings|truncates unified-comment blockers"(targeted regression + queue wiring)npm audit --audit-level=moderate(0 vulnerabilities)Skipped (not touched by this diff):
npm run actionlint,npm run test:workers,npm run build:mcp,npm run test:mcp-pack, UI toolchain — no workflow/MCP/UI paths changed.codecov/patchapplies to changedsrc/**lines/branches (≥99% target). Added unit + queue integration tests for cap=0 render, under-cap, partial manifest round-trip,buildUnifiedReviewInputforwarding, and processor wiring.Safety
UI Evidence
N/A — backend review-comment rendering only; no visible UI changes.
Notes
YAML template paths are covered by
config-templates.test.ts. Processor always forwards manifest caps (null caps are no-ops in the renderer, byte-identical to unset).