|
|
| (10 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| == Phase 0 == | | == Phase 0 to 1 == |
|
| |
|
| <quickmmd name="p0">
| | New Role: Coder |
| sequenceDiagram
| |
| autonumber
| |
| participant H as 👤 Human
| |
| participant C as ⌨️ Coder Agent
| |
|
| |
|
| Note over H,C: ━━━ Phase 0: Single Agent + Human Review ━━━
| | Goals |
|
| |
|
| H->>C: Task: "Implement user login API"
| | * AGENT_GUIDELINES.md |
| Note right of C: Reads AGENT_GUIDELINES.md<br/>Applies prompt template
| | * PROMPT_TEMPLATE.md |
|
| |
|
| C->>H: Returns code (draft v1)
| | == Phase 1 to 2 == |
|
| |
|
| Note over H: 📖 Human reviews line-by-line<br/>(style, logic, security, edge cases)
| | New Role: Reviewer |
|
| |
|
| alt Code has issues
| | == Phase 2 to 3 == |
| H->>C: "Fix: missing input validation on line 12,<br/>rename fn to kebab-case, add error handling"
| |
| C->>H: Returns code (draft v2)
| |
| H->>C: "Fix: edge case for empty email not handled"
| |
| C->>H: Returns code (draft v3)
| |
| end
| |
|
| |
|
| Note over H: ✅ Human approves
| | New Role: Tester |
|
| |
|
| H->>H: git commit + push to branch
| | == Phase 3 to 4 == |
| H->>H: Manual smoke test
| |
|
| |
|
| alt All good
| | New Role: Orchestrator |
| H->>H: Merge to main
| |
| else Still broken
| |
| H->>C: "It crashes when email is null, fix it"
| |
| C->>H: Returns patch
| |
| H->>H: Re-test → Merge
| |
| end
| |
| | |
| </quickmmd>
| |
| | |
| == Phase 2 ==
| |
| | |
| | |
| | |
| == Phase 3 ==
| |