Skip to main content

condition_after_beyond_head_admits_the_append

Function condition_after_beyond_head_admits_the_append 

pub async fn condition_after_beyond_head_admits_the_append<F: Fixture>(
    open: impl AsyncFn() -> F,
) -> RuleOutcome
Expand description

A condition whose after is beyond the store’s head admits the append.

ES-28’s second half. The at half needs no rule of its own and this is worth stating so nobody writes one: condition_after_ignores_events_at_the_boundary sets after to the position of the only event in the store, which is the head.

The anchor is one past a position the store assigned, never a literal — and on a store that allocates in steps, one past the head is a position it will never assign, which is exactly the input a peer resuming after a gap supplies. AfterValidatedAgainstHeadStore refuses it as unknown, which is plausible, defensible and fatal.