diff --git a/crates/gateway/src/execution_loop/mod.rs b/crates/gateway/src/execution_loop/mod.rs index e3da7b7..0da0f66 100644 --- a/crates/gateway/src/execution_loop/mod.rs +++ b/crates/gateway/src/execution_loop/mod.rs @@ -1547,8 +1547,15 @@ mod tests { ]; let p = build_executor_prompt(&req, &[], &log); assert!(p.contains("CANDIDATES SURFACED SO FAR")); - assert!(p.contains("W-1 Alice Smith")); - assert!(p.contains("Toledo, OH")); + // Prompt format deliberately separates name from doc_id now — + // the line reads `name="Alice Smith" ... (vector doc_id=W-1)` + // so the executor prompt explicitly tells the model NOT to + // conflate doc_id with workers_500k.worker_id. Assertion was + // expecting the old concatenated format; update to match the + // semantic contract (both tokens present, any order). + assert!(p.contains("Alice Smith")); + assert!(p.contains("W-1")); + assert!(p.contains("Toledo")); } #[test]