Skip to content

Walk through the reviewer's side of Common AI approval gates - #74737

Merged
kaxil merged 3 commits into
mainfrom
commonai-approval-walkthrough
Oct 15, 2026
Merged

kaxil merged 3 commits into
mainfrom
commonai-approval-walkthrough

Conversation

@kaxil

@kaxil kaxil commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

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: an LLMOperator with require_approval=True and allow_modifications=True, its input in the snippet, and a downstream publish task that receives the approved text.

Review form for draft_release_note

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_timeout settings do: the resulting task state, the line the task logs when it resumes, and whether publish runs 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.py instead of wider markers in example_llm.py, because that file's shared import block also pulls in UsageLimits, Decimal and BaseModel, so no marker range there gives a copyable Dag with its imports. The existing notifier example in example_llm.py stays 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, the operators/llm.rst parameter list and the LLMOperator and LLMApprovalMixin docstrings stated the older behaviour for every version; they now say which version does what.

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
kaxil force-pushed the commonai-approval-walkthrough branch from 4b851b4 to 843f6ce Compare October 14, 2026 17:50

@pankajastro pankajastro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@kaxil
kaxil merged commit c65451f into main Oct 15, 2026
85 checks passed
@kaxil
kaxil deleted the commonai-approval-walkthrough branch October 15, 2026 14:15
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.

3 participants