Skip to content

review: stop re-posting "prior thread still applies" on every push - #552

Merged
max-sixty merged 1 commit into
mainfrom
codex-debug
May 17, 2026
Merged

max-sixty merged 1 commit into
mainfrom
codex-debug

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Summary

Fixes the root cause of tend re-posting near-identical "Not approving; the prior thread still applies" reviews on every push to a long-lived PR (observed on #535).

review/SKILL.md contained two instructions that contradicted each other on a non-trivial push with no new findings:

  • The dedup rule (sibling-workflow dedup from running-in-ci): omit already-covered points, stick to diff-grounded findings.
  • The posting rule: "Post exactly one review per run. Always give a verdict."

So when a push was non-trivial (skipping the trivial-diff early-exit) but introduced no new finding, the reviewer still posted a fresh review whose entire content restated an already-blocking unresolved thread.

Both rules are now reconciled into one decision: after dedup, if there is no new diff-grounded finding on the incremental changes and the only outstanding concern is a still-unresolved prior bot thread, post nothing. That thread already blocks the PR; the earlier review stays the active verdict. A fresh review is warranted only when the incremental diff adds a finding or resolves the last open one (then approve with an empty body).

This is harness-independent. It complements #551 (which stopped Codex truncating long skills) by removing the ambiguity that produced the behavior in the first place, so it holds even when the full skill is read.

Test plan

  • On a long-lived PR with an unresolved bot thread and a non-trivial push that adds no new finding, the reviewer posts no new review and the prior thread still blocks
  • A push that introduces a new finding still produces a COMMENT review
  • A push that resolves the last open concern still produces an empty-body APPROVE

The dedup rule said to omit already-covered points, but the posting
rule said "post exactly one review per run, always give a verdict" —
so on a non-trivial push with no new findings the reviewer still
posted a fresh review whose only content restated an already-blocking
unresolved thread. Reconcile both: after dedup, if there is no new
diff-grounded finding and the only concern is a still-unresolved prior
bot thread, post nothing — that thread already blocks and the earlier
review stays the active verdict. A fresh review is warranted only when
the incremental diff adds a finding or resolves the last open one.

Harness-independent fix for the repetitive-review behavior observed on
long-lived PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 0383d6d into main May 17, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex-debug branch May 17, 2026 02:56
@max-sixty max-sixty mentioned this pull request May 17, 2026
3 tasks
max-sixty added a commit that referenced this pull request May 17, 2026
## Summary

Release 0.0.24. 11 PRs since 0.0.23:

- #545 Rewrite the workflow generator on Jinja2 templates
- #546 generator: switch build backend to uv_build
- #544 generator: route install-test through `_apply_extras`
- #535 install-tend: unify on the chain model (admin-gated refs + env
policy pin)
- #537 review-reviewers: migrate to the Codex harness
- #551 debug-tend-run: support Codex session logs; instruct Codex to
read skills in full
- #552 review: stop re-posting "prior thread still applies" on every
push
- #547 fix(stats): stop blacking out the section on transient worker
outage
- #548 site: simplify "currently tending" to a prose repo list
- #549 site: refresh "currently tending" on a 30s timer
- #550 site: refresh Stats and Activity on a timer

#551 and #552 are the reason for cutting now: together they stop the
Codex harness re-posting near-identical "the prior thread still applies"
reviews on every push. The behavior is release-gated, so it only reaches
tend's own dogfooded workflows once 0.0.24 is published and the nightly
regen repins the action ref.

No new breaking changes since 0.0.23 (the `TEND_BOT_TOKEN` rename
shipped in 0.0.23).

## Test plan

- [ ] CI green (test, test-worker, lint)
- [ ] After merge: tag `0.0.24`, PyPI publish (`pypi-release.yaml` on
the tag push), `uvx [email protected] --help` works
- [ ] Regenerate tend's own workflows to `@0.0.24` (separate `chore:
regenerate` PR, after the tag exists)

Co-authored-by: Claude <[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.

2 participants