Skip to content

skills(running-in-ci): recheck guard catches new directives, not just dupes - #738

Merged
max-sixty merged 1 commit into
mainfrom
daily/review-runs-28284127572
Jun 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
daily/review-runs-28284127572

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

What

Tightens the Recheck Before Posting guard in the bundled running-in-ci skill so the pre-post re-fetch is understood as catching new maintainer directives, not only duplicate posts.

Why

On PR #735 a maintainer posted a follow-up comment 47s after the agent's only read of the thread, then spent ~4 minutes on an edit→commit→push cycle and posted its reply straight from the context loaded before that follow-up existed — shipping an incomplete change against the stale instruction. The maintainer caught it (#issuecomment-4814004450, "note the comment I followed up with please") and later asked the bot to log the root cause.

The bot's own diagnosis (run 28244362446): the existing Recheck Before Posting guard is meant to catch exactly this — "new entries arrived during the session" — but the section is framed entirely around dedup ("check whether the response would duplicate something already there", "if the response is now entirely redundant, don't post it"). A re-fetch read through that lens checks for duplicate posts; it doesn't prompt the agent to notice that a new entry is a directive that changes the work. The miss wasn't a redundant post — it was a missed instruction.

This is a structural gap (the window is widest precisely when there's a long edit→push gap, which is when a maintainer is most likely to add a follow-up) with an invisible failure mode (a missed comment never surfaces as a CI failure). It applies to every consumer, so the fix belongs in the bundled skill.

Change

One paragraph added to the section: a new entry may be a directive, not a duplicate; the gap after edit→commit→push is the high-risk window; the re-fetch should pick up new directives and fold them into the same run; and "treating the task as done" counts as a post — re-fetch before ending the turn, not only before commenting.

Prose-only addition to an existing guard; no behavior change to any action or generator.

Window context

From the 2026-06-27 review-runs analysis (run 28284127572). ~50 substantive runs, 0 failed jobs (two cancelled tend-mention runs were concurrency-cancellation siblings, each paired with a successful run). The #735 follow-up miss was the only finding to pass the confidence/magnitude gates this window.

… dupes

The Recheck Before Posting section was framed entirely around dedup, so a
re-fetch read through it checks for duplicate posts but doesn't prompt the
agent to notice a new entry is a maintainer directive that changes the work.
On #735 a follow-up landed 47s after the agent's only thread read, during a
~4-min edit->push gap, and the agent shipped against the stale instruction.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@tend-agent tend-agent added the review-runs Findings from review-runs skill label Jun 27, 2026
@max-sixty
max-sixty merged commit 82b68e6 into main Jun 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-28284127572 branch June 27, 2026 17:10
@max-sixty max-sixty mentioned this pull request Jun 29, 2026
max-sixty added a commit that referenced this pull request Jun 29, 2026
Release 0.1.9. Version bump, lockfile sync, and CHANGELOG.

Ships 6 commits since 0.1.8:

### Improved
- `review` skill runs a `/code-review` pass alongside its manual checks,
effort scaled to how core the change is
([#741](#741))
- Default harness timeout rises from 60 minutes to 3 hours
([#739](#739))
- `running-in-ci` recheck guard catches a new directive, not just a
duplicate ([#738](#738))
- Both Claude harnesses update to claude-code 2.1.195
([#740](#740))

### Fixed
- Incremental PR review no longer leaks the base-merge delta (three-dot
diff + `git log --no-merges`)
([#735](#735))

### Documentation
- A composite-action comment drops a disproved security claim
([#737](#737))

The `0.1.9` tag is pushed after this merges.

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Findings from review-runs skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants