simulate_repository_patch
Simulate an in-flight unified diff against a persisted snapshot to verify a working-tree patch mid-run, returning the gated decision envelope with the apply gate verdict—no stored decision plan required.
Instructions
Simulate the risk of an in-flight unified diff against one persisted snapshot and return the canonical repository envelope — without creating a stored decision plan. Use this to verify a working-tree patch mid-run; use simulate_repository when a stored DecisionPlan already exists. Deterministic; no LLM is involved. Returns the gated DecisionEnvelope including the apply gate verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confidence | No | Optional caller confidence recorded with the simulation. | |
| patch_diff | Yes | Unified diff of the in-flight patch to evaluate. | |
| snapshot_id | Yes | Snapshot id from create_repository_snapshot. | |
| repository_id | Yes | Saved repository connector id from list_connectors. |