# Controlled suites

Canonical source: [Controlled suites](https://docsetgenerator.com/suites)

SUITES

## Plan the cases before you create the files

Describe your test cases in a JSON suite: document types, quantities and delivery conditions. Preflight checks the plan before generation, and coverage records show which cases were produced.

**Command-line setup**

Guide commands use the tools included with your Windows or Linux download; no separate Python installation is needed. Each guide's command examples show the complete command for the platform you choose. [Open platform setup](https://docsetgenerator.com/getting-started#command-line).

A suite is a JSON plan for the documents, quantities and delivery conditions you want to generate. Use it to repeat a controlled test or compare matched versions of the same source.

**Preview the plan first.** The `--preflight` option lists the planned documents and reports unsupported settings without creating output files.

PAIRED SUITES

### Hold the source still while delivery changes

In a paired suite, one source fixes the pristine content, model, layout, and seed. Each variant changes only declared delivery settings such as `no_text`, `messed_up_text`, `scan_preset`, and `scan_strength`. Every job receives a stable `fixture_id` and `variant_id`.

#### Pair clean and image-only

The bundled `first_run.json` plans two authored policy memos in clean and image-only conditions: four PDFs from two source groups. Paired quality is 100; use a mixture when you need visible character corruption.

#### Compare delivery truth

Canonical pages remain pristine. A modified PDF records delivered pages and matching geometry, so a scan test can be analyzed as a delivery condition rather than a new document.

Export the bundled starters to a new directory:

Windows PowerShell

```powershell
& '.\_internal\DocumentGenerator_v2.0_cli.exe' demo --write-examples suite-examples
```

Linux AppImage

```sh
./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli demo --write-examples suite-examples
```

Linux Flatpak

```sh
flatpak run com.docsetgenerator.DocSetGenerator --cli demo --write-examples suite-examples
```

Preview the plan without writing files:

Windows PowerShell

```powershell
& '.\_internal\DocumentGenerator_v2.0_cli.exe' generate --suite suite-examples/first_run.json --preflight
```

Linux AppImage

```sh
./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli generate --suite suite-examples/first_run.json --preflight
```

Linux Flatpak

```sh
flatpak run com.docsetgenerator.DocSetGenerator --cli generate --suite suite-examples/first_run.json --preflight
```

Generate the suite into `output/pairs`:

Windows PowerShell

```powershell
& '.\_internal\DocumentGenerator_v2.0_cli.exe' generate --suite suite-examples/first_run.json --output output/pairs --workers 4 --validate
```

Linux AppImage

```sh
./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli generate --suite suite-examples/first_run.json --output output/pairs --workers 4 --validate
```

Linux Flatpak

```sh
flatpak run com.docsetgenerator.DocSetGenerator --cli generate --suite suite-examples/first_run.json --output output/pairs --workers 4 --validate
```

MIXTURE SUITES

### Give each slice its own question

A mixture suite gives each group its own document type, count and settings. Give each group a distinct ID, especially when a type appears more than once.

```
{
  "suite_version": "1.0",
  "name": "mixed-ocr-damage",
  "seed": 1234,
  "reference_date": "2026-10-01",
  "mode": "mixture",
  "slices": [
    {"id": "invoices-heavy", "type": "invoice", "count": 4, "options": {"quality": 30}},
    {"id": "letters-clean", "type": "letter", "count": 6}
  ]
}
```

Quality is a delivery option with its own limits. Keep scan damage, visible character corruption, corrupt hidden text, and image-only output distinct in the plan.

SPLITS + COVERAGE

### Keep related variants together

| Record | What it answers |
| --- | --- |
| `source_id` | Which normalized pristine source a clean, image-only, and scan variant came from. |
| `fixture_id` / `variant_id` | Which matched suite fixture and delivery condition produced a case. |
| Linked case or packet group | Which business documents or packet children must share a split assignment. |
| `suite.json` | The resolved job list, including planned cells and conditions. |
| `coverage.json` | Planned, produced, failed, and missing cells plus achieved split ratios. |

Existing split assignments stay stable when compatible variants are appended. If a new relationship connects groups with conflicting assignments, reconciliation is deterministic. Similar prose or a shared authored scenario in ordinary documents can still cross splits; grouping is based on recorded identities, not a promise of unseen writing styles.

REPLAY

### Replay the recorded jobs

Replay the recipe that the generation step above wrote to `output/pairs`, into a new folder:

Windows PowerShell

```powershell
& '.\_internal\DocumentGenerator_v2.0_cli.exe' generate --recipe output/pairs/dataset_recipe.json --output output/replayed --workers 4
```

Linux AppImage

```sh
./DocumentGenerator_v2.0.0_Linux-x86_64.AppImage --cli generate --recipe output/pairs/dataset_recipe.json --output output/replayed --workers 4
```

Linux Flatpak

```sh
flatpak run com.docsetgenerator.DocSetGenerator --cli generate --recipe output/pairs/dataset_recipe.json --output output/replayed --workers 4
```

Recipes save the options and resources used for each job. For exact replay, use the same application build and resources; byte-for-byte output can differ between builds. The desktop’s **Load saved settings…** action imports supported settings for review. Use the CLI to replay recorded jobs.

The coverage report lists any documents that could not be generated. Packets require every planned document. If a run is interrupted, keep any recovery folder reported by the app until recovery completes.

[Continue to parser evaluation](https://docsetgenerator.com/evaluation) [See the full workflow](https://docsetgenerator.com/workflows)
