Build consensus

From pjt222/agent-almanac · View interactive version

Build consensus is an AI agent skill from the GitHub repository pjt222/agent-almanac. Achieve distributed agreement without central authority using bee democracy, threshold voting, and quorum sensing. Covers proposal generation, advocacy dynamics, commitment thresholds, deadlock resolution, and consensus quality assessment. Use when a group must decide between options without a desig

How to use this skill

Skill file

Build Consensus

Achieve collective agreement across distributed agents without a central authority — using scout advocacy, threshold quorum sensing, and commitment dynamics modeled on honeybee swarm decision-making.

When to Use

Inputs

Procedure

Step 1: Generate Proposals Through Independent Scouting

Ensure the decision space is adequately explored before any advocacy begins.

  1. Assign scouts to independently explore the option space:
  1. Scouts produce structured assessments:
  1. Aggregate scout reports without filtering — all options above a minimum quality threshold enter the advocacy phase

Got: A set of independently evaluated proposals with quality scores and assessments. No option has been eliminated by a single evaluator; diversity of perspective is preserved.

If fail: If scouts converge on the same option without independent evaluation, the scouting was not truly independent. Rerun with explicit information barriers. If too many options survive to the advocacy phase, raise the minimum quality threshold. If too few survive, lower it or add more scouts.

Step 2: Run Advocacy Dynamics (Waggle Dance)

Allow scouts to advocate for their preferred options, with advocacy intensity proportional to quality.

  1. Each scout advocates for their top-rated option:
  1. Uncommitted agents observe advocacy and evaluate:
  1. Cross-inspection dynamics:
Advocacy Dynamics:
┌─────────────────────────────────────────────────────────┐
│ Scout A advocates Option 1 (quality 85) ──→ ◉◉◉◉◉     │
│ Scout B advocates Option 2 (quality 70) ──→ ◉◉◉        │
│ Scout C advocates Option 3 (quality 45) ──→ ◉           │
│                                                         │
│ Uncommitted agents inspect:                             │
│   Agent D inspects Option 1 → confirms → joins ◉◉◉◉◉◉  │
│   Agent E inspects Option 2 → confirms → joins ◉◉◉◉    │
│   Agent F inspects Option 3 → disagrees → inspects Opt 1│
│                               → confirms → joins ◉◉◉◉◉◉◉│
│                                                         │
│ Over time: Option 1 advocacy grows, Option 3 fades      │
└─────────────────────────────────────────────────────────┘

Got: Advocacy for the best option(s) grows over time as agents independently verify quality. Advocacy for weaker options fades as verification fails. The group naturally converges toward the strongest option without any agent dictating the choice.

If fail: If advocacy doesn't converge (two options remain neck-and-neck), the options may be genuinely equivalent — proceed to quorum with either, or use a tiebreaker rule. If advocacy converges too fast on a mediocre option, increase the independence of evaluation (more scouts, stricter information barriers) and add a mandatory cross-inspection step.

Step 3: Set Quorum Threshold and Commit

Define the commitment threshold that triggers collective action.

  1. Set the quorum threshold:
  1. Monitor commitment accumulation:
  1. When quorum is reached:

Got: A clear quorum moment where enough agents have independently committed to one option. The decision is legitimate because it emerged from independent evaluation, not authority or coercion.

If fail: If quorum is never reached within the time budget, escalate to Step 4 (deadlock resolution). If quorum is reached but agents are unhappy, the advocacy phase was too short — agents committed without adequate evaluation. If the consensus was wrong (discovered after the fact), the independent scouting was insufficient — increase scout diversity and evaluation thoroughness in the next cycle.

Step 4: Resolve Deadlocks

Break decision gridlock when the natural consensus process stalls.

  1. Diagnose the deadlock type:
  1. Apply the appropriate resolution:
  1. After resolution, reset the quorum clock and re-run Step 3

Got: Deadlock resolved through the appropriate intervention. The resolution is visible and accepted by the group as fair process, even if individual agents preferred a different outcome.

If fail: If deadlocks recur on the same decision, the decision framing may be wrong. Step back and ask: can the decision be decomposed into smaller, independent decisions? Can the scope be reduced? Is there a "try both and see" option? Sometimes the best consensus is "we'll run a time-boxed experiment."

Step 5: Assess Consensus Quality

Evaluate whether the consensus process produced a good decision, not just a decision.

  1. Post-decision assessment:
  1. Track consensus health metrics:
  1. Feed learnings back into the process:

Got: A feedback loop that improves consensus quality over time. The group learns to scout more effectively, advocate more honestly, and commit more confidently.

If fail: If consensus quality metrics are poor (high regret, slow decisions), audit the process for structural failures: insufficient scouting diversity, advocacy without verification, or thresholds set too low for the decision type. Rebuild the specific failing stage rather than overhauling the entire process.

Validation

Pitfalls

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.