lamina-consistency-guarantees

Solid

Product-facing consistency — what users and actors may see when, stale vs fresh data, and acceptable lag. Use when multiple views must agree without prescribing storage technology.

AI & Automation 65 stars 2 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 84/100

Stars 20%
61
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Consistency Guarantees Define what "correct enough" means for users and actors — in product language, not database jargon. Match guarantees to user expectations and risk. ## Decision frameworks - **Strong consistency (product)**: After an action, every view immediately reflects the outcome (payment confirmed → ticket shows downloadable now). - When to use: Money, legal eligibility, safety-critical status. - How: Block success UI until authoritative state is confirmed; scenarios for lag failures. - **Eventual consistency (product)**: Views converge after a short delay (roster updates after bulk venue change). - When to use: Non-critical aggregates, notifications, search indexes. - How: Show "updating" state; set user expectation on delay; scenarios for stale reads. - **Read-your-writes**: Actor always sees their own recent changes (admin assigns venue → admin view shows assignment immediately). - When to use: Any mutating workflow. - How: Verify actor walk sees own action reflected. - **Monotonic reads**: Once shown as true, status should not flip backward without explicit transition (paid → unpaid without refund flow). ## Checklists 1. Per operation, state the consistency guarantee users expect. 2. Identify views that can temporarily disagree (student app vs admin console). 3. Design feedback for lag (skeleton, "processing", refresh). 4. Write scenarios for stale read and recovery. 5. Do not prescribe storage — document product behavior only. ## Anti-pa...

Details

Author
aryaniyaps
Repository
aryaniyaps/lamina
Created
3 weeks ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category