mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 23:25:57 +03:00
[GH-ISSUE #47] completion_promise not detected - orchestrator continues iterating after agent outputs completion string #14
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#14
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?
Originally created by @ramarivera on GitHub (Jan 11, 2026).
Original GitHub issue: https://github.com/mikeyobrien/ralph-orchestrator/issues/47
Bug Description
The
completion_promiseconfiguration option is not being detected in agent output. The orchestrator continues iterating indefinitely even when the agent clearly outputs the configured completion string.Expected Behavior
When the agent outputs the string specified in
completion_promise(e.g.,LOOP_COMPLETE), the orchestrator should detect it and stop the loop.Actual Behavior
The orchestrator:
Configuration
Evidence
Agent Output (Iteration 52)
Orchestrator Log (immediately after)
The string
LOOP_COMPLETEis clearly visible in the agent output, but the orchestrator doesn't detect it and starts iteration 53.Metrics
From
.agent/metrics/metrics_20260111_124854.json:All 53 iterations reported the task was already complete. The first iteration saw
LOOP_COMPLETEin PROMPT.md and every subsequent iteration just verified "yep, still complete" - wasting $0.62 and ~60 minutes.Reproduction Steps
LOOP_COMPLETEwhen finishedcompletion_promise: "LOOP_COMPLETE"in ralph.ymlralph runLOOP_COMPLETEEnvironment
Suggested Fix
The completion detection logic should scan the agent's output text for the
completion_promisestring before deciding whether to continue. The current code path appears to mark iterations as "successful" without checking for the completion promise.🤖 This content was generated with AI assistance using Claude Opus 4.5.
@michael-wise commented on GitHub (Jan 12, 2026):
Also experiencing this on both Ubuntu and Windows w/ Claude agent
@mikeyobrien commented on GitHub (Jan 12, 2026):
Fixed by https://github.com/mikeyobrien/ralph-orchestrator/pull/49
@michael-wise commented on GitHub (Jan 12, 2026):
Sorry to bother @mikeyobrien, I updated via uv to 1.2.3 (ubuntu) and did a fresh ralph init. Here is my task + otherwise default PROMPT.md
The orchestrator instantly auto closes upon ralph run (before any agents even run).
A modified Completion Promise in PROMPT.md allows normal execution of Ralph Orchestrator:
@mikeyobrien commented on GitHub (Jan 12, 2026):
Oops... looks like we need to prevent the
ralph promptcommand from adding those instructions.