Land fixes: ported conditional-commit pins state C2a's identity, not main's (storedAt, message text)

A staged write mints a later storedAt, so the 'rewrite kept storedAt' premise is gone; the pin is that a record rewritten under another schema fails Expect. The variant refusal names the renamed base through ChangedKeys, as C2a's typed exception carries it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-22 21:06:10 +02:00
commit 87957b2d1a
2 changed files with 4 additions and 6 deletions

View file

@ -1265,7 +1265,8 @@ namespace GameCult.Caching.Tests
a.Override<VariantGear>(nameof(VariantGear.Code), "big")
});
}))!;
Assert.That(refused.Message, Does.Contain(BigKey.Value).And.Contain(BaseKey.Value).And.Contain("x"));
Assert.That(refused.Message, Does.Contain(BigKey.Value));
Assert.That(refused.ChangedKeys, Is.EqualTo(new[] { BaseKey.Value }), "the refusal names the base another writer renamed");
}
using var reopened = Open(path, readOnly: true);