diff options
Diffstat (limited to 'docs/engineering/code-review.md')
| -rw-r--r-- | docs/engineering/code-review.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/engineering/code-review.md b/docs/engineering/code-review.md index 12283d7..5ffb0d1 100644 --- a/docs/engineering/code-review.md +++ b/docs/engineering/code-review.md @@ -1,6 +1,6 @@ ## What it does -`code-review` reviews the diff between `HEAD` and a fixed point you name (a commit, a branch, a tag, `main`, `HEAD~5`) along two axes. **Standards** asks whether the code follows how this repo writes code. **Spec** asks whether the code does what the originating issue or [spec](https://www.aihero.dev/ai-coding-dictionary/spec) asked for. Each axis runs in its own [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) so neither sees the other's reasoning. +`code-review` reviews the diff between your working tree and a fixed point you name (a commit, a branch, a tag, `main`, `HEAD~5`) along two axes. **Standards** asks whether the code follows how this repo writes code. **Spec** asks whether the code does what the originating issue or [spec](https://www.aihero.dev/ai-coding-dictionary/spec) asked for. Each axis runs in its own [sub-agent](https://www.aihero.dev/ai-coding-dictionary/subagent) so neither sees the other's reasoning. The skill never merges or re-ranks the two axes. The report ends with a worst issue *per axis* and declines to name a single winner across them. A change can pass one axis and fail the other. Code that follows every convention but implements the wrong thing passes Standards and fails Spec. Code that does exactly what the [ticket](https://www.aihero.dev/ai-coding-dictionary/ticket) asked but breaks the repo's conventions does the reverse. A blended verdict lets the passing axis hide the failing one. @@ -78,7 +78,7 @@ Each fix adds new code to review, and the judgement-call half of the Standards a **Does it review my uncommitted work?** -No. It diffs `<fixed-point>...HEAD`. The three-dot form measures from the merge-base and excludes staged and working-tree changes. If `implement` has not made an interim commit, the review cannot see the work that is about to go into the next commit. Commit first, then review, then amend or add a fixup. +Yes. It reviews everything since the merge-base with your fixed point: commits, staged and unstaged changes, and new files that git doesn't ignore. Unrelated edits in your working tree get reviewed too, so stash those first. ## It's working if |
