Reliability & performance · Improve
Improve Consistency Invariants
Implement one selected, evidence-backed Consistency Invariants improvement at the authoritative owner. Complete the directly affected contract without broad cleanup or redesign.
Vibe Coding 1.3.0 · vibe-reliability · English technical instructions
Use this workflow
Use this workflow in Codex or Claude Code with the free Vibe Coding plugin. Choose your assistant and prompt language, then add your task details after the prompt.
Operation
Implement the requested coherent change at the owning source and update directly affected consumers. An earlier audit is optional when the user and repository already establish the target. Validate the changed behavior, then stop when the requested scope is complete.
Goal
Implement one selected, evidence-backed Consistency Invariants improvement at the authoritative owner. Complete the directly affected contract without broad cleanup or redesign.
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
- Keep the domain write and outbox intent in the same commit; coordinate inbox identity and consumer effect atomically, 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.
Workflow ID: consistency-invariants-polish · View the versioned source · Shared workflow and authority rules