Zing Forum

Reading

Parliament: Multi-Agent Debate Consensus Engine and Synthetic Discourse System

A debate consensus system based on a five-role multi-agent architecture. Through collaborative debate among Proposer, Skeptic, Synthesizer, RedAgent, and Sentry, it balances adversarial thinking and consensus building, supporting multiple local model backends such as Ollama and LM Studio.

多智能体系统AI辩论共识引擎对抗性AILLM应用OllamaRedAgent审议系统
Published 2026-04-29 12:45Recent activity 2026-04-29 12:56Estimated read 6 min
Parliament: Multi-Agent Debate Consensus Engine and Synthetic Discourse System
1

Section 01

Parliament: Multi-Agent Debate Consensus Engine Overview

Parliament is an innovative multi-agent deliberation system inspired by human parliament debate mechanisms. It uses a five-role AI agent architecture (Proposer, Skeptic, Synthesizer, RedAgent, Sentry) to balance adversarial thinking and consensus building. A key design feature is controlled AI misalignment via RedAgent to enhance reasoning resilience. The system supports local model backends like Ollama and LM Studio.

2

Section 02

Background & Design Inspiration

Parliament draws inspiration from human parliament debate. Unlike traditional multi-agent systems that pursue goal consistency, Parliament intentionally uses role opposition—especially RedAgent's adversarial injection—to address group thinking risks and improve conclusion reliability. This design treats 'managed AI misalignment' as a core mechanism.

3

Section 03

Five-Role Architecture & Core Mechanisms

Five Roles:

  • Proposer: Initiates debate with structured reasoning (default llama3.2).
  • Skeptic: Challenges current positions (default mistral).
  • Synthesizer: Integrates views to form consensus or mark irreconcilable splits (default qwen2.5, needs 0.7 confidence threshold).
  • RedAgent: Adversarial injector every 3 rounds (default mistral-openorca) to test consensus robustness.
  • Sentry: Monitors echo loops (via OSI) and convergence (default tinyllama).

Core Mechanisms:

  • OSI (Opinion Shift Index): Quantifies view changes to detect echo chambers.
  • Residue Score: Measures unresolved divergence strength when splits occur.
  • Model-aware scheduler: Groups same-model agents to minimize switching overhead.
4

Section 04

Technical Implementation & Multi-Backend Support

System Architecture:

  • TypeScript modular design with three core packages:
  1. @parliament/core: DeliberationEngine, agent classes, model adapters (Ollama default, LM Studio, OMLX, OpenAI-compatible), OSI calibration.
  2. @parliament/server: Hono-based REST API (POST /deliberate, GET /deliberate/:id, GET /health) with SQLite storage.
  3. @parliament/cli: Local debate execution and history query.

Multi-Backend: Switch via PARLIAMENT_PROVIDER (ollama, lm_studio, omlx, openai_compatible) for offline/online use.

5

Section 05

Application Scenarios & Value

Parliament applies to:

  1. Decision Support: Simulate stakeholder views to identify blind spots.
  2. Creative Divergence: RedAgent breaks fixed thinking patterns for innovative ideas.
  3. Argument Stress Testing: Pre-test policies/statements against objections.
  4. Education/Research: Platform for studying consensus mechanisms and cognitive biases.
6

Section 06

Limitations & Future Directions

Limitations:

  • Fixed 5 roles and max rounds (3 default).
  • No dynamic agent addition/exit.
  • OSI uses simple text similarity (misses semantic drift).
  • No human interaction interface.

Future Plans:

  • Add human supervisor role.
  • Support dynamic agents and complex debate topologies.
  • Improve OSI with advanced semantic models.
  • Enable human-AI interaction.
7

Section 07

Summary of Parliament's Design Paradigm

Parliament redefines multi-agent systems by embedding structured adversarial collaboration instead of pursuing harmony. It borrows power separation ideas from democracy, using 'questioning' and 'opposition' as core components. For researchers and decision-makers, it offers a fully open-source, easy-to-deploy solution for high-quality deliberation and consensus.