Document Review Gate
Download Recipe
This recipe demonstrates workflow chaining with a review boundary. It generates synthetic document pages, runs a weak detector to a named review_candidates stage, exports that intermediate dataset, writes a simulated reviewed artifact, and resumes the downstream stages from that reviewed artifact.
The recipe is headless and does not call a model provider. It accepts --model-alias for compatibility with the recipe runner, but all stages use local custom columns.
Run the Recipe
The run writes generated images, exported stage parquet files, the simulated reviewed parquet file, and the final dataset under --artifact-path.
Workflow Pattern
The important part is the boundary contract. The downstream workflow does not care whether review_candidates came from the original detector, a dashboard, a script, or another service. It only consumes the selected stage output. This excerpt uses the setup and path helpers defined in the complete recipe.
Use this pattern when an intermediate dataset needs inspection, policy checks, cleanup, or human review before downstream stages should run.