Skip to content

skills(review): push judgment-call fixes on bot PRs by default - #565

Closed
tend-agent wants to merge 2 commits into
mainfrom
fix/issue-564
Closed

tend-agent wants to merge 2 commits into
mainfrom
fix/issue-564

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

Step 8's bot-PR clause already permitted pushing fixes, but the phrasing ("concrete, fixable issues") left an implicit "mechanical only" bar that the bot enforced in practice. As soon as a fix needed a judgment call, the run fell back to scoping or offering — neither of which a bot author can action — and the PR sat red until a human redid the analysis.

Solution

Rewrite the bot-PR paragraph to:

  • Drop the implicit "mechanical only" gate: pushable iff the review can name the fix and its reasoning, even when judgment is needed.
  • Tiebreaker when several reasonable approaches exist: pick the one most consistent with the repo's existing patterns, push, note the alternative in the review body.
  • Bounded escape hatch: only scope-for-maintainer when no defensible default exists — real semantic ambiguity, not "more than zero lines of thought".

Also renames the section heading from "Push mechanical fixes" to "Push fixes", since the new policy explicitly covers non-mechanical fixes on bot PRs. Human-PR behaviour is unchanged.

Testing

Skill text change only. pre-commit run --files plugins/tend-ci-runner/skills/review/SKILL.md passes.


Closes #564 — automated triage

The bot-PR clause of step 8 said "concrete, fixable issues" but in
practice the bot fell back to scoping when a fix needed any judgment.
With no human author to action a deferred offer, the PR sat red until a
human redid the work the review had already analysed.

Spell out the wider bar: push when the review can name the fix and its
reasoning, pick the most repo-consistent option when several exist, and
only scope for the maintainer when no defensible default exists.

Closes #564

Co-Authored-By: Claude <[email protected]>

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The policy rewrite reads cleanly and matches what #564 asked for. One follow-up: the rename Push mechanical fixes → Push fixes and the new "even when the fix needs a judgment call" stance leave three user-facing descriptions of the review workflow stale — they still advertise "Pushes mechanical fixes to bot-authored PRs":

  • README.md:77 (workflows table)
  • docs/tend.example.yaml:180 (review-workflow comment)
  • plugins/install-tend/skills/install-tend/references/tend.example.yaml:180 (same comment, vendored copy)

The last is the file install-tend reads when stamping out an adopter's .config/tend.yaml, so the stale phrasing will keep propagating into new installs until those lines are updated. Happy to push the trivial three-line consistency fix as a follow-up commit on this branch.

The skill heading rename "Push mechanical fixes" → "Push fixes" left
README and tend.example.yaml describing the workflow as "Pushes
mechanical fixes to bot-authored PRs" — stale under the new policy.

Co-Authored-By: Claude <[email protected]>
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Already pushed as 4931c91 — those three lines landed about 30s after the review.

@max-sixty

Copy link
Copy Markdown
Owner

Superseded by #566 (now merged), which closed #564. #566 carries everything here plus two things this PR was missing: the step 6 (Monitor CI / CI-failed branch) update that points bot PRs at step 8 instead of stopping at analysis, and the README.md workflow-table row. Closing as a duplicate. Thanks tend-agent — the triage instinct was right; #566 was just the more complete cut.

This was written by Claude Code on behalf of Maximilian Roos

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: push fixes to bot PRs by default, even when the fix needs a judgment call

2 participants