name: octon-proposal-lifecycle-cleanup-lifecycle-residue description: Run the cleanup-lifecycle-residue bundle. license: MIT compatibility: Octon proposal lifecycle extension. metadata: author: Octon Framework created: "2026-05-18" updated: "2026-05-18" skill_sets: [executor, specialist] capabilities: [self-validating] allowed-tools: Read Glob Grep Bash(git status) Bash(git diff) Bash(git fetch *) Bash(git checkout -b *) Bash(git add *) Bash(git commit *) Bash(git push *) Bash(git merge *) Bash(.octon/framework/assurance/runtime/_ops/scripts/cleanup-local-run-artifacts.sh *) Bash(.octon/framework/assurance/runtime/_ops/scripts/classify-proposal-worktree-hygiene.sh ) Bash(.octon/framework/assurance/runtime/_ops/scripts/proposal-lifecycle-residue-fingerprint.sh ) Write(/.octon/inputs/exploratory/proposals/) Write(/.octon/state/evidence/runs/skills/)
Program - Cleanup Lifecycle Residue
This route is the dedicated cleanup authority for residual worktree artifacts
left by a proposal program lifecycle run. It is separate from
closeout-packet and closeout-program; do not treat those closeout routes as
cleanup routes.
Required Procedure
- Inspect the dirty worktree and the lifecycle target.
- Run
.octon/framework/assurance/runtime/_ops/scripts/cleanup-local-run-artifacts.shfirst as classification evidence only. When the lifecyclerun_idorprogram_run_idis available, pass it as--active-run-id <run-id>so current-run control and evidence artifacts are protected from cleanup. Do not invoke the helper with--confirm,--authorize, or--authorizationfrom this route. - Delegate eligible local run-state cleanup candidates to
repo-hygiene-cleanup. Actual deletion requires that route's classify-first flow plus explicit confirmation or a validatingrepo-hygiene-cleanup-authorization-v1receipt. Record the delegated cleanup evidence ref, authorization ref when present, cleanup outcome, and next-route condition. - Classify every changed or untracked path as active implementation work, valid lifecycle/proposal progress, cleanup-safe local residue, protected or referenced evidence, or ambiguous/manual-review residue.
- Preserve protected, referenced, ambiguous, manual-review, user-owned, and active implementation artifacts.
- Partition safe publishable cleanup, progress, and evidence sets into
coherent
branch-no-prbranches with focused Conventional Commits. - Push, land, clean up branches, and sync local main only when branch content is safe to publish.
- If raw
.octon/state/**control/evidence records or internal run logs are not safe to publish, do not widen disclosure or work around policy. Write a push-safe disposition receipt instead. - Rerun
.octon/framework/assurance/runtime/_ops/scripts/classify-proposal-worktree-hygiene.shfor the relevant proposal program target before finishing. - Compute the lifecycle residue freshness digest with
.octon/framework/assurance/runtime/_ops/scripts/proposal-lifecycle-residue-fingerprint.sh --target <program_packet_path> --lifecycle proposal-programand record that exact output inresidue_fingerprint. Do not substitute the cleanup helper'sclassification_digest; it is a separate helper diagnostic, not the lifecycle receipt freshness digest.
Receipt
Write support/lifecycle-residue-cleanup.md with at least:
verdictcleaned_atcleanup_candidatesactive_implementation_work_intactimplementation_blockingcloseout_blockingarchive_blockingimplementation_hygiene_verdictpublication_hygiene_verdictmanual_review_countworktree_hygiene_verdictremaining_blocker_classresidue_fingerprint
Place these fields in the opening YAML receipt block. If cleanup candidates are
zero, active implementation work is intact, the proposal worktree classifier
reports worktree_hygiene_verdict: pass, and
worktree_hygiene_foreign_path_count: 0, retained protected or helper
manual-review state is local evidence and not a human approval pause. Record
implementation_blocking: false, closeout_blocking: false,
archive_blocking: false, implementation_hygiene_verdict: pass,
publication_hygiene_verdict: pass, and remaining_blocker_class: none.
The residue_fingerprint field must equal the current output of
proposal-lifecycle-residue-fingerprint.sh for the bound program target and
proposal-program lifecycle. Keep the cleanup helper's classification_digest
under a separate helper field when useful.
The receipt must record retained rationale, local-only recovery refs when raw private artifacts are retained locally, and any remaining blocker class.