Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xNyk Council of high intelligence Tie Breaking

From Leeroopedia
Knowledge Sources
Domains AI, Voting_Theory, Decision_Science
Last Updated 2026-10-20 00:00 GMT

Overview

Concrete vote-tallying algorithm that computes confidence-weighted consensus from structured stance lines, requiring a 2/3 weighted supermajority for a verdict.

Description

The Tie-Breaking algorithm is defined in `SKILL.md` STEP 6 and operates on the structured `STANCE:` lines collected in Round 3 (full mode) or Round 2 (quick mode). It is pure computation — no external dependencies, no model calls. The algorithm computes a weighted tally where each member's vote is weighted by their base weight (1.0, or 1.5× for the domain-weight seat) times a confidence factor (high → 1.0, med → 0.75, low → 0.5).

This is a Pattern Doc: the coordinator LLM agent executes this computation mentally based on the collected stance lines. The domain-weight seat is locked at panel selection (STEP 0) before any positions exist, to prevent the coordinator from nudging the outcome.

Usage

Use this algorithm:

  • Full mode: after STEP 5 (Round 3 crystallization) — tally STANCE lines
  • Quick mode: after QUICK STEP 2 — tally STANCE lines from final positions
  • Duo mode: does NOT use this algorithm — duo produces two positions, not a vote

Code Reference

Source Location

Signature

Coordinator.tie_break(
    stance_lines: StanceLine[],
    domain_weight_seat: Member | None
) -> Verdict

# StanceLine format (collected in STEP 5):
# STANCE: <option label> | CONFIDENCE: high|med|low | DEALBREAKER: yes|no

# Weight computation:
#   base_weight = 1.5 if member == domain_weight_seat else 1.0
#   confidence_factor = {high: 1.0, med: 0.75, low: 0.5}
#   vote_weight = base_weight * confidence_factor
#   W_total = sum of base_weights (NOT confidence-discounted)
#   W_option = sum of vote_weights for each option
#   Consensus iff W_option >= (2/3) * W_total

Import

No import — this is a computation the coordinator performs mentally:

# The coordinator reads STANCE lines and computes:
# Example: 3-member triad, one 1.5x seat
# W_total = 1.5 + 1.0 + 1.0 = 3.5
# threshold = (2/3) * 3.5 = 2.333
# Option "monorepo": Ada (1.5x, high) + Feynman (med)
#   W = 1.5*1.0 + 1.0*0.75 = 2.25 < 2.333 → no consensus
# Option "polyrepo": Torvalds (high)
#   W = 1.0*1.0 = 1.0 < 2.333 → no consensus
# Result: no option clears → escalated to user

I/O Contract

Inputs

Name Type Required Description
stance_lines StanceLine[] Yes Normalized STANCE lines from Round 3/2 (option, confidence, dealbreaker)
domain_weight_seat None Yes Member designated for 1.5× weight at STEP 0, or None if ambiguous

Outputs

Name Type Description
Verdict Verdict consensus option / no-consensus split / exact tie
Vote Tally Dict option → weight, 1.5× seat marked, backers with confidence

Usage Examples

Consensus Reached

# Panel: Aristotle (1.5x seat, high), Ada (high), Feynman (high)
# W_total = 1.5 + 1.0 + 1.0 = 3.5
# threshold = 2.333
#
# Stances:
#   Aristotle: STANCE: monorepo | CONFIDENCE: high | DEALBREAKER: no
#   Ada:       STANCE: monorepo | CONFIDENCE: high | DEALBREAKER: no
#   Feynman:   STANCE: polyrepo | CONFIDENCE: med  | DEALBREAKER: no
#
# Tally:
#   monorepo: 1.5*1.0 + 1.0*1.0 = 2.5 >= 2.333 → CONSENSUS
#   polyrepo: 1.0*0.75 = 0.75
#
# Verdict: monorepo (consensus)
# Vote Tally:
#   monorepo — 2.5 (Aristotle [1.5x domain, high], Ada [high])
#   polyrepo — 0.75 (Feynman [med → 0.75])
#   W_total 3.5 · threshold 2.333 · cleared

No Consensus (Split)

# Panel: Torvalds (1.5x, high), Watts (high), Feynman (low)
# W_total = 1.5 + 1.0 + 1.0 = 3.5
# threshold = 2.333
#
# Stances:
#   Torvalds: STANCE: ship now | CONFIDENCE: high | DEALBREAKER: no
#   Watts:    STANCE: abstain  | CONFIDENCE: high | DEALBREAKER: no
#   Feynman:  STANCE: ship now| CONFIDENCE: low  | DEALBREAKER: no
#
# Tally:
#   ship now: 1.5*1.0 + 1.0*0.5 = 2.0 < 2.333 → no consensus
#   abstain: contributes to W_total but no option
#
# Verdict: no consensus reached → escalated to user
# Vote Tally:
#   ship now — 2.0 (Torvalds [1.5x domain, high], Feynman [low → 0.5])
#   W_total 3.5 · threshold 2.333 · NOT cleared → split

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment