Apply Entity Proposals
apply_entity_proposalsApplies quality-check correction proposals to threat-model assets and attackers in a new model version, returning per-entity outcomes, version, or conflict details.
Instructions
Accept the quality check's corrections of assets and attackers, in one new model version.
Applying is accepting: a judgment normally the owner's. A program's is
parked for a person (refused, with escalation_id: do not retry)
unless the workspace delegates entity_correction_accepted. A doubted
claim you can establish, or take conservatively, is answered with
answer_entity_question instead; a property that does not apply is
declared not applicable, since a correction never removes one.
Read the correction as quality on get_entity (or the review
queue's entity_quality row): proposed holds the corrected words,
proposal_hash names them, input_hash the verdict, and drops
each claim the words before made that the correction does not, with why.
RELAY proposed AND drops TO THE PERSON. A correction no reader
marked is a rewording, else a narrowing; under a rule admitting only
rewording, a claim every reader missed is applied by the program: the
residual that policy accepts. It never moves a position, credentials or
components; the entity is rated for its new words, a person's rating kept
and the new one held pending (settle_entity_rating).
One outcome per entity: applied (correction_kind);
unbound (no proposal_hash: the correction and its hash are
returned); refused; property_removed (never written);
rejected (another entity, a duplicate, or internal identifiers,
reason says); stale (read it again); none; unavailable
(try again). One entity never stops the others; a model changed since it
was read writes nothing, each such item stale beside conflict.
Returns {results, version?, conflict?}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model_id | Yes | ID of the threat model. | |
| proposals | Yes | JSON array of ``{"entity_id", "input_hash", "proposal_hash"}``, each ``input_hash`` and ``proposal_hash`` as the verdict was read. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||