Remove Epiphany job backend kind
This commit is contained in:
parent
7b1e79a765
commit
b9ad3cdac7
24 changed files with 13 additions and 447 deletions
|
|
@ -1978,7 +1978,6 @@ mod tests {
|
|||
owner_role: "epiphany-core".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: None,
|
||||
backend_kind: None,
|
||||
backend_job_id: None,
|
||||
status: v2::ThreadEpiphanyJobStatus::Needed,
|
||||
items_processed: Some(12),
|
||||
|
|
@ -2048,7 +2047,6 @@ mod tests {
|
|||
owner_role: "epiphany-verifier".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: None,
|
||||
backend_kind: None,
|
||||
backend_job_id: None,
|
||||
status: v2::ThreadEpiphanyJobStatus::Needed,
|
||||
items_processed: None,
|
||||
|
|
@ -2207,9 +2205,6 @@ mod tests {
|
|||
owner_role: "epiphany-modeler".to_string(),
|
||||
launcher_job_id: Some("epiphany-launch-1".to_string()),
|
||||
authority_scope: Some("epiphany.role.modeling".to_string()),
|
||||
backend_kind: Some(
|
||||
codex_protocol::protocol::EpiphanyJobBackendKind::Heartbeat,
|
||||
),
|
||||
backend_job_id: Some("backend-1".to_string()),
|
||||
linked_subgoal_ids: vec!["phase-6".to_string()],
|
||||
linked_graph_node_ids: vec!["state-spine".to_string()],
|
||||
|
|
@ -2228,7 +2223,6 @@ mod tests {
|
|||
owner_role: "epiphany-modeler".to_string(),
|
||||
launcher_job_id: Some("epiphany-launch-1".to_string()),
|
||||
authority_scope: Some("epiphany.role.modeling".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("backend-1".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Pending,
|
||||
items_processed: None,
|
||||
|
|
@ -2266,7 +2260,6 @@ mod tests {
|
|||
"owner_role": "epiphany-modeler",
|
||||
"launcher_job_id": "epiphany-launch-1",
|
||||
"authority_scope": "epiphany.role.modeling",
|
||||
"backend_kind": "heartbeat",
|
||||
"backend_job_id": "backend-1",
|
||||
"linked_subgoal_ids": ["phase-6"],
|
||||
"linked_graph_node_ids": ["state-spine"],
|
||||
|
|
@ -2280,7 +2273,6 @@ mod tests {
|
|||
"ownerRole": "epiphany-modeler",
|
||||
"launcherJobId": "epiphany-launch-1",
|
||||
"authorityScope": "epiphany.role.modeling",
|
||||
"backendKind": "heartbeat",
|
||||
"backendJobId": "backend-1",
|
||||
"status": "pending",
|
||||
"progressNote": "Explicitly launched through the Epiphany authority surface onto the heartbeat backend.",
|
||||
|
|
@ -2313,7 +2305,6 @@ mod tests {
|
|||
owner_role: "epiphany-verifier".to_string(),
|
||||
launcher_job_id: Some("epiphany-launch-2".to_string()),
|
||||
authority_scope: Some("epiphany.role.verification".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("backend-2".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Completed,
|
||||
items_processed: Some(1),
|
||||
|
|
@ -2373,7 +2364,6 @@ mod tests {
|
|||
"ownerRole": "epiphany-verifier",
|
||||
"launcherJobId": "epiphany-launch-2",
|
||||
"authorityScope": "epiphany.role.verification",
|
||||
"backendKind": "heartbeat",
|
||||
"backendJobId": "backend-2",
|
||||
"status": "completed",
|
||||
"itemsProcessed": 1,
|
||||
|
|
@ -3259,9 +3249,6 @@ mod tests {
|
|||
owner_role: "epiphany-reorient".to_string(),
|
||||
launcher_job_id: Some("epiphany-launch-1".to_string()),
|
||||
authority_scope: Some("epiphany.reorient.regather".to_string()),
|
||||
backend_kind: Some(
|
||||
codex_protocol::protocol::EpiphanyJobBackendKind::Heartbeat,
|
||||
),
|
||||
backend_job_id: Some("backend-1".to_string()),
|
||||
linked_subgoal_ids: vec!["phase-6".to_string()],
|
||||
linked_graph_node_ids: vec!["state-spine".to_string()],
|
||||
|
|
@ -3280,7 +3267,6 @@ mod tests {
|
|||
owner_role: "epiphany-reorient".to_string(),
|
||||
launcher_job_id: Some("epiphany-launch-1".to_string()),
|
||||
authority_scope: Some("epiphany.reorient.regather".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("backend-1".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Pending,
|
||||
items_processed: None,
|
||||
|
|
@ -3338,7 +3324,6 @@ mod tests {
|
|||
"owner_role": "epiphany-reorient",
|
||||
"launcher_job_id": "epiphany-launch-1",
|
||||
"authority_scope": "epiphany.reorient.regather",
|
||||
"backend_kind": "heartbeat",
|
||||
"backend_job_id": "backend-1",
|
||||
"linked_subgoal_ids": ["phase-6"],
|
||||
"linked_graph_node_ids": ["state-spine"],
|
||||
|
|
@ -3352,7 +3337,6 @@ mod tests {
|
|||
"ownerRole": "epiphany-reorient",
|
||||
"launcherJobId": "epiphany-launch-1",
|
||||
"authorityScope": "epiphany.reorient.regather",
|
||||
"backendKind": "heartbeat",
|
||||
"backendJobId": "backend-1",
|
||||
"status": "pending",
|
||||
"progressNote": "Explicitly launched through the Epiphany authority surface onto the heartbeat backend.",
|
||||
|
|
@ -3384,7 +3368,6 @@ mod tests {
|
|||
owner_role: "epiphany-reorient".to_string(),
|
||||
launcher_job_id: Some("epiphany-launch-1".to_string()),
|
||||
authority_scope: Some("epiphany.reorient.resume".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("backend-1".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Completed,
|
||||
items_processed: Some(1),
|
||||
|
|
@ -3436,7 +3419,6 @@ mod tests {
|
|||
"ownerRole": "epiphany-reorient",
|
||||
"launcherJobId": "epiphany-launch-1",
|
||||
"authorityScope": "epiphany.reorient.resume",
|
||||
"backendKind": "heartbeat",
|
||||
"backendJobId": "backend-1",
|
||||
"status": "completed",
|
||||
"itemsProcessed": 1,
|
||||
|
|
@ -3855,7 +3837,6 @@ mod tests {
|
|||
owner_role: "epiphany-harness".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: Some("epiphany.specialist".to_string()),
|
||||
backend_kind: None,
|
||||
backend_job_id: None,
|
||||
linked_subgoal_ids: Vec::new(),
|
||||
linked_graph_node_ids: Vec::new(),
|
||||
|
|
@ -3882,7 +3863,6 @@ mod tests {
|
|||
owner_role: "epiphany-harness".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: Some("epiphany.specialist".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("job-123".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Pending,
|
||||
items_processed: None,
|
||||
|
|
@ -3930,7 +3910,6 @@ mod tests {
|
|||
"scope": "role-scoped specialist work",
|
||||
"ownerRole": "epiphany-harness",
|
||||
"authorityScope": "epiphany.specialist",
|
||||
"backendKind": "heartbeat",
|
||||
"backendJobId": "job-123",
|
||||
"status": "pending",
|
||||
"progressNote": "Runtime agent job is pending."
|
||||
|
|
@ -3960,7 +3939,6 @@ mod tests {
|
|||
owner_role: "epiphany-harness".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: Some("epiphany.specialist".to_string()),
|
||||
backend_kind: None,
|
||||
backend_job_id: None,
|
||||
linked_subgoal_ids: Vec::new(),
|
||||
linked_graph_node_ids: Vec::new(),
|
||||
|
|
@ -3978,7 +3956,6 @@ mod tests {
|
|||
owner_role: "epiphany-harness".to_string(),
|
||||
launcher_job_id: None,
|
||||
authority_scope: Some("epiphany.specialist".to_string()),
|
||||
backend_kind: None,
|
||||
backend_job_id: None,
|
||||
status: v2::ThreadEpiphanyJobStatus::Blocked,
|
||||
items_processed: None,
|
||||
|
|
@ -4151,7 +4128,6 @@ mod tests {
|
|||
owner_role: "epiphany-harness".to_string(),
|
||||
launcher_job_id: Some("launcher-specialist".to_string()),
|
||||
authority_scope: Some("epiphany.specialist".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("job-123".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Running,
|
||||
items_processed: Some(1),
|
||||
|
|
@ -4179,7 +4155,6 @@ mod tests {
|
|||
"ownerRole": "epiphany-harness",
|
||||
"launcherJobId": "launcher-specialist",
|
||||
"authorityScope": "epiphany.specialist",
|
||||
"backendKind": "heartbeat",
|
||||
"backendJobId": "job-123",
|
||||
"status": "running",
|
||||
"itemsProcessed": 1,
|
||||
|
|
@ -5074,7 +5049,6 @@ mod tests {
|
|||
owner_role: "epiphany-harness".to_string(),
|
||||
launcher_job_id: Some("launcher-specialist".to_string()),
|
||||
authority_scope: Some("epiphany.specialist".to_string()),
|
||||
backend_kind: Some(v2::ThreadEpiphanyJobBackendKind::Heartbeat),
|
||||
backend_job_id: Some("job-123".to_string()),
|
||||
status: v2::ThreadEpiphanyJobStatus::Running,
|
||||
items_processed: Some(1),
|
||||
|
|
|
|||
|
|
@ -4645,13 +4645,6 @@ pub enum ThreadEpiphanyJobKind {
|
|||
Specialist,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
pub enum ThreadEpiphanyJobBackendKind {
|
||||
Heartbeat,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, JsonSchema, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export_to = "v2/")]
|
||||
|
|
@ -4683,9 +4676,6 @@ pub struct ThreadEpiphanyJob {
|
|||
pub authority_scope: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub backend_kind: Option<ThreadEpiphanyJobBackendKind>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
#[ts(optional = nullable)]
|
||||
pub backend_job_id: Option<String>,
|
||||
pub status: ThreadEpiphanyJobStatus,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
|
|
|
|||
Reference in a new issue