simulate_repository
Score the patch risk of a stored repository DecisionPlan with the deterministic simulation engine and return the gated DecisionEnvelope whose apply gate apply_repository checks. snapshot_id is resolved from the plan when omitted. runs pins the scenario count (100 or more; omit for the complexity-adaptive count) and seed (default 42) makes repeated calls reproducible — no LLM is involved in this stage. Call create_repository_decision_plan first; use simulate_repository_patch instead for a patch that has no stored plan.
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>",
"decision_plan_id": "<decision_plan_id>"
},
"name": "simulate_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | Scenario count, 100-250000; omit for the complexity-adaptive count. | |
| seed | No | Simulation seed for reproducible results; defaults to 42. | |
| snapshot_id | No | Snapshot id; resolved from the decision plan when omitted. | |
| repository_id | Yes | Saved repository connector id from list_connectors. | |
| decision_plan_id | Yes | Plan id from create_repository_decision_plan. |