Commit b9161a5
feat(otdf-sdk-mgr,.claude): idempotent orchestrate run + --force flag (DSPX-3302)
Re-running `orchestrate run` after a partial failure now resumes from where
it left off: cells whose branch already has an open PR are skipped (reported
as OK with the existing URL), and only failed/pending cells are dispatched.
- Add check_existing_pr() helper (gh pr list --head <branch>)
- run_cell() checks for existing PR before creating worktree or launching subagent
- --force flag bypasses the idempotency check (re-run even with existing PR)
- Dry-run annotates already-done cells with [PR EXISTS: <url>]
- SKILL.md: update Step 1/2 + replace "When to use partial runs" with
"Resumption and partial runs" covering fix-and-retry, staging, and --force
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 95cd951 commit b9161a5
2 files changed
Lines changed: 50 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | | - | |
68 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
69 | 79 | | |
70 | 80 | | |
71 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
302 | 315 | | |
303 | 316 | | |
304 | 317 | | |
| |||
316 | 329 | | |
317 | 330 | | |
318 | 331 | | |
| 332 | + | |
319 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
320 | 342 | | |
321 | 343 | | |
322 | 344 | | |
| |||
442 | 464 | | |
443 | 465 | | |
444 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
445 | 471 | | |
446 | 472 | | |
447 | 473 | | |
| |||
481 | 507 | | |
482 | 508 | | |
483 | 509 | | |
| 510 | + | |
| 511 | + | |
484 | 512 | | |
485 | 513 | | |
486 | | - | |
| 514 | + | |
487 | 515 | | |
488 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
489 | 520 | | |
490 | 521 | | |
491 | | - | |
| 522 | + | |
| 523 | + | |
492 | 524 | | |
493 | 525 | | |
494 | 526 | | |
| |||
512 | 544 | | |
513 | 545 | | |
514 | 546 | | |
| 547 | + | |
515 | 548 | | |
516 | 549 | | |
517 | 550 | | |
| |||
0 commit comments