noCV
AENV-109 · Retire environments safely

Delete only resources owned by the retired preview generation

Practice briefTaskExpert

A cleanup job matches resource names by prefix and can remove a newer generation sharing the same branch label.

Focused work estimate
5h + prerequisites
Priority in the scenario
High
Engineering practice
Resource safety · Recovery

Estimated field mix

  • Platform engineering50%
  • Cloud infrastructure30%
  • Security20%

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 team creates preview stacks for pull requests. Orphan databases consume resources and previews sometimes inherit settings intended for another branch.

Setup prerequisites

  • Create a local provisioning adapter with synthetic repository events.
  • Use isolated disposable resources and no production credentials.

Preceding work

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

Acceptance criteria

  • Match exact environment, generation and ownership tags.
  • Refuse deletion for missing or contradictory ownership.
  • Make retries converge after partial deletion.

Implementation constraints

  • Provider deletion receives exact resource IDs, never wildcard names.

Verification to include

  • Retire an old generation while keeping the new one usable.
  • Alter an ownership tag and verify cleanup stops before deletion.

Deliverables

  • Ownership-checked cleanup and isolation tests

Rollout and recovery

Dry-run deletion plans first; pause cleanup and preserve unresolved resources on ownership conflicts.

Value of the work

For the engineer: Practice resource lifecycle, reconciliation and least-privilege setup.

For the team: Review reliable preview workflows and accountable resource cleanup.

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.