Make Copilot/Claude harness retry policy configurable via GH_AW_HARNESS_*#43051
Conversation
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. |
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 |
|
🛠️ Agentic Maintenance updated this pull request branch. |
|
@copilot fix lint go |
Remove errorfwrapv from nolint directive to eliminate golangci-lint warning about unknown linters. The custom errorfwrapv linter is run separately via golint-custom target and is not part of the standard make lint flow. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in the latest commit. Removed |
|
🛠️ Agentic Maintenance updated this pull request branch. |
The tests pass locally when running the exact same command as CI ( |
|
🎉 This pull request is included in a new release. Release: |
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: