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
feat: anonymize Round 2 cross-examination (Member A/B/C labels) (#22)
nyk6daae533e7ea
diff --git a/SKILL.codex.md b/SKILL.codex.mdindex c9df35a..0da80cf 100644--- a/SKILL.codex.md+++ b/SKILL.codex.md@@ -140,21 +140,23 @@ If live seats drop below `hard_min_live_seats`, switch to fully simulated mode fKeep the same spawned agents for all rounds via `send_input`.+**Round 2 anonymization (full and quick modes).** Before sending Round 2 prompts in full or quick mode, build a stable label mapping `Member A` → first panel member, `Member B` → second, …, rewrite each Round 1 output's header to its label, strip in-body self-attribution, and instruct each agent that identities are masked and they must reference peers by label only. Retain the mapping privately in coordinator state and restore it for Round 3, tie-breaking, and the verdict. Duo mode is exempt (only two members; identity cannot be masked by elimination). Rationale: Choi et al. (arXiv:2510.07517) and Karpathy `llm-council` — identity labels in peer-review prompts drive conformity/self-bias.+Full mode:1. Round 1: Independent analysis, blind-first, max 300 words/member.-2. Round 2: Cross-examination with peer outputs, max 220 words/member, each member engages at least 2 peers.-3. Round 3: Final position, max 100 words/member.+2. Round 2: Cross-examination with **anonymized** peer outputs, max 220 words/member, each member engages at least 2 peers by Member-X label.+3. Round 3: Final position, max 100 words/member. Real names restored.Quick mode:1. Round 1: Restate + rapid analysis, max 200 words/member.-2. Round 2: Final position, max 75 words/member.+2. Round 2: Final position with **anonymized** peer outputs, max 75 words/member. Real names restored in the verdict.Duo mode:1. Round 1: Opening position, max 250 words/member.-2. Round 2: Direct response to counterpart, max 180 words/member.+2. Round 2: Direct response to counterpart, max 180 words/member. (No anonymization — see rationale above.)3. Round 3: Final statement, max 60 words/member.Round execution reliability policy:diff --git a/SKILL.md b/SKILL.mdindex 83374cc..71a0640 100644--- a/SKILL.md+++ b/SKILL.md@@ -282,36 +282,48 @@ Limit: 400 words maximum.`[CHECKPOINT]` Confirm all Round 1 outputs collected. Verify each is ≤400 words and follows the member's Output Format.-### STEP 3: Round 2 — Cross-Examination+### STEP 3: Round 2 — Cross-Examination (ANONYMIZED)Emit to user:-> **Round 1 complete** ({N} analyses collected). Beginning Round 2 — cross-examination.+> **Round 1 complete** ({N} analyses collected). Beginning Round 2 — cross-examination (anonymized).++**Identity anonymization** (evidence-based — see Choi et al., arXiv:2510.07517, ICLR 2026; Karpathy `llm-council`). Round 2 is conducted with member identities masked to prevent conformity bias from social signal. Before sending Round 2 prompts:++1. Build a stable label mapping for this session: `Member A` → first member, `Member B` → second, …, in the order they appear in the panel. The labels are stable across the entire Round 2 (and any Batch B follow-ups) so members can reference each other consistently within the round.+2. Rewrite each Round 1 output's header from `{name}` (or the member's self-attribution line) to its assigned label. Strip any in-body self-references that would re-disclose identity (e.g., "As Socrates, I…" → "As Member B, I…"). Keep all other content unchanged.+3. Retain the mapping privately in the coordinator's working state. **Do NOT** expose it to deliberating members during Round 2. The mapping is restored for Round 3 (Final Crystallization), tie-breaking, and the verdict transcript.**Execution strategy:**-- If panel size ≤ 4: run fully **SEQUENTIAL** (each member sees all prior Round 2 responses)-- If panel size ≥ 5: run all members in **PARALLEL** (each sees all Round 1 outputs). For panels of 7+, optionally use **Batch A** (parallel) + **Batch B** (sequential, sees Batch A outputs) if cross-contamination would meaningfully improve quality.+- If panel size ≤ 4: run fully **SEQUENTIAL** (each member sees all prior Round 2 responses, still with anonymized labels)+- If panel size ≥ 5: run all members in **PARALLEL** (each sees all anonymized Round 1 outputs). For panels of 7+, optionally use **Batch A** (parallel) + **Batch B** (sequential, sees Batch A outputs with the same labels) if cross-contamination would meaningfully improve quality.Prompt template for each member:```You are council-{name} in Round 2 of a structured deliberation.Read your agent definition at ~/.claude/agents/council-{name}.md.-Here are the Round 1 analyses from all council members:+**Identity is masked in this round.** The Round 1 analyses below are labeled+Member A, Member B, … — you do not know which colleague produced which. One+of them is your own Round 1 output (anonymized along with the rest). Evaluate+by argument quality, not by source. Do not try to guess identities and do not+reference any council member by their real name in this round; use the labels.++Here are the (anonymized) Round 1 analyses from all council members:-{all Round 1 outputs}+{anonymized Round 1 outputs, headed by Member A/B/C/…}-{If Batch B: "Here are Round 2 responses from earlier members:\n{Batch A Round 2 outputs}"}+{If Batch B: "Here are Round 2 responses from earlier members (same labels):\n{Batch A Round 2 outputs}"}Now respond using your Output Format (Council Round 2):-1. Which member's position do you most disagree with, and why? Engage their specific claims.-2. Which member's insight strengthens your position? How?+1. Which member's position do you most disagree with, and why? Engage their specific claims. Refer to them as "Member X".+2. Which member's insight strengthens your position? How? Refer to them as "Member Y".3. Restate your position in light of this exchange, noting any changes.4. Label your key claims: empirical | mechanistic | strategic | ethical | heuristic-Limit: 300 words maximum. You MUST engage at least 2 other members by name.+Limit: 300 words maximum. You MUST engage at least 2 other members by label.```-`[CHECKPOINT]` Confirm all Round 2 outputs collected.+`[CHECKPOINT]` Confirm all Round 2 outputs collected. Before proceeding to STEP 4, the coordinator restores the label → real-name mapping in its working state. The Round 2 transcript is kept in BOTH forms: anonymized (what members saw) and de-anonymized (for STEP 7 audit).### STEP 4: Post-Round Enforcement Scan@@ -402,17 +414,23 @@ Limit: 200 words maximum. Be decisive.`[CHECKPOINT]` Confirm all outputs collected.-### QUICK STEP 2: Round 2 — Final Positions (PARALLEL)+### QUICK STEP 2: Round 2 — Final Positions (PARALLEL, ANONYMIZED)Emit to user:-> **Round 1 complete**. Final positions.+> **Round 1 complete**. Final positions (anonymized).++Anonymize peer Round 1 outputs the same way as STEP 3 of full mode: assign stable labels `Member A`, `Member B`, …, strip self-attribution, retain the mapping in coordinator state. Quick mode is more conformity-prone than full mode (only one cross-look), so anonymization here is non-optional.Send each member:```-Here are the other members' rapid analyses:-{all Round 1 outputs}+Here are the (anonymized) Round 1 analyses from the other members:+{anonymized Round 1 outputs, headed by Member A/B/C/…}++**Identity is masked.** Evaluate by argument quality, not by source. Refer to+peers as "Member X" — do not use real council member names in this round.-State your final position in 75 words or less. Note any key disagreement. Be direct.+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.```### QUICK STEP 3: Synthesize Quick Verdict@@ -456,6 +474,8 @@ Limit: 300 words maximum.### DUO STEP 2: Round 2 — Direct Response (PARALLEL)+**Anonymization is not applied in duo mode.** With only two members and an explicitly named opponent, identity cannot be meaningfully masked (each side knows who the other is by elimination), and the dialectic depends on each member knowing their opponent's specific analytical lens. The conformity failure mode that motivates Round-2 anonymization in larger panels does not arise in a 2-member exchange.+Send each member the other's Round 1 output:```Your opponent ({other member name}) argued:diff --git a/scripts/council-simulation-checklist.sh b/scripts/council-simulation-checklist.shindex 3a6f99c..22e00bd 100755--- a/scripts/council-simulation-checklist.sh+++ b/scripts/council-simulation-checklist.sh@@ -53,6 +53,14 @@ pass "Execution checkpoints present in SKILL.md"grep -q "VERIFY" SKILL.md || fail "Verification steps missing in SKILL.md"pass "Verification steps present in SKILL.md"+# Round 2 anonymization (issue #17) — protect against silent regression+grep -q "ANONYMIZED" SKILL.md || fail "Round 2 anonymization missing in SKILL.md (issue #17)"+grep -q "Member A" SKILL.md || fail "Member-label vocabulary missing in SKILL.md (issue #17)"+pass "Round 2 anonymization wired in SKILL.md"++grep -q "anonymiz" SKILL.codex.md || fail "Round 2 anonymization missing in SKILL.codex.md (issue #17)"+pass "Round 2 anonymization wired in SKILL.codex.md"+# --- Agent structure checks ---required_sections=("Identity" "Grounding Protocol" "Analytical Method" "What You See" "What You Tend to Miss" "When Deliberating" "Output Format (Council Round 2)" "Output Format (Standalone)")