From superpowers-plus
Diagnoses state consistency failures in distributed systems: replication lag, cache staleness, event ordering issues, cross-service divergence. Dispatched by debug-conductor for inconsistency bugs.
npx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusThis skill uses the workspace's default tool permissions.
> **Role:** Diagnose state consistency failures across services: stale reads, replication lag, event ordering, cache-vs-source divergence.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
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 |