Skip to content

feat(review): add /review deep so one finder's blind spots don't go unreviewed - #2299

Merged
akramcodez merged 12 commits into
Nano-Collective:feat/1287-grounded-reviewfrom
puri-adityakumar:review-1287/3-deep
Nov 25, 2026
Merged

akramcodez merged 12 commits into
Nano-Collective:feat/1287-grounded-reviewfrom
puri-adityakumar:review-1287/3-deep

Conversation

@puri-adityakumar

Copy link
Copy Markdown
Contributor

Description

Part 3 of 4 for #1287. Targets feat/1287-grounded-review and builds on part 2 (#2298), so please merge that first. Until #2297 and #2298 are merged, this diff also shows their 4 commits; the new work here is the last commit.

Problem. A single finder tends to look at a change from one angle. It often catches crashes but misses misused APIs, broken project conventions, or code that does not do what the change says it should.

What this PR does. It adds /review deep, which runs three finders over the same pinned revision, each with its own focus:

  1. bugs,
  2. standards and API misuse,
  3. intent and spec (does the code do what the change claims).

Then:

  • Identical findings from different finders are merged (source/review/review-dedupe.ts).
  • The verifier from part 2 checks what is left, with the same citation rules, budgets and confidence bar. It covers every cited line before a second issue on the same line.
  • An unverified copy at a line that already has a verified finding is shown as a note, so it does not mark the review incomplete.
  • A finder that fails or hits its budget makes the review incomplete; the other finders' results still count.
  • The verify step moved out of run-grounded-review.ts into source/review/review-verify.ts, so /review and /review deep share it.
  • Docs: docs/features/review.md, docs/features/commands.md. Changeset: .changeset/deep-review.md.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Changeset

  • Added a changeset (pnpm changeset) describing this change for the changelog

Testing

Automated Tests

  • New features include passing tests in .spec.ts/tsx files
  • All existing tests pass (pnpm test:all completes successfully)
  • Tests cover both success and error scenarios

Run on macOS, Node 22:

  • test:format, test:lint, test:types, test:knip, build: pass.
  • test:ava: 11,429 pass, 38 fail. The same 38 fail on plain feat/1287-grounded-review in the same setup, so none come from this PR (34 in cli-value-flags.cli-integration with a React duplicate-key error, 2 --acp trust checks that need a trusted checkout, 2 auto-commit tests).

Manual Testing

  • Tested with Ollama
  • Tested with OpenRouter
  • Tested with OpenAI-compatible API
  • Tested MCP integration (if applicable)

GMI Cloud (zai-org/GLM-5.3-Flash) on the same fixture branch with four seeded bugs. /review deep ran 11 agents, 43 tool calls and 30 model calls, and verified 6 issues, including all four seeded bugs. It ended as "incomplete" because the 8-verification limit left one finding unverified, and the report says so.

One thing I noticed: the finders often describe the same bug in different words, and the merge step only joins exact matches. Those near-copies use up verifications, so deep reviews hit the 8-verification limit quite often. I left this alone here, but smarter merging could be a follow-up.

Live panel:

Deep review live panel

Report:

Deep review report, top

Deep review report, bottom

Checklist

  • If this was for an open issue, I was assigned to it
  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)
  • Appropriate logging added using structured logging (see CONTRIBUTING.md)

Logging: review steps go to the review activity store, as in part 2.

Part of #1287.

@akramcodez
akramcodez merged commit 86e7b1a into Nano-Collective:feat/1287-grounded-review Nov 25, 2026
akramcodez added a commit that referenced this pull request Nov 26, 2026
…CLI (#2417)

* feat(review): restore the review foundation that grounded /review builds on (#2297)

* feat(review): restore the review foundation

* fix(review): catch same-second worktree edits in review snapshots

* feat(review): ground /review findings in the code and verify each one (#2298)

* feat(review): restore the review foundation

* fix(review): catch same-second worktree edits in review snapshots

* feat(review): make grounded review the default /review

* fix(review): show incomplete reviews as incomplete in the activity line

* refactor(review): run review agents on the shared turn engine

* fix(review): keep offered text tool calls beside quoted markup and bound unknown context sizes

---------

Co-authored-by: akramcodez <[email protected]>

* feat(review): add /review deep so one finder's blind spots don't go unreviewed (#2299)

* feat(review): restore the review foundation

* fix(review): catch same-second worktree edits in review snapshots

* feat(review): make grounded review the default /review

* fix(review): show incomplete reviews as incomplete in the activity line

* feat(review): add /review deep with specialist finders

* refactor(review): run review agents on the shared turn engine

* fix(review): keep offered text tool calls beside quoted markup and bound unknown context sizes

* fix(review): share the diff size limit so deep review and the verifier bound unknown context sizes

---------

Co-authored-by: akramcodez <[email protected]>

* feat(review): let nanocoder review run in CI and pipes without a terminal (#2300)

* feat(review): restore the review foundation

* fix(review): catch same-second worktree edits in review snapshots

* feat(review): make grounded review the default /review

* fix(review): show incomplete reviews as incomplete in the activity line

* feat(review): add /review deep with specialist finders

* feat(review): run nanocoder review without a terminal

* refactor(review): run review agents on the shared turn engine

* fix(review): keep offered text tool calls beside quoted markup and bound unknown context sizes

* fix(review): share the diff size limit so deep review and the verifier bound unknown context sizes

* fix(review): keep the cancelled report and exit code when a headless review is interrupted

---------

Co-authored-by: akramcodez <[email protected]>

* fix(review): align review specs and docs with main after merge

* fix(review): strip ANSI in review specs so they pass with color forced on

* fix(review): stop headless quick review passing on empty or partial output

---------

Co-authored-by: Aditya Kumar Puri <[email protected]>
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.

2 participants