Repository navigation
fix(review): focus a follow-up review on what was pushed, with the whole PR in view - #1368
Conversation
…the PR as context A follow-up review re-reviewed the whole PR at full depth. #735 fixed a base-merge leak in the incremental by making the three-dot PR diff the review surface and demoting the incremental to a numstat listing for the trivial-skip gate, so every non-trivial push bought a fresh whole-PR pass: on a consumer PR, a 7+/4- prose push was handed to the second pass as "merge-base -> head, core, cover every angle". The incremental is now the delta file `post` already writes for a push that lands mid-review: the same leak-free commit selection, with patches and the base-merge list, plus the line counts the trivial gate reads. One writer serves both cases, and the skill names those commits as the follow-up review's subject and the second pass's target, with the PR's three-dot diff as context. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ady PR A draft-mode review is the lighter pass. An incremental over it let the push before `ready_for_review` be reviewed on its own and approved; that review then stands at the head, so the queued `ready_for_review` run skips and the PR is never read in full. `last_substantive` now carries `draft_mode`, and `start` offers no incremental over one once the PR is ready. The delta's `base merge:` list also gains `--not <base>`, so a base that lands PRs as merge commits no longer lists each of its own merges for the reviewer to `--cc`. The skill names what a base merge itself changed as part of the push, and hands the second pass the incremental file rather than a ref range that would pull base churn back in. Co-Authored-By: Claude Fable 5.1 <[email protected]>
tend-agent
left a comment
There was a problem hiding this comment.
One finding, inline on references/re-targeting.md.
The reworded bullet keeps "the updated merged tree", but nothing updates that tree: _post fetches refs/pull/<n>/head and the base sha and never checks out, and the file's own suggestion-recomposition bullet states the consequence — "the workspace still holds the tree you reviewed, so disk gives you the old lines".
That was inert while the second pass was handed the merged tree as its own scope; it isn't now that the delta file is the diff. /tend-ci-runner:code-review's Angle A reads the enclosing function for each hunk and Angle C greps the call sites, both from disk — i.e. pre-delta content. So a finding the pushed commits fixed can be re-confirmed off the stale tree and posted against a head where it no longer exists, against "Findings the delta fixed drop out" in the same list.
…g the second pass
Bumps the generator to 0.2.15, syncs `uv.lock`, and adds the 0.2.15 changelog section. The release ships the restrict-updates ruleset requirement and the `AGENTS.override.md` pin (#1367), the follow-up review that focuses on the pushed commits (#1368), a rising bar for further fix rounds on PRs with no human author (#1366), #1365, #1362, and the setup-uv v10.2.0 bump (#1359, #1360). `uv run pytest` (1216 passed), the worker's vitest suite and typecheck, and every pre-commit hook pass on this commit. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Regenerates the nine `tend-*` workflows on tend 0.2.15, up from 0.2.14. Every job now pins `max-sixty/tend/[email protected]`, so merging adopts that release's agent behaviour as well as the YAML below. ## What changes for this repo **`tend check` holds branch protection to a ruleset the bot cannot bypass.** Required reviews alone no longer pass the `branch-protection:main` check: the bot holds write, so its own approval satisfies a review requirement on a pull request someone else opened, and it can then merge. A read it cannot decode is now a failed read rather than a pass — previously an unreadable protection response reported the check green without having verified anything. Leaf already carries the `Merge access` restrict-updates ruleset, so this check stays `PASS`; `tend check --fix` now offers to create that ruleset for any failing branch, not only for the specific "bot can still merge" message. **`tend-mention` measures its queue delay before checkout and `setup:`.** The delay step moved ahead of both, so the number it reports is the wait for the job to start rather than that wait plus however long this repo's `setup:` takes. Leaf's mention runs will report a smaller delay than before for the same actual queue time. **Reviews open with a finding.** A review body no longer spends its first lines restating where GitHub shows the verdict, a follow-up review focuses on what was pushed while keeping the whole PR in view, and each further fix round on a PR with no human author has to clear a higher bar before the bot pushes again. **Action pins.** `astral-sh/setup-uv` moves from v10.1.0 to v10.2.0 in the two workflows that set it up directly (`tend-mention`, `tend-notifications`). [Compare 0.2.14...0.2.15](max-sixty/tend@0.2.14...0.2.15) <details><summary>Upstream commits in this range</summary> - `chore: regenerate workflows with tend 0.2.14` (max-sixty/tend#1358) - `fix(review): say where GitHub shows a review's verdict, so the body opens with a finding` (max-sixty/tend#1362) - `fix(mention): compute the queue delay before checkout and setup` (max-sixty/tend#1365) - `fix(review): raise the bar for each further fix round on a PR with no human author` (max-sixty/tend#1366) - `Require a restrict-updates ruleset, pin AGENTS.override.md, and rewrite the security docs` (max-sixty/tend#1367) - `chore: bump setup-uv to v10.2.0` (max-sixty/tend#1359) - `chore: bump repo-local setup-uv and wrangler pins` (max-sixty/tend#1360) - `chore(token-usage): drop the stream-json artifact copy its own comment marked for removal` (max-sixty/tend#1361) - `fix(review): focus a follow-up review on what was pushed, with the whole PR in view` (max-sixty/tend#1368) - `chore: release 0.2.15` (max-sixty/tend#1369) The `AGENTS.override.md` pin in max-sixty/tend#1367 and the dropped stream-json artifact copy in max-sixty/tend#1361 have no effect here — the first applies to the Codex harness and the second to tend's own repository. </details> Co-authored-by: leaf-agent <[email protected]>
Regenerates the nine `tend-*.yaml` workflows with tend 0.2.15 (from 0.2.14). The version bump and the `astral-sh/setup-uv` pin (v10.1.0 → v10.2.0, in the `tend-mention` and `tend-notifications` preflight jobs) are mechanical; one step actually moves, in `tend-mention.yaml`. **`tend-mention` measures its queue delay before checkout and setup.** The "Compute queue delay" step used to run after `actions/checkout` and `./.github/actions/tend-setup`, so the number it recorded was the wait for the job to start *plus* the several minutes this repo's setup action takes to install the Rust toolchain and sandbox tools. It now runs first, and the delay reports the queue wait alone ([max-sixty/tend#1365](max-sixty/tend#1365)). Behavior that arrives inside the action rather than in these files, and that shows up in what the bot posts here: - **PR reviews lead with a finding.** A review body now opens with something actionable instead of restating the verdict GitHub already renders in its own header ([max-sixty/tend#1362](max-sixty/tend#1362)), and a follow-up review scopes itself to what the latest push changed while still reading the whole PR ([max-sixty/tend#1368](max-sixty/tend#1368)). - **Fewer self-directed fix rounds on bot PRs.** On a PR with no human author the review session applies its own findings; each further round now has to clear a higher bar, so a bot PR stops accumulating marginal follow-up commits ([max-sixty/tend#1366](max-sixty/tend#1366)). - **`AGENTS.override.md` joins the pinned instruction paths.** Codex reads it in preference to `AGENTS.md`, so on a PR-derived checkout it is now restored from the base commit alongside `CLAUDE.md`, `AGENTS.md`, `.claude/`, and `.agents/` — a fork can no longer reach the session through that filename. The same release makes a restrict-updates ruleset a `tend check` requirement; this repo already satisfies it (`tend check` passes every line today) ([max-sixty/tend#1367](max-sixty/tend#1367)). Full comparison: [0.2.14...0.2.15](max-sixty/tend@0.2.14...0.2.15). Co-authored-by: worktrunk-bot <[email protected]>
A follow-up review re-reviewed the whole PR at full depth. The session knew what was new — the preflight listed the commits pushed since its last review, and it read every earlier bot review — but used that only to skip trivial pushes and to dedup findings. Steps 3–5 read
gh pr diffand ran thecode-reviewsecond pass over the whole PR, so every non-trivial push bought a fresh whole-PR pass. On a consumer PR a 7+/4− prose push was handed to the second pass as "merge-base → head, core, cover every angle". A fresh pass over a few hundred lines nearly always finds something, which is the structural half of the self-review churn #1366 addressed from the other side, and it is what gives a human author new findings on already-reviewed code after every push.This was a side effect rather than a decision. Before #735 a follow-up read a two-endpoint compare of the new commits. That compare leaked base-branch churn after a
Merge main, and #735 fixed the leak by making the three-dot PR diff the review surface and cutting the incremental down to a--numstatlisting for the trivial-skip gate.The incremental is now the delta file
postalready writes when the head moves mid-review: the same leak-free commit selection (--no-merges,--not <base>), with each commit's patch and thebase merge:list, plus the line counts the trivial gate reads._write_deltaserves both cases and_write_incrementalis gone. The skill asks for a follow-up the way a person returning to a PR reviews it: the new commits get the close read, with the whole PR's diff and the earlier reviews in view — whether the push answers what was raised, and whether the PR still holds together with it in. Code the earlier review covered isn't audited line by line again, though a problem noticed in it still counts. The second pass is pointed at the new commits and handed the PR's diff and the earlier reviews as context;references/re-targeting.md's mid-review re-run does the same with its delta.Two fixes ride along, both found by reviewing what the narrower focus leans on. A draft-mode review no longer bases an incremental once the PR is ready: it was the lighter pass, and an incremental over it would let the push before
ready_for_reviewbe reviewed on its own and approved, after which the queuedready_for_reviewrun skips because a review already stands at the head. And the delta'sbase merge:list now excludes the base branch's own merge commits, which a repo landing PRs as merges would otherwise list one by one for the reviewer to--cc.What it gives up: the second look a full re-audit gave code no later push touches. A force-push or
ready_for_reviewstill gets a full review.No behavioural eval ran.
test_start_records_one_snapshot_and_prepares_the_incrementalnow asserts the patch is present and base churn absent, and two new tests cover the ride-along fixes; both fail without them.🤖 Generated with Claude Code