Skip to content

fix(agents): stop triage on bot-sent events and recover a review verdict the agent did not file - #38

Merged
azlekov merged 1 commit into
mainfrom
fix/bot-events-and-review-fallback
Sep 14, 2026
Merged

azlekov merged 1 commit into
mainfrom
fix/bot-events-and-review-fallback

Conversation

@azlekov

@azlekov azlekov commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Two shared-workflow bugs that made triage / triage and review / review red on every agent-reviewed pull request today (kodni.me#227, dev-standards#26, nis-suite#80, infrasensing-senslogging#180).

issue-triage.yml: the bots step now reads github.event.sender.type and stops on Bot before the runner picker. The agents caller listens to pull_request_review and pull_request_review_comment, so the review agent's own inline comments were reaching claude-code-action as a Bot actor, which refuses it ("Workflow initiated by non-human actor: claude") and fails the run. The Dependency Dashboard exception is kept. Fixes #37.

pr-review.yml: when the agent finishes without writing review-body.md, the verdict step recovers its final message from the execution file's result entry, posts it with a visible "recovered" line, emits a warning, and passes. A run with no execution file still fails as before. Fixes #36.

Validated with actionlint and a YAML parse. Behaviour change is limited to those two steps; no inputs added or removed, so @v1 callers are unaffected.

🤖 Generated with Claude Code

…ict the agent did not file

issue-triage: the agents caller also listens to pull_request_review and
pull_request_review_comment, so the review agent's own inline comments reached
claude-code-action as a Bot actor, which refuses it and fails the run. Every
reviewed pull request carried a red triage check with nothing to triage. The
bots step now stops on sender type Bot before the picker, keeping the
Dependency Dashboard exception.

pr-review: when the agent finishes without writing review-body.md, its final
message is still the result entry of the execution file. The verdict step now
recovers it, labels the recovery, warns, and passes; a pass that did the work
no longer fails for a missed file write. A run with no execution file still
fails as before.

Fixes #36
Fixes #37

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@azlekov
azlekov merged commit 88e4af5 into main Sep 14, 2026
1 check passed
@azlekov
azlekov deleted the fix/bot-events-and-review-fallback branch September 14, 2026 21:02
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.7.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

agents: triage job fails on review-bot comments (non-human actor: claude) pr-review: agent runs but leaves review-body.md empty at depth high

1 participant