Install declared cleanup¶
Use this How-to guide in trusted trial-service composition. Use CI or an approved isolated lab VM for tests and native operations. Before you grant resource authority, read the cleanup reference.
Install the service¶
- Get the admitted native attempt and its exact resource ownership receipts.
- Construct
CleanupBindingwith its entry, run, execution attempt, native attempt, range, owner, and admitted resource references. - Construct
ReceiptCleanupwith the configured Docker backend and that binding. - Ask the archive owner to create the run before cleanup begins.
- Construct
DeclaredCleanupwith the admittedTrialCleanupPlanModel, native cleanup owner,LocalRunStore, and observation clock. - Delegate trial-service admission to
DeclaredCleanup.admit. - Delegate cleanup to
DeclaredCleanup.cleanup. - Delegate observation verification to
DeclaredCleanup.verify_observation. - After you install this service, declare
CLEANUP_CAPABILITIESthroughcreate_aptl_manifest(cleanup=...). - Keep the existing configuration, execution, capture, stop, and retry owners.
- Before you permit later dispatch, examine retained cleanup receipts and evidence.
Do not construct authority from an authored owner string alone. Do not replace a refused scoped deletion with a project-wide stop. The supported service contract states unsupported actions and retry limits.