Judge Imported Controls
judge_imported_controlsEvaluate imported controls awaiting judgement: preview charges first, then queue judgements for their objectives by confirming the estimate.
Instructions
Have the imported controls awaiting their judgement judged. Mutating
only with confirm_estimate=True; may consume credits then.
Controls saved by import_controls are not judged unprompted: the
mitigation groups they join credit nothing until this runs. It judges
every objective those controls join, priced and charged as
judge_objectives prices and charges them.
Call with
confirm_estimate=False(the default). Nothing is queued and nothing is charged; the answer carriesawaiting_judgement(the control ids),co_ids(the objectives they join),scope,ungroupedandestimate. Show the user the estimate.Call again with
confirm_estimate=Trueonce they agree. The judgements are queued (confirmed: true,queued) and the controls stop awaiting (awaiting_judgementcomes back empty).
ungrouped lists objectives with no mitigation group: nothing can be
judged there until their controls are grouped with
set_mitigation_groups. When nothing awaits, the answer says so and
does nothing.
Refusals come back as data, {confirmed: false, queued: 0, http_status, ...}: 409 while a control build is running, 402 when the
balance this workspace bills to cannot cover the estimate, 503 when
judging is unavailable on this deployment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ID of the threat model. | |
| server_version | Yes | ||
| confirm_estimate | No | False (default) returns the estimate and queues nothing; True queues the judgements. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||