Expand description
Q3 — the clean command: archive the comments the operator marked DONE.
Once a DONE comment has been resolved in Google (by push), its TODO
heading is dead weight in the org file. clean cuts those subtrees out of
** Active Comments (P6 crate::comments_meta::clean_section) and rewrites
the file, leaving every non-DONE heading and the entire body untouched.
This is a pure, offline transform — no network, no clock. Guarantees:
- Selective. Only
DONEcomment subtrees are removed;TODOheadings (including operator notes and clocking) are preserved verbatim (A3). - DI-2 — the body is sacrosanct. The body is reproduced byte-for-byte;
cleanrewrites only the machine region, and when nothing isDONEit is a strict no-op on the whole file.
Structs§
- Clean
Outcome - The result of a clean: how many comments were archived and the new content.