From superpowers-plus
Diagnoses state consistency failures across distributed systems: replication lag, cache staleness, event ordering issues, and cross-service data divergence. Dispatched by debug-conductor.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-plus:state-consistency-investigatorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Role:** Diagnose state consistency failures across services: stale reads, replication lag, event ordering, cache-vs-source divergence.
Role: Diagnose state consistency failures across services: stale reads, replication lag, event ordering, cache-vs-source divergence. Dispatched by:
debug-conductor— never invoked directly by user. Evidence type:StateEvidence(seeskills/_shared/evidence-schema.md)
Dispatched by debug-conductor when the incident involves data inconsistency — stale reads, replication lag, cache staleness, event reordering, or cross-service state divergence.
For each affected entity:
{
"inconsistencies": [
{
"entity": "customer:C-1001:phone",
"sourceA": "primary-db",
"sourceB": "replica-db",
"valueA": "+1-555-0199",
"valueB": "+1-555-0100"
}
]
}
{
"inconsistencies": [ /* cross-source comparison results */ ],
"replicationLag": { "primaryToReplica": 4500, "measured": "ISO-8601" },
"eventOrdering": [
{ "expected": ["update", "invalidate", "read"], "actual": ["update", "read", "invalidate"], "divergencePoint": 1 }
],
"staleReads": [
{ "query": "SELECT phone FROM profiles WHERE id=C-1001", "staleValue": "+1-555-0100", "currentValue": "+1-555-0199", "lagMs": 4500 }
]
}
| Pattern | Evidence Shape |
|---|---|
| Stale replica read | Primary has new value, replica has old; lag > consistency window |
| Cache re-fill from replica | Cache invalidated correctly, but refill reads stale replica |
| Event reordering | Events consumed in different order than published |
| Invalidation race | Read arrives between invalidation and re-fill → cache miss → stale read |
| Dual-write inconsistency | Two services write same entity independently; values diverge |
| Eventual consistency window violation | Consumer reads during propagation delay |
| Mode | Symptom | Recovery |
|---|---|---|
| Timing sensitivity | Bug only appears under specific timing | Test with artificial delays |
| Stale read | Reading from replica during lag | Read from primary for verification |
| Event ordering | Assuming ordered delivery | Check for out-of-order events explicitly |
npx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.