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 council simulation checklist sh

From Leeroopedia
Knowledge Sources
Domains CI_CD, Quality_Assurance, Protocol_Design
Last Updated 2026-10-20 00:00 GMT

Overview

Concrete bash validation script that verifies protocol parity, file existence, and install correctness across all Council of High Intelligence host files.

Description

council-simulation-checklist.sh is a CI gate script that runs grep-based parity checks across `SKILL.md`, `SKILL.codex.md`, and `SKILL.gemini.md` to catch protocol drift. It verifies: file existence (all 4 SKILL files, agents count, plugin manifests), version consistency (CHANGELOG vs plugin.json vs marketplace.json), content parity (anonymization, anti-conformity, Chairman, verdict sections, STANCE line, Vote Tally, 1.5× weight, 2/3 threshold — across all 3 SKILL files), agent structure (required sections, grounding placement), triad member presence, auto-routing (detect-providers.sh output, config existence, frontmatter fields), and install dry-runs for all hosts.

The script exits 0 on all-pass, exit 1 on first hard failure (`[FAIL]`), and emits `[WARN]` for soft issues. `SKILL.opencode.md` is existence/lint-guarded only (content parity not checked — documented exemption for known feature gaps).

Usage

Run this script:

  • After any change to SKILL.md or agent files (per CLAUDE.md convention)
  • In CI (lint.yml workflow runs this as a gate)
  • Before release to verify all protocol features are present
  • As a developer to catch drift before pushing

Code Reference

Source Location

Signature

bash scripts/council-simulation-checklist.sh
# Exit 0 = all pass
# Exit 1 = first hard failure

# Internal helpers:
pass(msg)   # echo "[PASS] $1"
fail(msg)   # echo "[FAIL] $1"; exit 1
warn(msg)   # echo "[WARN] $1"

Import

# Run from the repo root:
bash scripts/council-simulation-checklist.sh

# Or in CI:
./scripts/council-simulation-checklist.sh

I/O Contract

Inputs

Name Type Required Description
SKILL.md file Yes Canonical protocol
SKILL.codex.md file Yes Codex mirror
SKILL.gemini.md file Yes Gemini mirror
SKILL.opencode.md file Yes opencode mirror (existence-checked only)
agents/council-*.md files Yes 18 agent persona files
configs/auto-route-defaults.yaml file Yes Routing config
scripts/detect-providers.sh file Yes Must be executable, produce valid JSON
install.sh file Yes Installer (dry-run tested)
CHANGELOG.md file Yes Version source
.claude-plugin/plugin.json file Yes Plugin manifest
.claude-plugin/marketplace.json file Yes Marketplace manifest

Outputs

Name Type Description
stdout str [PASS]/[FAIL]/[WARN] lines, then "Checklist complete."
exit code int 0 = pass, 1 = first hard fail

Usage Examples

Full Run

$ bash scripts/council-simulation-checklist.sh
== Council Simulation Checklist ==
[PASS] SKILL.md exists
[PASS] SKILL.codex.md exists
[PASS] SKILL.gemini.md exists
[PASS] SKILL.opencode.md exists
[PASS] Agent definitions found (count=18)
[PASS] Plugin manifests and skill path present
[PASS] Plugin manifest versions match CHANGELOG (1.5.0)
[PASS] exploration-orthogonal profile documented in SKILL.md
...
[PASS] Structured stance + weighted tally present in all three SKILL files
[PASS] All agents have consistent section structure
[PASS] Grounding protocols placed before Analytical Method in all agents
[PASS] All triad member agent files present
[PASS] detect-providers.sh exists and is executable
[PASS] detect-providers.sh produces valid JSON
[PASS] Auto-route defaults config exists
[PASS] All agents have provider_affinity in frontmatter
[PASS] All agents have reasoning_method in frontmatter
[PASS] install.sh --dry-run completed
[PASS] install summary output present
...
Checklist complete.

Failing on Drift

# If SKILL.gemini.md is missing the anonymization feature:
$ bash scripts/council-simulation-checklist.sh
...
[FAIL] Round 2 anonymization missing in SKILL.gemini.md (issue #17)
# Script exits 1 here — CI gate fails

Parity Check Categories

# The checklist verifies these protocol features across SKILL.md, SKILL.codex.md, SKILL.gemini.md:
# - anonymiz (Round 2 anonymization)
# - Anti-conformity directive (>=3 in SKILL.md, >=1 in mirrors)
# - chairman (Chairman role)
# - Acceptable Compromises, Kill Criteria, Concrete Next Step (verdict actionability)
# - openai_compatible_api (dispatch archetype)
# - Session Metadata (schema_version: 1)
# - STANCE: (structured stance line)
# - Vote Tally (weighted tally field)
# - 1.5 (domain-weight seat)
# - 2/3 (consensus threshold)

Related Pages

Implements Principle

Requires Environment

Page Connections

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