Make Copilot/Claude harness retry policy configurable via GH_AW_HARNESS_*#43051
GH_AW_HARNESS_*#43051Conversation
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>
GH_AW_HARNESS_*
|
@copilot refactor configuration code so that all harnesses can use it. Reuse exiting function to read integer from env in JavaScript. |
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>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Triage Result
Rationale: Makes harness retry policy configurable via GH_AW_HARNESS_* env vars. Defaults preserved. Larger diff (+297/-74, 7 files) for a config change — review to confirm backward compat. Draft state needs resolution.
|
|
✅ Test Quality Sentinel completed test quality analysis. |
|
@copilot single string legacy format is still accepted as "short form" . Test both. |
…nly long form Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in the latest commit. The existing string-form test was renamed to |
|
@copilot please run the
|
…dependency, add max-retries cap Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…ility Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
|
@copilot merge main and recompile, fix conflicts |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done. Merged |
|
@copilot please run the
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…DR-43051 Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Done. All unresolved review threads were already addressed in prior commits (all five threads are marked outdated or their concerns resolved). Added ADR-43051 at |
Copilot and Claude harness retries were hardcoded to a short fixed window, which made sustained transient API outages fail the run before safe outputs could be written. This change keeps the existing defaults but allows workflows to widen the retry window without patching the built-in harnesses.
Harness retry policy
copilot_harness.cjsandclaude_harness.cjs:GH_AW_HARNESS_MAX_RETRIESGH_AW_HARNESS_INITIAL_DELAY_MSGH_AW_HARNESS_BACKOFF_MULTIPLIERGH_AW_HARNESS_MAX_DELAY_MS3,5000,2,60000).max delayto at leastinitial delayto avoid invalid backoff windows.Workflow-facing configuration
engine.env, so retry tuning can be done in frontmatter without replacing the harness.Coverage
Example workflow override: