70 lines
2.4 KiB
JSON
70 lines
2.4 KiB
JSON
{
|
|
"fixtures": [
|
|
{
|
|
"name": "revert_correction",
|
|
"description": "Revert correction targeting a decision node with two affected children",
|
|
"plan_id": "01M4CORR0000000000000000001",
|
|
"target_decision_id": "01M4DEC00000000000000000001",
|
|
"mode": "revert",
|
|
"guidance": "Use FastAPI instead of Flask",
|
|
"dry_run": false,
|
|
"expected_status": "applied",
|
|
"expected_reverted_decisions": [
|
|
"01M4DEC00000000000000000001",
|
|
"01M4DEC00000000000000000002",
|
|
"01M4DEC00000000000000000003"
|
|
]
|
|
},
|
|
{
|
|
"name": "append_correction",
|
|
"description": "Append correction adding a new child plan at a decision node",
|
|
"plan_id": "01M4CORR0000000000000000002",
|
|
"target_decision_id": "01M4DEC00000000000000000004",
|
|
"mode": "append",
|
|
"guidance": "Add caching layer for database queries",
|
|
"dry_run": false,
|
|
"expected_status": "applied",
|
|
"expected_new_decisions": [
|
|
"01M4DEC00000000000000000005"
|
|
]
|
|
},
|
|
{
|
|
"name": "dry_run_revert",
|
|
"description": "Dry-run revert correction that only computes impact",
|
|
"plan_id": "01M4CORR0000000000000000003",
|
|
"target_decision_id": "01M4DEC00000000000000000006",
|
|
"mode": "revert",
|
|
"guidance": "Evaluate impact of reverting auth module decision",
|
|
"dry_run": true,
|
|
"expected_status": "pending",
|
|
"expected_impact": {
|
|
"affected_decisions": ["01M4DEC00000000000000000006", "01M4DEC00000000000000000007"],
|
|
"affected_files": ["src/auth.py", "src/middleware.py"],
|
|
"risk_level": "medium",
|
|
"rollback_tier": "phase"
|
|
}
|
|
},
|
|
{
|
|
"name": "correction_with_high_risk",
|
|
"description": "Correction targeting a root decision with high impact",
|
|
"plan_id": "01M4CORR0000000000000000004",
|
|
"target_decision_id": "01M4DEC00000000000000000008",
|
|
"mode": "revert",
|
|
"guidance": "Revert entire architecture decision",
|
|
"dry_run": true,
|
|
"expected_status": "pending",
|
|
"expected_impact": {
|
|
"affected_decisions": [
|
|
"01M4DEC00000000000000000008",
|
|
"01M4DEC00000000000000000009",
|
|
"01M4DEC00000000000000000010",
|
|
"01M4DEC00000000000000000011"
|
|
],
|
|
"affected_files": ["src/core.py", "src/api.py", "src/models.py", "src/utils.py"],
|
|
"risk_level": "high",
|
|
"rollback_tier": "full"
|
|
}
|
|
}
|
|
]
|
|
}
|