Skip to content

Commit cdef221

Browse files
authored
fix(safe-outputs): re-derive patch/bundle paths and stop double-writing infrastructure fields (#37299)
* fix patch/bindle file paths * remove all mention of patch_path and bundle_path * recompile workflow * recompile workflow * Update wasm golden files for GH_AW_TIMEOUT_MINUTES env var PR #37262 (e76a712) added GH_AW_TIMEOUT_MINUTES to the agent step env in copilot_engine_execution.go but did not refresh the wasm golden fixtures. Regenerated via 'make update-wasm-golden'. * docs: replace Effective Tokens terminology with AI Credits (AIC) * docs: rename GH_AW_DEFAULT_MAX_EFFECTIVE_TOKENS → GH_AW_DEFAULT_MAX_AI_CREDITS * clean old stuff
1 parent 9f9af34 commit cdef221

214 files changed

Lines changed: 986 additions & 551 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/patch-bump-awf-v0-25-44.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/aw/syntax-agentic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ description: Agentic workflow specific frontmatter fields for GitHub Agentic Wor
2929
- Top-level field mapped to `apiProxy.maxRuns`
3030
- Supported by all engines
3131
- **`max-turns:`** - AWF turn cap applied consistently across all agentic engines (integer or expression, e.g. `${{ inputs.max-turns }}`). The engine-level `engine.max-turns` is a deprecated alias kept for backward compatibility — prefer this top-level field. Not supported by the `gemini` engine.
32-
- **`max-effective-tokens:`** - Per-run effective-token (ET) budget enforced by the AWF firewall (integer or `K`/`M` short-form string like `100M`; default `25000000`). Set a negative value to disable enforcement and token steering. See [token-optimization.md](token-optimization.md).
32+
- **`max-ai-credits:`** - Per-run effective-token (ET) budget enforced by the AWF firewall (integer or `K`/`M` short-form string like `100M`; default `25000000`). Set a negative value to disable enforcement and token steering. See [token-optimization.md](token-optimization.md).
3333
- **`max-daily-ai-credits:`** - Per-user 24-hour ET guardrail: activation blocks execution once the triggering user's aggregated ET for this workflow over the last 24h exceeds the threshold (integer or `K`/`M` short-form string, or `-1`). Enabled by default with a system default threshold; set `-1` to disable or an explicit value to override. See [token-optimization.md](token-optimization.md).
3434
- **`user-rate-limit:`** - Rate limiting configuration to prevent users from triggering the workflow too frequently (object)
3535
- **`max-runs-per-window:`** - Maximum runs allowed per user per time window (required, integer 1-10)

.github/aw/token-optimization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,11 @@ To maximize cache hits:
363363

364364
Two top-level frontmatter fields enforce ET budgets directly, independent of the techniques above. Both accept an integer or a `K`/`M` short-form string (e.g. `100M`, `500K`).
365365

366-
- **`max-effective-tokens:`** — Per-run ET budget enforced by the AWF firewall/API proxy (default `25000000`). The agent is steered to stay within budget; set a negative value to disable enforcement and steering.
366+
- **`max-ai-credits:`** — Per-run ET budget enforced by the AWF firewall/API proxy (default `25000000`). The agent is steered to stay within budget; set a negative value to disable enforcement and steering.
367367
- **`max-daily-ai-credits:`** — Per-user 24-hour guardrail. At activation, gh-aw sums the triggering user's ET across their runs of this workflow over the last 24 hours and blocks execution once the total exceeds the threshold. Enabled by default with a system default threshold; set `-1` to disable, or an explicit value to override the default.
368368

369369
```yaml
370-
max-effective-tokens: 100M # per-run cap (short-form string)
370+
max-ai-credits: 100M # per-run cap (short-form string)
371371
max-daily-ai-credits: 500M # per-user 24h cap; -1 disables
372372
```
373373

.github/workflows/ab-testing-advisor.lock.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ace-editor.lock.yml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/agent-performance-analyzer.lock.yml

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/agent-performance-analyzer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ safe-outputs:
4040
timeout-minutes: 30
4141
# Raised above 25M default: meta-orchestrator does deep analysis across all agents.
4242
# Caveman experiment aims to reduce by ≥20%; set ceiling to catch runaway loops.
43-
max-effective-tokens: 40000000
43+
max-ai-credits: 40000000
4444
experiments:
4545
prompt_compression:
4646
variants: [verbose, caveman]

.github/workflows/agent-persona-explorer.lock.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)