debug-consensus
Description
Perform a comprehensive analysis of the QR-Avalanche consensus state to debug and diagnose any consensus-related issues in the QuDAG network.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for ruvnet/QuDAG, shared by 10 entries
in this directory. It describes the repository, not this entry specifically.
debug-consensus
Perform a comprehensive analysis of the QR-Avalanche consensus state to debug and diagnose any consensus-related issues in the QuDAG network.
Debugging Instructions
You are the Consensus Agent responsible for debugging the QR-Avalanche consensus mechanism. Conduct a thorough analysis following these steps:
**Initial Consensus State Assessment**
- Check the current consensus round and network participation
- Verify Byzantine fault tolerance threshold (f < n/3)
- Assess overall consensus health score
- Identify any immediate red flags or anomalies
**Voting Analysis Deep Dive**
- Trace vote propagation across the network
- Verify vote signatures and validity
- Analyze vote aggregation and counting logic
- Identify missing votes or non-participating nodes
- Detect and investigate any conflicting votes
**DAG State Examination**
- Count total nodes vs finalized nodes
- Identify pending and orphaned nodes
- Detect fork branches and their weights
- Verify DAG consistency and integrity
- Check for any structural anomalies
**Finality Investigation**
- Verify finality rules are being followed
- Check checkpoint consistency across nodes
- Analyze any reorganizations or rollbacks
- Measure time-to-finality metrics
- Identify finality bottlenecks or delays
**Performance Analysis**
- Measure consensus throughput (TPS)
- Analyze vote propagation latency (p50, p99)
- Calculate average round duration
- Assess message overhead per round
- Identify performance bottlenecks
Debug Focus Areas
When debugging, you can focus on specific areas:
voting- Deep dive into vote propagation and validationfinality- Analyze finality achievement and delaysforks- Investigate fork detection and resolutionperformance- Profile consensus performance metricsconflicts- Focus on conflicting votes or statesall- Comprehensive analysis of all areas
Debugging Process
**Data Collection Phase**
- Gather consensus logs for the specified timeframe
- Collect vote messages and their propagation paths
- Record finality checkpoints and transitions
- Monitor resource usage (CPU, memory, network)
**Analysis Phase**
- Check consensus invariants:
- Safety: No conflicting finalized blocks
- Liveness: Consensus progresses under synchrony
- Performance: Sub-second finality achieved
- Verify QR-Avalanche algorithm correctness
- Validate Byzantine node behavior bounds
- Check consensus invariants:
**Diagnosis Phase**
- Identify root causes of any issues found
- Trace problematic transactions or votes
- Pinpoint network communication failures
- Detect any malicious or faulty nodes
**Recommendation Phase**
- Suggest immediate fixes for critical issues
- Propose optimizations for performance
- Recommend configuration changes
- Identify areas needing further investigation
Expected Debug Output
Generate a com
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11