AI Engineering
GitHub Agentic Workflows Activation Gate: Review Cost Policy Before an Agent Starts
Review gh-aw admission before rollout: replacement allowances, outage defaults, preserved settings, and concurrent budgets. A practical checklist based on official documentation and pinned source.
Ask the budget question before starting the agent
A daily documentation agent and an urgent debugging agent may share a budget while deserving different priorities. Separate per-run limits cannot make that decision on their own. A useful review point is immediately before execution: should this task start now, and with what allowance?
GitHub Agentic Workflows described its Activation Gate in an October 27, 2026 official blog post, attributed to Copilot. The configuration calls it admission: an execution asks a central policy service for permission before activation. Introduction: github.github.com — 2026-10-27-activation-gate
This is an adoption review based on official documentation and source pinned to a commit. We did not deploy an admission server or compile or run gh-aw. The specification is dated October 20 and labeled v1.4 draft; it separates the implemented client from the independently deployed authority. Specification: github.github.com — admission-service-specification
Check participation, compiled output, and the runtime address separately
The documented path is to add admission: true to a workflow’s existing on block, or enable admission in its existing .github/workflows/aw.json object, then run gh aw compile. Review the source configuration together with the generated .lock.yml files. Setting an endpoint alone does not generate admission jobs, and a workflow-level false does not override repository-wide participation. Compiler source: github.com — compiler_admission.go
The generated admission job precedes agent activation. An empty GH_AW_DEFAULT_ADMISSION_URL skips that job and preserves the existing checks. In a rollout review, record participation, compiled output, and effective variables as three separate observations rather than one “configured” checkbox.
Authentication uses GitHub Actions OIDC. This feature grants id-token: write to isolated admission-related jobs, not automatically to the agent. Check the permissions of hand-authored reusable-workflow callers too. Do not substitute a PAT or model-provider token sent to the authority.
An approval can raise the configured allowance
The response below is invented review data, not an observed response or recommended budget. If the configured primary limit is 1200 AIC and approval supplies 1800, the selected limit for that execution is 1800. It is neither the smaller value nor the sum of both.
max_ai_credits is required. Threat-detection and evals allowances are independently optional, not a shared balance; omission preserves that component’s existing limit. Values must be ordinary positive JSON integers from 1 through 2147483647. Numeric strings, decimal notation, and exponent notation are not accepted approval values. Parser source: github.com — admission_protocol.cjs
A valid approval supersedes local daily-credit validation for that activation. Put any required shared-budget decision in the authority instead of expecting the local daily check to catch it afterward. Approval and outage handling: github.com — check_admission.cjs
You can make the invented response easier to read with the English JSON Formatter: JSON formatter . Valid JSON syntax does not establish a valid admission response. The tool does not verify policy, identity, or allowances. Use the example rather than real tokens or production responses.
{
"max_ai_credits": 1800,
"max_ai_credits_threat_detection": 200,
"max_ai_credits_evals": 100
} Test outages separately from denials
GH_AW_DEFAULT_ADMISSION_ON_OUTAGE defaults to ignore. An exhausted transient outage falls back to existing local policy; block stops activation instead. Explicit denials and invalid approvals block under either setting. Ignore does not mean every failure is allowed.
Keep four checks in the test plan: approval selects the expected allowances; explicit denial prevents the agent from starting; a transient outage follows the chosen ignore or block policy; and malformed approval blocks under both policies. Record an empty-endpoint skip separately from an outage.
These are proposed checks for your environment, not integration tests passed for this article. Capture the workflow version, run attempt, selected policy, and whether the agent started. Keep authentication tokens and raw diagnostic responses out of public evidence.
Preserve existing settings when changing shared defaults
The operations guide exports managed defaults with gh aw env get before merging changes. Fields omitted or set to null in gh aw env update can delete existing managed variables. Do not apply a partial file containing only the admission settings as though it were the full configuration. Operations guide: github.github.com — cost-management
A useful review sequence is export, save the prior file, merge fields, inspect the --dry-run diff, and apply the approved change. Repository variables override organization variables, so check both locations. Record who owns the endpoint, audience, outage choice, and recovery procedure.
Once jobs are compiled in, changing runtime variables does not require recompilation. Connecting an authority and its OIDC permissions still changes access boundaries. This guide explains the configuration; it does not change an organization’s settings or connect an external service.
Include concurrency and completion reporting in the budget model
Suppose an invented shared balance is 5000 AIC. Two executions that each see that balance and receive 3000 could together consume 6000. This is a concurrency illustration, not a measurement. Start-time approval does not enforce a hard spending cap; strict limits require separately enforced backend reservations or quotas.
After execution, conclusion_admission sends compact metadata and artifact IDs to /api/conclusion on the authority’s origin. Delivery is best-effort, so failure does not rewrite completed agent results. A missing callback is not zero usage or real-time billing settlement. Reconcile missing records and provider charges separately.
Begin with one low-priority workflow and inspect approval, denial, outage, and malformed-response behavior. Then review concurrent execution and missing completion reports. The useful result is an operational record explaining who permits a run and which failures stop it, rather than an unsupported promise that total spending is capped.