V13-FE-011: finalize search list layout slice

This commit is contained in:
2026-08-09 02:57:26 +09:00
parent 9efd202e76
commit 6422cb2b13
984 changed files with 120811 additions and 1498 deletions
@@ -0,0 +1,15 @@
namespace Shared.Operations;
public static class ReconcilePolicy
{
public static string DecideStatus(
bool valuesMatch,
DateTimeOffset sourceChangedAt,
DateTimeOffset observedAt,
TimeSpan gracePeriod)
{
if (valuesMatch) return "matched";
if (observedAt < sourceChangedAt) throw new ArgumentOutOfRangeException(nameof(observedAt));
return observedAt - sourceChangedAt < gracePeriod ? "pending" : "mismatch";
}
}