persona: the simulator's Interpreter call takes a fresh id, as its Projector and Persona calls do

A repeat run reused r1-t1-i and the connector refused the call as a replay.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-12-01 16:29:09 +01:00
commit 5c703f263e

View file

@ -536,7 +536,8 @@ fn run(harness: &Harness, plan: &SimFile, members: &[Member], repeat: usize) ->
{
let before = held[at].0.borrow().clone();
let heard = heard_of(&before, &waked.report["packet"], &here, [], &plan.operators, &cast, true, narration, prose);
let made = interpret_and_put(*model, model_name, &format!("{key}-i"), &held[at], &Slug(localpart(&id).to_owned()), &before, &heard, narration, prose, &key, now, &|| now, &|_| Ok(()));
// A call id the connector has not seen: the plan's clock repeats from run to run, so the call takes the wall clock, as `wake_id` does.
let made = interpret_and_put(*model, model_name, &format!("{key}-i{}", Utc::now().timestamp_nanos_opt().unwrap_or_default()), &held[at], &Slug(localpart(&id).to_owned()), &before, &heard, narration, prose, &key, now, &|| now, &|_| Ok(()));
let mut row = made.row;
row["seq"] = json!(records[at].len());
row["at"] = json!(now.to_rfc3339());