CultNet C#: subscription snapshots fence older commits; deferred forwards survive a throw #187

Merged
eureka merged 6 commits from hands/cs-reconcile-sequence into main 2026-11-27 23:55:05 +00:00
Owner

Every subscription snapshot (Reconcile and the initial Subscribe) records the cache sequence it was read at, under the cache gate, and Watch drops any commit at or below it, so a replica never applies a change its snapshot already holds. A forward that starts while another commit's batch is open waits until that batch is sent; deferred forwards drain in arrival order even when one throws, then the first exception is rethrown. The contract states the one buffer bound every commit meets (variants:ruling:reconcile-commit-stated-bound) and scopes the fence to the subscription server (the database server adopts next: variants:follow_up:database-server-snapshot-replay).

Spec variants:cut_spec:cut-cs-reconcile-sequence.r1; reports h1, h2; Soul s1, s2 (s2 holds). Networking 853 passed; the interleaving tests force their orders and passed 50/50.

🤖 Generated with Claude Code

Every subscription snapshot (Reconcile and the initial Subscribe) records the cache sequence it was read at, under the cache gate, and Watch drops any commit at or below it, so a replica never applies a change its snapshot already holds. A forward that starts while another commit's batch is open waits until that batch is sent; deferred forwards drain in arrival order even when one throws, then the first exception is rethrown. The contract states the one buffer bound every commit meets (`variants:ruling:reconcile-commit-stated-bound`) and scopes the fence to the subscription server (the database server adopts next: `variants:follow_up:database-server-snapshot-replay`). Spec `variants:cut_spec:cut-cs-reconcile-sequence.r1`; reports h1, h2; Soul s1, s2 (s2 holds). Networking 853 passed; the interleaving tests force their orders and passed 50/50. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
variants:ruling:reconcile-commit-stated-bound: a replica may bound what it buffers
across incomplete commits; a commit past it faults the replica loudly and the
consumer resubscribes for a snapshot; servers do not split commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Test: the throw test waits for the deferred commit itself
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 27m23s
c339a2907b
eureka merged commit 3e550dffe1 into main 2026-11-27 23:55:05 +00:00
eureka deleted branch hands/cs-reconcile-sequence 2026-11-27 23:55:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/CultLib!187
No description provided.