package driver import "onehouse/protocol" // ResultRecord holds the first result and its stable replay metadata. Pass both // fields unchanged to Publisher.Result. Lookup and Remember return independent // timestamp pointers, so callers cannot change the ledger. type ResultRecord struct { Metadata protocol.Metadata Payload protocol.ResultPayload } func (r ResultRecord) clone() ResultRecord { if r.Metadata.SentAt != nil { timestamp := *r.Metadata.SentAt r.Metadata.SentAt = ×tamp } return r }