Repository navigation
Walk through the reviewer's side of Common AI approval gates - #74737
Merged
Merged
Conversation
The approval-gates guide explained every parameter but never showed the reviewer's side. It now starts from a complete Dag (an LLMOperator with require_approval and allow_modifications, its input in the snippet, and a downstream task that uses the approved text), then shows where the review appears in the UI, what the form contains, and what approve, edit, reject and each timeout setting do to the task state, the task log and the downstream task. The screenshots, states and log lines come from a run on Airflow main. Running it showed that from Airflow 3.4 a retried or cleared task rewrites the open review (subject, body, output field and assigned users), while 3.1 to 3.3 keep the first attempt's. The guide, the parameter list and the operator and mixin docstrings stated the older behaviour unconditionally; they now say which version does what.
kaxil
force-pushed
the
commonai-approval-walkthrough
branch
from
October 14, 2026 17:50
4b851b4 to
843f6ce
Compare
pankajastro
approved these changes
Oct 15, 2026
pankajkoti
approved these changes
Oct 15, 2026
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Common AI approval-gates guide explained every parameter but never showed the reviewer's side: where a pending review appears, what the form contains, and what each answer does to the task and to the tasks after it. This adds that walkthrough to
approval_gates.rst, built around a complete Dag a reader can copy: anLLMOperatorwithrequire_approval=Trueandallow_modifications=True, its input in the snippet, and a downstreampublishtask that receives the approved text.The page shows the Required Actions list and the review form, then a table of what approve, edit-then-approve, reject and the three
on_approval_timeoutsettings do: the resulting task state, the line the task logs when it resumes, and whetherpublishruns and with what text. Every state, log line and screenshot comes from a run on main (breeze, LocalExecutor). The connection pointed at a local stand-in for the OpenAI API so no key was needed, and the page says a real model's wording will differ.The Dag is a new
example_llm_approval.pyinstead of wider markers inexample_llm.py, because that file's shared import block also pulls inUsageLimits,DecimalandBaseModel, so no marker range there gives a copyable Dag with its imports. The existing notifier example inexample_llm.pystays where it was, now under a Timeouts heading.Running it also turned up a version split the docs didn't mention. Since #73235 (3.4.0b1), a retried or cleared task rewrites the open review: subject, body, editable output and assigned users. On 3.1 to 3.3 the review keeps the first attempt's, so with
allow_modifications=True, approving it unedited returns the first attempt's output. The guide, theoperators/llm.rstparameter list and theLLMOperatorandLLMApprovalMixindocstrings stated the older behaviour for every version; they now say which version does what.