CultCache C#: a public Clock for reproducible stores #190

Merged
eureka merged 2 commits from hands/cs-public-clock into main 2026-11-28 02:48:45 +00:00
Owner

CultCache.Clock (was internal) is the clock behind every storedAt a cache and its attached stores mint; default DateTimeOffset.UtcNow; null throws. Pin it to write reproducible stores; the README's "Reproducible stores" section states the limits (consumer keys, set or derived element ids; a pinned clock advances one tick per rewrite). A plain Func rather than System.TimeProvider, so Unity builds need no extra package. C# keeps its restamp semantics (clock-now), the one difference cultlib-gaps:ruling:sibling-restamp-staged-derived records.

Spec cultlib-gaps:cut_spec:cut-cs-public-clock.r1, report h1; each new test fails under its mutant. Matches the Rust clock (#189); Python and TypeScript follow.

🤖 Generated with Claude Code

`CultCache.Clock` (was internal) is the clock behind every storedAt a cache and its attached stores mint; default DateTimeOffset.UtcNow; null throws. Pin it to write reproducible stores; the README's "Reproducible stores" section states the limits (consumer keys, set or derived element ids; a pinned clock advances one tick per rewrite). A plain Func<DateTimeOffset> rather than System.TimeProvider, so Unity builds need no extra package. C# keeps its restamp semantics (clock-now), the one difference `cultlib-gaps:ruling:sibling-restamp-staged-derived` records. Spec `cultlib-gaps:cut_spec:cut-cs-public-clock.r1`, report h1; each new test fails under its mutant. Matches the Rust clock (#189); Python and TypeScript follow. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CultCache C#: Clock is public, so a consumer can pin storedAt and write byte-identical stores
Some checks failed
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Failing after 20m40s
5ff6ecf65a
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CI: rerun (the forge has no rerun API; the failure did not reproduce on Yggdrasil)
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 29m19s
be38eb76c9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 00e457050c into main 2026-11-28 02:48:45 +00:00
eureka deleted branch hands/cs-public-clock 2026-11-28 02:48:45 +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!190
No description provided.