Expose memory patch candidates on role results

This commit is contained in:
Meta Vens 2026-05-18 04:40:48 +01:00
commit be176ef2a2
8 changed files with 14 additions and 4 deletions

View file

@ -1798,6 +1798,7 @@ mod tests {
evidence_gaps: Vec::new(),
risks: Vec::new(),
state_patch: None,
memory_patch_candidates: Vec::new(),
self_patch: None,
self_persistence: None,
job_error: None,
@ -1882,6 +1883,7 @@ mod tests {
evidence_gaps: Vec::new(),
risks: Vec::new(),
state_patch: Some(patch.clone()),
memory_patch_candidates: Vec::new(),
self_patch: None,
self_persistence: None,
job_error: None,

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::EpiphanyMemoryPatchCandidate as CoreEpiphanyMemoryPatchCandidate;
use codex_protocol::protocol::EpiphanyMemoryPatchReview as CoreEpiphanyMemoryPatchReview;
use codex_protocol::protocol::EpiphanyModeState as CoreEpiphanyModeState;
use codex_protocol::protocol::EpiphanyObservation as CoreEpiphanyObservation;
@ -4083,6 +4084,9 @@ pub struct ThreadEpiphanyRoleFinding {
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable)]
pub state_patch: Option<ThreadEpiphanyUpdatePatch>,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
#[ts(type = "Array<CoreEpiphanyMemoryPatchCandidate>")]
pub memory_patch_candidates: Vec<CoreEpiphanyMemoryPatchCandidate>,
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional = nullable, type = "unknown")]
pub self_patch: Option<serde_json::Value>,