Remove Epiphany job backend kind

This commit is contained in:
Meta Vens 2026-05-12 05:30:18 +01:00
commit b9ad3cdac7
24 changed files with 13 additions and 447 deletions

View file

@ -1307,12 +1307,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -1327,16 +1321,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -1567,12 +1567,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -1587,16 +1581,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",
@ -4559,16 +4543,6 @@
"null"
]
},
"backendKind": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blockingReason": {
"type": [
"string",
@ -4647,12 +4621,6 @@
],
"type": "object"
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"ThreadEpiphanyJobKind": {
"enum": [
"indexing",

View file

@ -8436,12 +8436,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -8456,16 +8450,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/v2/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",
@ -16160,16 +16144,6 @@
"null"
]
},
"backendKind": {
"anyOf": [
{
"$ref": "#/definitions/v2/ThreadEpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blockingReason": {
"type": [
"string",
@ -16248,12 +16222,6 @@
],
"type": "object"
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"ThreadEpiphanyJobKind": {
"enum": [
"indexing",

View file

@ -4976,12 +4976,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -4996,16 +4990,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",
@ -14047,16 +14031,6 @@
"null"
]
},
"backendKind": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blockingReason": {
"type": [
"string",
@ -14135,12 +14109,6 @@
],
"type": "object"
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"ThreadEpiphanyJobKind": {
"enum": [
"indexing",

View file

@ -21,16 +21,6 @@
"null"
]
},
"backendKind": {
"anyOf": [
{
"$ref": "#/definitions/ThreadEpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blockingReason": {
"type": [
"string",
@ -109,12 +99,6 @@
],
"type": "object"
},
"ThreadEpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"ThreadEpiphanyJobKind": {
"enum": [
"indexing",

View file

@ -566,12 +566,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -586,16 +580,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -1014,12 +1014,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -1034,16 +1028,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -955,12 +955,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -975,16 +969,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -955,12 +955,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -975,16 +969,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -955,12 +955,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -975,16 +969,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -1014,12 +1014,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -1034,16 +1028,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -955,12 +955,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -975,16 +969,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -1014,12 +1014,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -1034,16 +1028,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -955,12 +955,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -975,16 +969,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -955,12 +955,6 @@
],
"type": "string"
},
"EpiphanyJobBackendKind": {
"enum": [
"heartbeat"
],
"type": "string"
},
"EpiphanyJobBinding": {
"properties": {
"authority_scope": {
@ -975,16 +969,6 @@
"null"
]
},
"backend_kind": {
"anyOf": [
{
"$ref": "#/definitions/EpiphanyJobBackendKind"
},
{
"type": "null"
}
]
},
"blocking_reason": {
"type": [
"string",

View file

@ -3,4 +3,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { EpiphanyJobKind } from "./EpiphanyJobKind";
export type EpiphanyJobBinding = { id: string, kind: EpiphanyJobKind, scope: string, owner_role: string, launcher_job_id?: string | null, authority_scope?: string | null, backend_kind?: EpiphanyJobBackendKind | null, backend_job_id?: string | null, linked_subgoal_ids?: Array<string>, linked_graph_node_ids?: Array<string>, progress_note?: string | null, blocking_reason?: string | null, };
export type EpiphanyJobBinding = { id: string, kind: EpiphanyJobKind, scope: string, owner_role: string, launcher_job_id?: string | null, authority_scope?: string | null, backend_job_id?: string | null, linked_subgoal_ids?: Array<string>, linked_graph_node_ids?: Array<string>, progress_note?: string | null, blocking_reason?: string | null, };

View file

@ -1,8 +1,7 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { ThreadEpiphanyJobBackendKind } from "./ThreadEpiphanyJobBackendKind";
import type { ThreadEpiphanyJobKind } from "./ThreadEpiphanyJobKind";
import type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";
export type ThreadEpiphanyJob = { id: string, kind: ThreadEpiphanyJobKind, scope: string, ownerRole: string, launcherJobId?: string | null, authorityScope?: string | null, backendKind?: ThreadEpiphanyJobBackendKind | null, backendJobId?: string | null, status: ThreadEpiphanyJobStatus, itemsProcessed?: number | null, itemsTotal?: number | null, progressNote?: string | null, lastCheckpointAtUnixSeconds?: bigint | null, blockingReason?: string | null, activeThreadIds?: Array<string>, linkedSubgoalIds?: Array<string>, linkedGraphNodeIds?: Array<string>, };
export type ThreadEpiphanyJob = { id: string, kind: ThreadEpiphanyJobKind, scope: string, ownerRole: string, launcherJobId?: string | null, authorityScope?: string | null, backendJobId?: string | null, status: ThreadEpiphanyJobStatus, itemsProcessed?: number | null, itemsTotal?: number | null, progressNote?: string | null, lastCheckpointAtUnixSeconds?: bigint | null, blockingReason?: string | null, activeThreadIds?: Array<string>, linkedSubgoalIds?: Array<string>, linkedGraphNodeIds?: Array<string>, };

View file

@ -1,5 +0,0 @@
// GENERATED CODE! DO NOT MODIFY BY HAND!
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type ThreadEpiphanyJobBackendKind = "heartbeat";

View file

@ -337,7 +337,6 @@ export type { ThreadEpiphanyGraphQueryMissing } from "./ThreadEpiphanyGraphQuery
export type { ThreadEpiphanyInvalidationInput } from "./ThreadEpiphanyInvalidationInput";
export type { ThreadEpiphanyInvalidationStatus } from "./ThreadEpiphanyInvalidationStatus";
export type { ThreadEpiphanyJob } from "./ThreadEpiphanyJob";
export type { ThreadEpiphanyJobBackendKind } from "./ThreadEpiphanyJobBackendKind";
export type { ThreadEpiphanyJobKind } from "./ThreadEpiphanyJobKind";
export type { ThreadEpiphanyJobStatus } from "./ThreadEpiphanyJobStatus";
export type { ThreadEpiphanyJobsSource } from "./ThreadEpiphanyJobsSource";

View file

@ -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),

View file

@ -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")]