Confirm Behavioural Model
confirm_behavioural_modelConfirm a reviewed behavioural model to create a new model version, estimating any owed regeneration before recording consent and queuing the work.
Instructions
Confirm a model's behavioural model as reviewed. Mutating; creates a model version. A paid action where a regeneration is owed before certification.
Confirm only the model whose ir_hash was reviewed, which is the one
get_behavioural_model returns. Refused with 409: review_stale
(the model is not that hash now, or its version moved since the
estimate), stale (the description changed since it was extracted),
needs_answers (an owner question is open) or extraction_running
(a job of the model is queued or running: poll it). An edit voids a
confirmation.
Where a regeneration is owed before certification, the confirmation is also consent to that regeneration and the certifications after it, so it is estimated first:
Call without
confirm_estimate(the default): nothing is charged or written. The answer carries an itemisedestimate(the regeneration, and the number of certifications with the ceiling they are charged within) and themodel_versionit was given for. Ifestimate.statusiscomputing, read again afterpoll_after_seconds; a confirmation sent meanwhile is refused 409estimate_computing.Show the estimate to the person, or, for a program, check it against the spending allowance the workspace grants programs. Confirm only when they agree.
Call again with
confirm_estimate=Trueand themodel_versionthe estimate named. The confirmation is written and the work queued.
When no regeneration is owed the call confirms at once, as before.
A 402 (the balance cannot cover the estimate) and a 409 come back as
data, {confirmed: false, http_status, code, message}. Never retry a
402 or a 403: report it.
A program's confirmation is a judgment. Unless the workspace's delegation
policy admits it, it is refused with 403 and an escalation_id and
parked for a person. Do not retry: report the escalation_id and poll
list_proposals.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_version": "<server_version>",
"model_id": "<model_id>",
"ir_hash": "<ir_hash>"
},
"name": "confirm_behavioural_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional note recorded with the confirmation. | |
| ir_hash | Yes | The ``ir_hash`` reviewed. | |
| evidence | No | ||
| model_id | Yes | ID of the threat model. | |
| model_version | No | With ``confirm_estimate=True``: the version the estimate named. | |
| server_version | Yes | ||
| confirm_estimate | No | False (default) estimates where an estimate is owed; True confirms and accepts it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||