Repository navigation
Description
Summary
Bump the AWF firewall dependency from v0.25.43 to v0.25.44.
New Firewall Spec Changes for the Compiler
1. --enable-token-steering (NEW flag)
Config path: apiProxy.enableTokenSteering → --enable-token-steering
Env var: AWF_ENABLE_TOKEN_STEERING=true
Token steering injects budget-warning system messages directly into the model request body when effective token usage crosses thresholds (80%, 90%, 95%, 99%). This is opt-in (disabled by default).
Compiler front matter to expose:
firewall:
effective-token-steering: true # maps to --enable-token-steeringSpec section: docs/awf-config-spec.md §10.5 — new "Token Steering" section with provider-specific injection rules (OpenAI, Anthropic, Gemini).
2. --max-model-multiplier (NEW flag)
Config path: apiProxy.modelMultipliers → --max-model-multiplier <model:multiplier,...>
Env var: AWF_EFFECTIVE_TOKEN_MODEL_MULTIPLIERS
Previously config-only, now has a CLI flag. Allows workflow authors to penalize expensive models (e.g., claude-opus-4-1m:10) so they consume more of the effective token budget.
Compiler front matter to expose:
firewall:
model-multipliers:
claude-opus-4-1m: 10
claude-opus-4-200k: 2.53. Threshold changes (BREAKING if any consumers relied on old values)
Effective token warning thresholds changed from [50, 75, 90, 95]% to [80, 90, 95, 99]%. This affects token usage logs and the /reflect introspection endpoint.
Other Notable Changes (no compiler action needed)
- Gemini raw-IP fix (PR [mcp-tools] Update GitHub MCP toolsets JSON mapping to v2.0 #2986): api-proxy IP now allowed through Squid via
allow_api_proxy_ipACL — fixes Gemini smoke tests - Dockerfile fix (PR 🔒 Zizmor Security Analysis Report - November 1, 2025 #2950): Missing JS modules (
github-oidc.js, OIDC providers) added to api-proxy Dockerfile - Major refactoring:
cli.tssplit into focused modules,writeConfigsextracted, host-iptables refactored, squid-config split — all internal, no API changes - Security:
--ignore-scriptsenforced on all Claude Code CLI installs in lock files
Version Constants
Update in pkg/constants/version_constants.go:
AWFVersion = "v0.25.44"Related Issues
- API Proxy Token Guardrails: model cost multipliers + effective token steering gh-aw-firewall#3002 — Parent issue for token guardrails (model multipliers + steering)
- feat: gate effective token steering behind opt-in config and adjust thresholds to 80/90/95/99% gh-aw-firewall#3038 — Token steering gating and threshold adjustment (implemented in this release)
- max-model-multipliers gh-aw-firewall#2938 — Max model multipliers CLI flag (implemented in this release)
Activity
pelikhan commentedon May 12, 2026
@copilot ignore step 2 2. --max-model-multiplier (NEW flag) ignore that one for now.