simulate_repository_patch
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repository_id": "<repository_id>",
"snapshot_id": "<snapshot_id>",
"patch_diff": "<patch_diff>"
},
"name": "simulate_repository_patch"
}
}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. |