The PurgeTenantResult field a range-purged table reports into. A feature
adopting a new mastra_* domain (notifications, thread-state, background
tasks, schedules) adds its counter HERE, its row to
TENANT_RANGE_PURGE_TABLES, and its field to PurgeTenantResult — all in the
same change. The union is what makes that mechanical rather than
remembered: a counter with no result field fails the pin below, and a result
field with no counter fails the memory initializer in purgeTenant.
The
PurgeTenantResultfield a range-purged table reports into. A feature adopting a newmastra_*domain (notifications, thread-state, background tasks, schedules) adds its counter HERE, its row to TENANT_RANGE_PURGE_TABLES, and its field to PurgeTenantResult — all in the same change. The union is what makes that mechanical rather than remembered: a counter with no result field fails the pin below, and a result field with no counter fails thememoryinitializer in purgeTenant.