pam ▸ docs/prds/PRD_004_ralph_research_operator.md
updated 2026-03-28
PRD 004: Ralph Research Operator for Pam
Goal
Use Ralph as a bounded operator loop for Pam’s research backlog so progress continues without manual prompting.
Problem
Pam now has a working research loop, but we still need an outer operator loop that can:
- inspect current state
- choose the next PRD-sized improvement
- make a bounded change
- run validation
- record what changed
Requirements
- Ralph must work from a dedicated prompt file, not ad hoc terminal memory.
- Ralph should read:
-
research/latest_state.json-research/continuous_loop_runs.jsonl-research/continuous_loop_events.jsonl- this PRD directory - Ralph must stay within bounded changes: - prefer one PRD at a time - run focused tests - append findings to generated docs
- Ralph must not lower deployment thresholds just to make a trade appear.
Success Criteria
- Ralph can run unattended and leave behind a clear artifact trail.
- Each Ralph cycle maps to a concrete PRD or sub-task.
- The output helps Pam move toward a deployable smart-trade system, not just produce activity.