Skip to content

docs(running-in-ci): fork PR reviews reach no successor session - #985

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

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

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

Two sections of running-in-ci rest on a premise that fails on fork PRs. "A review that lands while you poll is not yours to action" justifies leaving a review alone with "tend-mention is dispatched on pull_request_review for every PR the bot authored" — but the relay job is gated on github.event.pull_request.head.repo.full_name == github.repository (mention.yaml.j2:92-95), so a review on a fork PR dispatches nothing. The fallback that gate's comment names — the notifications poll — can't see it either, since GitHub doesn't notify an actor of their own activity. And Recheck Before Posting specifies --json comments,reviews without saying why reviews has to stay, so sessions narrow it to comments and never see their own review land.

Reported in #984 with two occurrences on one fork PR in a 24h window: bot review findings sat unaddressed for 3h53m and 3h29m, recovered only because unrelated human comments woke later sessions.

Solution

Two paragraphs of skill text, no workflow change — the fork filter is a security boundary, and widening it is moot anyway while a fork run's token is refused the dispatch POST (per the same comment block).

  • In "A review that lands while you poll is not yours to action": state that the premise fails on a fork PR and nothing succeeds you, so a session that pushed the commits under a maintainer directive actions its own review's findings, and otherwise names them as unowned in its closing comment.
  • In Recheck Before Posting: say why reviews stays in the projection — a review that landed while you worked is a directive, not a duplicate, and on a fork PR it's the entry nothing else picks up.

Testing

uv run pytest passes (554 tests). No test covers skill prose, so there is no reproduction test to add here; the behavioral claims were verified against the relay gate in the mention template rather than reproduced.


Closes #984 — automated triage

@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.

Both claims check out against the code: the relay if: in mention.yaml.j2 does gate on head.repo.full_name == github.repository, and the notifications skill is driven entirely by gh api notifications, so the bot's own review is structurally invisible to it. Guidance rather than a workflow change is the right call for this.

Two things on the prose, both about the text as it will be read by a session mid-run.

The first: the Otherwise branch doesn't say what it is the alternative to, and the two readings point opposite ways. If it means "you pushed, but without a standing directive", announcing the findings as unowned is right — they sit on your commits and you aren't authorized to fix them. If it means "you didn't push at all", the review already reached the contributor via GitHub's own notification, and a bot comment telling their thread the findings are unowned is both inaccurate and noise.

The second: the new Recheck Before Posting paragraph leads with "a review submitted while you worked is a directive, not a duplicate", which is the thesis of A new entry may be a directive, not a duplicate three paragraphs below it in the same section. Stating it twice, the second time under its own bold heading, costs a reader more than it buys — the part that isn't already there is the projection rule and the fork-PR pointer.

…lead

Review feedback: name the three fork-PR cases explicitly (pushed under a
directive / pushed without one / contributor's own commits) so a session
can tell which it is in, and drop the Recheck lead clause that restated
"A new entry may be a directive, not a duplicate" from the same section.
@max-sixty
max-sixty merged commit 349a47e into main Aug 15, 2026
12 checks passed
@max-sixty
max-sixty deleted the fix/issue-984 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: a bot review on a fork PR reaches no session, so its findings strand

2 participants