cultcache-py and cultcache-ts: an injectable cache clock, as the Rust and C# caches have #191

Merged
eureka merged 4 commits from hands/py-ts-cache-clock into main 2026-11-28 02:37:43 +00:00
Owner

Python and TypeScript caches get a settable clock that is the one source of now on every write path; a store restamping a replacing write uses max(staged, replaced + 1 unit) and reads no clock (cultlib-gaps:ruling:sibling-restamp-staged-derived); a store-less cache holds a replacing write's stamp as given, as Rust and TS do. cultmesh-py's put_raw_message stamps from the cache clock (CultCache.now_stamp()). Docs name the random-id byte-identity limit. The TS docs-snippet tests now pass on CRLF checkouts.

Spec cultlib-gaps:cut_spec:cut-py-ts-cache-clock.r1; reports h1-h3; Soul s1, s2 (s2 holds every s1 finding; h3 fixes the one stale test it found). Python and cultmesh-py failure sets equal main by name; TS 304/304. Recorded by design: TS keeps the stamp on an identical-content rewrite, and stamps in milliseconds.

🤖 Generated with Claude Code

Python and TypeScript caches get a settable clock that is the one source of now on every write path; a store restamping a replacing write uses max(staged, replaced + 1 unit) and reads no clock (`cultlib-gaps:ruling:sibling-restamp-staged-derived`); a store-less cache holds a replacing write's stamp as given, as Rust and TS do. cultmesh-py's put_raw_message stamps from the cache clock (`CultCache.now_stamp()`). Docs name the random-id byte-identity limit. The TS docs-snippet tests now pass on CRLF checkouts. Spec `cultlib-gaps:cut_spec:cut-py-ts-cache-clock.r1`; reports h1-h3; Soul s1, s2 (s2 holds every s1 finding; h3 fixes the one stale test it found). Python and cultmesh-py failure sets equal main by name; TS 304/304. Recorded by design: TS keeps the stamp on an identical-content rewrite, and stamps in milliseconds. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
cultmesh-py: the notification-stamp test pins the store-less case as held as given
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 29m58s
9b8e036426
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eureka merged commit f3d1e9f7d3 into main 2026-11-28 02:37:43 +00:00
eureka deleted branch hands/py-ts-cache-clock 2026-11-28 02:37:43 +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!191
No description provided.