diff --git a/epiphany-core/src/agent_launch.rs b/epiphany-core/src/agent_launch.rs index 2d419a61..586c913b 100644 --- a/epiphany-core/src/agent_launch.rs +++ b/epiphany-core/src/agent_launch.rs @@ -993,7 +993,7 @@ pub fn epiphany_imagination_consideration_output_schema() -> serde_json::Value { "imaginationConsiderationCandidate": { "type": "object", "required": ["disposition", "title", "summary", "rationale", "option_drafts", "uncertainties", - "evidence_refs", "recommended_review_route"], + "recommended_review_route"], "properties": { "disposition": {"type": "string", "enum": ["suggest", "hold", "no_fit"]}, "title": {"type": "string", "minLength": 1}, "summary": {"type": "string", "minLength": 1}, @@ -1002,7 +1002,6 @@ pub fn epiphany_imagination_consideration_output_schema() -> serde_json::Value { "properties": {"title": {"type": "string", "minLength": 1}, "summary": {"type": "string", "minLength": 1}}, "additionalProperties": false}}, "uncertainties": {"type": "array", "items": {"type": "string"}}, - "evidence_refs": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}}, "recommended_review_route": {"type": "string", "enum": ["modeling_review", "hold", "silence"]} }, "additionalProperties": false @@ -1999,6 +1998,7 @@ mod tests { "data_classification", "model_revision", "model_hash", + "evidence_refs", "proposed_at", "contract", ] { diff --git a/epiphany-openai-runtime/src/lib.rs b/epiphany-openai-runtime/src/lib.rs index b9e9952a..8f024ad0 100644 --- a/epiphany-openai-runtime/src/lib.rs +++ b/epiphany-openai-runtime/src/lib.rs @@ -1519,7 +1519,6 @@ struct ImaginationConsiderationCandidateIngress { rationale: String, option_drafts: Vec, uncertainties: Vec, - evidence_refs: Vec, recommended_review_route: Option, } @@ -1732,7 +1731,7 @@ fn role_worker_result_from_ingress( rationale: ingress.rationale.trim().into(), option_drafts: ingress.option_drafts.clone(), uncertainties: clean_string_vec(&ingress.uncertainties), - evidence_refs: clean_string_vec(&ingress.evidence_refs), + evidence_refs: context.request.quoted_evidence.source_discussion_refs.clone(), recommended_review_route: route, proposed_at: completed_at.into(), contract: epiphany_core::IMAGINATION_CONSIDERATION_CANDIDATE_CONTRACT.into(), @@ -2341,6 +2340,10 @@ mod tests { assert_eq!(candidate.data_classification, request.data_classification); assert_eq!(candidate.model_revision, request.model_revision); assert_eq!(candidate.model_hash, request.model_hash); + assert_eq!( + candidate.evidence_refs, + request.quoted_evidence.source_discussion_refs + ); assert_eq!(candidate.proposed_at, "2026-07-15T10:00:00Z"); assert_eq!( candidate.contract,