Function rebuilding_is_distinguishable_from_live
pub async fn rebuilding_is_distinguishable_from_live<F: ProjectionFixture>(
open: impl AsyncFn() -> F,
) -> RuleOutcomeExpand description
A projection being rebuilt is distinguishable from one serving live.
PS-24. A reader deciding whether the rows in front of it are
authoritative gets its answer from the checkpoint’s variant, and a
store that rebuilds in place behind a single position field cannot tell
it: the read model is half-built, the checkpoint says Live, and the
dashboard reads the wrong number without anything anywhere reporting a
problem.
Rejects: LiveOnlyCheckpointStore — a store that ignores Authority
and records Live whatever the commit claimed. It is the obvious reading
of the port and the only one Option<SequencePosition> could express
before Checkpoint existed.
Everything it needs is on the port’s own signature — commit’s
authority argument and checkpoint’s return — so no runner and no
rebuild driver is built; the six runner-dependent rules of §4.11 belong
to the workspace e2e crate under CF-36.
§Two details the specification fixes and this rule does not soften
It asserts the variant and never the through value it carries. And
it asserts nothing at all immediately after the reset that opens it: a
rebuild that has committed nothing reads NeverRun, not Rebuilding,
and that is correct — both mean the rows are not authoritative and the
reader’s decision is the same.