noCV
BENV-107 · Manage lifecycle

Reconcile partially created environments after provider failure

Practice briefBugAdvanced

The database resource exists but the web resource failed, leaving an unusable partial preview.

Focused work estimate
3h 30m + prerequisites
Priority in the scenario
High
Engineering practice
Reconciliation · Recovery

Estimated field mix

  • Cloud infrastructure50%
  • Distributed systems30%
  • Site reliability20%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

A fictional product team creates preview environments for pull requests. Forgotten environments accumulate cost, and shared test data leaks between reviews.

Setup prerequisites

  • Author a local environment-provider double and synthetic pull-request events; provision no external resources.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Record each provider resource identity.
  • Resume or compensate according to lifecycle policy.
  • Release quota only after owned resources are accounted for.

Implementation constraints

  • Never delete resources without matching ownership metadata.

Verification to include

  • Recover a partially created preview.
  • Encounter a foreign resource and stop compensation safely.

Deliverables

  • Partial-creation reconciler.

Rollout and recovery

Keep the environment unavailable until complete; retain reconciliation history.

Value of the work

For the engineer: Practice resource lifecycle state machines, isolation, and reconciliation.

For the team: Make review environments predictable, isolated, and accountable to a budget.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.