Prepare and inspect run evidence¶
Use an approved isolated lab VM for lifecycle operations. The run reference defines storage, provenance, seals, status, and recovery limits.
Clean State Between Runs¶
- Examine the selected project and Docker daemon before destructive cleanup.
- Keep required earlier evidence in the approved run store.
- Examine the cleanup contract.
- Request cleanup followed by ordinary startup:
- Before you authorize volume removal, read the confirmation.
- Use
--yesonly when automation explicitly authorizes destruction of the selected lab data. - Examine the startup outcome and new run identity.
- Before you attempt another run, diagnose cleanup failures.
Do not describe a failed cleanup as a clean starting state.
Use lilrae lab validate-live --skip-clean-boot only when inspection of the existing range is intended.
Compose trial services¶
- Get the already admitted
TrialUnitRequestfrom the existing RAES owner. - Pass its runtime unit,
DeclaredCleanup, and selected Docker backend toLilraeTrialUnit. - Use the same placement-state root for every worker on that daemon.
- Compose
ReadinessEnvironmentfrom the approved lab owners. - Wrap installed trial services in
ReadinessTrialServices. - Bind
TrialReadinessto the same runtime target. - Configure required artifact, participant, placement, containment, capture, and storage checks.
- Keep the admitted entry, run, and attempt identities during delivery.
Do not replace the admitted plan or schedule another batch through this adapter.
Recover an assigned trial¶
- Keep the original attempt identity, placement records, and RAES ledger after interruption.
- Reopen the original durable RAES stores after restart.
- Reconstruct the original
LilraeTrialUnitandAssignedTrialthrough their existing owners. - Pass the coordinator cancellation control, worker runtime, observation clock, and execution identity.
- Call
aptl.backends.trial_recovery.recover_interrupted_trialwith those original inputs. - Examine execution, capture, and cleanup states separately.
- Before you claim completion, resolve retained partial-evidence and cessation limitations.
- Examine declared cleanup, native absence, and probe cessation before any placement reuse.
Do not delete ownership records to permit a new trial. Do not allocate a replacement identity during recovery. If the result requires another range, use a new approved placement. An immutable archive alone does not authorize reuse.
Inspect and export¶
- Use
lilrae runs listto identify available working-run manifests. - Use
lilrae runs show <run-id>to examine the selected run. - Use
lilrae runs path <run-id>for its configured storage location. - Examine the returned archive path separately for an assigned trial's sealed snapshot.
- Use bundle export for portable integrity verification.
Do not infer a seal from a working manifest or a successful export.
Recover a failed start¶
- Examine the startup outcome, diagnostics, and reported retained-resource counts.
- Select the exact project from the failed operation.
- Use
lilrae lab stopto stop its resources and keep volumes. - Use
lilrae lab stop -vonly when managed-volume destruction is intended. - When you operate outside that project directory, include
--project-dir. - Examine retained anonymous volumes separately before reuse or explicit removal.
- Resolve uncertain ownership before another startup or cleanup.
For automatic failed-start teardown, select --teardown-on-failure before startup.
The CLI reference defines preserved data and ownership limits.