Skip to content

feat: move max-runs constraint from engine-specific flags to AWF config#31214

Closed
Copilot wants to merge 3 commits into
mainfrom
copilot/implement-max-runs-constraint-awf
Closed

feat: move max-runs constraint from engine-specific flags to AWF config#31214
Copilot wants to merge 3 commits into
mainfrom
copilot/implement-max-runs-constraint-awf

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

New Feature

engine.max-continuations previously only worked for Copilot (via --autopilot --max-autopilot-continues N). This moves multi-run orchestration into the AWF config layer as container.maxRuns, making it engine-agnostic.

Implementation details

  • New version gate (AWFMaxRunsMinVersion = "v0.26.0"): container.maxRuns is only emitted when AWF supports it; older AWF versions fall back to the Copilot-specific CLI flag as before
  • AWF config schema + struct: Added container.maxRuns (integer, min: 1) to awf-config.schema.json and AWFContainerConfig
  • awfSupportsMaxRuns(): New version gate helper in awf_helpers.go, consistent with awfSupportsCliProxy, awfSupportsExcludeEnv, etc.
  • Validation relaxed: validateMaxContinuationsSupport no longer requires the Copilot engine when AWF >= AWFMaxRunsMinVersion, since AWF handles orchestration engine-agnostically
  • Spec doc: specs/awf-container-max-runs-spec.md describes what gh-aw-firewall must implement (GitHub issue creation was blocked by token permissions)

Behavior

AWF version Behavior
< v0.26.0 (current) container.maxRuns not emitted; Copilot fallback unchanged
≥ v0.26.0 (future) container.maxRuns emitted; AWF orchestrates re-runs for any engine

No user-visible change until gh-aw-firewall ships container.maxRuns. At that point, update AWFMaxRunsMinVersion to the released version.

Copilot AI and others added 2 commits May 9, 2026 12:52
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title feat: implement max-runs constraint via AWF configuration (container.maxRuns) feat: move max-runs constraint from engine-specific flags to AWF config May 9, 2026
Copilot AI requested a review from pelikhan May 9, 2026 13:07
@pelikhan pelikhan closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants