Settle Entity Rating
settle_entity_ratingSettle a pending rating held for an asset or attacker when human and model ratings conflict, choosing to keep the person's rating, take the model's, or set a new one.
Instructions
Settle the rating held pending for an asset or attacker. Mutating.
A rating a person chose is never replaced by a model's: where an entity's
words changed, or a re-evaluation answered over it, the model's rating is
held pending beside the person's, the more severe of the two in force.
get_entity serves the pair as rating_pending (the rating in
force and the pending one, who chose each, the words each was made for,
and pair_hash); the review queue's rating_pending row lists every
such entity. Settling is a judgment (rating_reconfirmed): a
program's is parked for a person (403 with an escalation_id: do not
retry) unless the workspace's delegation policy names it at the entity's
tier. RELAY BOTH RATINGS TO THE PERSON and settle as they choose.
choice: keep_person keeps the person's rating for the words as
they stand; take_model takes the model's; set writes another,
given in factors. A choice that changes an attacker's attack vector
or privileges saves a new model version; any other writes a rating
revision. Refused 409 stale with the current pair_hash when the
pair or the entity's words moved since it was read (read it again), 409
nothing_pending when no pair is held.
Returns {entity_id, choice, version_created}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choice | Yes | ``keep_person``, ``take_model`` or ``set``. | |
| factors | No | For ``set``: a JSON object of the rating's factors (an asset's subscores, blast radius, recoverability and regulatory scope; an attacker's attack vector, privileges required, attack complexity, user interaction and capability prevalence). | |
| model_id | Yes | ID of the threat model. | |
| entity_id | Yes | The asset or attacker (e.g. "A-03"). | |
| pair_hash | Yes | ``rating_pending.pair_hash`` as it was read. | |
| rationale | No | For ``set``: why the rating is what it is. | |
| entity_kind | Yes | ``asset`` or ``attacker``. | |
| change_reason | No | Why it is settled so (kept with the decision). | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||