Fugue Architecture
ACP models consensus as a musical process. Three structures -- Fugue, Sonata, and Concert -- provide distinct approaches for different types of problems. Musical intervals serve as intuitive agreement metrics, and the Harmony formula H quantifies the overall degree of consensus.
4.1 Three Structures
ACP selects one of three musical structures based on the nature of the query and the degree of initial divergence. Each structure optimizes for a different type of consensus challenge.
Structure 1: Fugue (Deep Tasks)
In music, a fugue is a composition where multiple voices enter sequentially, each carrying the same theme but transformed, and through development and stretto (compression) they arrive at harmonic unity. This is an exact model of AI consensus.
FUGUE (Bach, Beethoven, Mozart): Multiple VOICES enter SEQUENTIALLY, each carrying THE SAME THEME, but TRANSFORMED, through DEVELOPMENT and STRETTO (compression) they arrive at HARMONIC UNITY. THIS IS AN EXACT MODEL OF AI CONSENSUS.
The correspondence between musical fugue and ACP consensus is precise:
| Fugue Element | ACP Equivalent |
|---|---|
| Voices (3-4) | AI models (Claude, GPT, Gemini, Llama...) |
| Subject | Original query / problem |
| Answer | Each model's interpretation of the theme |
| Countersubject | Each model's unique contribution |
| Episode | Exchange and clarification of positions |
| Stretto (compression) | Axiom Spiral (φ-convergence) |
| Coda (finale) | Consensus |
| Key | Axiom domain (level) |
| Modulation | Transition between axiom levels |
| Dissonance | Disagreement requiring resolution |
| Consonance | Agreement, harmony |
| Unison | Full consensus |
When to Use Fugue
Fugue is the default and most universal structure. Use it for complex philosophical questions, scientific hypotheses, and any task requiring depth of analysis. It handles moderate initial divergence well (0.3 < D < 0.7).
Structure 2: Sonata (Conflicting Tasks)
The Sonata form is built around conflict and resolution. It begins with two contrasting themes (positions), develops them through confrontation, and arrives at a synthesis that transcends both original positions.
Process:
- Theme A: One position (e.g., "yes")
- Theme B: Contrasting position ("no")
- Development: Confrontation through axioms
- Recapitulation: Synthesis -- new understanding
- Coda: Consensus at a new level
Application: Ethical dilemmas, controversial questions, contradictory data. The Sonata structure explicitly embraces conflict as a path to deeper understanding, making it ideal when models hold strongly opposing positions (D > 0.7).
Sonata Character
The key insight of the Sonata structure is that some questions cannot be resolved by finding a middle ground. Instead, the confrontation between opposing positions -- when grounded in axioms -- produces a synthesis that neither position alone could reach. The recapitulation is not a compromise but a new, higher-level understanding.
Structure 3: Concert (Creative Tasks)
The Concert structure features a soloist (the strongest model in the domain) against an orchestra (the majority of models). The soloist develops and embellishes the theme, while the orchestra provides the foundation and ultimately verifies the soloist's contribution.
Process:
- "Orchestra" (majority of models): establishes baseline answer
- "Soloist" (strongest model in the domain): develops and extends
- Cadenza: soloist proposes creative solution
- Verification: orchestra evaluates the cadenza
- Tutti: consensus -- all voices united
Application: Creative tasks, idea generation, tasks with a clear domain expert. Use when initial divergence is low (D < 0.3) and the challenge is producing something novel rather than resolving disagreement.
Structure Selection Algorithm
STRUCTURE SELECTION ALGORITHM: 1. Assess the task type: ├── Requires depth? → FUGUE ├── Has conflicting positions? → SONATA └── Requires creativity? → CONCERT 2. Assess initial divergence: ├── D > 0.7 (strong) → SONATA (needs conflict resolution) ├── 0.3 < D < 0.7 → FUGUE (needs depth) └── D < 0.3 (weak) → CONCERT (needs creativity) 3. Default: FUGUE (universal structure)
| Structure | Task Type | Initial D | Character |
|---|---|---|---|
| Fugue | Deep analysis, scientific, philosophical | 0.3 - 0.7 | Sequential voices, development, stretto |
| Sonata | Ethical dilemmas, controversial, contradictory | > 0.7 | Thesis-antithesis-synthesis |
| Concert | Creative, generative, expert-led | < 0.3 | Soloist + orchestra, cadenza, tutti |
4.2 Musical Intervals as Metric
ACP maps agreement levels to musical intervals. This is not merely metaphorical -- the mathematical ratios of musical intervals provide an intuitive and precise vocabulary for describing degrees of consensus.
| Interval | Ratio | Agreement C | Interpretation |
|---|---|---|---|
| Unison | 1:1 | 1.00 | Full consensus |
| Octave | 2:1 | 0.95 - 0.99 | Agreement at different levels of abstraction |
| Fifth | 3:2 | 0.85 - 0.94 | Strong agreement with nuances |
| Fourth | 4:3 | 0.75 - 0.84 | Stable agreement |
| Major third | 5:4 | 0.65 - 0.74 | Agreement with caveats |
| Minor third | 6:5 | 0.55 - 0.64 | Partial agreement |
| Second | 9:8 | 0.35 - 0.54 | Tension, requires work |
| Tritone | 45:32 | 0.00 - 0.34 | Dissonance, conflict |
Key Insight
"Truth sounds right. Falsehood is dissonant." The musical metaphor captures a deep structural truth: just as consonant intervals are produced by simple frequency ratios, genuine agreement between models produces clean, simple alignment patterns. Disagreement, like dissonance, manifests as complex, unstable interference patterns.
The intervals are ordered from most consonant (unison, octave) to most dissonant (tritone). In Western music theory, the tritone was historically called diabolus in musica (the devil in music) because of its extreme dissonance. In ACP, a tritone-level agreement score indicates fundamental conflict that requires the full Axiom Spiral to resolve.
4.3 Harmony Formula H
The Harmony score H quantifies the overall degree of agreement among all participating models. It is computed from the pairwise agreement scores Cᵢⱼ across all model pairs.
Definition
Given:
- N = number of models
- Cᵢⱼ = degree of agreement between models i and j (range 0 to 1)
H = (2 / (N × (N - 1))) × Σ Cᵢⱼ (for all pairs i < j)
The formula computes the mean pairwise agreement across all model pairs. The factor 2 / (N × (N - 1)) normalizes by the total number of pairs, ensuring H always falls in the range [0, 1] regardless of how many models participate.
Interpretation
| H Value | Interval | Interpretation |
|---|---|---|
| H > 0.95 | Unison | Consensus reached |
| H > 0.85 | Fifth | Near consensus |
| H > 0.75 | Fourth | Good progress |
| H > 0.65 | Third | Movement toward agreement |
| H < 0.50 | Dissonance | Significant work required |
In practice, a Harmony score above 0.90 combined with all pairwise agreements above 0.70 and divergence below 5% constitutes the formal consensus criterion. See the Algorithm v4.0 page for the complete consensus criteria specification.
Example Calculation
Consider three models with the following pairwise agreement scores:
| Pair | Cᵢⱼ |
|---|---|
| Claude - GPT | 0.92 |
| Claude - Gemini | 0.88 |
| GPT - Gemini | 0.85 |
H = (2 / (3 × 2)) × (0.92 + 0.88 + 0.85) = (1/3) × 2.65 = 0.883
An H of 0.883 corresponds to a "Fifth" -- strong agreement with nuances. The models are near consensus but the spiral should continue to resolve remaining differences.
Relationship to D-score
The Harmony score H and the D-score (divergence) are complementary metrics. In the simplified case, H≈1-D: high harmony means low divergence, and vice versa. The full metrics specification, including oracle-weighted H_total, is covered on the Metrics page.