Ralph Upgrade
Upgrade the Codex-native Ralph harness in the current repository using the tagged scaffold surface in https://github.com/tolulawson/ralph-harness.
This is the main external entry point for refreshing an existing install without overwriting project-owned runtime data.
UPGRADING.md is the canonical upgrade source of truth. This skill is only the execution adapter for that guide.
Use When
- The current repository already has the Ralph harness installed.
- You want to move that install to a newer tagged Ralph scaffold release.
- You want Codex to preserve project-owned runtime files while refreshing only scaffold-owned files.
Workflow
- Confirm the current repository is a target project with the Ralph harness already installed.
- Fetch or clone
https://github.com/tolulawson/ralph-harnessat the requested release tag. - Read
UPGRADING.mdfirst and follow it as the authoritative upgrade workflow. - Use
src/upgrade-manifest.txtexactly asUPGRADING.mdspecifies. - Refresh only the managed Ralph block inside
AGENTS.mdinstead of replacing the full file. - Run
python3 scripts/migrate-installed-runtime.py --repo <target-repo>from the checked-out source repo after the scaffold-owned files have been refreshed. - Let the migration merge
.codex/config.tomlso user-owned settings survive while Ralph-required feature flags and managed role mappings are refreshed. - Let the migration rewrite only Ralph-owned runtime state and projections, plus create missing
task-state.jsonfiles when inference is clear. - If migration reports ambiguous history, stop and repair that spec state instead of guessing.
- Update
.ralph/harness-version.jsonwith the selected tag and resolved commit. - Complete the upgrade without overwriting project-owned runtime files unless a named migration step requires it.
Outputs
- the current repository ends up upgraded exactly as
UPGRADING.mddescribes
Completion
At the end of upgrade:
- verify the upgrade against the checklist and verification section in
UPGRADING.md - remind the user:
Restart Codex to pick up new skills.if this skill was newly installed globally