Apply approved repository cleanup
codeinspectus_apply_cleanupApplies an approved cleanup plan to AI-generated source files after explicit confirmation, matching artifact IDs, creating backups, making bounded edits, and logging changes.
Instructions
Apply one exact ready V3.3 cleanup plan after explicit approval. Requires an exact artifact-ID match and confirmation, creates managed content backups, uses atomic bounded edits, creates new media copies, reruns the same repository-trust validators, and writes a content-free audit log. This modifies selected source files and/or creates named cleaned copies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | ||
| confirm_cleanup | Yes | Must be true after the user reviews and approves the exact plan. | |
| approved_artifact_ids | Yes | Exact artifact IDs approved by the user; must equal the plan scope. | |
| confirm_rights_to_modify | No | Required when removing explicit attribution or provenance; confirms the user is authorized to create the proposed change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| outcome | Yes | ||
| plan_id | Yes | ||
| checkpoint | Yes | ||
| cleanup_id | Yes | ||
| operations | Yes | ||
| started_at | Yes | ||
| limitations | Yes | ||
| completed_at | Yes | ||
| verification | Yes | ||
| audit_log_path | Yes | ||
| schema_version | Yes | ||
| repository_trust_after | Yes | ||
| repository_trust_before | Yes | ||
| repository_trust_changes | Yes |