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 as Consensus Model
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 ElementACP Equivalent
Voices (3-4)AI models (Claude, GPT, Gemini, Llama...)
SubjectOriginal query / problem
AnswerEach model's interpretation of the theme
CountersubjectEach model's unique contribution
EpisodeExchange and clarification of positions
Stretto (compression)Axiom Spiral (φ-convergence)
Coda (finale)Consensus
KeyAxiom domain (level)
ModulationTransition between axiom levels
DissonanceDisagreement requiring resolution
ConsonanceAgreement, harmony
UnisonFull 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:

  1. Theme A: One position (e.g., "yes")
  2. Theme B: Contrasting position ("no")
  3. Development: Confrontation through axioms
  4. Recapitulation: Synthesis -- new understanding
  5. 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:

  1. "Orchestra" (majority of models): establishes baseline answer
  2. "Soloist" (strongest model in the domain): develops and extends
  3. Cadenza: soloist proposes creative solution
  4. Verification: orchestra evaluates the cadenza
  5. 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
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)
StructureTask TypeInitial DCharacter
FugueDeep analysis, scientific, philosophical0.3 - 0.7Sequential voices, development, stretto
SonataEthical dilemmas, controversial, contradictory> 0.7Thesis-antithesis-synthesis
ConcertCreative, generative, expert-led< 0.3Soloist + 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.

IntervalRatioAgreement CInterpretation
Unison1:11.00Full consensus
Octave2:10.95 - 0.99Agreement at different levels of abstraction
Fifth3:20.85 - 0.94Strong agreement with nuances
Fourth4:30.75 - 0.84Stable agreement
Major third5:40.65 - 0.74Agreement with caveats
Minor third6:50.55 - 0.64Partial agreement
Second9:80.35 - 0.54Tension, requires work
Tritone45:320.00 - 0.34Dissonance, 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)
Harmony formula

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 ValueIntervalInterpretation
H > 0.95UnisonConsensus reached
H > 0.85FifthNear consensus
H > 0.75FourthGood progress
H > 0.65ThirdMovement toward agreement
H < 0.50DissonanceSignificant 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:

PairCᵢⱼ
Claude - GPT0.92
Claude - Gemini0.88
GPT - Gemini0.85
H = (2 / (3 × 2)) × (0.92 + 0.88 + 0.85) = (1/3) × 2.65 = 0.883
Example: H for 3 models

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, H1-D: high harmony means low divergence, and vice versa. The full metrics specification, including oracle-weighted H_total, is covered on the Metrics page.