Skip to content

feat(cloudflare): diagnose failed checks, and react when they fail - #22

Merged
K-Mistele merged 1 commit into
mainfrom
agent-check-failures
Oct 10, 2026
Merged

K-Mistele merged 1 commit into
mainfrom
agent-check-failures

Conversation

@K-Mistele

Copy link
Copy Markdown
Contributor

What this does

  • Check tools (PR sessions). github_pull_request_checks lists the checks on the latest commit with their IDs. github_check_failure shows a failed check's output, annotations, failed steps, and the end of its job log; the whole log is saved in the workspace.
  • Failed checks start a turn. When checks fail, time out, need action, or can't start on the latest commit of a followed pull request, onSubscribedPrEvents hands a request listing them to the AgentSession. The agent fixes and pushes if the cause is clear, otherwise explains.
  • The example README gets a "When checks fail" section with a sequence diagram.

There is no limit on repeated attempts: a fix whose checks fail again starts another turn.

Tested

bun run check and bun run test (742 tests).

🤖 Generated with Claude Code

…art on its own when they fail

Pull request sessions get github_pull_request_checks, listing the checks
on the latest commit with their IDs, and github_check_failure, showing a
failed check's output, annotations, failed steps, and the end of its job
log, with the whole log saved in the workspace. Saving long tool output
moved to ToolOutput.ts, shared with bash.

When checks fail, time out, need action, or cannot start on the latest
commit of a pull request the app follows, onSubscribedPrEvents sends the
AgentSession a request listing them and hands the delivery off. The
agent fixes and pushes if the cause is clear, and otherwise explains the
cause and what to change. Older commits' checks and passing checks are
ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HumanLayer-Session: https://app.dev.codelayer.gg/sessions/01a1196a-ea93-79e6-9500-a2651678f1ea
@humanlayer-channels-app humanlayer-channels-app Bot added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 10, 2026
@K-Mistele
K-Mistele merged commit b2e25f4 into main Oct 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant