Shrink Epiphany job bindings to authority slots

This commit is contained in:
Meta Vens 2026-05-12 20:47:48 +01:00
commit bd8d5c5493
23 changed files with 55 additions and 515 deletions

View file

@ -1315,12 +1315,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -1333,12 +1327,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1354,12 +1342,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -1575,12 +1575,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -1593,12 +1587,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1614,12 +1602,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -8444,12 +8444,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -8462,12 +8456,6 @@
"kind": {
"$ref": "#/definitions/v2/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -8483,12 +8471,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -4984,12 +4984,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -5002,12 +4996,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -5023,12 +5011,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -574,12 +574,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -592,12 +586,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -613,12 +601,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -1022,12 +1022,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -1040,12 +1034,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1061,12 +1049,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -963,12 +963,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -981,12 +975,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1002,12 +990,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -963,12 +963,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -981,12 +975,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1002,12 +990,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -963,12 +963,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -981,12 +975,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1002,12 +990,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -1022,12 +1022,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -1040,12 +1034,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1061,12 +1049,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -963,12 +963,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -981,12 +975,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1002,12 +990,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -1022,12 +1022,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -1040,12 +1034,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1061,12 +1049,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -963,12 +963,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -981,12 +975,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1002,12 +990,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"type": "string"
}

View file

@ -963,12 +963,6 @@
"null"
]
},
"backend_job_id": {
"type": [
"string",
"null"
]
},
"blocking_reason": {
"type": [
"string",
@ -981,12 +975,6 @@
"kind": {
"$ref": "#/definitions/EpiphanyJobKind"
},
"launcher_job_id": {
"type": [
"string",
"null"
]
},
"linked_graph_node_ids": {
"items": {
"type": "string"
@ -1002,12 +990,6 @@
"owner_role": {
"type": "string"
},
"progress_note": {
"type": [
"string",
"null"
]
},
"scope": {
"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_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, authority_scope?: string | null, linked_subgoal_ids?: Array<string>, linked_graph_node_ids?: Array<string>, blocking_reason?: string | null, };

View file

@ -1724,15 +1724,9 @@ mod tests {
kind: codex_protocol::protocol::EpiphanyJobKind::Specialist,
scope: "role-scoped modeling/checkpoint maintenance".to_string(),
owner_role: "epiphany-modeler".to_string(),
launcher_job_id: Some("epiphany-launch-1".to_string()),
authority_scope: Some("epiphany.role.modeling".to_string()),
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()],
progress_note: Some(
"Explicitly launched through the Epiphany authority surface onto the heartbeat backend."
.to_string(),
),
blocking_reason: None,
}],
..Default::default()
@ -1779,12 +1773,9 @@ mod tests {
"kind": "specialist",
"scope": "role-scoped modeling/checkpoint maintenance",
"owner_role": "epiphany-modeler",
"launcher_job_id": "epiphany-launch-1",
"authority_scope": "epiphany.role.modeling",
"backend_job_id": "backend-1",
"linked_subgoal_ids": ["phase-6"],
"linked_graph_node_ids": ["state-spine"],
"progress_note": "Explicitly launched through the Epiphany authority surface onto the heartbeat backend."
"linked_graph_node_ids": ["state-spine"]
}]
},
"job": {
@ -2367,15 +2358,9 @@ mod tests {
kind: codex_protocol::protocol::EpiphanyJobKind::Specialist,
scope: "reorient-guided checkpoint regather".to_string(),
owner_role: "epiphany-reorient".to_string(),
launcher_job_id: Some("epiphany-launch-1".to_string()),
authority_scope: Some("epiphany.reorient.regather".to_string()),
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()],
progress_note: Some(
"Explicitly launched through the Epiphany authority surface onto the heartbeat backend."
.to_string(),
),
blocking_reason: None,
}],
..Default::default()
@ -2442,12 +2427,9 @@ mod tests {
"kind": "specialist",
"scope": "reorient-guided checkpoint regather",
"owner_role": "epiphany-reorient",
"launcher_job_id": "epiphany-launch-1",
"authority_scope": "epiphany.reorient.regather",
"backend_job_id": "backend-1",
"linked_subgoal_ids": ["phase-6"],
"linked_graph_node_ids": ["state-spine"],
"progress_note": "Explicitly launched through the Epiphany authority surface onto the heartbeat backend."
"linked_graph_node_ids": ["state-spine"]
}]
},
"job": {
@ -2955,12 +2937,9 @@ mod tests {
kind: codex_protocol::protocol::EpiphanyJobKind::Specialist,
scope: "role-scoped specialist work".to_string(),
owner_role: "epiphany-harness".to_string(),
launcher_job_id: None,
authority_scope: Some("epiphany.specialist".to_string()),
backend_job_id: None,
linked_subgoal_ids: Vec::new(),
linked_graph_node_ids: Vec::new(),
progress_note: None,
blocking_reason: None,
}],
runtime_links: vec![codex_protocol::protocol::EpiphanyRuntimeLink {
@ -3057,12 +3036,9 @@ mod tests {
kind: codex_protocol::protocol::EpiphanyJobKind::Specialist,
scope: "role-scoped specialist work".to_string(),
owner_role: "epiphany-harness".to_string(),
launcher_job_id: None,
authority_scope: Some("epiphany.specialist".to_string()),
backend_job_id: None,
linked_subgoal_ids: Vec::new(),
linked_graph_node_ids: Vec::new(),
progress_note: None,
blocking_reason: Some(
"Launch explicitly to resume specialist work.".to_string(),
),