pub async fn ingest_preserves_origin_identity<F: IngestFixture>(
open: impl AsyncFn() -> F,
) -> Result<RuleOutcome, Violation>Expand description
VT-5: an ingested event keeps the EventId its origin minted.
One group of two foreign events, at origin positions 4 and 9. Read
back, exactly one held event carries each identity, with the bytes
that were sent; the store answers contains_event_id for both, and its
watermark for the origin is the higher of the two origin positions.
The recorded time is not compared here: it is VT-9’s, and
ingest_preserves_the_recorded_time owns it, so a store that
restamps fails that rule and not this one.
§Rejects
A store that re-mints an ingested event under its own identity, keeping
the origin’s only for its own bookkeeping.
tests/wrong_ingest_stores.rs carries it.
§Errors
A Violation of VT-5 if the store refuses the ingest, miscounts it,
or holds anything but the sent identity and bytes.