You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
review-pr: bot still asserts CI failures are unrelated without verifying (recurrence of #1335) #1384
In run 22832096573 on PR #1381, the review bot asserted that a pre-commit.ci failure was a "transient infrastructure issue, not related to the PR content" — without checking main branch CI history.
From the session log:
pre-commit.ci: Failed with "error during mergeable check" — this is a transient pre-commit.ci infrastructure issue, not related to the PR content.
The bot did not run any gh api call to verify whether pre-commit.ci fails on main. It simply asserted the characterization based on the error message text.
This is the same behavioral pattern as #1335, which was fixed by #1337 (adding "Never claim a CI failure is pre-existing or unrelated without evidence" guidance to the running-in-ci skill). The guidance is present in the skill at line 210:
Never claim a CI failure is "pre-existing" or "unrelated" without evidence. Before characterizing any failure this way, check main branch CI history.
Despite the guidance existing, the bot did not follow it. This suggests the current placement or phrasing is insufficient to reliably influence behavior.
Impact
In this case the characterization was likely correct (pre-commit.ci "mergeable check" errors are typically infrastructure-related). But the principle matters: the bot should verify before asserting, especially since it had full access to gh api to check.
Suggested Fix
Consider moving the grounded-analysis rule closer to the CI check evaluation step in the review-pr skill (currently it only appears in running-in-ci). Since the reviewer reads the review-pr skill's Step 5 instructions during CI monitoring, adding a concrete reminder there — with the specific gh api command to run — may be more effective than the general principle in running-in-ci.
For example, in the review-pr skill's CI monitoring step:
When a non-code-coverage check fails, before characterizing it as "unrelated" or
"transient", run:
gh api "repos/{owner}/{repo}/actions/runs?branch=main&status=completed&per_page=5"
and verify the same check fails on main. If you cannot verify, say so explicitly.
New evidence from a different context: The ungrounded-assertion pattern also manifests in claude-mention sessions, not just review-pr CI monitoring.
In run 22833076480 on PR #1385, the bot was asked whether CI verification guidance already exists somewhere. It read the running-in-ci skill, found the text, and replied:
Since running-in-ci is always loaded in CI sessions (where review-pr runs), duplicating it here is redundant.
This claim was wrong — the bot asserted skill loading behavior without checking session logs or the loading mechanism. When the owner pushed back ("look through the failure cases — was that loaded?"), a follow-up session (run 22833153979) investigated and concluded the opposite:
The review-pr skill references/running-in-ci but never loads it... the grounded-analysis rule was almost certainly never loaded into context during these review sessions.
Why this matters for the fix approach: The bot in run 22833076480 did have running-in-ci loaded (it's a claude-mention session, and the skill was invoked). The grounded-analysis rule was in context, but the bot still made an unverified claim. This suggests the current rule's framing around CI failures specifically ("Never claim a CI failure is 'pre-existing' or 'unrelated' without evidence") may be too narrow — the bot doesn't generalize it to other types of assertions.
Resolved by commit dabeffc (fix(review-pr): add CI failure verification and duplicate comment guard). The review-pr skill now requires gh api verification of main branch CI history before characterizing any failure as "flaky", "transient", or "unrelated".
Activity
fix(review-pr): add CI failure verification and duplicate comment guard
worktrunk-bot commentedon Mar 9, 2026
New evidence from a different context: The ungrounded-assertion pattern also manifests in
claude-mentionsessions, not justreview-prCI monitoring.In run 22833076480 on PR #1385, the bot was asked whether CI verification guidance already exists somewhere. It read the
running-in-ciskill, found the text, and replied:This claim was wrong — the bot asserted skill loading behavior without checking session logs or the loading mechanism. When the owner pushed back ("look through the failure cases — was that loaded?"), a follow-up session (run 22833153979) investigated and concluded the opposite:
Why this matters for the fix approach: The bot in run 22833076480 did have
running-in-ciloaded (it's aclaude-mentionsession, and the skill was invoked). The grounded-analysis rule was in context, but the bot still made an unverified claim. This suggests the current rule's framing around CI failures specifically ("Never claim a CI failure is 'pre-existing' or 'unrelated' without evidence") may be too narrow — the bot doesn't generalize it to other types of assertions.worktrunk-bot commentedon Mar 9, 2026
Resolved by commit dabeffc (
fix(review-pr): add CI failure verification and duplicate comment guard). The review-pr skill now requiresgh apiverification of main branch CI history before characterizing any failure as "flaky", "transient", or "unrelated".fix(skill): strengthen details-tag and test-failure-verification guid…