Repository navigation
V2.45.0
Compliance wave 8 — the last two suites in the cross-store event sourcing backlog.
JasperFx.Events.ComplianceTests reaches 28 suites / 230 tests, enrolled in both Marten and Polecat with zero capability gates on either store. With this release the event sourcing compliance backlog is empty.
What's new in 2.45.0
ConjoinedEventTenancyCompliance (8 tests) — one database sliced by tenant. The property under test is isolation, and it is worth pinning across stores because the failure mode is silent and asymmetric: a store that leaks across tenants still answers correctly for the tenant that owns the data, and misbehaves only for the other one. Every test therefore checks both directions — what a tenant can see, and what it must not.
The suite deliberately reuses one stream id across two tenants. Under conjoined tenancy a stream's identity is (tenant, id), not id alone, and reusing the id is the sharpest way to show it: a store keying on id alone either collides on append or hands one tenant's events to the other.
Cost is a single new seam member, ComplianceStoreConfig.ConjoinedEventTenancy. Opening a tenant-scoped session needed nothing new — IEventStore<TOperations, TQuerySession>.OpenSession(IEventDatabase, string) was already shared and implemented by both products, and TenancyStyle was already a shared JasperFx.MultiTenancy enum.
SubscriptionCompliance (6 tests) — ordering and completeness for the "do something with every event" surface that is not a projection. Page boundaries are deliberately never asserted; only that the union of the pages is right, monotonic, and free of redelivery.
This one costs a per-consumer partial plus one registrar member, and that is the honest price. Both products declare ISubscription with an identical member, but IChangeListener is a per-product type, so the signature cannot be written once — the same situation as ComplianceFlatTableProjection. Consumers implement one method and call Record(page.Events).
For consumers upgrading
Two new members on the compliance seam, both additive:
ComplianceStoreConfig.ConjoinedEventTenancyIComplianceStoreRegistrar.Subscribe(ComplianceSubscription)
Enrolling SubscriptionCompliance also requires a small partial class completing ComplianceSubscription against your product's ISubscription, and a SupportsConjoinedEventTenancy gate exists on the fixture for stores that cannot slice one database by tenant. The package README documents both.
Nothing outside JasperFx.Events.ComplianceTests changed in this release, so it is behaviourally inert for the shipping libraries.
Verification
Both stores: 14/14 on the new suites, 230/230 across the full compliance set, verified against the actual packed artifacts rather than source-linked sources. Marten EventSourcingTests 1796/0/7; Polecat full suite 1837/0/3.