mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[PR #103] [MERGED] feat(prompt): add OBJECTIVE section to prevent goal drift #134
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#134
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/103
Author: @mikeyobrien
Created: 1/24/2026
Status: ✅ Merged
Merged: 1/24/2026
Merged by: @mikeyobrien
Base:
main← Head:feat/objective-section📝 Commits (1)
67ae634feat(prompt): add OBJECTIVE section to prevent goal drift📊 Changes
1 file changed (+222 additions, -26 deletions)
View changed files
📝
crates/ralph-core/src/hatless_ralph.rs(+222 -26)📄 Description
Summary
task.startevent and add prominent## OBJECTIVEsection at start of prompt## DONEsection using bookend patternProblem
Ralph was losing sight of the original user prompt because it was buried in PENDING EVENTS alongside other events. The workflow mechanics and hat instructions dominated the prompt, causing the agent to focus on process over purpose.
Solution
The bookend pattern ensures the user's goal appears both early (for orientation) and late (for completion validation).
Test plan
cargo test -p ralph-core smoke_runner🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.