simulate_repository
Score the patch risk of a stored repository decision plan using deterministic simulation, returning a gated decision envelope for apply checks.
Instructions
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.
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. |