Skip to content

skills: extend dedup rule to cover review body and cross-workflow overlap - #403

Merged
max-sixty merged 1 commit into
mainfrom
dupe
May 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
dupe

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The dedup rule at plugins/tend-ci-runner/skills/review/SKILL.md:89 was scoped to inline comments and review-to-review overlap, missing the case where tend-mention answers a maintainer question and tend-review then re-answers it in the review body on the resulting synchronize event. Surfaced on worktrunk#2655 per #400.

Two changes:

  • running-in-ci — Recheck Before Posting is restructured to name two duplication paths explicitly: (1) new entries arriving during the session, and (2) a sibling tend workflow having already responded before the session even started. The rule applies equally to comment bodies, review bodies, and inline replies.
  • review skill drops the inline-only / review-to-review scoping and defers to the running-in-ci rule, listing the workflow sources it covers (previous review on this or earlier commit, tend-mention, tend-triage, any tend workflow). The race-condition guidance and the "use the review body, not gh pr comment" guidance are preserved.

The fetch in step 1 of the review skill (lines 60–66) already pulls conversation comments alongside prev_reviews, so no new data is needed — only the consume-step rule was too narrow.

The event-pair-specific subsection ("Dedup check for inline review comment replies") is left in place — it covers a different concern (pull_request_review ↔ pull_request_review_comment race), not content overlap.

Closes #400

…rlap

The dedup rule in the review skill was scoped to inline comments and
review-to-review overlap, missing the case where `tend-mention` answers a
maintainer question and `tend-review` then re-answers it in the review
body on the resulting `synchronize` event.

Lift the general dedup into `running-in-ci`'s "Recheck Before Posting"
covering both temporal (new entries during the session) and structural
(sibling tend workflow already responded) duplication, applying equally
to comment bodies, review bodies, and inline replies. Tighten the
review-skill bullet to defer to that rule.

Closes #400

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 8057f6d into main May 10, 2026
5 checks passed
@max-sixty
max-sixty deleted the dupe branch May 10, 2026 06:18
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.

review skill: dedup rule doesn't cover review body or cross-workflow overlap with tend-mention

2 participants