Derive runtime job ownership from sealed bindings
This commit is contained in:
parent
f5cd509a1e
commit
10a70afcbd
7 changed files with 102 additions and 175 deletions
|
|
@ -1144,7 +1144,6 @@ mod tests {
|
|||
epiphany_core::RuntimeSpineJobOptions {
|
||||
job_id: job_id.clone(),
|
||||
session_id: session_id.clone(),
|
||||
role: OPENAI_RUNTIME_ROLE.to_string(),
|
||||
},
|
||||
&model_request,
|
||||
)?;
|
||||
|
|
@ -1242,9 +1241,6 @@ mod tests {
|
|||
&store,
|
||||
RuntimeSpineHeartbeatJobOptions {
|
||||
runtime_id: "epiphany-test".to_string(),
|
||||
session_id: "epiphany-main".to_string(),
|
||||
objective: "Run typed worker.".to_string(),
|
||||
coordinator_note: "test".to_string(),
|
||||
job_id: "worker-job-loop".to_string(),
|
||||
role: "verification".to_string(),
|
||||
binding_id: "verification-review-worker".to_string(),
|
||||
|
|
@ -1333,9 +1329,6 @@ mod tests {
|
|||
&store,
|
||||
RuntimeSpineHeartbeatJobOptions {
|
||||
runtime_id: "epiphany-test".to_string(),
|
||||
session_id: "epiphany-main".to_string(),
|
||||
objective: "Run typed worker.".to_string(),
|
||||
coordinator_note: "test".to_string(),
|
||||
job_id: "worker-job-runtime-error".to_string(),
|
||||
role: "verification".to_string(),
|
||||
binding_id: "verification-review-worker".to_string(),
|
||||
|
|
@ -1382,7 +1375,6 @@ mod tests {
|
|||
epiphany_core::RuntimeSpineJobOptions {
|
||||
job_id: "openai-job-runtime-error".into(),
|
||||
session_id: "openai-runtime-error".into(),
|
||||
role: OPENAI_RUNTIME_ROLE.into(),
|
||||
},
|
||||
&request,
|
||||
)?;
|
||||
|
|
@ -1436,9 +1428,6 @@ mod tests {
|
|||
&store,
|
||||
RuntimeSpineHeartbeatJobOptions {
|
||||
runtime_id: "epiphany-test".to_string(),
|
||||
session_id: "epiphany-main".to_string(),
|
||||
objective: "Run typed worker.".to_string(),
|
||||
coordinator_note: "test".to_string(),
|
||||
job_id: "worker-job-round-limit".to_string(),
|
||||
role: "verification".to_string(),
|
||||
binding_id: "verification-review-worker".to_string(),
|
||||
|
|
|
|||
|
|
@ -117,7 +117,6 @@ pub fn open_model_turn(
|
|||
RuntimeSpineJobOptions {
|
||||
job_id: options.job_id.clone(),
|
||||
session_id: options.session_id.clone(),
|
||||
role: OPENAI_RUNTIME_ROLE.to_string(),
|
||||
},
|
||||
model_request,
|
||||
)?;
|
||||
|
|
@ -2961,7 +2960,6 @@ mod tests {
|
|||
RuntimeSpineJobOptions {
|
||||
job_id: options.job_id.clone(),
|
||||
session_id: options.session_id.clone(),
|
||||
role: OPENAI_RUNTIME_ROLE.to_string(),
|
||||
},
|
||||
&native_request,
|
||||
)?;
|
||||
|
|
@ -3057,7 +3055,6 @@ mod tests {
|
|||
RuntimeSpineJobOptions {
|
||||
job_id: "openai-worker-worker-job-1".into(),
|
||||
session_id: "openai-worker-session-modeling-checkpoint-worker".into(),
|
||||
role: "openai-model-adapter".into(),
|
||||
},
|
||||
&model_request,
|
||||
)?;
|
||||
|
|
@ -3281,9 +3278,6 @@ mod tests {
|
|||
&store,
|
||||
RuntimeSpineHeartbeatJobOptions {
|
||||
runtime_id: "epiphany-test".to_string(),
|
||||
session_id: "epiphany-main".to_string(),
|
||||
objective: "Verify the machine.".to_string(),
|
||||
coordinator_note: "test".to_string(),
|
||||
job_id: "verification-job-1".to_string(),
|
||||
role: "verification".to_string(),
|
||||
binding_id: epiphany_core::EPIPHANY_VERIFICATION_ROLE_BINDING_ID.to_string(),
|
||||
|
|
@ -3422,7 +3416,6 @@ mod tests {
|
|||
RuntimeSpineJobOptions {
|
||||
job_id: options.job_id.clone(),
|
||||
session_id: options.session_id.clone(),
|
||||
role: OPENAI_RUNTIME_ROLE.to_string(),
|
||||
},
|
||||
&native_request,
|
||||
)?;
|
||||
|
|
|
|||
|
|
@ -594,7 +594,6 @@ mod tests {
|
|||
epiphany_core::RuntimeSpineJobOptions {
|
||||
job_id: format!("persona-{stage}-{turn_id}"),
|
||||
session_id: format!("persona-turn-{turn_id}"),
|
||||
role: "openai-model-adapter".into(),
|
||||
},
|
||||
&request,
|
||||
)?;
|
||||
|
|
|
|||
Reference in a new issue