From ae893c1517d2d6281547c1bf902a403aa1094703 Mon Sep 17 00:00:00 2001 From: eliets2 Date: Thu, 5 Nov 2026 21:13:45 +0200 Subject: [PATCH] M13 batch: correct parity status and scope the no-replace sentence (#6299) Co-authored-by: eliets2 <287273517+eliets2@users.noreply.github.com> --- docs/cli-batch.md | 4 +++- parity/acrobat-features.toml | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/cli-batch.md b/docs/cli-batch.md index ad2982bb14..dd0339cd12 100644 --- a/docs/cli-batch.md +++ b/docs/cli-batch.md @@ -42,12 +42,14 @@ only `.pdf` inputs are processed. Unsupported extensions are reported as skipped remaining files continue. Earlier successful outputs stay, and unprocessed files are listed as skipped. A file is published only after all its steps succeed. -Existing output names are never replaced, even by concurrent batch writers: +For `batch`, existing output names are never replaced, even by concurrent batch writers: `book.pdf`, `book (2).pdf`, and so on. A temporary file in the destination folder is published without overwriting. Sources are never moved or deleted. An output folder inside an input folder is excluded from discovery, including on reruns. The output folder cannot equal or contain a selected input folder. +The Action Wizard (`action_run`) and folder OCR (`ocr_recognize_files`) do not give this guarantee yet. + The report contains `completed`, `failed`, `skipped`, `stopped` and `files`. Each file records its status, output and step results, or the error/skip reason. The `batch` command exits nonzero on any file failure while still printing the diff --git a/parity/acrobat-features.toml b/parity/acrobat-features.toml index 9635898230..2e82a0c430 100644 --- a/parity/acrobat-features.toml +++ b/parity/acrobat-features.toml @@ -7844,11 +7844,11 @@ title = "Optimize multiple files" area = "K" tier = "P2" milestone = "M13" -status = "planned" +status = "partial" commands = [] -tools = [] -evidence = [] -notes = "" +tools = ["doc_batch"] +evidence = ["apps/pdfcraft-cli/tests/it/batch.rs::cli_batch_reports_partial_failure_and_continues_into_subfolders"] +notes = "Headless and CLI only: doc_batch with the optimize step (`pdfcraft-cli batch --steps optimize`, or `convert,optimize` as the cited test runs) over files and folders. No GUI batch dialog, no report file, no parallel workers, no resume. See docs/cli-batch.md." [[feature]] id = "optimize.preflight" @@ -9452,11 +9452,11 @@ title = "Run guided actions on files" area = "N" tier = "P1" milestone = "M13" -status = "shipped" +status = "partial" commands = ["actions.wizard"] tools = ["action_list", "action_run"] evidence = ["crates/ui-egui/tests/it/actions.rs::desktop_actions_preserve_duplicate_names_and_results_from_earlier_runs", "crates/engine/src/tests.rs::actions_run_their_steps_on_files", "crates/automation/tests/it/automation.rs::actions_through_tools", "crates/ui-egui/tests/it/actions.rs::run_and_create_actions"] -notes = "Desktop output filenames receive numbered suffixes when occupied, preserving every batch result and previous outputs. Pick an action and files; results go to a chosen folder, in the background with progress." +notes = "Desktop output filenames receive numbered suffixes when occupied, preserving every batch result and previous outputs. Pick an action and files; results go to a chosen folder, in the background with progress. Known gap: a failing non-removal step still publishes its output as success (crates/engine/src/actions.rs:200-208)." [[feature]] id = "misc.action-wizard-create"