Skip to content

Refactor runtime episode contracts#386

Merged
chubes4 merged 1 commit into
mainfrom
refactor/runtime-episode-contracts
May 31, 2026
Merged

Refactor runtime episode contracts#386
chubes4 merged 1 commit into
mainfrom
refactor/runtime-episode-contracts

Conversation

@chubes4
Copy link
Copy Markdown
Collaborator

@chubes4 chubes4 commented May 31, 2026

Summary

  • Extract runtime episode schema IDs, JSON schema, canonical digest payloads, and trace validation into runtime-episode-contracts.ts.
  • Keep runtime-episode.ts focused on runner lifecycle, trace/artifact persistence, JSONL shaping, and runtime execution details.
  • Preserve the existing public runtime episode exports from runtime-episode.ts and @chubes4/wp-codebox-core.

Closes #379.

Tests

  • npm run build
  • npm run runtime-episode-smoke
  • npm run runtime-snapshot-restore-smoke
  • npm run runtime-action-adapter-smoke
  • npm run package-distribution-smoke

Caveats

  • Ran npm install because the initial build could not find node_modules/typescript/bin/tsc; reverted the incidental package-lock.json version churn afterward.
  • This intentionally leaves episode execution, artifact persistence, and snapshot bundle writing in runtime-episode.ts to avoid over-splitting behavior that still belongs to the runner.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafting and verifying the focused runtime episode contract extraction; Chris remains responsible for review and merge.

@chubes4 chubes4 merged commit 84324f1 into main May 31, 2026
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.

Split runtime episode contracts from episode execution details

1 participant