feat: Add comprehensive tests for CCW Loop System flow state

- Implemented loop control tasks in JSON format for testing.
- Created comprehensive test scripts for loop flow and standalone tests.
- Developed a shell script to automate the testing of the entire loop system flow, including mock endpoints and state transitions.
- Added error handling and execution history tests to ensure robustness.
- Established variable substitution and success condition evaluations in tests.
- Set up cleanup and workspace management for test environments.
This commit is contained in:
catlog22
2026-01-22 10:13:00 +08:00
parent d9f1d14d5e
commit 60eab98782
37 changed files with 12347 additions and 917 deletions

View File

@@ -0,0 +1,29 @@
{
"id": "E2E-TASK-1769007254162",
"title": "Test Task E2E-TASK-1769007254162",
"description": "Test task with loop control",
"status": "pending",
"loop_control": {
"enabled": true,
"description": "Test loop",
"max_iterations": 3,
"success_condition": "current_iteration >= 3",
"error_policy": {
"on_failure": "pause",
"max_retries": 3
},
"cli_sequence": [
{
"step_id": "step1",
"tool": "bash",
"command": "echo \"iteration\""
},
{
"step_id": "step2",
"tool": "gemini",
"mode": "analysis",
"prompt_template": "Process output"
}
]
}
}