Skip to main content

Module teardown

Module teardown 

Source
Expand description

End-of-run workspace cleanup.

Reclaim a skill’s ephemeral skills-workspace/<skill>/ subtree without ever destroying results the user hasn’t moved into version control.

Structs§

KeptIteration
An iteration kept during cleanup because it still holds uncommitted results.
WorkspaceCleanupSummary
What cleanup_workspace removed and kept.

Constants§

PROMOTED_MARKER
Marker promote-baseline drops into an iteration dir once that iteration’s durable results (benchmark + gradings) are committed under the skill’s evals/baseline/. Teardown treats its presence as “safe to delete”.
SNAPSHOT_META
Provenance the snapshot command writes into each snapshots/<label>/ dir, recording whether it was materialized from a git ref (reproducible) or copied from the working tree (not reproducible). Teardown only reclaims ref snapshots.

Functions§

cleanup_workspace
End-of-run cleanup of a skill’s skills-workspace/<skill>/ subtree.