Skip to content

feat: add runtimeVersion to Job schema with validation#442

Merged
FL4TLiN3 merged 4 commits intomainfrom
feat/runtime-version
Jan 21, 2026
Merged

feat: add runtimeVersion to Job schema with validation#442
FL4TLiN3 merged 4 commits intomainfrom
feat/runtime-version

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Add runtimeVersion: RuntimeVersion to Job schema to track which runtime version executed the job
  • Add minRuntimeVersion?: RuntimeVersion to Expert schema for compatibility requirements
  • Runtime version 0.x.y is treated as v1.0 for compatibility (special case during pre-1.0 development)
  • Validate entire delegation chain before execution (fail fast - no LLM calls if incompatible)
  • Recursive delegate resolution ensures all experts in chain are checked

Test plan

  • Unit tests for runtime-version.ts (26 tests covering parsing, comparison, validation)
  • Unit tests for setup-experts.ts (8 tests including 3-level chain, circular reference, diamond pattern)
  • E2E test experts defined in e2e/experts/runtime-version.toml
  • E2E tests in e2e/perstack-runtime/runtime-version.test.ts
  • pnpm typecheck passes
  • pnpm format-and-lint passes
  • pnpm test passes (1369 tests)
  • pnpm build succeeds

Closes #440

🤖 Generated with Claude Code

- Add `runtimeVersion: RuntimeVersion` to Job schema
- Add `minRuntimeVersion?: RuntimeVersion` to Expert schema
- Runtime 0.x.y is treated as v1.0 for compatibility
- Validate entire delegation chain before execution (fail fast)
- Recursive delegate resolution for complete chain validation

Closes #440

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

FL4TLiN3 and others added 3 commits January 21, 2026 16:51
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Changed minRuntimeVersion from optional to required in Expert interface
- Added default value "v1.0" in schema
- Updated all test files and helper functions to include minRuntimeVersion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 merged commit 6f8d04a into main Jan 21, 2026
9 checks passed
@FL4TLiN3 FL4TLiN3 deleted the feat/runtime-version branch January 21, 2026 17:13
@FL4TLiN3 FL4TLiN3 mentioned this pull request Jan 21, 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.

Add runtimeVersion to Job schema

2 participants