Skip to content

feat(ralph): add PRD status update and Graphiti integration#19

Open
Milofax wants to merge 1 commit intoWirasm:developmentfrom
Milofax:feat/ralph-prd-status-update
Open

feat(ralph): add PRD status update and Graphiti integration#19
Milofax wants to merge 1 commit intoWirasm:developmentfrom
Milofax:feat/ralph-prd-status-update

Conversation

@Milofax
Copy link
Copy Markdown

@Milofax Milofax commented Jan 20, 2026

Summary

  • Ralph now updates source PRD status from in-progress to complete after successful implementation
  • Added Graphiti learning integration for capturing and promoting insights during/after loop execution

Problem

After Ralph completes all tasks and archives the plan, the PRD still showed in-progress status. This caused /prp-plan to fail at identifying the next plannable phase.

Discovered in: graphiti-influxer project - Phase 2 was fully implemented (14 tasks, 21 tests passing), but PRD showed "in-progress" and /prp-plan couldn't select Phase 3.

Solution

1. PRD Status Update (New Step 5)

  • After completion, Ralph finds and updates the source PRD
  • Changes phase status from in-progress to **complete**
  • Updates plan path reference to completed/ directory
  • Critical for /prp-plan to correctly identify next plannable phase

2. Graphiti Learning Integration (Step 3.10 + Step 4)

  • Save iteration learnings during the loop (not just at the end)
  • Use project_group_id during loop to avoid confirmation dialogs
  • Promote general learnings to main only at completion
  • Ensures learnings survive even if loop is cancelled

Test plan

  • Run /prp-ralph on a PRD-based plan
  • Verify PRD status changes to complete after successful run
  • Verify plan is moved to completed/ directory
  • Run /prp-plan on same PRD and verify next phase is selected

🤖 Generated with Claude Code

Adds two major enhancements to prp-ralph completion workflow:

1. PRD Status Update (Step 5):
   - After successful completion, Ralph now updates the source PRD
   - Changes phase status from "in-progress" to "complete"
   - Updates plan path reference to completed/ directory
   - Critical for /prp-plan to correctly identify next plannable phase

2. Graphiti Learning Integration (Step 3.10 + Step 4):
   - Save iteration learnings during the loop (not just at the end)
   - Use project_group_id during loop to avoid confirmation dialogs
   - Promote general learnings to main only at completion
   - Ensures learnings survive even if loop is cancelled

Bug fixed: Previously, Ralph would complete all tasks and archive the plan,
but leave the PRD showing "in-progress" status. This caused /prp-plan to
fail at identifying the next phase as plannable.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Milofax
Copy link
Copy Markdown
Author

Milofax commented Mar 8, 2026

Hey! Just checking in on this PR — adds PRD status updates and Graphiti integration to Ralph. Let me know if you'd like any changes or if it's ready to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant