Judging a plan
The planner drafts the work. An optional decision model checks individual parts of that draft. Read each flag alongside its target: a requirement can lack an observable outcome, a task can be too large, or a stack can span several features. Without a configured judge, planning can continue.
prd judge
prd judge --fresh
prd judge --strictThe first command checks the current plan and reuses matching answers. Use the second to ask again. Strict mode exits unsuccessfully when a current judgment is flagged. Review .cairn/judgments.json to see what the judge evaluated.
Configure the judge independently from the planner. The current decision client uses TypeSafe. Its direct route reads TYPESAFE_API_KEY. Configure model choices in routing.catalog and access in routing.access. With an empty catalog the judge falls back to judge.models. The routing checkpoint considers the task and eligible models. At the task review, inspect the recommendation or choose a model and reasoning level yourself.
Planning also compares recorded outcomes for similar work. routing.minTasks sets the minimum sample, and routing.adaptive controls whether eligible historical recommendations can change a task’s route. Use prd stats to compare recommendations with the model the adapter actually ran.
For a gateway configuration, set the relevant baseUrl and put the name of the token environment variable in gatewayTokenEnv. Configure retention in Cloudflare AI Gateway. Verify support for the Decisions endpoint on your route before relying on it. An API planner’s successful request establishes only that planner route.