CommodityNode Ralph Loop Runbook

Purpose

Run bounded autonomous improvement loops for CommodityNode without wasting cycles on vague open-ended churn.

Loop Pattern

  1. Read ralph-loop/GOALS.md
  2. Read ralph-loop/TASKS.json
  3. Read the newest entries in ralph-loop/progress.md
  4. Pick the highest-priority pending or failed task
  5. Make one focused improvement batch
  6. Run verification
  7. Record evidence in ralph-loop/progress.md
  8. Commit if the batch is valid
  9. Repeat until stop condition is met

Required Verification

Use this command after each batch:

python3 scripts/ralph_verify.py

Automated Runner

Use this command to execute the current Ralph loop state machine:

python3 scripts/run_ralph_loop.py

What it does:

Notification behavior:

Current limitation:

Good Task Types

Bad Task Types

Suggested Agent Prompt

Use this when running a coding agent or ACP session:

You are running the CommodityNode Ralph loop.

Rules:
- Read ralph-loop/GOALS.md, ralph-loop/TASKS.json, and ralph-loop/progress.md first.
- Pick the highest-priority task not marked completed.
- Make one bounded improvement batch.
- Run verification with: python3 scripts/ralph_verify.py
- If verification fails, use the evidence to guide the next iteration.
- Append a concise entry to ralph-loop/progress.md.
- Commit only when the batch is coherent.
- Stop when all hard success criteria pass, you hit max iterations, or you need user approval.

Human Oversight

Pause and ask before: