Skip to content

Add runtimeVersion to Job schema #440

@FL4TLiN3

Description

@FL4TLiN3

Summary

Add runtimeVersion to Job schema in @perstack/core.

Background

  • All Runs within a Job execute on the same runtime
  • runtimeVersion should be managed at the Job level, not the Run level
  • This aligns with the minRuntimeVersion constraint on Experts:
    • At job execution time, check minRuntimeVersion of all experts in the delegate chain
    • Use the maximum version to determine the job's runtimeVersion

Current State

// @perstack/core/src/schemas/job.ts
export interface Job {
  id: string
  status: JobStatus
  coordinatorExpertKey: string
  totalSteps: number
  maxSteps?: number
  usage: Usage
  startedAt: number
  finishedAt?: number
  // runtimeVersion is missing
}

Proposed Changes

  • Add runtimeVersion?: string to Job interface and jobSchema

Related

  • wintermute-2 will make corresponding changes (add runtimeVersion to jobs table, remove from runs table)

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions