optz: Goal orchestrator

This commit is contained in:
thanhnv
2026-07-11 12:18:59 +09:00
parent b56f7d357e
commit 4fc72332f5
34 changed files with 850 additions and 452 deletions
+20
View File
@@ -0,0 +1,20 @@
flowchart LR
A["Người dùng gửi Goal"] --> B["H1: Phân loại mục tiêu"]
B --> C["Local + Cloud tạo Execution Plan"]
C --> D["H4: Kiểm tra policy và rủi ro"]
D --> E["Plan ready\nXem file, lệnh, dependency, test"]
E -->|"Approve"| F["Workspace Executor có sandbox"]
E -->|"Reject / Edit"| C
F --> G["Tạo branch/worktree và project"]
G --> H["Chạy test + kiểm tra acceptance"]
H -->|"Pass"| I["Completed"]
H -->|"Fail"| J["Failed + rollback / resume"]
K["Luồng hiện tại"] -.-> L["Local worker tạo text"]
L -.-> M["Cloud reviewer tạo text"]
M -.-> N["Completed = trả lời xong\nkhông sửa workspace"]
classDef current fill:#fff7ed,stroke:#f97316,color:#7c2d12;
classDef target fill:#eff6ff,stroke:#2563eb,color:#1e3a8a;
class K,L,M,N current;
class A,B,C,D,E,F,G,H,I,J target;