preview_undo_composition
Preview the inverse operations or refusal reasons for undoing a lift or split event without changing state, enabling informed confirmation before committing an undo.
Instructions
Preview the inverse plan (or divergence refusal) for a prior composition event WITHOUT mutating any state. Read-only.
Read-only counterpart to undo_composition_event. Used by the
confirmation flow so the operator sees what an undo would do before
committing — either the inverse state operations the apply step will
commit, or the enumerated reasons the divergence detector refuses the
undo. Same {plan, refusal} return shape for both event types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event_id | Yes | Either the surrogate id of the forward ``lift_applied`` / ``split_applied`` activity event, or the structured ``lift_id`` / ``split_id`` carried in the event's payload — both lookups are supported. | |
| model_id | Yes | The model whose composition view originated the event. Must match the ``threat_model_id`` carried by the cited activity event; the server rejects with 404 when a caller tries to undo a sibling model's event through a different model's URL. | |
| event_type | Yes | Which forward composition event to preview undoing. One of: - ``"lift"``: preview undo of a ``lift_applied`` event. The plan block carries the lift inverse operations — tombstone the lifted LCA entity, restore the source descendants' copies, rewrite CO references. - ``"split"``: preview undo of a ``split_applied`` event. The plan block carries the split inverse operations — restore at the ancestor, tombstone the duplicated copies on every target descendant. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||