Skip to content

Support timeout defaults in LLM approval reviews - #72155

Open
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:llm-approval-timeout-default
Open

Support timeout defaults in LLM approval reviews#72155
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:llm-approval-timeout-default

Conversation

@guan404ming

Copy link
Copy Markdown
Member

Why

  • A review deadline could only fail the task, never decide it.
  • Unattended pipelines had no way to auto-approve or auto-reject a stale review.

How

  • Add on_approval_timeout to choose fail, approve, or reject on deadline.
  • Pass that choice as the review's default answer on both wait paths.
  • Reject the setting when no approval_timeout is configured.

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

@guan404ming
guan404ming force-pushed the llm-approval-timeout-default branch from cba52aa to 3f6cd0f Compare August 27, 2026 14:11
@guan404ming guan404ming changed the title Let LLM approval reviews resolve on timeout Auto-approve or auto-reject LLM reviews on timeout Aug 27, 2026
The approval review always passed no HITL defaults, so approval_timeout
could only ever fail the task. An unattended pipeline had no way to say
"nobody reviewed this in time, treat it as approved" (or rejected), which
is what a deadline on a review is usually for.
@guan404ming
guan404ming force-pushed the llm-approval-timeout-default branch from 3f6cd0f to c2d0b1c Compare August 27, 2026 14:12
@guan404ming guan404ming changed the title Auto-approve or auto-reject LLM reviews on timeout Support timeout defaults in LLM approval reviews Aug 27, 2026
@guan404ming
guan404ming marked this pull request as ready for review August 27, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant