Create Proposal
create_proposalPropose scope or design changes to a threat model—adding or removing components, addressing attacker positions—from code analysis, leaving the final decision to a human or delegated agent.
Instructions
Raise a proposal to change a model's scope or design. Call this when the code or your analysis says the model should gain or lose a component, or that an attacker position or asset should be removed by design; do not edit the model directly for those changes. Mutating: persists a proposal record.
A proposal is a change of scope or design. Raising one is not deciding
it: a person (or an agent under a delegation rule that names the
decision) decides it with decide_proposal. Design changes are never
applied automatically. Poll list_proposals for the outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | One of ``add_component`` (payload ``{name, repo_url?, path?, trust_boundary_ids?}``), ``remove_component`` (payload ``{component_id}``), ``design_change`` (payload ``{target_kind: "attacker"|"asset", target_id, design_move}``; take ``design_move`` from ``get_design_leverage``). | |
| payload | Yes | JSON object string with the fields for ``kind``. | |
| evidence | No | Optional JSON object string, e.g. ``{paths: [], symbols: [], note: ""}``, pointing at what you saw. | |
| model_id | Yes | ID of the threat model. | |
| rationale | Yes | Why this change is right (what in the code or design supports it). | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||