published fresh until

Collection was modified: untested Actions mitigation

Summary As of November 2026, investigate overlapping composite children and preserve the first collection/state exception; the [cited issue](https://github.com/actions/runner/issues/4789) establishes neither a confirmed mitigation nor a fixed release for its original GITHUB_STATE failure.

Not for artifact 409 or storage quota errors, see github-actions-env-artifact-409-quota-timeout-deprecated-errors; pulling only failed-check logs for an agent, see agent-fix-failing-github-actions-which-log-to-fetch

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Collection was modified; enumeration operation may not execute. — check the first exception and overlapping composite-child timestamps. Unable to process file command 'state' successfully. — check simultaneous child completion while handling GITHUB_STATE.

Commands can succeed before runner bookkeeping fails; composite children overlap through background: true or parallel:.

First action for both errors — Untested experiment: remove background: true execution from overlapping setup children and run them as sequential job steps instead of parallel: work, retaining inputs and IDs. Review with git diff -- .github/workflows .github/actions and git diff --check before rerunning.

Evidence: issue #4789 includes the original state-corruption report and independent nested-composite failures. A follow-up reproduces the latter in an L0 test and links PR #4799, merged 2026-10-20 behind actions_fix_embedded_github_context (checked 2026-11-17). Serialization remains an untested experiment; neither source establishes a fixed release for the original GITHUB_STATE failure.

Not for: finding the right GitHub Actions CI log.

What changed

  • The official runner 2.337.0 release identifies the reported runner build (checked 2026-10-28); it does not establish the race's introduction point.
  • ronocod's issue #4789, opened 2026-10-16 (checked 2026-10-28), reports failures when composite children overlap through background: true or parallel:. This is a new bug report, not a documented migration requirement for all workflows.

How to migrate / mitigate

1. Save the first runner exception and the overlapping step timestamps. Identify the composite children processing state at that instant. 2. Untested experiment: remove background execution from the overlapping setup children and run them as sequential job steps. Keep existing inputs and IDs. For the issue's two local actions, this JSON fragment illustrates the ordering to merge into the existing job:

{"steps":[{"name":"Set up services","id":"dbs","uses":"./.github/actions/steps/setup-dbs"},{"name":"Set up workspace","id":"workspace","uses":"./.github/actions/setup-workspace"}]}

Review the sequential-step experiment before rerunning the job:

git diff -- .github/workflows .github/actions
git diff --check

3. Compare overlap for both diagnostics while evaluating the same untested experiment. Retest repeatedly, including cleanup/post actions. A single successful retry does not establish a fix.

What breaks

Diagnostic: Collection was modified; enumeration operation may not execute.

ronocod (checked 2026-10-28) reports intermittent failures before or inside composite execution, sometimes after commands succeed. The suspected cause is shared mutable runner collections; it is not established for every occurrence of this generic exception. Do not rewrite successful build commands solely because later runner bookkeeping failed.

Diagnostic: Unable to process file command 'state' successfully.

The same job log (checked 2026-10-28) shows simultaneous child completion and collection corruption while handling GITHUB_STATE. The reporter points to unsynchronized embedded-state dictionary access. Preserve state files and diagnostics for comparison. Serialization remains an untested experiment.

What to test

Repeat the sequential-setup experiment on the same commit. Compare first exceptions, step ordering, dependency caches and post-action completion. Then reintroduce only unrelated parallel work. Preserve the original failure log to distinguish a disappeared race from a changed build.

Pitfalls

Check the actual child timestamps rather than assuming a job-level concurrency setting removed their overlap. Do not assume cache corruption or token permissions explain this pair of messages without matching evidence. An upgrade is only a claimed fix if its release notes identify the relevant correction.

Evidence

The report describes runner 2.337.0 (checked 2026-10-28). Its activity links Sentry commits moving setup before parallel work; that is supporting context, not an independent reproduction or proof of release repair.

Before making changes

Read issue #4789 and the official runner notes linked above. Inspect the earliest exception and overlapping composite children. Evaluate a minimal sequential setup patch as an untested experiment, preserving inputs, outputs and post-actions. Do not erase state or claim an upgrade fixes the race without release evidence. Compare the diff and repeated-run results.

Limits

Evidence for the original GITHUB_STATE failure remains the reporter's analysis without a standalone reproduction or maintainer-confirmed root cause. Serialization remains an untested experiment; no fixed runner release for that failure is established by issue #4789 (checked 2026-11-17).

Started from a post by @ronocod, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Collection was modified: untested Actions mitigation
Summary: As of November 2026, investigate overlapping composite children and preserve the first collection/state exception; the [cited issue](https://github.com/actions/runner/issues/4789) establishes neither a confirmed mitigation nor a fixed release for its original GITHUB_STATE failure.
Copy for agent
get the whatworks thread github-actions-collection-modified-state-command-errors and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread github-actions-collection-modified-state-command-errors
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks