cultcache-rs: an injectable cache clock; stores restamp without reading a clock #189

Merged
eureka merged 2 commits from hands/rs-cache-clock into main 2026-11-28 00:14:45 +00:00
Owner

CultCache::set_clock makes the cache's clock the one source of now: every fresh stamp is minted in one place, and a store re-stamping a replacing write uses max(staged, replaced + 1 unit) and reads no clock (cultlib-gaps:ruling:sibling-restamp-staged-derived); an unparseable replaced stamp keeps the staged one, as TypeScript does. A pinned clock makes two runs byte-identical when element ids are set (unset ids are random; documented).

Spec cultlib-gaps:cut_spec:cut-rs-cache-clock.r1; reports h1, h2; Soul s1 holds (all promises; 7 of 9 extra mutants caught, one equivalent); h2 pins the default clock and clears the new clippy warning. 1084 tests across cultcache-rs and its consumers. Rust-only: no forge CI job runs for it (cultlib-gaps:follow_up:rust-ci-job).

🤖 Generated with Claude Code

`CultCache::set_clock` makes the cache's clock the one source of now: every fresh stamp is minted in one place, and a store re-stamping a replacing write uses max(staged, replaced + 1 unit) and reads no clock (`cultlib-gaps:ruling:sibling-restamp-staged-derived`); an unparseable replaced stamp keeps the staged one, as TypeScript does. A pinned clock makes two runs byte-identical when element ids are set (unset ids are random; documented). Spec `cultlib-gaps:cut_spec:cut-rs-cache-clock.r1`; reports h1, h2; Soul s1 holds (all promises; 7 of 9 extra mutants caught, one equivalent); h2 pins the default clock and clears the new clippy warning. 1084 tests across cultcache-rs and its consumers. Rust-only: no forge CI job runs for it (`cultlib-gaps:follow_up:rust-ci-job`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cultcache-rs: pin the default clock, collapse the stamp gate, name the random-id limit in the README
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 32m33s
c30970479c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eureka merged commit 6841760947 into main 2026-11-28 00:14:45 +00:00
eureka deleted branch hands/rs-cache-clock 2026-11-28 00:14: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!189
No description provided.