alizainx/intelligence-systems-skills/crdt-hlc-causal-consistency
Claude Code and agent skill by alizainx/intelligence-systems-skills
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
State-based (CvRDT) & Operation-based (CmRDT) Conflict-Free Replicated Data Types, Hybrid Logical Clocks (HLC), Vector Clocks, and Merkle anti-entropy.
Install
npx vskill@latest install alizainx/intelligence-systems-skills/crdt-hlc-causal-consistencySKILL.md
The same SKILL.md was published earlier as alizainx/intelligence-systems-skills/crdt-hlc-causal-consistency.
crdt-hlc-causal-consistency (ISS-162)
1. First-Principles Invariant
- Shapiro Join-Semilattice Law: Every state-based CvRDT
merge(a, b)operation must form a bounded join-semilattice satisfying Commutativity ($a \sqcup b = b \sqcup a$), Associativity ($(a \sqcup b) \sqcup c = a \sqcup (b \sqcup c)$), and Idempotence ($a \sqcup a = a$), guaranteeing Strong Eventual Consistency across arbitrary message reordering, duplication, and network partitions.
2. Fast-Pass Low-Token Protocol (Web & Coding Agents)
- Track causality and wall-clock proximity using Kulkarni Hybrid Logical Clocks (
HLC:(l, c, node_id)where $l = \max(l_{\text{prev}}, l_{\text{msg}}, pt_{\text{phys}})$) — never rely on unsynchronizedgettimeofday()Last-Write-Wins timestamps alone.
3. Zero-Bug & Zero-Vulnerability Guards
- In Observed-Remove Sets (
OR-Set/Add-Wins Set), tag each added element with a unique(replica_id, monotonic_seq)dot and remove ONLY the specific set of dots observed by the remover at the time ofremove(e). - Bound causal metadata growth by compacting contiguous per-replica dot sequences
(1..N)into a single contiguous interval watermark (Dotted Version Vectors). - For operation-based CmRDTs, deliver mutations over a causal broadcast layer equipped with per-sender sequence deduplication so non-idempotent operations (
increment) are applied at-most-once. - Reconcile divergent replicas in the background using Merkle-tree hash exchanges (
O(log N)delta discovery). - Verify join-semilattice laws (
merge(a,b) == merge(b,a),merge(a,a) == a,merge(a, merge(b,c)) == merge(merge(a,b), c)) via property-based randomized fuzzing.
4. Verification Gate
python3 -c 'import random; ...'
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/crdt-hlc-causal-consistency/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/crdt-hlc-causal-consistency)