Repository navigation
feat(review): add pinned review scopes, snapshots, and activity tracking - #1768
akramcodez merged 20 commits into
Conversation
…/1287-review-foundation
…/1287-review-foundation
…/1287-review-foundation
|
Thanks @puri-adityakumar, this is carefully built. Three small things:
No changes needed to merge this foundation as is; I'd like Will's sign-off on the design before it goes in. |
|
Thanks @addyCooks, really appreciate you testing on Windows and the careful read. My suggestions:
|
|
Thanks so much @puri-adityakumar,
For the third one, if it's not too much trouble, here are a few small suggestions:
Whenever you've pushed these, I'll happily take another look. Thanks again for the careful work on this. |
|
Thanks @addyCooks, pushed all three fixes (Windows symlink test skip, index copy warning, secret-looking untracked files left out with only names shown) and merged the latest main to clear the conflict. |
|
Thanks @puri-adityakumar, I re-checked this at 9f7c80c. Non-blocking, for you or the next PRs:
@will-lamerton, could you take a look at the overall design of the stack before this merges? |
|
Hi @puri-adityakumar, thanks for this PR! It looks like a maintainer has left feedback Whenever you get a chance, could you take a look at the open comments? |
|
Hi @puri-adityakumar, just a heads-up that this PR still has outstanding items If we don't hear back within about a week, we'll close it to keep the queue tidy. |
|
hello, @addyCooks @akramcodez any update on this ? |
|
Huge thanks @puri-adityakumar 🎉 |
source/review/ (pinned review scopes, snapshots, activity store and the ReviewActivity component) landed in #1768 as the first stage of a staged review rewrite. The next stage that would have wired it into /review never landed, so nothing outside its own specs imported it. Delete the module and component, and rewrite docs/features/review.md to document the /review command that actually ships instead of the staging plan. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
source/review/ (pinned review scopes, snapshots, activity store and the ReviewActivity component) landed in #1768 as the first stage of a staged review rewrite. The next stage that would have wired it into /review never landed, so nothing outside its own specs imported it. Delete the module and component, and rewrite docs/features/review.md to document the /review command that actually ships instead of the staging plan. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…ing (Nano-Collective#1768) * feat(review): add pinned review foundation * docs(review): define session trace follow-up * test(review): isolate review Git fixtures from host config * fix(review): identify credentialed HTTPS GitHub remotes * fix(review): discover untracked files from the repository root * fix(review): select recent commits along first-parent history * fix(review): accept www GitHub remote hostnames * test(review): isolate binary Git fixture from host configuration * refactor(review): simplify worktree snapshots and remote review refs * docs(review): name the next stage instead of a fork PR number * test(review): skip the symlink snapshot test on Windows * fix(review): report Git index copy failures instead of hiding them * fix(review): leave secret-looking untracked files out of worktree snapshots --------- Co-authored-by: Cursor Agent <[email protected]>
…2032) source/review/ (pinned review scopes, snapshots, activity store and the ReviewActivity component) landed in Nano-Collective#1768 as the first stage of a staged review rewrite. The next stage that would have wired it into /review never landed, so nothing outside its own specs imported it. Delete the module and component, and rewrite docs/features/review.md to document the /review command that actually ships instead of the staging plan. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Overview
The grounded review in the next PR lets agents read files and check their claims against the code. For that to be safe and honest, the target has to be settled before any model call: which commits, which files, and nothing that changes halfway through. Today
/reviewbuilds its diff on the fly. This PR adds the groundwork that resolves and pins a review target, plus the activity tracking the live view will use. None of it is connected to/reviewyet, so/reviewand/review quickbehave exactly as onmain. The next PR connects it.branch <name>, a remote branch, a PR number or URL,last N commits(optionallyon branch <name>), andworking tree. Anything else gets a usage hint instead of a guess.git add --allandgit write-treeagainst it, so the real index and files are never touched. Oversized files, too many files, or too much content fail the resolution instead of returning a partial scope.refs/nanocoder/review/and removed afterwards. Nothing is checked out.ghand model step goes into a bounded event store with secrets redacted. The activity view shows a one-line summary,dfor details, and Esc to cancel. It's tested here and appears in/reviewfrom the next PR.execGitandexecGhdecoded each stdout chunk on its own, which can break a multi-byte UTF-8 character split across two chunks. They now collect the bytes and decode once, and accept an abort signal.execGitBufferreturns raw bytes for snapshots./reviewon the same fixture repo and model (Groqopenai/gpt-oss-20b). The findings are worded differently because the model's output varies from run to run; the scope line, layout and footer are the same.mainTry it
/reviewand/review quickare unchanged. The new code runs through its tests:Testing
main: 9,409 pass. The only 2 failures are macOS temp-path tests ingh-pr-worktree.spec.tsthat also fail onmain. Line coverage is 94.19% (mainbadge 94.2%)./reviewand/review quick mainshow the same scope, layout and footer asmainFindings
git gc.