Declare Control Delta
declare_control_deltaPrepare the declaration of a control's delta as served: the act that makes it the control's specification. Declaring is a person's act, never a program's.
Instructions
Prepare the declaration of a control's delta as served: the act that makes it the control's specification. Declaring is a person's act, never a program's.
Without confirm (the default) this is the preview, and nothing is
written: the declaration the given spans and resolutions make, its
declaration_hash, each edit in words beside its quotes, the second
reading's differences and those still open, the text no quote
reaches (unquoted), the spans the text's notes suggest as committing
to nothing, what declaring does, and blocking (what stops it). Relay
the preview to the person: the differences, and which text commits to
nothing, are theirs to decide.
With confirm and the declaration_hash previewed, a program's call
is always refused with 403 and an escalation_id, whatever the
workspace delegates: it is parked for a person, who sees what it declares
and accepts or rejects it. Do not retry: report the escalation_id and
poll list_proposals. A parked declaration is withdrawn once the delta
it names changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | True to declare (a person's act). | |
| model_id | Yes | ID of the threat model. | |
| control_id | Yes | ID of the control. | |
| placements | No | JSON array of ``{"item", "index", "span", "start", "end"}`` naming which occurrence a repeated quote stands at. | [] |
| resolutions | No | JSON array of ``{"start", "end", "choice"}``, one per difference, in order: ``choice`` is ``draft``, ``second`` or ``written`` (with ``edits``). | [] |
| nothing_spans | No | JSON array of ``{"start", "end"}`` spans of the control's text, in code points, that commit to nothing. | [] |
| server_version | Yes | ||
| declaration_hash | No | The hash the preview returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||