Skip to content

Recover deferred environments after provisioning failure - #42388

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cce419403248168da81bc5a6ab20f919aed81142
Sep 2, 2026
Merged

Recover deferred environments after provisioning failure#42388
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/cce419403248168da81bc5a6ab20f919aed81142

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 2, 2026

Copy link
Copy Markdown

Recover deferred environments after provisioning failure

What changed

  • Allow a valid Ready report to replace a deferred environment's provisioning failure while preserving the same environment instance.
  • Treat provisioning failures as retryable and reconnect when a completed or concurrently publishing startup attempt contains a stale failure.
  • Report provisioning failures from status() without starting a connection, and retain Ready state when a late failure arrives.

Testing

  • Cover recovery after failed and invalid provisioning reports, capability-root resolution after recovery, and the race between Ready and publication of an earlier startup failure.

## What changed

- Allow a valid Ready report to replace a deferred environment's provisioning failure while preserving the same environment instance.
- Treat provisioning failures as retryable and reconnect when a completed or concurrently publishing startup attempt contains a stale failure.
- Report provisioning failures from `status()` without starting a connection, and retain Ready state when a late failure arrives.

## Testing

- Cover recovery after failed and invalid provisioning reports, capability-root resolution after recovery, and the race between Ready and publication of an earlier startup failure.

GitOrigin-RevId: cce419403248168da81bc5a6ab20f919aed81142
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/cce419403248168da81bc5a6ab20f919aed81142 branch from 9bdf1b2 to e6249b5 Compare September 2, 2026 23:49
@copyberry
copyberry Bot merged commit e6249b5 into main Sep 2, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/cce419403248168da81bc5a6ab20f919aed81142 branch September 2, 2026 23:51
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants