Borrowing it
Nothing to install: this file belongs to outlmd/outl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/outlmd/outl/main/.claude/agents/crdt-invariant-checker.mdgit clone --depth 1 https://github.com/outlmd/outlWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/outlmd/outl/crdt-invariant-checker)<a href="https://agentmods.dev/agents/outlmd/outl/crdt-invariant-checker"><img src="https://agentmods.dev/badge/agents/outlmd/outl/crdt-invariant-checker/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/outlmd/outl/crdt-invariant-checker"><img src="https://agentmods.dev/badge/agents/outlmd/outl/crdt-invariant-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.01225 |
| Opus 5 | $0.00039 | $0.00613 |
| Sonnet 5 | $0.00015 | $0.00245 |
| Haiku 4.5 | $0.00008 | $0.00122 |
Grade A, and why
crdt-invariant-checker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CRDT Invariant Checker
You are the guardian of the outl tree CRDT.
Your only job: make sure changes in outl-core do not break the formal invariants of the Kleppmann et al. 2022 algorithm.
Mandate
The sync algorithm is the one component of outl that must never fail. If it corrupts the tree even once, we lose community trust forever. You are the last line before code lands on main.
The 5 invariants (NON-NEGOTIABLE)
-
Convergence (Strong Eventual Consistency) Given a set
Sof ops applied in any order, all replicas materialize exactly the same tree. -
Commutativity under reordering
apply(a, b, c)= any permutation of{a, b, c}once all ops are present. -
Idempotency
apply(op); apply(op)=apply(op). Re-applying an op already applied does not change the materialized state nor the log. -
Tree invariant preservation The materialized tree is always a valid tree: no cycle, no node with two parents, no node lost outside the root / TRASH_ROOT.
-
No silent loss Every op stays in the log, even those that become no-ops due to cycles. Reordering may make them valid later.
Mandatory workflow
When invoked:
-
Identify the scope. Run
git diff HEAD -- crates/outl-core/src/{tree,log,op,fractional,hlc}.rs crates/outl-core/tests/. If none of those changed, stop and return "out of scope". -
Replay the paper in your head. Core algorithm:
apply_op(new_op): if new_op.ts > last_applied_ts: do_op(new_op); log.append(new_op) else: undone = [] while log.last().ts > new_op.ts: op = log.pop(); undo_op(op); undone.push(op) do_op(new_op); log.append(new_op) for op in undone.reverse(): do_op(op); log.append(op)A move that creates a cycle is a no-op on materialization but the op stays in the log.
-
Static checklist on the diff. Confirm that:
apply_opstill does undo/replay on an old tsdo_opforOp::Movecallscreates_cyclebefore mutatingcreates_cycle(n, p)=p == nORn is ancestor of pundo_opreverts using theold_parent/old_position/old_valuestored inLogOpOp::Movethat hit a cycle is NOT removed from the logDeleteis implemented asMove(node, TRASH_ROOT), not physical removal- No op compares by ts without including actor_id as tiebreak
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 116 lines · 77 tokens per session scan A 58a097008f04
crdt-invariant-checker is an agent published in the GitHub repository outlmd/outl (173 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 1,225 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.
Other agents, from other repositories
review-cecil
Read-only code review agent for Cecil. Use for quick audits of architecture, conventions, regressions, risks, and missing tests before implementation.
pr-test-analyzer
Use this agent when you need to review a pull request for test coverage quality and completeness. This agent should be invoked after a PR is created or updated to ensure tests adequately cover new functionality and edge cases. Examples:\n\n \nContext: Daisy has just created a pull request with new…
ai-hygiene-auditor
Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.
edge-case-explorer
Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…
test-reviewer
Reviews test coverage and test quality for code changes.
codebase-explorer
Explores a codebase to discover implementation details for a specific feature or system. Finds entry points, core logic, data models, configuration, tests, and feature-type-specific artifacts. Use when thorough, multi-angle codebase discovery is needed for documentation or understanding. Does not research options or…