Commit 5dcba17
* feat(queue): add queue_manager.sh state library (#72)
Persistent priority/dependency-aware queue at .ralph/queue.json backing
batch issue processing. Functions: init/add/remove/clear, status counts,
priority extraction + sorting, dependency parsing + circular detection,
dependency-aware get_next_issue, and status transitions.
36 unit tests in test_queue_manager.bats.
* feat(queue): add ralph-queue command for batch processing (#72)
ralph_queue.sh: add (from GitHub filters/explicit list/PRD), status,
next, remove, clear, reorder, validate, process/resume. Reuses
ralph_import.sh gh helpers + lib/queue_manager.sh. Sequential processor
runs the loop per ready item (priority + dependency aware), commits
Fix #N per issue, supports --halt-on-failure; RALPH_LOOP_CMD is a
mockable seam. 20 integration tests.
* feat(queue): install ralph-queue + wire ralph --queue-* flags (#72)
install.sh installs the ralph-queue command and copies ralph_queue.sh;
uninstall removes it. ralph_loop.sh delegates --queue-status,
--process-queue, --resume-queue, --queue-next, --queue-clear,
--queue-remove to ralph-queue (subcommand-and-exit pattern). Adds
install + loop-delegation tests.
* feat(monitor): show issue-queue progress in dashboard (#72)
display_queue_status() renders a queue section (completed/total, pending/
active/failed, current item) when .ralph/queue.json has entries; hidden
otherwise. 3 monitor tests.
* docs(queue): document batch processing and ralph-queue (#72)
README Batch Processing section + command reference; new
docs/QUEUE_MANAGEMENT.md guide; CLAUDE.md library entries (ralph_queue.sh,
lib/queue_manager.sh) + Key Commands + behaviors.
* fix(queue): address codex review findings (#72)
- init_queue: build JSON via jq so a repository with quotes/backslashes
can't corrupt queue.json (Major)
- cmd_add: guard options that take a value so a missing trailing value
fails fast instead of hanging on shift 2 (Major)
- processor: only commit residue when the loop did not already commit
(HEAD unchanged); warn instead of silently swallowing a commit failure
(Major)
- harden generated PROMPT.md to treat spec content as untrusted
requirements data; document the trust boundary (Critical/injection)
+2 regression tests.
* fix(queue): address CodeRabbit + claude-review findings (#72)
- deps outside the queue are treated as satisfied external prereqs in
is_dependency_satisfied/get_next_issue (were blocking forever) (Major)
- monitor sanitizes issue titles (strip control chars + printf %s) to
block terminal-escape injection (Major)
- cmd_reorder reports failure instead of false success (Major)
- _prepare_work fails when format_issue_as_prd fails (Major)
- commit failure marks the item failed (not completed) and respects
--halt-on-failure; _finalize_commit surfaces the git error (Major/Low)
- cmd_process resets items orphaned in 'processing' by an interrupted run
so resume can retry them (Medium)
- prompt-injection fence is appended to a pre-existing PROMPT.md that
lacks it, not only when PROMPT.md is absent (Low/Medium)
+3 regression tests (external-dep readiness x2, orphan recovery).
* fix(queue): namespace PRD specs by id; document fetch/PROMPT behavior (#72)
- _prepare_work copies PRD specs as <id>-<basename> so two PRDs with the
same filename from different dirs don't overwrite each other (LOW,
claude-review)
- docs: note that processing re-fetches issues at runtime (needs gh) and
may append the security fence to a pre-existing PROMPT.md
+1 regression test.
---------
Co-authored-by: Test User <test@example.com>
1 parent 1fe9af1 commit 5dcba17
12 files changed
Lines changed: 2027 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
84 | 108 | | |
85 | 109 | | |
86 | 110 | | |
| |||
269 | 293 | | |
270 | 294 | | |
271 | 295 | | |
272 | | - | |
| 296 | + | |
273 | 297 | | |
274 | 298 | | |
275 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
488 | 539 | | |
489 | 540 | | |
490 | 541 | | |
| |||
952 | 1003 | | |
953 | 1004 | | |
954 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
955 | 1012 | | |
956 | 1013 | | |
957 | 1014 | | |
| |||
962 | 1019 | | |
963 | 1020 | | |
964 | 1021 | | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
965 | 1025 | | |
966 | 1026 | | |
967 | 1027 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
0 commit comments