Skip to content

feat(guardrails): name the overloaded-retry backoff ceiling in workflow-resilience-check - #10016

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-6756-40195226776-1
Oct 25, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-6756-40195226776-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #6756

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The recorded decision on #6756 parked the item until the docs documented CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS; as of 2026-10-25 the env-vars page and the errors page's Tune retry behavior section both do, so the unpark condition is met. The workflow-resilience-check advisory now names the variable, says to use it beside caps and retries, and links the docs section for its default and range without restating them. Whether workflow subagents honor it is still undocumented, so the issue stays open for that part and the upstream ledger row stays Deferred.

Remaining work

  • Establish whether workflow subagents honor CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, from docs or a recorded probe (acceptance criterion 1's subagent reach). As of 2026-10-25 none of env-vars, errors (Tune retry behavior) or sub-agents (API errors in subagents) says, and the recorded decision rules

Not verified

  • Did not run plugins/guardrails/hooks/workflow-resilience-check.test.sh directly: this lane runs only the named wrappers, and check-affected's output does not list which test suites ran. The PR's CI runs it.
  • typos was skipped by check-affected (not installed); the whole-repo scanners and ci-workflows checks it lists as CI only run on the PR's CI
  • Did not commit: no commit tool was provided and the lane instructions say to leave changes uncommitted for the runner to turn into a patch
  • The changelog fragment was written by hand because new-changelog-fragment refused on the detached HEAD; check-changelog-fragments validated it
  • Untracked dotfiles in the checkout (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and were left untouched; leave them out of the patch
  • Kept the removal of the 296-005 Docs lag row (the reviewer called it a judgment call): that table lists pages that lag the changelog, and env-vars no longer does for this variable

Fix

  • plugins/guardrails/hooks/workflow-resilience-check.sh: the advisory text names CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, says to use it beside caps and retries, and links https: //code.claude.com/docs/en/errors#tune-retry-behavior; a comment records the pointer, as-of date 2026-10-25 and the rechec
  • plugins/guardrails/hooks/workflow-resilience-check.test.sh: CASE 1 asserts the advisory names the variable and the docs anchor
  • plugins/guardrails/README.md: the workflow-resilience-check guard row says the advisory names the backoff ceiling variable and links its docs section
  • docs/upstream/claude-code.md: the 296-005 Deferred row now defers only the subagent-reach question, names the pages checked (as of 2026-10-25) and gives a recheck trigger; the 296-005 Docs lag row is removed because env-vars now documents the variable
  • .changes/guardrails/feat-6756-overloaded-retry-ceiling-6d1f3a92.md: new patch changelog fragment (### Changed)

Verification

The runner ran each check from the base copy against 1b52128:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //code.claude.com/docs/en/env-vars: lists CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS as the ceiling on the 529 backoff between automatic retries, with a default and a valid range, no effect under CLAUDE_CODE_RETRY_WATCHDOG=1 or fast mode, requires v2.1.296+; says nothing about subagents
  • read https: //code.claude.com/docs/en/errors: the Tune retry behavior table lists the variable with its default and maximum; the read portion says nothing on subagent reach
  • read https: //code.claude.com/docs/en/sub-agents: the API errors in subagents section does not mention the retry environment variables or whether subagents honor them
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 5 fragments valid (run before and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 10 passed, 6 skipped over 5 changed files (run before and after the review fixes)
  • cant-fail-scan --file plugins/guardrails/hooks/workflow-resilience-check.test.sh --check: PASS, no gating findings
  • fresh-context review subagent over the whole diff: no bugs; it confirmed the new assertions match the JSON-escaped output; I applied its 3 rule and wording findings (as-of date and pages checked on the ledger row, a recheck trigger for subagent reach in the hook comment, the beside-not-instead wordi
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40195226776

Left out: the items under Not verified.

Related

#6756

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 1b52128a406ff5dba0b3170fcd09d8b04bceea56: 0 finding(s), 0 as inline comments.

No security issues found in this pull request.

critical-findings: 0

The change is advisory-text and docs only. I read the full diff (5 files) and the PR context.

  • plugins/guardrails/hooks/workflow-resilience-check.sh: the only code change is a longer constant FINDING string. It contains no interpolated or user-controlled input. The string already goes through jq --arg and hook::emit_channels as before, so no new injection surface appears. The hook stays advisory (exit 0) and gates nothing.
  • plugins/guardrails/hooks/workflow-resilience-check.test.sh: adds two assert_contains checks for the new text.
  • plugins/guardrails/README.md, docs/upstream/claude-code.md and the .changes fragment are documentation. No standing instruction, block list or allowlist is deleted, narrowed or softened. The guard's behaviour is unchanged, and the removed ledger row only records that env-vars now documents the variable.
  • No plugin manifest (plugin.json or marketplace.json) and no userConfig key is touched, so there are no manifest <field> lines.
  • No trusted path (.github/standards/trusted-actors/**, .github/actions/check-trusted-trigger/**, CODEOWNERS, .gitmodules) is changed.
  • The PR context holds no embedded instructions aimed at the review lane.
  • Cost: no billing, paid plan or billed resource is involved, so there is no hold.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 1b52128a406ff5dba0b3170fcd09d8b04bceea56: 0 finding(s), 0 as inline comments.

No findings. I read the full diff (5 files) and the PR context. I did not run the test suite, and the PR body's verification claims are author-claimed and unverified by me.

  • Hook change: workflow-resilience-check.sh only lengthens the advisory string. The new assert_contains checks in the test file match text the hook emits (CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS and errors#tune-retry-behavior).
  • Version bump: the .changes/guardrails fragment is bump: patch, which fits an advisory-text change.
  • Docs and README: the README row and the docs/upstream/claude-code.md ledger edits match what the change does. The ledger row correctly stays Deferred on the open question of whether workflow subagents honor the variable.
  • Closing issue: the PR says Refs: #6756 and does not close it, so there are no closing-issue criteria to check. The PR context contains no embedded instructions.
  • Manifests: no plugin.json or marketplace.json changes, so no manifest lines apply.
  • Trusted paths: no changed file matches a trusted path.
  • Cost: none. The change adds no billed resource.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 1b52128a406ff5dba0b3170fcd09d8b04bceea56.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit aa1a3ee Oct 25, 2026
40 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-6756-40195226776-1 branch October 25, 2026 13:33
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.

0 participants