Skip to content

skills(review): disambiguate self-authored PRs from owner-authored PRs - #263

Merged
max-sixty merged 2 commits into
mainfrom
hourly/review-24321221414
Apr 13, 2026
Merged

max-sixty merged 2 commits into
mainfrom
hourly/review-24321221414

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

Two tend-review runs on max-sixty/worktrunk this hour completed with conclusion success but posted zero reviews on trivial max-sixty-authored PRs. Session logs show identical hallucinated reasoning: the bot concluded "PR is self-authored by the owner (max-sixty), I'll not submit a review (GitHub rejects self-approval)." The bot's login is worktrunk-bot — a distinct account from max-sixty — and other runs in the same hour correctly approved max-sixty-authored PRs (#2140, #2141, #2143, #2146, #2147, #2148). The conflation of "repo owner" with "self" is the bug.

Evidence

Run PR Author Bot output
24320901871 #2149 (docs-only, 8 lines) max-sixty no review, ran ~10 min then exited
24320033081 #2142 (7-line TODO comment) max-sixty no review, ran ~10 min then exited

Both sessions substantively reviewed the code, found no concerns, and then rationalized skipping with the incorrect "self-approval" reasoning. Excerpt from run 24320901871:

Since the PR is self-authored by the owner, I'll not submit a review (GitHub rejects self-approval) and instead skip to CI monitoring per the workflow.

Both PRs merged without any automated review. No user-visible harm (max-sixty merged them), but the bot spent ~20 minutes of compute producing nothing.

Gate assessment

  • Evidence level: High — 2 occurrences this hour with identical reasoning chain across two different PRs. No matching precedent in the review-reviewers-tracking: 2026-04 tracking issue (prior "self-authored" entries there describe genuinely bot-authored PRs being handled correctly).
  • Failure class: Stochastic, but with a consistent trigger — trivial PRs where the bot finds nothing substantive to comment on seem to push the model toward fabricating an escape hatch.
  • Proposed change type: Targeted clarification (7 new lines, no restructuring).
  • Gate 1: High evidence, 2 occurrences ≥ 2–3 minimum → passes.
  • Gate 2: Targeted fix to an existing paragraph → normal bar, passes.

Fix

The existing guidance at plugins/tend-ci-runner/skills/review/SKILL.md:177 already defines self-authored as PR_AUTHOR == BOT_LOGIN, but the model still pattern-matched "self" onto "repo owner." Add an explicit negative: human authors (including the owner and maintainers) are not self-authored; approve normally.

Test plan

  • Verify skill still renders correctly (pre-commit passes).
  • Monitor tend-review runs on max-sixty/worktrunk over the next few days — trivial human-authored PRs should either get an APPROVE or a +1 reaction, not a silent 10-minute no-op.

Two tend-review runs on max-sixty/worktrunk exited "success" with no
review on trivial max-sixty-authored PRs. Session logs show identical
reasoning: "Since the PR is self-authored by the owner (max-sixty),
I'll not submit a review (GitHub rejects self-approval) and instead
skip to CI monitoring per the workflow."

The bot (worktrunk-bot) is a distinct account from max-sixty, and
approves max-sixty's PRs routinely — GitHub does not block it. The
model conflated "self" with "repo owner" on trivial docs/TODO PRs.

Clarify the self-authored branch with an explicit negative: human
authors (including the repo owner and maintainers) are not
self-authored, so approve those PRs normally.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Apr 13, 2026
@max-sixty
max-sixty merged commit 660a8ae into main Apr 13, 2026
1 check passed
@max-sixty
max-sixty deleted the hourly/review-24321221414 branch April 13, 2026 02:28
max-sixty added a commit that referenced this pull request Apr 14, 2026
Bumps generator version to 0.0.12 and syncs lockfile.

50 commits since 0.0.11: notifications cost cut + freshness gate (#251, #254),
token-report per-run table and cost estimate (#249, #250), review-reviewers
outcome-focused Haiku analysis (#255), config workflow_extra/jobs pass-through
(#227), canonical author_association tiers across skills (#261, #263), action
token aggregation fix (#266), plus numerous review/mention/ci-runner fixes.

Co-Authored-By: Claude <[email protected]>
@max-sixty max-sixty mentioned this pull request Apr 14, 2026
max-sixty added a commit that referenced this pull request Apr 14, 2026
Bumps generator version to 0.0.12 and syncs lockfile.

50 commits since 0.0.11. Highlights:
- feat: notifications cost cut + freshness gate (#251, #254)
- feat: token-report per-run table + cost estimate (#249, #250)
- feat: review-reviewers outcome-focused Haiku analysis (#255)
- feat: config `workflow_extra` / `jobs` pass-through (#227)
- skills: canonical `author_association` tiers (#261, #263)
- fix: action token aggregation (#266), plus numerous
review/mention/ci-runner fixes

> _This was written by Claude Code on behalf of Maximilian_

Co-authored-by: Claude <[email protected]>
tend-agent added a commit that referenced this pull request May 10, 2026
Remove links to specific past PRs (#154, #212, #263, #203, #268, #392, #375, #305, #318) from review-reviewers and running-in-ci, restating each as a structural rule (what shape is accepted, what shape is not). Extend "Authoring skills" in the root CLAUDE.md with a parallel "No specific past-case references" bullet so future skill edits don't re-introduce them.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants