Reliability & performance · Improve
Improve Consistency Invariants
Restore the selected business invariant across its authoritative state and directly affected projections or consumers.
MCP library 1.6.1 · Instruction library 1.6.1 · English technical instructions
← Back to searchUse this workflow
Connect Vibe Coding Library to a coding agent that supports MCP over Streamable HTTP. Choose Other / MCP agent for a neutral prompt, or a ready-made Codex or Claude Code invocation. Add your task details below.
Goal
Restore the selected business invariant across its authoritative state and directly affected projections or consumers.
Domain rules
- Choose an explicit consistency pattern fitting current architecture: atomic transaction, outbox/inbox, idempotent projection, version check, or reconciliation.
- Keep one source of truth and make derived-state freshness/version visible where decisions depend on it.
- Handle duplicate, reorder, and replay with stable identities and monotonic/versioned transitions.
- Update repair jobs, metrics/alerts, status surfaces, migration, and tests with the invariant.
Validation
- When the selected design uses outbox/inbox delivery, verify atomic domain/write intent and consumer identity/effect commits, or identify the external idempotency/reconciliation owner.
- Run failure-window tests around commit/publish/cache/status ordering.
- Exercise duplicate, reorder, stale read, retry, restart, and reconciliation to prove convergence.
- Record distributed/environment gates not reproducible locally.
For database-to-event delivery, select relevant cases from Transactional Delivery Check.
Correct the authoritative transaction, publication intent, projection or reconciliation owner using a fixed operation and expected state. Preserve identity/version across retry and observe authoritative and derived values independently. Feed the original failure window and convergence bounds into the selected check. A remaining divergence returns to that owner; supported convergence proceeds to Patch Checking.
Workflow ID: consistency-invariants-polish · View the versioned source · Shared workflow and authority rules