Return memory patch candidates from propose

This commit is contained in:
Meta Vens 2026-05-18 05:27:54 +01:00
commit 09238eb623
8 changed files with 125 additions and 8 deletions

View file

@ -546,15 +546,19 @@ pub fn map_epiphany_propose_response(
})
.map_err(|err| err.to_string())?;
let graph_frontier = proposal
.memory_patch_candidates
.is_empty()
.then_some(proposal.graph_frontier);
Ok(ThreadEpiphanyProposeResponse {
expected_revision,
patch: ThreadEpiphanyUpdatePatch {
observations: vec![proposal.observation],
evidence: vec![proposal.evidence],
graphs: Some(proposal.graphs),
graph_frontier: Some(proposal.graph_frontier),
graph_frontier,
churn: Some(proposal.churn),
..Default::default()
},
memory_patch_candidates: proposal.memory_patch_candidates,
})
}