mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[PR #6] [MERGED] feat: add completion marker detection and loop prevention #84
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/6
Author: @terrylica
Created: 12/16/2025
Status: ✅ Merged
Merged: 12/16/2025
Merged by: @mikeyobrien
Base:
main← Head:feat/completion-detection-loop-prevention📝 Commits (2)
1aad2e7feat: add completion marker detection and loop preventiona3d4c9ddocs: add ASCII architecture diagrams and holistic documentation updates📊 Changes
16 files changed (+1356 additions, -76 deletions)
View changed files
➕
docs/advanced/loop-detection.md(+282 -0)📝
docs/advanced/monitoring.md(+61 -29)📝
docs/advanced/security.md(+98 -14)📝
docs/changelog.md(+41 -1)📝
docs/faq.md(+66 -4)📝
docs/glossary.md(+7 -1)📝
docs/guide/overview.md(+65 -12)📝
docs/quick-start.md(+28 -2)📝
docs/troubleshooting.md(+183 -9)📝
mkdocs.yml(+1 -0)📝
pyproject.toml(+1 -0)📝
src/ralph_orchestrator/orchestrator.py(+39 -3)📝
src/ralph_orchestrator/safety.py(+42 -1)➕
tests/test_completion_detection.py(+146 -0)➕
tests/test_loop_detection.py(+204 -0)📝
uv.lock(+92 -0)📄 Description
Summary
This PR re-enables task completion detection and adds loop prevention to improve orchestration reliability.
Background
Completion marker detection was removed in commit f0c0ce48 during the
.ralph/→.agent/directory standardization refactor. This caused the orchestrator to run until hard limits (iterations/runtime/cost) instead of stopping when tasks were marked complete.Changes
Completion Marker Detection
- [x] TASK_COMPLETEcheckbox marker detection- [x] TASK_COMPLETEand[x] TASK_COMPLETEformatsLoop Detection (new feature)
Documentation
docs/advanced/loop-detection.mdTests
Files Changed
pyproject.tomlsrc/ralph_orchestrator/orchestrator.pysrc/ralph_orchestrator/safety.pydocs/changelog.mddocs/glossary.mddocs/advanced/loop-detection.mdtests/test_completion_detection.pytests/test_loop_detection.pyTest Plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.