cc-os/plugins/os-doc-hygiene/openspec/changes/archive/2026-06-24-add-clean/README.md

12 lines
725 B
Markdown

# add-clean
Build step #4: the `hygiene-clean` skill, `patch_applier.py` (already built — 263
tests pass), and `/hygiene clean`/`sweep` routing. Loads the report written by
`check`, gates `confirm`-tier entries (delete-range, all generative) with a
batch-confirm prompt, applies deterministic entries via the per-file transaction
applier (content-hash guard, descending-anchor application, incompatible-ops
detection, precise git staging), delegates generative distillation to a Sonnet
subagent via `workflows/distill.md`, and produces exactly one git commit
(`git-context commit-apply`). `sweep` = check-then-clean at command level, no
double-commit. Resolves the deferred `insert-frontmatter` guard hole from add-check.