generate or eval, Promptbeat runs a set of preflight checks that catch configuration problems, unreachable targets, and quality issues before they waste a full evaluation run. Agent evaluations can be expensive in both time and API cost, so catching a misconfigured provider or a thin seed file early is far better than discovering the problem halfway through a large run.
What preflight checks
Promptbeat validates five categories of configuration before it allows a run to proceed:Target reachability
Promptbeat verifies that the configured target provider is reachable and correctly authenticated:- Is the provider ID valid and supported?
- Is the API key present in the environment and does it have access to the specified model?
- For agent targets: does
working_direxist and is it accessible? - For Codex and other CLI agents: does the agent binary have the correct home or config path set?
Scenario quality
Promptbeat checks that each scenario inscenarios.yaml is well-formed and usable:
- Does the scenario declare a
risk_type? - Are
failure_signalsexplicit enough to guide the judge? - Does the scenario match at least one of the target’s declared capabilities?
- Do the referenced judge IDs exist and match the expected evidence level?
Seed quality
Promptbeat reviews the seed file for coverage and focus:- Does each seed’s
risk_typematch at least one scenario? - Does each seed declare
required_capabilities? - Are the seeds varied enough in framing style to produce diverse probes?
- Is dataset category mapping preserved in seed metadata when dataset-backed seeds are used?
Execution quality
Promptbeat checks that the execution environment matches the target’s requirements:- Is
sandbox_modeset appropriately for the risks being tested? - Is
approval_policyconfigured for reproducible, non-interactive runs? - Is tracing enabled at the depth needed for the scenario’s evidence requirements?
- Is environment inheritance restricted to only what the agent needs?
Generation size warnings
Promptbeat estimates the total probe count before generation begins:- Promptfoo’s
--countflag applies per plugin. A scenario with 8 plugins and--count 16produces up to 128 probes. - If the estimated count exceeds a reasonable bound, Promptbeat warns you and suggests using a sampler for broad runs.
Running the validate command
Runvalidate explicitly before any generate or eval call, especially after editing config files:
Interpreting preflight output
Preflight results appear at two severity levels:
Treat warnings seriously even though they don’t block execution. A seed file with only one entry, or a scenario with vague failure signals, will produce an evaluation that is harder to interpret and less likely to find real failures.