Skip to content

docs(running-in-ci): scope PR-description claims to the merge base - #992

Merged
max-sixty merged 2 commits into
mainfrom
fix/issue-991
Aug 15, 2026
Merged

max-sixty merged 2 commits into
mainfrom
fix/issue-991

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

A review run reads its diff from LAST_REVIEW_SHA but edits a whole-PR artifact when it updates the description, and Keeping PR Titles and Descriptions Current never said which base a description claim is scoped to. So the increment's conclusion goes into the description as if it described the PR. On a long-lived branch — nightly's rolling tend/update-workflows PR, which accumulates a release per run — the two bases are several releases apart, and nothing catches the mismatch afterwards: a wrong description never turns a check red, and each later run re-anchors on a still-newer LAST_REVIEW_SHA. #991 traces three successive runs rewriting the same bullet from three different bases.

Solution

State the scope rule where the description edit happens, in running-in-ci: a description describes the whole PR, so scope behavior claims to the merge base, and when only the increment can be verified, name that base rather than writing an unscoped claim. review/SKILL.md gets a one-line pointer beside the incremental setup — the point where the wrong base enters context — rather than a second copy of the rule.

Testing

No test: the failure is prose the agent reads, not code. uvx pre-commit run --files <the two SKILL.md> passes (typos, trailing whitespace, the plugin-skill bang-backtick and reference-sync hooks).


Closes #991 — automated triage

A review run diffs LAST_REVIEW_SHA..HEAD but edits a whole-PR artifact,
so an increment-scoped behavior claim lands in the description as if it
described the PR. On a rolling regen PR the two bases are releases apart.

Closes #991

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rule and its placement look right, and the tend/update-workflows example holds for every adopter (nightly rebuilds that branch in each consumer repo), so it earns its place in a bundled skill. One issue with the recipe — inline.

…l HEAD

The merge-base recipe paired a PR-number query with the local HEAD, so it
only held when the session's checkout was that PR's head — which the
sessions that edit descriptions (review-runs, nightly) aren't. gh pr diff
is checkout-independent and already this repo's form of the same diff.
@max-sixty
max-sixty merged commit 286dbde into main Aug 15, 2026
9 checks passed
@max-sixty
max-sixty deleted the fix/issue-991 branch August 15, 2026 14:55
@max-sixty max-sixty mentioned this pull request Aug 16, 2026
max-sixty added a commit that referenced this pull request Aug 16, 2026
Bumps the generator to 0.1.18 and adds the CHANGELOG section the release
workflow publishes as the GitHub Release notes.

8 commits since 0.1.17. The two fixes: `repo-secret-allowlist` now
reports only the org secrets the repo can actually read, instead of
flagging every org secret as available to all workflows (#994); and both
halves of the 👀 reaction sit in one job on `tend-mention`, with a
paginated removal lookup (#990). Two bundled-skill changes go out with
them — `running-in-ci` scopes PR-description claims to the merge base
(#992), and tells a fork-PR session that no successor will pick up its
own review's findings (#985).

`uv run pytest` (564), the worker's vitest suite (31) and typecheck, and
`pre-commit run --all-files` all pass on the branch.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty pushed a commit to max-sixty/worktrunk that referenced this pull request Aug 17, 2026
Automated nightly regeneration of tend's workflow files, picking up tend
0.1.18.

**tend version:** 0.1.17 → 0.1.18

Notable changes:

- `tend-mention`: both halves of the 👀 reaction now live in the `handle`
job. Previously `verify` added the eyes and `handle` removed them, so a
burst of mentions on one thread could cancel a queued `handle` — which
allocates no runner and runs no steps, `always()` included — leaving the
reaction stranded (max-sixty/tend#990).
- `tend-review` / `tend-triage`: the eyes-removal lookup now paginates
(`--paginate`, `per_page=100`). A thread with more than 30 reactions
could push the bot's own eyes off the first page, so the removal
silently found nothing (max-sixty/tend#990).
- `tend check`: the secret audit now reports only org secrets this repo
can actually read, instead of every org secret (max-sixty/tend#994).
- `running-in-ci` skill: notes that fork PR reviews reach no successor
session, and scopes PR-description claims to the merge base
(max-sixty/tend#985, max-sixty/tend#992).

Full comparison:
max-sixty/tend@0.1.17...0.1.18

Co-authored-by: worktrunk-bot <[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.

running-in-ci: PR-description edits are scoped to the whole PR, but the run's diff is scoped to LAST_REVIEW_SHA

2 participants