Structured multi-perspective deliberation for hard decisions. Run full councils, focused triads, or duo debates across Claude Code, Codex, Gemini CLI, and OpenCode.
Shell agent-skillai-agentsclaude-codecodexdecision-makingdeliberationgemini-clillm-routingmulti-agent-systemsmulti-llmopen-sourceopencodeprompt-engineeringstructured-debate
Make tie-breaking a counted weighted tally instead of a prose impression (#36)
nyk68cd24787397
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 8418f98..63beecd 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,8 +7,13 @@ This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).## [Unreleased]### Added+- **Structured stance voting + deterministic weighted tie-break.** The final round (full Round 3 / quick Round 2) now requires each member to emit a machine-parseable `STANCE: <option> | CONFIDENCE: … | DEALBREAKER: …` line, so consensus is a counted weighted tally rather than a prose impression. STEP 6 specifies the exact math: `W_option ≥ (2/3) × W_total`, with the on-domain seat carrying 1.5×. New **Vote Tally** field in the full and quick verdict templates records `option → weight` and which seat carried the weight. Mirrored in `SKILL.codex.md`.- Cursor CLI provider support (`cursor_cli` archetype) — sixth dispatch path alongside subagent / codex_exec / gemini_cli / ollama_run / openai_compatible_api. Auto-detected via the `cursor-agent` binary; members run headless and read-only (`cursor-agent -p --mode ask --model <id>`). Cursor is a model aggregator (GPT-5.x / Claude / Gemini / Grok through one CLI), so routing treats it as a single provider for spread and steers diversity seats to cross-family models to avoid duplicating Anthropic bias. New `configs/provider-model-slots.cursor.example.yaml`, `cursor_cli` tiers in `configs/auto-route-defaults.yaml`, and `cursor_cli` as a valid `--chairman` tag.+### Changed+- **Domain-weight seat (1.5×) is now designated at panel selection (STEP 0), before any positions exist** — previously chosen at tie-break time, which let the coordinator pick the heavyweight after seeing votes. Locking it up front removes that nudge.+- README "Enforcement Mechanisms" rewritten to state the actual forcing function (bounded round budget + anti-recursion guards) and that genuine splits escalate to the user instead of being forced into consensus.+## [1.1.0] - 2026-05-21### Addeddiff --git a/README.md b/README.mdindex 1651518..e076981 100644--- a/README.md+++ b/README.md@@ -252,10 +252,10 @@ Full mode runs 7 steps: provider routing → problem restate gate → independen3. **Final Statements** — 50-word positions### Enforcement Mechanisms-- Anti-recursion prevents Socrates from infinite questioning+- **Bounded protocol is the forcing function** — deliberation runs a fixed round budget (full 3 / quick 2 / duo 3), so it cannot loop. Anti-recursion guards (the "hemlock rule" caps Socrates' questioning; any pair exceeding 2 messages is cut off) enforce the bound mid-round.- Dissent quota + novelty gate + counterfactual pass prevent premature convergence-- Tie-breaking uses 2/3 majority with domain expert weighting-- All verdicts include a Follow-Up section for outcome tracking+- **Tie-breaking is a counted tally, not a prose impression** — each member emits a structured `STANCE:` line in the final round; consensus requires a **domain-weighted 2/3 majority** (the on-domain seat carries 1.5×, designated *before* positions exist). A genuine split is escalated to the user with the full tally rather than forced into false consensus.+- All verdicts include a Vote Tally and a Follow-Up section for outcome tracking</details>diff --git a/SKILL.codex.md b/SKILL.codex.mdindex cd29f8c..22a7614 100644--- a/SKILL.codex.md+++ b/SKILL.codex.md@@ -184,6 +184,13 @@ Duo mode:2. Round 2: Direct response to counterpart with anti-conformity directive, max 180 words/member. (No anonymization — see rationale above.)3. Round 3: Final statement, max 60 words/member.+Structured stance & weighted tie-breaking (full + quick modes):++1. **Designate the domain-weight seat at panel selection** (before any analysis): the single member whose domain most directly matches the problem carries **1.5×** weight; all others **1.0×**. Lock it up front — selecting it after seeing positions would let the coordinator nudge the outcome. If the match is ambiguous, designate none and tie-break on equal weights.+2. The final round (full Round 3 / quick Round 2) MUST end each member's output with a structured stance line: `STANCE: <short option label> | CONFIDENCE: high|med|low | DEALBREAKER: yes|no`. Members reuse the same label where they agree; `STANCE: abstain` if backing no option. Re-prompt for a missing/unparseable line — never infer stance from prose.+3. Tally weighted votes per canonical option. Consensus iff `W_option ≥ (2/3) × W_total`, where `W_total` includes abstainers' weight (abstention raises the bar). Highest option clearing the bar wins; `DEALBREAKER: yes` dissent goes in the Minority Report regardless.+4. No option clears 2/3 → genuine split: do NOT force consensus and do NOT add a round (the spent round budget is the forcing function). Present each option with its weighted tally to the user. Record the tally (`option → weight`, marking the 1.5× seat) in the verdict's Vote Tally field. Duo mode issues no tally — it is dialectic, not decision-issuing.+Round execution reliability policy:1. Send prompts to all `live` seats in parallel.diff --git a/SKILL.md b/SKILL.mdindex 6d1baf6..168c1a9 100644--- a/SKILL.md+++ b/SKILL.md@@ -172,7 +172,9 @@ Follow these steps in order. Do NOT skip steps or merge rounds.4. If `--profile [name]` → use that profile's panel, optionally with `--triad` from profile-specific triads5. If none of the above → **Auto-Triad Selection**: read the problem statement, match against triad domain keywords and rationales, select the best-fitting triad. State your selection and reasoning before proceeding.-`[CHECKPOINT]` State the selected members and mode before proceeding.+**Designate the domain-weight seat (do this NOW, before any analysis).** Identify the single member whose domain most directly matches the problem — this member receives a **1.5× weight** at tie-breaking (STEP 6). Lock it here, at panel selection, *before* any positions exist. Selecting the heavyweight after seeing votes would let the coordinator nudge the outcome; selecting it up front keeps tie-breaking honest. If two members are equally on-domain, pick neither — record "no domain-weight seat (ambiguous match)" and tie-break on equal weights.++`[CHECKPOINT]` State the selected members, mode, and the designated domain-weight seat (member + 1.5× + one-line rationale, or "none — ambiguous match") before proceeding.### STEP 1: Provider Detection and Model Routing@@ -434,15 +436,36 @@ Send each member their final prompt (run in parallel):Final round. State your position declaratively in 100 words or less.Socrates: you get exactly ONE question. Make it count. Then state your position.No new arguments — only crystallization of your stance.++Then, on the LAST line, emit your structured stance EXACTLY in this format+so the council can tally it:+STANCE: <one short option label> | CONFIDENCE: high|med|low | DEALBREAKER: yes|no++- STANCE must be a terse label for the option you back (e.g. "monorepo",+ "ship now", "do not ship"). Use the SAME wording as peers where you agree —+ matching labels are what make the tally countable. If you genuinely back no+ option, write STANCE: abstain.+- DEALBREAKER: yes means you consider the opposing option actively harmful, not+ merely sub-optimal — surfaced in the Minority Report even if you're outvoted.```+`[CHECKPOINT]` Collect every member's `STANCE:` line. Normalize labels that mean the same thing to a single canonical option (e.g. "monorepo" / "single repo" → `monorepo`). If a member omitted the line or it's unparseable, re-prompt that one member for the stance line only — do not infer their stance from prose.+`[CHECKPOINT]` Confirm all Round 3 outputs collected.### STEP 6: Tie-Breaking-- **2/3 majority** → consensus. Record dissenting position in Minority Report.-- **No majority** → present the dilemma to the user with each position clearly stated. Do NOT force consensus.-- **Domain expert weight**: The member whose domain most directly matches the problem gets 1.5x weight. (e.g., Ada for formal systems, Sun Tzu for competitive strategy)+Tie-breaking operates on the **structured `STANCE:` lines** collected in STEP 5 — a counted tally, not a prose impression. Run the steps in order:++1. **Tally weighted votes per canonical option.** Every member contributes weight **1.0**, except the domain-weight seat designated in STEP 0, which contributes **1.5**. `abstain` stances contribute to no option but still count toward total weight (they raise the consensus bar — abstention is not a free pass). Compute:+ - `W_total` = sum of all members' weights (e.g. a 3-member triad with one 1.5× seat → `1.5 + 1.0 + 1.0 = 3.5`).+ - `W_option` = summed weight of members backing each option.+2. **Consensus test.** An option reaches consensus iff `W_option ≥ (2/3) × W_total`. (For the 3.5-weight triad: threshold = `2.333`, so the option needs the 1.5× seat **plus** one 1.0 seat, or all three 1.0-equivalent backers.) The highest-weight option that clears the bar is the verdict.+ - On consensus → record the surviving option. Any `DEALBREAKER: yes` dissent goes in the **Minority Report** even when outvoted.+3. **No option clears 2/3 → genuine split.** Do NOT force consensus, do NOT run another round (the round budget is spent — that bound is the forcing function). Present the dilemma to the user with each option, its weighted tally, and the strongest argument for each. The verdict's Consensus section reads "No consensus reached" and the split is handed to the user to decide.+4. **Exact tie between two options** (equal weight, both below 2/3): report both as a live split — the domain-weight seat has already been applied, so there is no further mechanical breaker by design. Surfacing the unresolved tension honestly beats inventing a winner.++**Always record the tally** (`option → weight`, and which seat carried 1.5×) in the verdict's Vote Tally field, so the decision is auditable without re-reading the transcript.### STEP 7: Synthesize Verdict (CHAIRMAN)@@ -565,8 +588,15 @@ in your earlier argument; if you cannot name the flaw, do not update.State your final position in 75 words or less. Note any key disagreement(call out the specific Member whose position you push back on). Be direct.++Then, on the LAST line, emit your structured stance EXACTLY in this format:+STANCE: <one short option label> | CONFIDENCE: high|med|low | DEALBREAKER: yes|no+Use the SAME label as peers where you agree; write STANCE: abstain if you back+no option.```+`[CHECKPOINT]` Collect every `STANCE:` line and apply the STEP 6 weighted tally (the STEP 0 domain-weight seat carries 1.5× in quick mode too). Re-prompt any member who omitted the line rather than inferring from prose.+### QUICK STEP 3: Synthesize Quick Verdict (CHAIRMAN)Dispatch synthesis to the Chairman selected via STEP 1.7 (auto-selected per `--chairman` / config / detected-providers; if no Chairman selection was performed for `--quick`, perform the same algorithm now). Use the Quick Verdict template below. Same fallback rule as STEP 7.@@ -678,6 +708,13 @@ Dispatch synthesis to the Chairman selected via STEP 1.7. In duo mode the Chairm### Consensus & Agreement{The position that survived deliberation and what members converged on — or "No consensus reached" with explanation}+### Vote Tally+{The STEP 6 weighted tally. One line per option: `<option> — <weight> (<backers>)`. Mark the 1.5× domain-weight seat. State the threshold and whether it was cleared. Example:+- `monorepo — 2.5 (Ada [1.5×, domain], Feynman)` ✅ cleared 2.333 threshold+- `polyrepo — 1.0 (Torvalds)`+- W_total 3.5 · threshold 2.333 · **monorepo carries**+If no seat carried 1.5× (ambiguous match), say so. If split, show both options and "no option cleared threshold → escalated to user".}+### Key Insights by Member- **{Name}**: {Their most valuable contribution in 1-2 sentences}- ...@@ -748,6 +785,9 @@ fallbacks_triggered: <list of "member→provider/model" entries, or "none">### Consensus{Majority position or "Split" with explanation}+### Vote Tally+{Weighted STEP 6 tally: one line per option `<option> — <weight> (<backers>)`, mark the 1.5× domain-weight seat, state threshold and whether cleared. If split: "no option cleared 2/3 → escalated to user".}+### Key Disagreement{The most important point of divergence}