Repository navigation
Preserve event times in live Persona room history - #4092
Conversation
|
Source review of 5487126: approved pending tests. Occurrence time is preserved at the final message renderer using stable absolute UTC timestamps. Missing, zero and unrepresentable timestamps stay explicitly unknown; opaque input remains byte-for-byte unchanged. Self messages retain their assistant role without a speaker-name prefix. The required-input identity tracks the rendered timestamp, and diagnostics still classify this as history. The wake anchor no longer invents occurrence time from the turn-start clock. The extended actual-adapter regression checks temporal provenance through coalescing and across later turns. Native Rust execution is pending behind the shared build slot; CI is running. This does not prove new messages reach the persona: that separately measured inbox starvation has its own repair. |
Room-history events retained their occurrence times in
BurstTurn, but the live chat-message renderer dropped them before coalescing consecutive messages. Historical deployment and resource reports therefore reached the model without dates.Attributed history now carries a stable absolute UTC timestamp, or an explicit unknown time for missing, zero, or unrepresentable timestamps. Own messages retain their assistant role and no author prefix; opaque inputs remain byte-identical. Required-stimulus identity includes the rendered provenance, and prompt diagnostics continue classifying dated speech as history. The wake anchor reports unknown time because its
IncomingMessagedoes not carry an event timestamp; it no longer substitutes the turn-start clock.Existing regression coverage now checks dated old/new reports and unknown times through actual adapter requests across multiple turns, preserving corrections, roles, result provenance, and cache stability. Existing sender, repetition, segment-map, and trigger-anchor tests are extended; no new fixture or test module.
Validation at head
5487126e196ecf693220586dab2eda14aa89c924, based on canarybaed78025fe1a29bfbf4256912dec3f17c6c1b6e:git diff --checkpassed.This change preserves time provenance. It does not establish whether a newer room correction reached an ongoing turn, or filter history by age.
AIRC card:
7a519f86-ca91-47a1-8426-0af49ccf392f.