Skip to content

Commit e6e8b50

Browse files
github-actions[bot]claudeCopilotpelikhan
authored
[docs] Update documentation for features from 2026-05-13 (#31928)
* docs: document token-steering firewall, concurrency.queue, and ghes-artifact-compat feature flag Add reference documentation for three user-facing surfaces merged in the last 24h that had no prior documentation: - firewall.effective-token-steering (#31796): budget-warning system message injection via AWF v0.25.44+ - concurrency.queue and features.group-concurrency-queue (#31764): queue:max behavior and opt-out for compiler-generated groups - features.ghes-artifact-compat (#31664): per-workflow GHES artifact compatibility opt-in via frontmatter or GH_AW_FEATURES env var Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * docs: add tip pointing to --ghes and aw.json options in per-workflow section Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * docs: remove features.ghes-artifact-compat per-workflow section (feature does not exist) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
1 parent 4b0ba06 commit e6e8b50

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

docs/src/content/docs/reference/concurrency.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ When set, the `safe_outputs` job uses `cancel-in-progress: false` — meaning qu
6868

6969
See [Safe Outputs](/gh-aw/reference/safe-outputs/#safe-outputs-job-concurrency-concurrency-group) for details.
7070

71+
## Queue Behavior (`queue`)
72+
73+
GitHub Actions concurrency groups accept an optional `queue` field that controls how multiple pending runs in the same group are handled. The gh-aw compiler preserves this field in both top-level and per-engine concurrency blocks:
74+
75+
| Value | Behavior |
76+
|---|---|
77+
| `single` (Actions default) | Only the latest pending run is kept; earlier pending runs are discarded. |
78+
| `max` | All pending runs queue and run in arrival order. |
79+
80+
```yaml wrap
81+
concurrency:
82+
group: ${{ github.workflow }}-${{ github.ref }}
83+
queue: max
84+
```
85+
86+
Compiler-generated concurrency groups (agent, output, and conclusion jobs) emit `queue: max` by default so back-to-back triggers run sequentially rather than being dropped. Set `features.group-concurrency-queue: false` to omit `queue` from generated groups and revert to the Actions default:
87+
88+
```yaml wrap
89+
features:
90+
group-concurrency-queue: false
91+
```
92+
7193
## Conclusion Job Concurrency
7294

7395
The `conclusion` job — which handles reporting and post-agent cleanup — automatically receives a workflow-specific concurrency group derived from the workflow filename:
@@ -77,9 +99,10 @@ conclusion:
7799
concurrency:
78100
group: "gh-aw-conclusion-my-workflow"
79101
cancel-in-progress: false
102+
queue: max
80103
```
81104

82-
This prevents conclusion jobs from colliding when multiple agents run the same workflow concurrently. The group uses `cancel-in-progress: false` so queued conclusion runs complete in order rather than being discarded.
105+
This prevents conclusion jobs from colliding when multiple agents run the same workflow concurrently. The group uses `cancel-in-progress: false` so queued conclusion runs complete in order rather than being discarded, and `queue: max` preserves arrival order for queued runs (see [Queue Behavior](#queue-behavior-queue)).
83106

84107
This concurrency group is set automatically during compilation and requires no manual configuration.
85108

docs/src/content/docs/reference/network.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,18 @@ SSL bump intercepts and decrypts HTTPS traffic as a man-in-the-middle — only e
264264

265265
Use SSL bump when you need to allow specific API endpoints while blocking others on the same domain. See the [Sandbox Configuration](/gh-aw/reference/sandbox/) documentation for detailed AWF configuration options.
266266

267+
### Effective Token Steering
268+
269+
Set `firewall.effective-token-steering: true` to opt the AWF API proxy into injecting budget-warning system messages as the run approaches its effective-token budget. Warnings fire at 80%, 90%, 95%, and 99% of the configured `max-effective-tokens`, giving the agent a chance to wrap up work before the budget is exhausted.
270+
271+
```yaml wrap
272+
firewall:
273+
effective-token-steering: true
274+
max-effective-tokens: 5000000
275+
```
276+
277+
The compiler maps this field to `apiProxy.enableTokenSteering` in the generated AWF configuration. Token steering requires AWF `v0.25.44` or later; for older pinned versions the setting is silently dropped at compile time. See [Max Effective Tokens](/gh-aw/reference/glossary/#max-effective-tokens-max-effective-tokens) for budget configuration.
278+
267279
### Disabling the Firewall
268280

269281
The firewall is always enabled via the default `sandbox.agent: awf` configuration:

0 commit comments

Comments
 (0)