Reconcile orphan preview resources into an auditable cleanup queue
A process crashed before saving its final resource record; local storage now contains an environment no active preview references.
- Focused work estimate
- 5h + prerequisites
- Priority in the scenario
- Medium
- Engineering practice
- Inventory reconciliation · Operational safety
Estimated field mix
- Platform engineering50%
- Cloud infrastructure30%
- 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.
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.
- AENV-101 · Validate preview requests before allocating resources
- AENV-102 · Create a review-environment resource plan with an explicit quota
- AENV-103 · Keep preview connection material out of build output
- AENV-104 · Make preview creation resumable after a partial provider failure
- AENV-105 · Bind preview updates to the exact requested source revision
- AENV-106 · Initialize preview data from a synthetic schema contract
- AENV-107 · Probe readiness without accidentally validating only process liveness
- AENV-108 · Expire review environments with a grace period and owner visibility
- AENV-109 · Delete only resources owned by the retired preview generation
Acceptance criteria
- Compare provider inventory to durable environment generations.
- Classify owned orphan, active and unknown resources.
- Require review of unknown ownership before any deletion.
Implementation constraints
- Bound inventory scans and retain an immutable reconciliation report.
Verification to include
- Discover an owned orphan and propose exact cleanup identities.
- Present an untagged resource and verify it is never automatically removed.
Deliverables
- Orphan inventory command and cleanup report
Rollout and recovery
Run read-only first; execute only reviewed owned-orphan plans and stop on inventory drift.
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.