DevOps QA / Intermediate: trustworthy validation systems / Lesson 14
Verify cleanup after partial test setup
Test fixture ownership and recovery when an ephemeral environment fails during setup.
On this page
Lesson goals
- Track resources and cleanup ownership.
- Exercise partial setup failures safely.
- Verify cleanup cannot affect a neighboring run.
- Track owned resources and register cleanup at each successful setup step.
- Verify partial-failure cleanup, unknown outcomes and neighbor preservation under bounded recovery.
Model setup as a sequence of owned resources
A short-lived test environment can still leak resources when setup fails partway through. Model its lifecycle as a sequence: create an isolated namespace, add a synthetic account, run the test and remove what the run owns. Assign a unique run identifier and document the owner of each resource. Work only in an authorized disposable environment with synthetic data. The aim is to verify cleanup under both success and failure, not to delete arbitrary resources in a shared system.
Register cleanup at creation
Register an appropriate cleanup action immediately after each resource is successfully created, before beginning the next dependent step. If account creation fails, the namespace still needs cleanup. Record ownership and safe resource identifiers without logging credentials. The table illustrates the desired ownership record, not a command or an execution result. Cleanup must be scoped to the run identifier and must tolerate an already absent owned resource according to the environment’s documented behavior.
Step | Resource owned | Cleanup registered
create namespace | lab-42 | yes
create account | lab-42/user | yes
The synthetic record describes intended ownership and is not an execution result.
Exercise partial failures safely
Inject a controlled setup failure after the namespace is created and again after the synthetic account is created, using separate fresh runs. Verify which cleanup actions run and inspect the remaining resources. A failed test assertion and a failed cleanup are separate observations; preserve both so cleanup does not conceal the original error. If the underlying platform is unavailable, the cleanup result may be unknown rather than successful. Record the exception and use the approved lab recovery procedure.
Failure point | Expected remaining resources
after namespace | none owned by lab-42
after account | none owned by lab-42
The synthetic record describes intended ownership and is not an execution result.
Protect neighboring work
Create a second synthetic namespace owned by a neighboring run before testing cleanup. Confirm that cleanup of the first namespace cannot delete or modify the second. Do not use global cleanup commands or broad selectors to simplify the exercise. Test identity and scope checks independently from the happy path. If an identifier is missing or ambiguous, stop and report it rather than guessing which resources belong to the failed run.
Verify repeated and parallel runs
Repeat the original failure, the successful case and a bounded parallel run on fresh isolated resources. Verify the exact resources present before and after cleanup, including the neighboring namespace. Record the run identifier, selected failure point, cleanup outcome and remaining uncertainty. If a cleanup job runs later, account for that delay explicitly instead of claiming immediate deletion. A clean synthetic exercise supports the tested lifecycle but does not prove recovery from every platform outage.
Model creation as a sequence of ownership
Setup often creates several resources before a test starts: a namespace, an account, a dataset and an application session. Any step can fail after an earlier step succeeded. Model each successful creation as an owned resource with a run identity, exact resource identifier, creation outcome and cleanup action. A failed account creation does not erase a namespace already created; the ledger must retain that earlier resource for cleanup.
The owner identity must be trustworthy at the deletion boundary. A shared prefix, display name or broad label alone can select a neighboring run’s resources. Confirm the exact resource and ownership before removing it, and restrict the cleanup identity to the intended scope. The examples below are synthetic records for reasoning; they do not create or delete real infrastructure.
Register recovery immediately
Register a cleanup action as soon as creation succeeds, before starting the next potentially failing step. In a local fixture, a finalizer or context manager can associate cleanup with a successfully created resource; understand the framework’s behavior when setup fails before or after registration. A durable external resource also needs an independent inventory or expiry path because a process can be killed before its local finalizer executes.
Cleanup should generally run in reverse dependency order: close a session before deleting the account it uses, then remove its namespace if the dependencies require it. This is a design choice based on the actual resource graph, not a universal ordering rule. If a later cleanup fails, record it and continue other safe independent cleanup where policy permits; do not silently mark the whole run clean.
Define deletion outcomes precisely
A cleanup operation may report success, already absent, timeout, permission denied or an ownership mismatch. Define how each is handled. If the policy treats a verified absent resource as success, a repeated cleanup can be safe and idempotent. A timeout is different: the delete may have completed or may still be running, so its outcome is unknown until a safe read or approved reconciliation establishes the state.
Never infer deletion from a request being sent. Preserve the timeout, operation identity and last known state, then use a bounded read and the approved recovery process. An inability to read because of permission or network failure is not proof of absence. Retrying a deletion is safe only when ownership, operation semantics and concurrent users have been considered.
Protect concurrent and neighboring work
Parallel runs can create similar names and share a database, queue or namespace. Allocate identities that distinguish run and resource, record the resulting exact identifiers, and avoid cleanup commands that delete all objects matching a broad test prefix. A unique name reduces accidental collision but does not itself authorize deletion; the cleanup principal and ownership checks must enforce the boundary.
Consider races between cleanup and another attempt. A late finalizer from attempt one must not delete a resource reused by attempt two. Use attempt ownership or a safe lease and verify that the resource still belongs to the cleanup target. A janitor must avoid active runs and use independently verified expiry and ownership, rather than trusting an old timestamp alone.
Exercise partial failure deliberately
In a disposable synthetic environment, inject failures after each successful creation step and verify the exact expected remaining state. For example, fail account creation after namespace creation, then check that the owned namespace is absent after cleanup and that a neighboring namespace remains present. Check actual observed state, not just a successful teardown log. Include a failure in cleanup itself to test reporting and recovery.
Bound these experiments by resource scope, count and duration. Do not use production resources or real customer data. Record the ledger, injected point, cleanup result, safe state reads and any unknowns. A local finalizer test and an independent janitor test cover different failure modes: killing the runner may prevent the finalizer from running at all.
Reconcile and report the lifecycle
A complete lifecycle report connects the run and attempt to resources created, cleanup actions attempted, confirmed deletions, already-absent outcomes, failures and unresolved states. It should identify who owns recovery and when to review an orphan. Preserve useful diagnostic evidence before deletion while applying retention and access limits; cleanup must not destroy the only safe record explaining the original setup failure.
After a repair, repeat partial setup, repeated cleanup and overlapping runs under controlled conditions. Verify both that the intended resource was removed and that neighboring resources survived. An audit log saying delete requested is not a read confirming absence, and a single successful cleanup does not prove all interruption paths safe. State these limits when using the result in a release decision.
20 worked examples
1. Account creation failure
Problem: Analyze the synthetic account creation failure record and determine the justified cleanup decision.
- Namespace creation succeeded before account creation failed
- The ledger retains N1 as an owned resource needing cleanup.
run=R1; namespace=N1 created; account=create_failed; ledger=[N1]
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Clean the owned N1 according to the lab procedure and verify its absence.
Why this result follows: A later setup failure does not undo an earlier successful creation.
2. Neighbor survives
Problem: Analyze the synthetic neighbor survives record and determine the justified cleanup decision.
- N1 belongs to the target run and N2 belongs to another run
- Cleanup for R1 has no ownership basis to remove N2.
run=R1 owns N1; run=R2 owns N2; cleanup_target=R1
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Remove only verified N1 and confirm N2 remains.
Why this result follows: Both intended deletion and neighbor preservation are required observations.
3. Finalizer registration gap
Problem: Analyze the synthetic finalizer registration gap record and determine the justified cleanup decision.
- The current design registers cleanup only after the next step
- If account creation fails, the namespace exists without that local finalizer.
namespace=create_success; next_step=account_create; finalizer_registered=after_account
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Move registration immediately after namespace creation so account failure does not bypass it.
Why this result follows: Recovery must be registered before the next fallible operation.
4. Reverse dependency order
Problem: Analyze the synthetic reverse dependency order record and determine the justified cleanup decision.
- The session depends on the account and the account on the namespace
- Removing a dependency first can obstruct orderly cleanup of its dependent.
session uses account; account belongs to namespace; cleanup_order=namespace,account,session
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Close the session, remove the account, then remove the namespace when those dependencies require it.
Why this result follows: Cleanup order follows the actual dependency graph.
5. Delete timeout
Problem: Analyze the synthetic delete timeout record and determine the justified cleanup decision.
- A timeout does not say whether deletion completed
- No subsequent read is available in the record.
resource=N3; delete=timeout; safe_read=not_yet_done
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Treat the resource state as unknown and perform an approved safe read or reconciliation.
Why this result follows: A request outcome and the final resource state are separate facts.
6. Verified already absent
Problem: Analyze the synthetic verified already absent record and determine the justified cleanup decision.
- The safe read confirms absence and the policy accepts that outcome
- No additional deletion is needed.
resource=N4; owner=R4; safe_read=absent; policy=absence success
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Record already absent and treat cleanup as successful under the stated policy.
Why this result follows: Explicit absence handling makes repeated cleanup safe under the stated conditions.
7. Permission denied is not absence
Problem: Analyze the synthetic permission denied is not absence record and determine the justified cleanup decision.
- The read could not observe the resource
- Permission denial does not provide an existence result.
resource=N5; read=permission_denied; delete=unknown
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Keep the state unknown and escalate the permission problem; do not report the resource absent.
Why this result follows: An unsuccessful read cannot confirm deletion.
8. Ownership mismatch
Problem: Analyze the synthetic ownership mismatch record and determine the justified cleanup decision.
- The recorded owner differs from the requested cleanup run
- Having technical delete permission does not establish that the target belongs to R6.
cleanup_run=R6; resource=N7; recorded_owner=R7; delete_permission=yes
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Do not delete N7 for R6; report and investigate the ownership mismatch.
Why this result follows: Authorization and correct ownership are independent checks.
9. Broad prefix collision
Problem: Analyze the synthetic broad prefix collision record and determine the justified cleanup decision.
- Both names start with the shared test- prefix
- The selector therefore includes the neighboring R9 resource.
R8 owns test-R8; R9 owns test-R9; cleanup_selector=test-*
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: The selector matches both runs and is unsafe for R8 cleanup.
Why this result follows: A common test prefix is not a run-specific ownership boundary.
10. Late attempt finalizer
Problem: Analyze the synthetic late attempt finalizer record and determine the justified cleanup decision.
- The resource is currently owned by attempt2
- A late finalizer from attempt1 targets the same identifier.
attempt1.resource=X; attempt2 reuses X; attempt1.finalizer=delete X; owner_now=attempt2
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Do not let attempt1 delete X after ownership changed; use attempt-specific identity or verified lease.
Why this result follows: Cleanup must verify current ownership when resources can be reused.
11. Runner killed
Problem: Analyze the synthetic runner killed record and determine the justified cleanup decision.
- The local process is gone before its finalizer ran
- Expiry alone requires an authorized independent actor to inspect and act.
resource=N10 created; runner=killed; local_finalizer=not_run; expiry=elapsed
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: An independent reconciler should verify inactive ownership and remove N10 under approved policy.
Why this result follows: A local finalizer cannot guarantee cleanup after process loss.
12. Expired but active
Problem: Analyze the synthetic expired but active record and determine the justified cleanup decision.
- The lease expired but the run remains active
- The stated policy protects active runs.
resource=N11; lease=expired; run=active; policy=protect active
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Do not delete under this policy; alert and review the expired lease.
Why this result follows: Expiry and activity are separate conditions in the deletion decision.
13. Cleanup failure and independent resource
Problem: Analyze the synthetic cleanup failure and independent resource record and determine the justified cleanup decision.
- A deletion failed, but B has no dependency on A in this scenario
- The policy permits continuing independent cleanup.
resource=A delete=permission_denied; resource=B independent; policy=continue safe cleanup
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Report A unresolved and continue safe cleanup of B under the stated policy.
Why this result follows: One failure need not hide other safe recovery work.
14. Dependent cleanup blocked
Problem: Analyze the synthetic dependent cleanup blocked record and determine the justified cleanup decision.
- Closing S failed and A deletion requires the session closed
- The prerequisite for safe account deletion is unmet.
session=S uses account=A; close S=failed; delete A requires closed session
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Keep A unresolved and investigate S before deleting A under the stated dependency.
Why this result follows: Cleanup ordering must respect failed prerequisites.
15. Deletion request versus confirmation
Problem: Analyze the synthetic deletion request versus confirmation record and determine the justified cleanup decision.
- The service accepted the deletion request, but the operation remains pending.
- A safe read still finds the resource, so final deletion is not confirmed.
delete_request=N12 accepted; operation_status=pending; safe_read=present
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Do not claim N12 is deleted; wait or reconcile within the approved bound.
Why this result follows: Request acceptance is not confirmation of final state.
16. Ledger lost after partial setup
Problem: Analyze the synthetic ledger lost after partial setup record and determine the justified cleanup decision.
- The local ledger is missing after a resource was created
- The owner tag may aid discovery but must be verified before deletion.
namespace=N13 created; account=create_failed; durable_ledger=missing; owner_tag=R13
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Use approved inventory and owner verification to locate N13, and repair ledger registration.
Why this result follows: Independent inventory can recover a partial resource when local state is lost.
17. Name uniqueness without authorization
Problem: Analyze the synthetic name uniqueness without authorization record and determine the justified cleanup decision.
- The name distinguishes the run, but the principal can delete all resources
- Naming alone does not enforce access control.
resource_name=R14-N; owner=R14; cleanup_principal=all-resources-admin
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Reduce cleanup authority to the necessary scope and still verify ownership.
Why this result follows: Isolation requires both a precise target and appropriately limited authority.
18. Synthetic failure injection
Problem: Analyze the synthetic synthetic failure injection record and determine the justified cleanup decision.
- The failure occurs after namespace creation
- The observed reads show the owned namespace absent and the neighbor still present.
namespace=N15 created; injected_failure=account_create; neighbor=N16; observed N15=absent,N16=present
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: This synthetic observation supports cleanup of N15 and preservation of N16 for the tested path.
Why this result follows: Both positive and negative state checks are needed for this partial-failure path.
19. Repeated cleanup
Problem: Analyze the synthetic repeated cleanup record and determine the justified cleanup decision.
- The resource is already absent before the second cleanup
- The policy explicitly treats verified absence as success.
first_read=N17 absent; second_cleanup=absence; policy=absence success
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Treat the second cleanup as successful under the stated absence policy.
Why this result follows: Idempotent cleanup has a defined result when the resource is already gone.
20. Cleanup evidence retained
Problem: Analyze the synthetic cleanup evidence retained record and determine the justified cleanup decision.
- The diagnostic explains the original account failure
- The cleanup record separately documents namespace removal.
setup_error=account_failed; diagnostic=safe_log; cleanup=namespace_deleted; retention=limited
The hypothetical record is for reasoning and does not create or delete resources.
Expected result: Retain the safe setup diagnostic within policy while recording confirmed cleanup.
Why this result follows: Removing resources should not erase the only safe evidence of the setup failure.
Common errors and fixes
Registering cleanup only after all setup succeeds
- Why it happens
- A partial failure bypasses teardown.
- How to fix it
- Register cleanup after each successful creation.
- Prevent it next time
- Exercise failures at each setup boundary.
Deleting resources with a broad selector
- Why it happens
- The cleanup is not scoped to a run owner.
- How to fix it
- Stop and use the approved ownership record.
- Prevent it next time
- Test a neighboring namespace remains unchanged.
Reporting cleanup success when the platform was unavailable
- Why it happens
- An unknown outcome is mistaken for completion.
- How to fix it
- Record uncertainty and use the lab recovery procedure.
- Prevent it next time
- Observe cleanup results and delayed retries explicitly.
20 practice exercises
1. Account creation fails after the namespace exists. What should remain?
Show hint
The namespace exists even though the following account step failed.
Show worked solution
The owned namespace should be cleaned according to the lab procedure, while any neighboring run stays intact. Verify the observed state rather than assuming teardown ran.
Use the ledger to identify the namespace owned by this run, clean it according to the lab procedure and verify its observed absence. Preserve the account creation failure and confirm that a neighboring run’s namespace remains intact; do not assume a teardown log proves the final state.
Check your solution
- The owned namespace is confirmed absent.
- The neighboring run remains intact.
2. Cleanup reports a timeout. Can the test claim the resource was deleted?
Show hint
A timeout does not reveal whether deletion completed.
Show worked solution
No. Its state is unknown until a safe read confirms it. Preserve the timeout and follow the approved recovery process.
The resource state is unknown after a cleanup timeout. Preserve the timeout and operation identity, perform an approved safe read or reconciliation, and follow the recovery process. A failed read or permission error is not evidence that the resource is absent.
Check your solution
- The timeout remains in the record.
- Absence is confirmed before deletion is claimed.
3. A namespace is created but account creation fails. The resource ledger contains the namespace. What should cleanup verify?
Show hint
A failed later step leaves earlier resources.
Show worked solution
Verify the namespace belongs to the failed run, remove it according to the lab procedure, and perform a safe read to confirm absence. Preserve the account error and confirm a neighboring run’s namespace remains intact.
Check your solution
- The owned namespace is confirmed absent
- The neighboring namespace remains
4. Cleanup times out after requesting deletion of a resource. Can it claim deletion?
Show hint
A timeout has an unknown outcome.
Show worked solution
No. Preserve the timeout and operation identity, then use an approved safe read or reconciliation to determine whether the resource remains. Treat read failure as unknown, and retry only when ownership and operation semantics make it safe.
Check your solution
- Timeout is retained
- Absence is confirmed before claiming deletion
5. Run A owns namespace A and run B owns namespace B. A cleanup selects every namespace starting with test-. What is wrong?
Show hint
Compare the selector with ownership.
Show worked solution
The broad selector can match B as well as A. Replace it with the exact recorded resource identity and verify its owner before deletion; test that B remains present after A cleanup.
Check your solution
- Selector can include B
- B survives A cleanup
6. A setup registers namespace cleanup only after creating an account. Account creation fails. How should registration change?
Show hint
Register after each successful creation.
Show worked solution
Register namespace cleanup immediately after the namespace is created, before attempting the account. Maintain an owned resource ledger and test the failure point so the earlier resource is still discoverable and removable.
Check your solution
- Registration precedes account creation
- The namespace remains in the ledger
7. A session depends on an account, and the account depends on a namespace. Propose a cleanup order.
Show hint
Work backward through dependencies.
Show worked solution
Close the session first, remove the account next, and remove the namespace last if those dependencies require that order. Record failures and do not delete a prerequisite when its dependent cannot safely be cleaned.
Check your solution
- Session is closed before account removal
- Namespace is removed after its dependents
8. A read of a resource returns permission denied after a delete attempt. Is the resource absent?
Show hint
A failed read is not an absence result.
Show worked solution
No. Its state remains unknown because the read could not observe it. Preserve the permission error, involve the authorized owner or reconciler, and confirm final state through an approved safe read before declaring cleanup complete.
Check your solution
- Permission error is retained
- State remains unknown
9. A runner is killed before its finalizer executes and a temporary database remains. What independent recovery is needed?
Show hint
A local finalizer cannot run after process loss.
Show worked solution
Use an independently operated inventory and expiry reconciler with narrow permissions. Verify ownership, expiry and inactive run status before deleting, record the outcome, and alert if recovery fails or the state cannot be observed.
Check your solution
- The runner finalizer did not run
- Independent recovery verifies ownership and inactivity
10. Attempt one has a late finalizer for resource X, now reused by attempt two. What must prevent deletion?
Show hint
Check current ownership.
Show worked solution
Give attempts separate resource identities or enforce a verified lease so the first finalizer cannot delete a resource now owned by the second. Record the ownership mismatch and verify the second attempt’s resource remains available.
Check your solution
- Attempt ownership differs
- The second attempt’s resource survives
11. An owned resource is already absent on a repeated cleanup, and policy treats verified absence as success. What should be recorded?
Show hint
Apply the explicit absence rule.
Show worked solution
Record the safe read showing absence and classify the repeated cleanup as successful under this policy. Distinguish verified absence from a permission error or timeout, and retain the resource identity and run in the lifecycle record.
Check your solution
- Absence is verified
- Policy accepts the already-absent result
12. A delete request is accepted but the operation remains pending and a safe read finds the resource. Is cleanup complete?
Show hint
Request acceptance is not final state.
Show worked solution
No. Record the pending operation and observed presence, wait or reconcile within the approved bound, and confirm absence before claiming deletion. Escalate if the operation cannot be resolved safely within that bound.
Check your solution
- Operation remains pending
- The resource is still observed present
13. A resource belongs to run B, but run A has technical permission to delete it. Should A cleanup delete it?
Show hint
Permission does not establish ownership.
Show worked solution
No. Report the ownership mismatch and inspect the selector or ledger. Cleanup for A should target only resources verified as A’s, even if its principal happens to possess broader technical permission.
Check your solution
- Recorded owner is B
- A does not delete the mismatched resource
14. A resource has expired but its run is active; policy protects active runs. What should the janitor do?
Show hint
Expiry is only one condition.
Show worked solution
Do not delete the active run’s resource under this policy. Record the expired lease and active status, alert the owner and investigate authorized renewal or termination before any subsequent cleanup decision.
Check your solution
- The run is active
- Deletion is withheld under policy
15. Cleanup of resource A fails, but independent resource B can be safely removed. Policy permits continuing independent cleanup. What follows?
Show hint
Distinguish dependent from independent resources.
Show worked solution
Record A as unresolved and continue with B under the stated policy. Verify B’s outcome, preserve A’s failure for an accountable recovery owner, and avoid declaring the entire lifecycle clean while A remains unresolved.
Check your solution
- A remains unresolved
- B is cleaned and verified separately
16. Closing a session fails, and deleting its account requires the session closed. Should cleanup delete the account anyway?
Show hint
Honor the resource dependency.
Show worked solution
No. The prerequisite for safe account deletion is unmet. Preserve the session failure, keep the account unresolved, and follow the approved recovery process before attempting the dependent deletion again.
Check your solution
- Session closure failed
- Account deletion waits for the prerequisite
17. A resource ledger is lost after namespace creation. An owner tag identifies the suspected run. How can recovery proceed?
Show hint
Discovery and deletion are separate.
Show worked solution
Use approved inventory to locate the namespace, independently verify its ownership and run status, then clean it under policy. Record the missing ledger and repair registration so future partial setup remains discoverable.
Check your solution
- The owner tag is verified before deletion
- Ledger registration is repaired
18. A temporary resource name includes the run ID, but the cleanup principal has administrator access to all resources. Is the boundary sufficient?
Show hint
Naming is not authorization.
Show worked solution
No. The unique name helps identify the target but does not restrict what the principal can delete. Narrow the principal’s permissions and still verify the exact owner and resource before each cleanup action.
Check your solution
- Run ID distinguishes the name
- Principal permissions are narrowed
19. An injected account failure occurs after namespace creation. What two state checks establish a safe synthetic cleanup path?
Show hint
Check both target and neighbor.
Show worked solution
In the disposable environment, verify that the owned namespace is absent after cleanup and that a neighboring run’s namespace remains present. Retain the injected point, ledger and read outcomes; a teardown log alone is insufficient.
Check your solution
- Owned namespace is absent
- Neighboring namespace remains present
20. Cleanup removes a namespace and also deletes the only diagnostic log of the setup error. How should the lifecycle change?
Show hint
Preserve useful safe evidence.
Show worked solution
Retain a sanitized diagnostic record under the agreed access and retention policy before deleting the resource. Record the setup failure and confirmed cleanup separately so recovery does not erase the evidence needed to investigate the original error.
Check your solution
- Safe setup diagnostic is retained
- Cleanup result is recorded separately
Key takeaways
- Register scoped cleanup for each created resource.
- Verify partial failures and neighboring ownership.
- A later setup failure leaves earlier resources needing cleanup.
- A timeout or failed read does not prove deletion.
- Cleanup requires verified ownership and protection of neighboring runs.