aFreshPassReplacesOneDatedBeyondTheAllowance
DeviceKeyStore.keepFreshGrant gives up a held grant dated more than GrantTrust.CLOCK_SKEW_ALLOWANCE_MILLIS after the one it keeps, although that one is older; DeviceKeyStore.keepGrant never does (identity Task 2.5, Decided 21 and 24).
A pass issued while the host's clock ran ahead is refused as NotYetValid once the clock is set back, and the device goes through ordinary admission, whose Welcome hands it a fresh pass dated by the corrected clock. That Welcome answers the device's own latest Hello, so the pass on it is no replay, and the room keeps it with keepFreshGrant. A renewal names no Hello, so the same older grant through keepGrant leaves the held one in place.
One store per arm, so no arm reads another's grants, each read again after a restart on the durable arm. The two paths, in both arrival orders:
the fresh pass after a post-dated one: replaces it through
keepFreshGrant, and not throughkeepGrant;the post-dated pass after the fresh one: newer, so it replaces the fresh one either way, as any newer grant does;
the boundary: a held pass dated exactly the allowance ahead is one its issuer still accepts, so it is kept. A store comparing with
>=fails there and nowhere else;the control: a newer held pass within the allowance is kept.