Skip to content

feat(cli-schema): cli: schema v8 + rpg-state.json [P13.01]#131

Closed
cesarnml wants to merge 8 commits into
mainfrom
agents/p13-01-cli-schema-v8-rpg-state-json
Closed

feat(cli-schema): cli: schema v8 + rpg-state.json [P13.01]#131
cesarnml wants to merge 8 commits into
mainfrom
agents/p13-01-cli-schema-v8-rpg-state-json

Conversation

@cesarnml

Copy link
Copy Markdown
Owner

Summary

cesarnml added 7 commits June 28, 2026 14:15
- Bump STATE_JSON_SCHEMA_VERSION 7 → 8
- Remove RPG fields from sliceEntrySchema; add .strict() to reject stale v7 writers
- Drop RPG spread from sliceToStateJson (slices are activity-state only)
- superRefine now requires RPG fields only for schema_version 5–7 payloads
- Add rpgStatePath, seedRpgState, writeRpgStateAtomic helpers to hook-binary
- runHook writes rpg-state.json atomically on every invocation when rpg_enabled;
  first write seeds from v7 slice last-writer-wins by updated_at
- Update all test fixtures: schema_version 7→8, RPG assertions migrate to readRpgState()
…agent-review]

seedRpgState now falls back to state.json when no v7 slices carry RPG fields,
matching the ticket spec's three-tier migration path. Migration seed test pins
level_fraction and active_minutes to values only reachable via the seed path.
@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codogotchi Ready Ready Preview, Comment Jun 28, 2026 7:43am

@cesarnml

Copy link
Copy Markdown
Owner Author

Squash-merged to main via closeout-stack (P13.01).

@cesarnml cesarnml closed this Jun 28, 2026
@cesarnml cesarnml deleted the agents/p13-01-cli-schema-v8-rpg-state-json branch June 28, 2026 23:36
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