Use memory graph store for worker context

This commit is contained in:
Meta Vens 2026-05-18 05:17:41 +01:00
commit d1d7291a82
11 changed files with 175 additions and 9 deletions

View file

@ -3923,6 +3923,7 @@ mod tests {
active_subgoal_id: Some("phase6".to_string()),
active_subgoals: Vec::new(),
active_graph_node_ids: vec!["job-surface".to_string()],
memory_context: None,
investigation_checkpoint: None,
scratch: None,
invariants: Vec::new(),

View file

@ -72,6 +72,7 @@ use codex_protocol::protocol::EpiphanyInvestigationCheckpoint as CoreEpiphanyInv
use codex_protocol::protocol::EpiphanyInvestigationDisposition as CoreEpiphanyInvestigationDisposition;
use codex_protocol::protocol::EpiphanyJobBinding as CoreEpiphanyJobBinding;
use codex_protocol::protocol::EpiphanyJobKind as CoreEpiphanyJobKind;
use codex_protocol::protocol::EpiphanyMemoryContextPacket as CoreEpiphanyMemoryContextPacket;
use codex_protocol::protocol::EpiphanyMemoryPatchCandidate as CoreEpiphanyMemoryPatchCandidate;
use codex_protocol::protocol::EpiphanyMemoryPatchReview as CoreEpiphanyMemoryPatchReview;
use codex_protocol::protocol::EpiphanyModeState as CoreEpiphanyModeState;
@ -5230,6 +5231,9 @@ pub struct ThreadEpiphanyRoleWorkerLaunchDocument {
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub active_graph_node_ids: Vec<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable, type = "CoreEpiphanyMemoryContextPacket | null")]
pub memory_context: Option<CoreEpiphanyMemoryContextPacket>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub investigation_checkpoint: Option<CoreEpiphanyInvestigationCheckpoint>,
#[serde(default, skip_serializing_if = "Option::is_none")]
@ -5295,6 +5299,9 @@ pub struct ThreadEpiphanyReorientWorkerLaunchDocument {
#[ts(optional = nullable)]
pub scratch: Option<CoreEpiphanyScratchPad>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable, type = "CoreEpiphanyMemoryContextPacket | null")]
pub memory_context: Option<CoreEpiphanyMemoryContextPacket>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub graphs: Option<CoreEpiphanyGraphs>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]