|
| 1 | + |
| 2 | +# PHASE 2 EXECUTION GUIDE — AI DEV ORCHESTRATOR |
| 3 | + |
| 4 | +## 1. Objective |
| 5 | + |
| 6 | +Phase 2 introduces real development automation. |
| 7 | + |
| 8 | +In Phase 1, you built the backbone. |
| 9 | +In Phase 2, the system will: |
| 10 | + |
| 11 | +- Clone repositories |
| 12 | +- Create branches |
| 13 | +- Use Claude to implement code changes |
| 14 | +- Commit and push to GitHub |
| 15 | +- Open Pull Requests |
| 16 | +- Notify via Telegram |
| 17 | + |
| 18 | +IMPORTANT: |
| 19 | +This phase remains controlled and iterative. |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## 2. Key Principle |
| 24 | + |
| 25 | +Do NOT jump to full autonomy. |
| 26 | + |
| 27 | +Build in this order: |
| 28 | +1. Read repo |
| 29 | +2. Modify small file |
| 30 | +3. Commit safely |
| 31 | +4. Create PR |
| 32 | +5. Then introduce Claude changes |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## 3. Iteration Plan |
| 37 | + |
| 38 | +### Iteration 1 — Repo Clone |
| 39 | + |
| 40 | +Goal: |
| 41 | +Clone repository using repo mapping. |
| 42 | + |
| 43 | +Acceptance: |
| 44 | +Repo is cloned locally and branch checked out. |
| 45 | + |
| 46 | +Verify: |
| 47 | +ls /tmp/workflows/<run_id>/ |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +### Iteration 2 — Repo Analysis |
| 52 | + |
| 53 | +Goal: |
| 54 | +List structure and detect language. |
| 55 | + |
| 56 | +Acceptance: |
| 57 | +Telegram message shows summary. |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +### Iteration 3 — File Modification |
| 62 | + |
| 63 | +Goal: |
| 64 | +Modify one file safely. |
| 65 | + |
| 66 | +Acceptance: |
| 67 | +File updated locally. |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +### Iteration 4 — Commit + Push |
| 72 | + |
| 73 | +Goal: |
| 74 | +Push change to GitHub. |
| 75 | + |
| 76 | +Acceptance: |
| 77 | +New branch visible on GitHub. |
| 78 | + |
| 79 | +--- |
| 80 | + |
| 81 | +### Iteration 5 — PR Creation |
| 82 | + |
| 83 | +Goal: |
| 84 | +Create pull request. |
| 85 | + |
| 86 | +Acceptance: |
| 87 | +PR exists in GitHub. |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +### Iteration 6 — Claude Read-only |
| 92 | + |
| 93 | +Goal: |
| 94 | +Claude summarizes repo. |
| 95 | + |
| 96 | +Acceptance: |
| 97 | +Telegram shows summary. |
| 98 | + |
| 99 | +--- |
| 100 | + |
| 101 | +### Iteration 7 — Claude Suggestion |
| 102 | + |
| 103 | +Goal: |
| 104 | +Claude suggests change. |
| 105 | + |
| 106 | +Acceptance: |
| 107 | +Diff generated. |
| 108 | + |
| 109 | +--- |
| 110 | + |
| 111 | +### Iteration 8 — Apply Changes |
| 112 | + |
| 113 | +Goal: |
| 114 | +Apply Claude changes. |
| 115 | + |
| 116 | +Acceptance: |
| 117 | +Files updated correctly. |
| 118 | + |
| 119 | +--- |
| 120 | + |
| 121 | +### Iteration 9 — End-to-End Flow |
| 122 | + |
| 123 | +Goal: |
| 124 | +Jira → Clone → Claude → Commit → PR |
| 125 | + |
| 126 | +Acceptance: |
| 127 | +PR created + Telegram notified. |
| 128 | + |
| 129 | +--- |
| 130 | + |
| 131 | +## 4. Security Rules |
| 132 | + |
| 133 | +- Work only inside /tmp/workflows/ |
| 134 | +- No destructive commands |
| 135 | +- No secret access |
| 136 | + |
| 137 | +--- |
| 138 | + |
| 139 | +## 5. Done Criteria |
| 140 | + |
| 141 | +Phase complete when: |
| 142 | +- Repo clone works |
| 143 | +- Commit works |
| 144 | +- PR works |
| 145 | +- Claude modifies code |
| 146 | +- End-to-end flow works |
0 commit comments