fix(media-apply): refuse a plan row whose verb the tool does not know
read_plan's if/elif chain had no else, so any row that was not mkdir, keep or move was dropped in silence. A plan of nothing but typos therefore applied as a successful no-op: on 2026-11-02 a pass meant to rename two TVShows series folders reported "applied: 0 moved" and exit 0, and the journal was never written — nothing told the operator the plan had never been read. An unread row is a plan bug, and every other plan bug in this tool refuses before the first rename, so now this one does too, naming the line and the verb. cwd: /home/blank/.omp/wt/wt-20261030-163847-6d1fc1f · session: 01a18f2e-18b1-7573-bcd5-ac99636f8bcb
This commit is contained in:
1 parent
4a33898a6c
commit
a405c5ed35
3 files changed
+49
-5
No files matched your search
@@ -403,9 +403,12 @@ executor, the one-journal-per-arm law, the sweep and the rollback.
|
||||
- **The journal lives BESIDE the library root, never inside it** (default:
|
||||
`media-relayout.jsonl` next to the root): a log inside the library is a file
|
||||
Jellyfin indexes.
|
||||
- **Refusals are all-or-nothing.** An occupied target, a vanished source or a
|
||||
duplicate destination stops the run *before the first rename*, so the operator
|
||||
fixes one thing and re-runs instead of untangling a half-applied plan.
|
||||
- **Refusals are all-or-nothing.** An occupied target, a vanished source, a
|
||||
duplicate destination, or a plan row whose verb is not `mkdir`, `keep` or
|
||||
`move`, stops the run *before the first rename*, so the operator fixes one
|
||||
thing and re-runs instead of untangling a half-applied plan. An unread verb is
|
||||
refused by line number: silently dropping one turned a pass meant to rename
|
||||
two series folders into `applied: 0 moved` with exit 0 (2026-11-02).
|
||||
`--force` relaxes only the opinion guards; it never permits overwriting.
|
||||
- **A sweep deletes only what the journal proves the run emptied.** A folder is
|
||||
eligible when a journalled file moved out of it or out of something under it,
|
||||
|
||||
Reference in new issue
Block a user