docs: document automation action template context variables #22488
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.33) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 153 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.301
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #22488"
general
weight: 0.35
youdie006
Closes #14031.
Restructures the "Templating with Jinja" section of
docs/v3/concepts/automations.mdxto document which template context variables are available in automation actions:automation,event,labels,firing,firings,events) in a table with what each resolves to.flow,flow_run,deployment,task_run,work_pool,work_queue,concurrency_limit,variables) that are fetched fresh from the API when referenced.tojson,ui_url, ...) and Sandbox limits notes.Every documented variable/filter is grounded in the server events actions source (
_template_context/_relevant_native_objectsinsrc/prefect/server/events/actions.py); nothing is invented. The Cloud-onlyflow_run_log_summaryis left in its existing subsection.---
AI disclosure: this PR was drafted with Claude Code (AI-assisted). Every documented variable is traceable to the source; docs were validated structurally (the Mintlify CLI was not available for a full build).