|
| 1 | +FABLE5 AUTONOMOUS EXECUTION PRD |
| 2 | +InvoicePlane-v2 |
| 3 | + |
| 4 | +──────────────────────────────────────── |
| 5 | +PURPOSE |
| 6 | +──────────────────────────────────────── |
| 7 | +Fable5 processes GitHub issues into draft PRs while reusing existing branches from: |
| 8 | +underdogg-forks/invoiceplane-v2 |
| 9 | + |
| 10 | +PRs already exist in: |
| 11 | +invoiceplane/invoiceplane-v2 |
| 12 | + |
| 13 | +Branches already exist in: |
| 14 | +underdogg-forks/invoiceplane-v2 |
| 15 | + |
| 16 | +Fable5 must reconcile both systems. |
| 17 | + |
| 18 | +──────────────────────────────────────── |
| 19 | +CRITICAL RULE |
| 20 | +──────────────────────────────────────── |
| 21 | +NEVER CREATE NEW BRANCHES IF A PR-BOUND BRANCH ALREADY EXISTS. |
| 22 | + |
| 23 | +Always reuse: |
| 24 | +- existing PR branches |
| 25 | +- existing fork branches |
| 26 | + |
| 27 | +Branch identity is authoritative. |
| 28 | + |
| 29 | +──────────────────────────────────────── |
| 30 | +SOURCE OF TRUTH PRIORITY |
| 31 | +──────────────────────────────────────── |
| 32 | +1. Existing GitHub PR (invoiceplane/invoiceplane-v2) |
| 33 | +2. Existing branch in fork (underdogg-forks/invoiceplane-v2) |
| 34 | +3. Issue definition |
| 35 | +4. Repository code state |
| 36 | + |
| 37 | +──────────────────────────────────────── |
| 38 | +EXECUTION MODEL |
| 39 | +──────────────────────────────────────── |
| 40 | +- Iterate through all provided issue IDs |
| 41 | +- For each issue: |
| 42 | + - locate existing PR |
| 43 | + - extract associated branch from fork |
| 44 | + - checkout and continue work on that branch |
| 45 | + - do NOT reinitialize branch |
| 46 | + |
| 47 | +──────────────────────────────────────── |
| 48 | +BRANCH REUSE RULE |
| 49 | +──────────────────────────────────────── |
| 50 | +If PR exists: |
| 51 | +- fetch PR branch from upstream or fork |
| 52 | +- checkout branch locally |
| 53 | +- continue commits |
| 54 | + |
| 55 | +If PR does NOT exist: |
| 56 | +- only then create new branch |
| 57 | + |
| 58 | +──────────────────────────────────────── |
| 59 | +COMMIT POLICY |
| 60 | +──────────────────────────────────────── |
| 61 | +- frequent commits required |
| 62 | +- atomic logical changes only |
| 63 | +- never mix multiple issues unless explicitly grouped |
| 64 | + |
| 65 | +──────────────────────────────────────── |
| 66 | +PR POLICY |
| 67 | +──────────────────────────────────────── |
| 68 | +- all PRs must remain DRAFT |
| 69 | +- PR title format: |
| 70 | + [IP-{issueId}] description |
| 71 | +- PR body must be updated, never replaced blindly |
| 72 | +- preserve GitHub discussion history |
| 73 | + |
| 74 | +──────────────────────────────────────── |
| 75 | +FAILURE HANDLING |
| 76 | +──────────────────────────────────────── |
| 77 | +If branch cannot be found: |
| 78 | +- attempt fetch from: |
| 79 | + underdogg-forks/invoiceplane-v2 |
| 80 | +- if still missing: |
| 81 | + skip issue and log reason |
| 82 | + |
| 83 | +──────────────────────────────────────── |
| 84 | +EXECUTION END CONDITION |
| 85 | +──────────────────────────────────────── |
| 86 | +Stop when: |
| 87 | +- all issues processed OR skipped |
0 commit comments