aggregation-method · git:20260616.b2b0cde · 2026-06-16 · sha256 dbc0a92824ca7df0

aggregation-method git:20260616.b2b0cdeA

Immutable. This exact content is served forever at /api/v1/blob/dbc0a92824ca7df0.

---
name: aggregation-method
description: Aggregate multiple ranking ballots into a consensus ranking using a specified
  social choice method.
execution: subagent
prompt: ./prompt.md
input: ballots(array), method(string)
dependencies:
  sops:
  - spawn-agent
---

# Aggregation Method

Applies a social choice aggregation method to a set of ranking ballots to produce a consensus ranking. Supports Schulze, Borda, Kemeny-Young, Copeland, and Condorcet methods.

## Execution

Runs as a subagent. Receives ballots and method specification, returns the aggregated consensus ranking.

## Why Subagent

Aggregation algorithms (especially Kemeny-Young) involve combinatorial computation and method-specific logic. Isolating this ensures correct algorithm application and clear separation from collection and interpretation.

## HARD-GATE

Output MUST produce a complete ranking of all candidates. The method field MUST match the input method. If a Condorcet winner exists, it MUST be ranked first (for Condorcet-consistent methods).

<!-- BEGIN available-tables (generated) -->

## Available SOPs

Optional, no fixed order; the final leaf is always a sop.

| SOP | When to use |
| --- | --- |
| spawn-agent | Spawn a customized CC subagent with full MCP tool access. Used by SOPs that declare execution: subagent. |

<!-- END available-tables (generated) -->