mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
Based on Gemini architectural analysis (verdict: "File necessary but simplify"): Removed Redundant Fields: - session_id → Derive from file path or workflow-session.json - current_iteration → Calculate as iterations.length + 1 - max_iterations → Read from task.meta.max_iterations (single source) - stuck_tests → Calculate by analyzing iterations[].failed_tests history - regression_detected → Calculate from consecutive pass_rate values Retained Essential Fields: - current_task: Active task pointer (Resume critical) - selected_strategy: Current iteration strategy (runtime state) - next_action: State machine next step (Resume critical) - iterations[]: Historical log (source of truth, cannot rebuild) Enhanced iterations[] Array: - Added failed_tests[] to each entry (was stuck_tests at top-level) - Removed redundant regression_detected (calculated from pass_rate) Benefits: - Single source of truth (no data duplication) - Less state to maintain and synchronize - Clearer data ownership and calculation points - Adheres to data normalization principles Documentation Updates: - Added "Purpose" and "Field Descriptions" sections - Added "Removed Redundant Fields" with derivation logic - Updated orchestrator responsibilities (Runtime Calculations) - Updated agent template (Orchestrator-Calculated metadata) Impact: File remains essential for Resume capability, but now leaner and normalized.