Workspace Cleanup Policy with Claude Code: Artifact Delivery
A production playbook for workspace cleanup policy in cross-industry operations using Claude Code: artifact delivery, run-scoped inputs, logs, typed results, and artifacts.
Audience: Platform teams managing ephemeral execution
The problem
Platform teams managing ephemeral execution need workspace cleanup policy to run repeatedly against temporary files, terminal states, storage rules, and retention policy. In cross-industry operations, the pain is not one good answer; it is repeatability, auditability, exception handling, and evidence that survives handoff.
Implementation path
Require Claude Code to write customer-visible files under /skill/output/artifacts, validate filenames and sizes, then return signed artifact metadata in argo.result.v1.
Tradeoffs and failure modes
Artifact policy constrains file output, but customers receive files that are durable, typed, and safe to download. For workspace cleanup policy, the practical test is whether a second run can be debugged, retried, and consumed by a product without reading the raw agent transcript.
Artifact manifest
artifacts:
- workspace-cleanup-policy-summary.md
- workspace-cleanup-policy-evidence.csv
- workspace-cleanup-policy-review.json
signed_urls: true
retention: org_policy
Run this on Argo