forked from HAL9000/cleveragents-core
95 lines
3.1 KiB
JSON
95 lines
3.1 KiB
JSON
{
|
|
"fixtures": [
|
|
{
|
|
"name": "minimal_decision_tree",
|
|
"description": "A minimal decision tree with root prompt and one strategy choice",
|
|
"decisions": [
|
|
{
|
|
"decision_type": "prompt_definition",
|
|
"sequence_number": 0,
|
|
"question": "What should we build?",
|
|
"chosen_option": "A REST API for user management",
|
|
"confidence_score": 0.95,
|
|
"is_root": true
|
|
},
|
|
{
|
|
"decision_type": "strategy_choice",
|
|
"sequence_number": 1,
|
|
"question": "Which framework to use?",
|
|
"chosen_option": "FastAPI",
|
|
"alternatives_considered": ["Flask", "Django"],
|
|
"confidence_score": 0.85,
|
|
"is_root": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "tree_with_invariant",
|
|
"description": "Decision tree with an invariant enforcement node",
|
|
"decisions": [
|
|
{
|
|
"decision_type": "prompt_definition",
|
|
"sequence_number": 0,
|
|
"question": "Plan the database migration",
|
|
"chosen_option": "Migrate user table to new schema",
|
|
"confidence_score": 0.90,
|
|
"is_root": true
|
|
},
|
|
{
|
|
"decision_type": "invariant_enforced",
|
|
"sequence_number": 1,
|
|
"question": "Should production data be preserved?",
|
|
"chosen_option": "Yes, all existing data must survive migration",
|
|
"confidence_score": 1.0,
|
|
"is_root": false,
|
|
"invariant_text": "Never delete production data"
|
|
},
|
|
{
|
|
"decision_type": "strategy_choice",
|
|
"sequence_number": 2,
|
|
"question": "Migration strategy?",
|
|
"chosen_option": "Blue-green deployment with rollback",
|
|
"alternatives_considered": ["In-place migration", "Shadow writes"],
|
|
"confidence_score": 0.80,
|
|
"is_root": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "tree_with_correction",
|
|
"description": "Decision tree that includes a correction decision superseding a prior choice",
|
|
"decisions": [
|
|
{
|
|
"decision_type": "prompt_definition",
|
|
"sequence_number": 0,
|
|
"question": "Implement authentication",
|
|
"chosen_option": "JWT-based auth with refresh tokens",
|
|
"confidence_score": 0.90,
|
|
"is_root": true
|
|
},
|
|
{
|
|
"decision_type": "strategy_choice",
|
|
"sequence_number": 1,
|
|
"question": "Token storage approach?",
|
|
"chosen_option": "HttpOnly cookies",
|
|
"alternatives_considered": ["localStorage", "sessionStorage"],
|
|
"confidence_score": 0.75,
|
|
"is_root": false,
|
|
"is_superseded": true
|
|
},
|
|
{
|
|
"decision_type": "strategy_choice",
|
|
"sequence_number": 2,
|
|
"question": "Token storage approach? (corrected)",
|
|
"chosen_option": "localStorage with XSS mitigation",
|
|
"alternatives_considered": ["HttpOnly cookies", "sessionStorage"],
|
|
"confidence_score": 0.82,
|
|
"is_root": false,
|
|
"is_correction": true,
|
|
"correction_reason": "HttpOnly cookies cause issues with SSR"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|