llm-council
Skill0 starsChanged 6 months agoMITView on GitHub
Multi-model council for solving complex problems through independent parallel analysis, structured convergence, and evidence-based verification. Full lifecycle from diagnosis through implementation and review.
61 other projects use a version of this.
Adopted by
Most recently taken up by
- 1marcelserrano/llm-counciltheir own version, first seen Nov 29, 2026
- HugoSarrocaCarmona/legal-agentstheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- tonanywhere/my-favorite-promptstheir own version, first seen Nov 29, 2026
- arielnishri-svg/claude-skillstheir own version, first seen Nov 28, 2026
- ton-anywhere/my-favorite-promptstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use graphify, premortem and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
stericishereSkillgraphify
any input (code, docs, papers, images) → knowledge graph → clustered communities → HTML + JSON + audit report
Also in 6 projects that use this
neurofooSkillpremortem
Pre-mortem analysis that imagines a plan has failed, then works backward to identify causes and preventions. Use before launches, major decisions, or risky initiatives to surface hidden risks.
Also in 3 projects that use this
AnasX7Skillbrandkit
Premium brand-kit image generation skill for creating high-end brand-guidelines boards, logo systems, identity decks, and visual-world presentations. Trained for minimalist, cinematic, editorial, dark-tech, luxury, cultural, security, gaming, developer-tool, and consumer-app brand systems. Optimized for intentional logo concepting, refined composition, sparse typography, strong symbolic meaning, premium mockups, art-directed imagery, and flexible grid layouts.
Also in 3 projects that use this
ttmouseSkillnotebooklm
Automate Google NotebookLM - create notebooks, add sources, generate podcasts/videos/quizzes, download artifacts. Supports browser-based content extraction for anti-crawler platforms (Twitter/X, LinkedIn, etc.). Activates on explicit /notebooklm or intent like "create a podcast about X
Also in 3 projects that use this
AnasX7Skillminimalist-ui
Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.
Also in 3 projects that use this
VercelSkillremotion-best-practices
Best practices for Remotion - Video creation in React
Also in 3 projects that use this
- +1 more from AnasX7
Other versions61 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 61
- rohitg00/pro-workflow★ 2.9ksame name
- aiwithremy/claude-skills-llm-council★ 1.8ksame name
- ffroliva/gflow-cli★ 1.2ksame name
- am-will/codex-skills★ 1ksame name
- gcpdev/llm-council-skill★ 428same name
- happycapy-ai/Happycapy-skills★ 137same name
- nicmarti/skills-weaver★ 30same name
- oliwoodman/llm-council-skill★ 25same name
- gestordeaudiencia/llm-council-skill-ptbr★ 20same name
- am-will/llm-council★ 16same name
51 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- agent-busSkill
- autonomous-iterationSkill
- documentation-captureSkill
- hue-signalsSkill
- macos-attention-soundSkill
- messageSkill
- outbound-injectionsSkill
- structured-improvementSkill
- transcribe-scribeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
75 rules. 0 are common, 63 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 55 edited versions we read keep these.
63
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Every claim must be falsifiable: No hand-waving specs, no "handles edge cases gracefully."
- Distinctive: line 40
User confirmation at interpretation boundaries: When translating user intent into technical language, the user confirms the translation is …
- Distinctive: line 42
Separation of generation and evaluation: Never in the same prompt, never in the same phase.
- Distinctive: line 45
Hard failure on tool unavailability: Never silently skip a council member or critical tool.
- Distinctive: line 48
Traceability through synthesis: Before any convergence synthesis is locked, verify that every unique constraint, edge case, and invariant …
- Distinctive: line 127
All three are always called: No phase uses fewer than three members.
- Distinctive: line 131
Browser access: all three members support browser automation.
- Very specific: line 133
Image/visual input: All three can analyze images.
- Distinctive: line 147
When synthesis requires reading multiple responses, spawn a synthesis subagent with instructions: "read these files, produce synthesis …
- Distinctive: line 153
All relevant file paths (actual paths, not "read the spec")
- Distinctive: line 216
Every prompt to a council member MUST include:
- Distinctive: line 225
All members get the same core context per round.
- Distinctive: line 229
Use shared context and shared success criteria, but assign a unique exploration lane per worker.
- Distinctive: line 237
If extra lanes are needed, add additional Codex workers before adding additional Gemini workers.
- Distinctive: line 246
If two responses overlap heavily, re-run with reassigned lanes.
- Distinctive: line 267
If a response fails relevance or substance: retry once with more specific prompt.
- Distinctive: line 272
Read all response files
- Distinctive: line 274
Traceability check (Invariant 11): verify every unique constraint, edge case, and invariant from any member exists in the synthesis, or is …
- Distinctive: line 280
Not all rounds have convergence votes.
- Distinctive: line 282
When convergence applies: the round prompt asks members to include a vote.
- Distinctive: line 286
After every round completion:
- Distinctive: line 287
Update state doc (Phase History section for current phase, Run Health dashboard)
- Distinctive: line 289
Update task list (mark round task complete, create next if not converged)
- Distinctive: line 290
Check circuit breaker counts
- Distinctive: line 365
APPROVE: no issues, proceed
- Distinctive: line 367
BLOCK: must include (1) what specifically must change, (2) why, (3) suggested fix.
- Distinctive: line 380
Write synthesis note: changes made, concerns not addressed and why, contradictions identified
- Distinctive: line 385
Before escalating to user:
- Distinctive: line 386
Look for alternative perspectives or creative reframings
- Distinctive: line 388
Consider whether disagreement is about the artifact or unstated assumptions
- Distinctive: line 389
If truly stuck: escalate with what's converged, what's blocked, options
- Distinctive: line 401
Use this as pacing guidance only, not as a hard gate.
- Distinctive: line 418
Every phase says what's unique to it.
- Distinctive: line 441
If Version B: propose adaptation, council reviews for invariant compliance, user approves
- Distinctive: line 442
Create directory structure, git branch, state doc
- Distinctive: line 468
Key diagnostic: If you cannot point to something specific and observable, you are not grounded.
- Distinctive: line 485
Key rule: Every criterion must trace to either a Phase 1 observation ("this measured value changes from X to Y") or a Phase 0 user need …
- Distinctive: line 500
Key rule: Every spec claim must trace to an acceptance criterion.
- Distinctive: line 512
Exit check: All gaps identified by any council member are resolved or explicitly rejected with reason.
- Distinctive: line 559
Input: All Phase 6 proposals + acceptance criteria from Phase 2.
- Distinctive: line 576
Exit check: Every adversarial finding either has a concrete mitigation integrated into the direction, or the direction has been revised.
- Distinctive: line 615
Exit check: Every leaf node has a complete interface contract and can be tested in isolation.
- Distinctive: line 651
Exit check: Every behavior in the interface contract from Phase 10 is covered and deepened.
- Distinctive: line 660
Purpose: Write tests that fully cover the contract.
- Distinctive: line 666
Exit check: Every clause in the component contract is covered by at least one test.
- Distinctive: line 678
Pre-implementation baseline (required): before coding this component, capture baseline evidence under the current code state.
- Very specific: line 679
Run the Phase 13 test suite against baseline and save outputs to phase-14/{component}/baseline/tests/
- Very specific: line 681
If no meaningful baseline exists (new behavior), record phase-14/{component}/baseline/no-baseline.md with rationale
- Distinctive: line 685
Exit check: All Phase 13 tests pass. Implementation compiles/runs without errors.
- Distinctive: line 698
Exit check: All audit findings resolved.
- Distinctive: line 715
Exit check: All interface assumptions verified.
- Distinctive: line 719
After Phase 16: If verified → distribute canonical component as foundation.
- Very specific: line 742
Before evidence: run the verification flow on baseline behavior and save artifacts to phase-17/before/ (tests, logs, screenshots, …
- Very specific: line 743
After evidence: run the exact same flow on the candidate implementation and save to phase-17/after/
- Distinctive: line 748
Exit check: All e2e tests pass. For Fix-type problems: the Phase 1 observation has changed, observed directly.
- Distinctive: line 759
Test bug → fix test, re-verify
- Very specific: line 767
Test bug: document the defect, patch tests, re-run coverage + e2e, log decision with classification: "test_fix"
- Very specific: line 780
Update dev/council/performance-log.jsonl with per-run + per-member data
- Distinctive: line 784
Exit artifact: Run report + archived artifacts + updated performance log.
- Distinctive: line 785
Exit check: All artifacts archived. State doc closed.
- Distinctive: line 817
Use tiers as verification planning guidance.
- Distinctive: line 847
Participants: all three members always. The third provides independent perspective and tie-breaking.
- Very specific: line 852
Ask each member to: (1) identify core disagreement, (2) evaluate evidence for both sides, (3) verdict (A/B/synthesis), (4) confidence, (5) …
- Distinctive: line 859
If synthesis opportunity: propose it, ask if it resolves both concerns
- Distinctive: line 865
Resolved: document resolution, continue
- Distinctive: line 969
If the harness surfaces context-usage notifications (for example a warning as the context window fills), the lead should checkpoint state …
- Distinctive: line 973
When the 85% context warning fires:
- Distinctive: line 975
Verify state doc Recovery section is current
- Very specific: line 990
Read archive/{run-id}/state.md (run-id is in task list descriptions)
- Very specific: line 991
Read task list (TaskList)
- Very specific: line 1090
Use metadata fields for tracking: phase, component, council_member, round, commit_sha, artifact_path.
- Very specific: line 1104
Every event has: schema_version (currently 2), type, run_id, ts (ISO8601), phase, component (if in Phases 12-16).
- Distinctive: line 1126
File-first: if it's not saved to disk, it doesn't exist.
- Distinctive: line 1129
Track structured uncertainty: every council response includes assumptions, gaps, confidence.
- Distinctive: line 1130
Scope proportionality: if the proposed solution is orders of magnitude larger than the symptom, the diagnosis is suspect.
“Common” is measured: kept by at least 6 in 10 of the 55 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LLM Council
Solve complex problems through independent multi-model analysis, synthesis, and iterative convergence. Three council members (Gemini, Codex, Claude subagent) work in parallel at every stage. The lead agent (you) facilitates, synthesizes, and decides. You never execute.
Use when: Complex bugs with unclear root cause, architectural decisions with multiple valid approaches, high-risk modifications where quality matters, greenfield builds requiring rigorous correctness, any problem where independent perspectives reduce blind spots.
Don't use when: Simple fixes with obvious solutions, tasks where a single model is sufficient, pure research without implementation (use structured-research), routine feature work (use structured-development).
Important — always load explicitly: This skill must be invoked via the Skill tool (/llm-council) every time it is used. Do not freestyle the pattern from memory.
Core Principle
Define what correct means. Prove the definition is satisfied.
Every step in the council process is one of these two things. Nothing else. The council exists to maximize correctness, not to minimize risk, save time, or optimize resource spend. Rounds don't matter. Time doesn't matter. Resources don't matter. Getting it right matters.
The council's unique value: 3 independent perspectives at each step. Different models find different ambiguities, different edge cases, different ways to be wrong. The diverge-converge rhythm serves correctness — more eyes on the same question means fewer blind spots.
What "verified" means: Not "tests pass." Verified means: the contract is defined, tests cover the contract, the implementation satisfies the tests, an audit found no uncovered paths or unenforced assumptions, and composition with adjacent verified components is explicitly proven correct. If any layer of evidence disagrees, it is not verified.
Progress metric: Verified nodes in the dependency DAG. Not lines of code, not phases completed, not rounds finished.
Subordinate process to evidence. If a proposed fix for a specific symptom requires a complete rewrite, the diagnosis is probably wrong. Scope mismatch between symptom and solution is itself a diagnostic signal. The process must stay grounded in observable reality at every step, not just at the start and end.
Invariants
These hold regardless of version (Prescriptive/Adaptive), profile, or adaptation:
- Every claim must be falsifiable. No hand-waving specs, no "handles edge cases gracefully."
- Grounding before theorizing. Connect understanding to reality before building theories about what's wrong or what to build.
- User confirmation at interpretation boundaries. When translating user intent into technical language, the user confirms the translation is accurate.
- Independence of council members. Same input to all members, no cross-contamination, parallel execution.
- Separation of generation and evaluation. Never in the same prompt, never in the same phase.
- Tests derived from contracts, not implementations. Tests encode what should be true, not what the code does.
- Composition verified explicitly. Two correct components don't automatically compose correctly.
- Hard failure on tool unavailability. Never silently skip a council member or critical tool.
- Evidence over assertion. "I verified X" must come with the evidence. "Tests pass" is insufficient without showing what the tests actually check.
- Scope proportionality. The scope of the fix should correlate with the scope of the problem. A specific symptom demands a specific diagnosis.
- Traceability through synthesis. Before any convergence synthesis is locked, verify that every unique constraint, edge case, and invariant identified by any member exists in the final synthesized document, or is explicitly noted as "considered and rejected with reason."
Two Versions
Version A: Prescriptive ("Just use this")
A fixed phase sequence. The lead follows it step by step. This covers the majority of tasks where the problem type is well-understood.
Version B: Adaptive ("Adapt first, then execute")
For tasks where the prescriptive process doesn't fit — novel technical work, unusual problem types, mixed concerns, research-heavy domains. Version B has an explicit "Phase -1" where the lead designs the process itself.
Adaptation protocol:
- During Phase 0, the lead identifies problem type and proposes which phases to modify, reorder, merge, or skip — with justification tied to invariants.
- The council reviews the proposed adaptation for invariant compliance (standard convergence round).
- The user approves the adapted process before execution begins.
- The state doc records the custom process and justifications.
| Signal | Version |
| Clear problem type (fix, change, extend, build in known domain) | A |
| Novel technical domain, no comparable systems | B |
| Mixed concerns (part fix, part build, part research) | B |
| Clear, scoped task | A |
| Vague requirements, uncertain problem definition | B |
What CAN be adapted: Phase ordering (within groups), phase depth (council round vs lighter solo assessment), phase content (e.g., Reality Grounding as bug reproduction vs literature review), conditional phases (Spike, Oracle), component protocol scope.
What CANNOT be adapted: Invariants, Phase 0 (Problem Intake), Phase 2 (Acceptance Criteria), the component protocol sequence (contract → tests → implement → verify → compose), end-to-end verification derived independently from spec, user gates.
See design doc → Adaptation Framework for detailed examples per problem type.
Problem Types
Four categories orient how problem definition works. Real tasks may blend types.
Fix — "Something is wrong, make it right"
Grounding: Reproduce the bug. Record it. Measure the exact divergence — specific values, specific times, specific frames. Failure modes: Architecture Trap (diagnosing messiness as the bug), Premature Abstraction (jumping to architectural diagnosis before establishing operational facts), Test Theater (tests encoding the model of correctness rather than observed correctness criteria).
Change — "Something works, but I want it different"
Grounding: Observe current behavior. Measure it. Define the delta in measurable terms. Failure modes: Interpreting the request through a technical lens rather than the user's lens. Changing more than requested. Losing existing correct behavior.
Extend — "Add something new to an existing system"
Grounding: Map integration points. Characterize constraints. Define what the extension looks like from the user's perspective. Failure modes: Building in isolation without understanding integration constraints. Over-engineering beyond what was requested. Breaking existing functionality.
Build — "Create something that doesn't exist"
Grounding depends on novelty:
| Novelty | Activity |
| Known domain | Study comparables, extract patterns |
| Partially novel | Extract user scenarios, observe current process |
| Fully novel | Literature review, identify knowns/unknowns, preliminary experiments |
Failure modes: Spec that sounds precise but isn't grounded. Building to a theoretical spec that doesn't match user needs. For novel work: underestimating unknowns.
Council Members
| Member | Tool | Prompt Style | File Read | Shell | Write | Browser |
| Gemini | mcp__gemini-cli__ask-gemini | prompt param, @path for files | Workspace via @path | Yes (shell-exec, read-only) | Read-only until verified | Playwright (own Chromium profile) |
| Codex | mcp__codex__codex | prompt param | Any path | Yes | Yes | Playwright (own Chromium profile) |
| Claude | Task (subagent_type: general-purpose) | prompt param | Full access | Yes (Bash) | Full access | Chrome extension (mcp__claude-in-chrome__) |
Sandbox/approval note: Codex and Gemini manage their own sandbox and approval settings via their global configs. Do not pass sandbox or approval-policy parameters in council calls. If you must pass sandbox due to host constraints, use the widest available setting and expect member defaults to overwrite/normalize it.
All three are always called. No phase uses fewer than three members. Parallel calls are cheap; fewer perspectives are expensive.
Invocation pattern: Spawn three background subagents simultaneously. Each subagent gets: the MCP tool to call (or executes directly for Claude), the exact prompt, what to return, and where to save artifacts.
Browser access: all three members support browser automation. Gemini and Codex use Playwright with isolated profiles; Claude uses claude-in-chrome. For visual/runtime outputs, browser verification must be explicitly called out in verification phases.
Image/visual input: All three can analyze images. Codex: any path. Gemini: workspace files via @path. Claude subagent: any path via Read tool.
Lead Role Boundary
You are a facilitator-consultant. You direct, synthesize, and decide. You do not execute.
Lead DOES: prompt composition, synthesis, state doc maintenance, decisions, task orchestration, convergence assessment, user communication, subagent delegation.
Lead does NOT: investigate code, run tests, write implementation code, read large files directly into own context.
Context optimization:
- Council calls go through wrapper subagents that return concise summaries + file paths (not full responses)
- When synthesis requires reading multiple responses, spawn a synthesis subagent with instructions: "read these files, produce synthesis covering [specific questions], save to [path], return summary"
- Carry only: state doc contents, task list, current synthesis summaries, decision context
- Large artifacts (spec, design, tests, implementation) are referenced by path, read by subagents on demand
Subagent context empathy — every delegation must include:
- Complete task description (what to do, what "done" looks like)
- All relevant file paths (actual paths, not "read the spec")
- Key decisions and constraints affecting the task
- Expected output format and where to save artifacts
- Gotchas the subagent would otherwise discover the hard way
A subagent that fails because it lacked context is a lead failure.
State doc exception: the lead updates the state doc directly — the one execution task it does.
Activation Protocol
On invocation:
- Understand the problem — read user's request, ask clarifying questions if needed
- Classify problem type — Fix / Change / Extend / Build. Assess novelty level for Build.
- Select version — A (Prescriptive) or B (Adaptive). Present reasoning. User confirms.
- Select profile:
| Profile | Phases | When |
| Full | 0-18 (all) | Complex features, architectural changes, high-risk, novel domains |
| Standard | 0, 1, 2, 3, 5, 6, 7, 8, 10-18 | Clear problem, obvious approach direction (skip direction generation/eval/spike) |
| Light | 0, 1, 2, 5, 10, 12-18 | Simple targeted fixes — minimal front-loading, full component verification |
Default to Full. User downgrades if they want Standard or Light. The lead does not assess and recommend down — the skill runs Full unless told otherwise.
- Confirm with user: "Problem type: {type}. Version: {A/B}. Profile: {profile}. The phases are: {list}. Approve?"
- Generate run ID:
{YYYY-MM-DD}_{kebab-case-summary}(e.g.,2026-03-02_fix-overlay-animation) - Create directory structure:
dev/council/archive/{run-id}/
state.md
events.jsonl
spec.mdPhase subdirectories (phase-0/, phase-2/, etc.) created on demand.
- Create git branch:
council/{run-id} - Initialize state doc from template (see State Doc Template section)
- Log
run_startevent toevents.jsonl - Create phase-level tasks — one per active phase based on profile. Wire
blockedBydependencies sequentially. Task descriptions must be self-contained (survive compaction) and include the run-id. - Begin Phase 0
Profile-Specific Substitutions
Standard (skips Phases 4, 6, 7, 9): Lead decides direction during Phase 5 (after root cause). Phase 8 (adversarial) still stress-tests the direction.
Light (skips Phases 3, 4, 6, 7, 8, 9): Lead produces direction from root cause. No spec, no adversarial. Component verification still runs fully.
State doc housekeeping: skipped phases marked as SKIPPED ({profile} profile) in Phase History.
Round Protocol
This is the reusable core — executed dozens of times per run. Every council interaction follows this pattern.
1. Compose Prompt
Every prompt to a council member MUST include:
- Role: what they're doing this round (generating, evaluating, reviewing, breaking, auditing)
- Context: current spec version (path + SHA), relevant files (paths), what phase we're in, problem type
- Previous round synthesis: what converged, what didn't, changes made since last round
- Specific ask: what output is needed, what question to answer
- Output format: the expected structure for this round type (see Round Output Formats below)
- Structured uncertainty requirement: "Include in your response: assumptions made, information gaps, confidence level (HIGH/MEDIUM/LOW)"
All members get the same core context per round. No privileged information.
Orthogonal Research Lanes (Exploration/Generation Rounds)
Use shared context and shared success criteria, but assign a unique exploration lane per worker. Lanes must be explicitly different (algorithmic, architectural, data-shape, UX-flow, perf-path, integration-path, failure-mode analysis).
Default lane weighting:
- Codex-first: assign Codex to primary/high-risk lanes (core algorithms, performance-critical paths, integration-critical paths)
- Claude (Opus) lane: assign Claude subagent on Opus for reliability-critical challenge lanes (adversarial pressure-test, failure-mode analysis, assumption breakage)
- Gemini lane: assign Gemini to secondary/less-critical lanes (alternatives, edge-case inventory, tooling/documentation checks, UX/polish hypotheses)
If extra lanes are needed, add additional Codex workers before adding additional Gemini workers.
Required fields in each exploration response:
ORTHOGONAL_LANE: {lane name}WHY_THIS_IS_DIFFERENT: {1-2 lines}HYPOTHESIS: {claim}FALSIFICATION_TEST: {how this could be proven wrong}EVIDENCE_OR_PLAN: {what supports it or how it will be tested}
If two responses overlap heavily, re-run with reassigned lanes.
2. Send to All Members (Parallel)
Spawn three background subagents simultaneously:
- Gemini subagent: calls
mcp__gemini-cli__ask-gemini, saves response toarchive/{run}/phase-{N}/{member}_r{R}.md, returns summary - Codex subagent: calls
mcp__codex__codex, saves response to same pattern, returns summary - Claude subagent: executes directly (Task tool), saves response, returns summary
Model selection rule: use Opus for Claude subagents on reliability-critical rounds unless the user explicitly requests otherwise.
Each subagent instruction includes: prompt text, save path, "return a 3-5 sentence summary of key findings plus the file path."
3. Receive and Assess Quality
For each response, check:
- Relevance: did it address the prompt?
- Substance: evidence/reasoning, not just assertions?
- Format compliance: followed requested output structure?
- Structured uncertainty: included assumptions, gaps, confidence?
If a response fails relevance or substance: retry once with more specific prompt. Limit: 1 retry per member per round. Log quality issues.
4. Synthesize
Spawn a synthesis subagent (or do inline for small rounds):
- Read all response files
- Identify: consensus points, unique insights, disagreements, information gaps
- Traceability check (Invariant 11): verify every unique constraint, edge case, and invariant from any member exists in the synthesis, or is explicitly noted as "considered and rejected with reason"
- Produce synthesis note saved to
archive/{run}/phase-{N}/synthesis_r{R}.md - Return summary to lead
5. Check Convergence (if applicable)
Not all rounds have convergence votes. Generation and adversarial rounds produce output without voting. Evaluation, design, test authoring, and review rounds require convergence.
When convergence applies: the round prompt asks members to include a vote. See Vote Format section.
6. Update State
After every round completion:
- Update state doc (Phase History section for current phase, Run Health dashboard)
- Append events to
events.jsonl(council_callper member +synthesisevent) - Update task list (mark round task complete, create next if not converged)
- Check circuit breaker counts
Round Output Formats
Generation round:
FINDINGS:
- {claim} | Evidence: {what supports this} | Confidence: {H/M/L}
- ...
ASSUMPTIONS: {list}
INFORMATION GAPS: {list}
CONFIDENCE: {overall H/M/L}Evaluation round:
ASSESSMENT:
- {criterion}: {evaluation} | Evidence: {what}
- ...
ISSUES:
- [{severity: HIGH|MEDIUM|LOW}] {description} — suggested fix: {fix}
VOTE: APPROVE | APPROVE_WITH_RESERVATIONS | BLOCK
CONFIDENCE: HIGH | MEDIUM | LOW
ASSUMPTIONS: {list}
INFORMATION GAPS: {list}Adversarial round:
POST-MORTEM:
The implementation was completed and deployed. The user reports the original problem persists
despite all tests passing. Here is what went wrong:
- {failure mode} | Which constraint was not enforced: {constraint} | Which assumption was wrong: {assumption} | How tests passed while failing: {explanation}
- ...
FATAL FLAW (if any): {description}
ASSUMPTIONS: {list}
INFORMATION GAPS: {list}
CONFIDENCE: {overall H/M/L}Audit round (for component/composition verification):
AUDIT:
- Code path: {path} | Contract clause: {clause} | Status: COVERED | UNCOVERED | PARTIALLY COVERED
- ...
UNCOVERED PATHS: {list of code paths with no test coverage}
UNENFORCED ASSUMPTIONS: {list of assumptions in contract not verified by tests}
WAYS TO BE WRONG DESPITE PASSING TESTS: {list}
VOTE: VERIFIED | NOT_VERIFIED
CONFIDENCE: HIGH | MEDIUM | LOW
EVIDENCE: {specific references to code, tests, outputs}Vote Format and Convergence
Votes
Each member returns with their evaluation round response:
VOTE: APPROVE | APPROVE_WITH_RESERVATIONS | BLOCK
CONFIDENCE: HIGH | MEDIUM | LOW- APPROVE: no issues, proceed
- APPROVE_WITH_RESERVATIONS: list specific concerns as
[{severity: LOW|MEDIUM}] {description}. Proceed but document - BLOCK: must include (1) what specifically must change, (2) why, (3) suggested fix. A BLOCK without a concrete "change X" is non-actionable — reject and ask for specifics
Members vote simultaneously (parallel). They never see each other's votes before submitting.
Convergence Threshold
- Converged: zero BLOCKs AND at most one member has RESERVATIONS
- Not converged: any BLOCK present, OR two+ members have RESERVATIONS
When Votes Don't Converge
- Categorize each concern: already addressed (member missed it), addressable (artifact needs revision), contradictory (opposite requests → contradiction resolution), out of scope
- Revise artifact to address addressable concerns
- Write synthesis note: changes made, concerns not addressed and why, contradictions identified
- Next round: members receive revised artifact + synthesis note, vote again
When Progress Stalls
Before escalating to user:
- Look for alternative perspectives or creative reframings
- Try different approaches to satisfy underlying concerns
- Consider whether disagreement is about the artifact or unstated assumptions
- If truly stuck: escalate with what's converged, what's blocked, options
Soft Round Guidance (Advisory)
| Scope | Suggested Rounds | Notes |
| Understanding (Phases 0-5) | ~3-5 per phase | User gates in Phases 0/2/4 can add loops |
| Direction (Phases 6-8) | ~2-4 per phase | Adversarial review is often 1-2 rounds |
| Decomposition (Phase 10) | ~3-5 | Largest design surface in the process |
| Per-component loop (Phases 12-16) | ~1-3 per phase | Repeated >3 usually indicates contract boundary issues |
| System proof (Phase 17) | 1-2 | Third attempt usually indicates upstream failure |
Use this as pacing guidance only, not as a hard gate. Convergence criteria and circuit breaker limits remain authoritative.
Edge Cases
| Situation | Handling |
| 2 APPROVE + 1 BLOCK | Not converged. Address block reason next round |
| 3 BLOCKs on different issues | Significant rework. Address all. If they conflict → contradiction resolution |
| Same member BLOCKs same issue twice | Evaluate: substantive vs preference. If preference after genuine attempt, lead can override as arbiter |
| Member times out / fails | Abstention. Remaining members evaluated (minimum quorum: 2). If <2 respond after 1 retry, pause and escalate |
| Non-actionable BLOCK | Reject, ask for specific change. Counts toward round limit |
| Two BLOCKs with contradictory requests | Trigger contradiction resolution before next convergence round |
Phase Instructions
Every phase says what's unique to it. Everything else: follow the Round Protocol. Phases are grouped by purpose.
Understanding the Problem (Phases 0-5)
Phase 0: Problem Intake
Type: Council round (generation → convergence) Purpose: Translate the user's input into precise technical language without losing or distorting the original meaning. Ask: "Restate this problem in precise technical terms. What is the user actually asking for? What's the pain point? What would 'done' look like from the user's perspective? Do not theorize about causes or solutions — only translate intent." Council value: 3 independent interpretations surface different assumptions about what the user means.
Exit artifact: Canonical problem statement document (phase-0/problem-statement.md), signed off by user.
Exit check: User has explicitly confirmed "yes, that's it."
User gate: "Is this what you mean? Is this your actual pain point?" — Hard gate. Do not proceed if the user says "not quite" — iterate until they say "yes, that's it."
Also during Phase 0:
- Classify problem type (Fix/Change/Extend/Build) and novelty level
- Select Version (A/B) — present reasoning, user confirms
- If Version B: propose adaptation, council reviews for invariant compliance, user approves
- Create directory structure, git branch, state doc
Profile substitutions:
- Standard: Lead decides direction during Phase 0 — add "Direction" section to problem statement
- Light: Lead produces minimal implementation plan inline
Phase 1: Reality Grounding
Type: Solo (lead via subagents) or Council round (depends on problem type) Purpose: Connect understanding to observable reality before building any theories.
The universal principle: don't theorize before you've grounded. What "grounded" means varies:
| Problem type | Activity |
| Fix | Reproduce the bug. Record it. Measure the exact divergence — specific values, specific times, specific frames. "At timestamp T, value X is Y but should be Z." |
| Change | Observe and measure current behavior. Record baseline metrics that will change. |
| Extend | Map the existing system's integration points. Characterize constraints the extension must respect. |
| Build (known) | Study comparable systems. Extract patterns. Identify established approaches. |
| Build (novel) | Research the frontier. What's been tried? What are the theoretical limits? What's known vs. unknown? Identify hard constraints. |
Exit artifact: Baseline recording/measurement document (phase-1/baseline.md) with specific values (e.g., "at frame 120, opacity is 0.9; expected 0.5"), or for Build: research findings document with specific citations and constraints.
Exit check: At least one concrete, specific, observable measurement or finding exists. No vague characterizations ("the code is messy") — only specific values, times, behaviors.
Key diagnostic: If you cannot point to something specific and observable, you are not grounded.
Mid-process re-assessment trigger: If Phase 1 reveals the problem is categorically different from what Phase 0 assumed (e.g., a "Fix" that requires research, a "Build" involving existing messy code), re-assess the problem type. This may require restarting from Phase 0 with revised understanding. Inform the user: "Phase 1 revealed this is actually a [new type] problem, not a [original type] problem. I recommend restarting intake with this understanding." This is not failure — it is the grounding phase doing its job.
Phase 2: Acceptance Criteria
Type: Council round (generation → convergence) Purpose: Define falsifiable acceptance criteria that bridge what the user wants (Phase 0) and what's observably true (Phase 1). Ask: "Given the problem statement and the baseline observations, write acceptance criteria. Each criterion must be: (1) falsifiable, (2) connected to an observable outcome, (3) sufficient — if all criteria pass, the problem is solved."
Exit artifact: Acceptance criteria document (phase-2/acceptance-criteria.md) with user sign-off. Each criterion traceable to Phase 0 (user need) or Phase 1 (observation).
Exit check: User has confirmed "if all of these are satisfied, the problem is solved." Every criterion is falsifiable and connected to an observable outcome.
User gate: "If all of these are satisfied, is the problem solved?" — Hard gate.
Key rule: Every criterion must trace to either a Phase 1 observation ("this measured value changes from X to Y") or a Phase 0 user need ("the user can do Z"). Criteria that trace to neither are ungrounded.
Phase 3: Specification
Type: Council round (generation → convergence) Purpose: Define what correct means for the entire system in full technical detail. Ask: "Write the behavioral specification. Inputs, outputs, invariants, forbidden states, failure semantics. Every claim must be falsifiable. Flag any ambiguity." Input: Acceptance criteria (Phase 2) + baseline observations (Phase 1).
Exit artifact: Canonical specification document (spec.md) — all claims falsifiable, all ambiguities resolved, every spec claim traced to an acceptance criterion.
Exit check: Zero unresolved ambiguities. Every AC covered by at least one spec claim. No spec claim without a parent AC (or explicitly marked as internal invariant with justification).
Key rule: Ambiguity is deferred debt that compounds. Resolve it here, not during implementation. Key rule: Every spec claim must trace to an acceptance criterion. Untraceable claims are scope creep. Uncovered ACs mean the spec is incomplete.
Phase 4: Specification Validation
Type: Council round (evaluation) Purpose: Stress-test the spec. Find what's missing, wrong, or ambiguous. Ask: "Is this spec complete and correct? What's missing? What's ambiguous? What assumptions are unstated? Can each claim be connected to a measurement or observation?" Council value: 3 independent readings find different gaps.
Exit artifact: Updated specification document + validation report (phase-4/validation-report.md) listing what was found and how it was resolved.
Exit check: All gaps identified by any council member are resolved or explicitly rejected with reason. Zero open ambiguities.
User gate: "Here is the full spec — does this still match your problem?" This second gate catches spec drift — cases where technical elaboration has drifted from what the user actually needs. The user confirms the full spec still represents their problem before the process commits to solving it.
Phase 5: Root Cause Diagnosis / Constraint Identification
Type: Council round (generation → convergence) Purpose: Understand why the problem exists (fix/change) or what determines the architecture (extend/build).
For fix/change:
- Ask: "What is the root cause? Provide evidence and confidence. Each hypothesis must include a falsification criterion: 'If I change X, behavior Y should change from A to B.' Also provide a Proof-of-Concept fix — the smallest possible change to the existing code that should alter the observed behavior. If you cannot articulate a PoC fix, your diagnosis is not yet specific enough."
- Key rule: If the diagnosis is architectural but the symptom is specific, the diagnosis is probably wrong. Scope mismatch is a red flag. "Fragmented state encoding causes the timing bug" is architectural. "The easing function uses segmentLength instead of cumulativeLength at line 2656" is specific. The second is more likely correct for a specific symptom.
- Key rule: The PoC fix is diagnostic, not therapeutic. If the smallest fix changes the observed behavior, the diagnosis is confirmed. If it doesn't, the diagnosis is falsified cheaply — before any refactoring investment.
Exit artifact: PoC fix result document (phase-5/poc-result.md) — confirmed (behavior changed as predicted) or falsified (loop back).
Exit check: For Fix/Change: PoC fix has been applied and the observed behavior changed as predicted. Without this, the phase is not complete.
Failure path: If the PoC fix does NOT change the observed behavior, the diagnosis is falsified. Do NOT proceed to Phase 6. Loop back to Phase 1 (Reality Grounding) for additional instrumentation and observation. Gather new evidence, form a new hypothesis, re-attempt Phase 5. This loop (Phase 5 → Phase 1 → Phase 5) continues until a PoC fix demonstrably changes the observed behavior. An unconfirmed diagnosis must never reach the design phases.
For extend/build:
- Ask: "What are the load-bearing constraints that determine the architecture? What trade-offs are in tension? What are the unknowns that could invalidate the approach?"
- Exit artifact: Constraint map (
phase-5/constraints.md) with confidence levels. - Exit check: Constraint map with confidence levels, all constraints traceable to Phase 1 findings.
Choosing an Approach (Phases 6-9)
Phase 6: Direction Generation
Type: Council round (divergent generation, no convergence vote) Purpose: Explore the solution space. Ask: "Propose approaches. Diverge — different mental models welcome. Wild ideas welcome."
Exit artifact: Collection of all proposals (phase-6/proposals.md), unfiltered.
Exit check: At least 2 meaningfully different approaches proposed. If all 3 converge on the same approach, the lead must prompt for at least one alternative ("what if that approach is wrong?").
Phase 7: Direction Evaluation
Type: Council round (evaluation → convergence) Purpose: Select the best approach. Input: All Phase 6 proposals + acceptance criteria from Phase 2. Ask: "Evaluate each approach against the acceptance criteria. Vote on preferred direction."
Exit artifact: Evaluation matrix (phase-7/evaluation.md) — each approach scored against each AC + chosen direction with justification.
Exit check: Chosen direction explicitly addresses every acceptance criterion. Rejected approaches have specific reasons documented.
Phase 8: Adversarial Review
Type: Council round (adversarial, 1+ rounds) Purpose: Attack the chosen direction before committing resources. Ask: "Assume this implementation was completed and deployed. The user reports that the original problem persists despite all tests passing. Write the post-mortem: explain exactly which constraint was not enforced, which assumption was wrong, and how the implementation passed every test while failing to solve the actual problem. Be specific — name the component, the invariant, the gap."
The post-mortem framing forces the model out of constructive bias — instead of looking for ways the design could fail (which invites hedging), it must explain why it already failed (which demands specificity).
Exit artifact: Adversarial findings document + mitigations applied (phase-8/adversarial.md), or direction revised with justification.
Exit check: Every adversarial finding either has a concrete mitigation integrated into the direction, or the direction has been revised. No unaddressed failure modes.
Phase 9: Spike / Feasibility Proof (CONDITIONAL)
Type: Council round (generation) Purpose: Prove that the core technical hypothesis of the chosen direction actually works before designing a whole system around it. When: The direction depends on an unproven technical assumption. Skip when feasibility is established. Ask: "Build a minimal throwaway proof that [core hypothesis] works. Not production code — just prove it's possible." Council value: 3 independent spikes. If all 3 succeed with different approaches, high confidence. If any fails, the direction may be wrong.
Exit artifact: Spike result (phase-9/spike-result.md) — working proof (with output/evidence) or disproof.
Exit check: Feasibility is binary: proven (proceed) or disproven (loop back to Phase 6/7). No "probably works."
Making Correctness Provable (Phases 10-11)
Phase 10: Decomposition Design
Type: Council round (generation → convergence) Purpose: Decompose the system into pieces that can each be independently proven correct.
This is NOT "design the architecture." It is: what are the verification seams? Where can you draw boundaries such that each piece has a complete, self-contained contract and can be proven correct without the other pieces existing?
Round 1 (generation): Each member independently produces:
- A dependency DAG of components
- For each component: interface contract (preconditions, postconditions, invariants)
- An ordering (leaves first — nothing gets implemented until its dependencies are verified)
- Verification criteria per component
Synthesis: Lead merges into canonical DAG. The decomposition is right when every leaf node has a complete spec and can be tested in isolation.
Review rounds: Council evaluates the canonical DAG. Focus: are the verification seams in the right places? Are any contracts incomplete? Do the contracts compose correctly? Is any component too large to verify tractably?
Exit artifact: Canonical verification DAG document (phase-10/dag.md) — dependency graph, interface contracts per component, ordering, verification criteria per component.
Exit check: Every leaf node has a complete interface contract and can be tested in isolation. No circular dependencies. Every component traceable to at least one acceptance criterion.
Phase 11: Reference Oracle (CONDITIONAL)
Type: Council round (generation) Purpose: Build a slow, obviously-correct implementation of core logic as a truth source for differential testing. When: Whenever observable ground truth can be produced independently — data processing, algorithms, visual/runtime behavior, state machines, or any domain where an independent reference implementation is feasible. Skip only when no independent truth source is possible (pure UI layout, configuration, or glue code where correctness is purely relational).
Ask: "Implement the core logic in the simplest, most obviously correct way possible. Prioritize clarity over performance. This will be used to verify the real implementation."
Oracle verification: The oracle itself must be verified before use as truth source. Apply property-based testing and boundary checks to the oracle implementation. If the oracle cannot be shown correct through these checks, it cannot serve as ground truth. A wrong oracle is worse than no oracle.
Exit artifact: Reference oracle implementation + oracle verification report (phase-11/oracle/).
Exit check: Oracle passes its own verification. Oracle produces correct output for all known test cases from Phase 1 baseline and Phase 2 acceptance criteria.
Per-Component: Prove Each Piece Correct (Phases 12-16)
These five phases repeat for each component in the DAG, ordered leaves-first. Nothing with a dependency gets implemented until all its dependencies are verified. Each phase is a full council round.
Create component-level tasks when starting each component: one task per phase (12-16) for that component, with blockedBy wired sequentially.
Phase 12: Component Contract
Type: Council round (generation → convergence) Purpose: Define what "correct" means for this specific component in full detail. Ask: "Write the complete contract for [component]. Preconditions, postconditions, internal invariants, edge cases, failure modes, failure semantics." Input: Interface contract from Phase 10 (the DAG-level contract). This phase deepens it. Council value: 3 independent contract attempts find different edge cases and failure modes.
Exit artifact: Canonical component contract document (phase-12/{component}/contract.md).
Exit check: Every behavior in the interface contract from Phase 10 is covered and deepened. No ambiguous terms. Every claim falsifiable.
Relevance check: Before writing the contract, the lead explicitly asks: "Does this component actually address the Phase 1 observation?" Trace the component back to the measured problem or user need. If the component being contracted doesn't relate to the Phase 1 baseline observation or any acceptance criterion, flag it — the process may be perfectly verifying an irrelevant component. This is the "correct contract, wrong component" failure mode. Escalate to user before proceeding.
Phase 13: Component Tests
Type: Council round (generation → convergence) Purpose: Write tests that fully cover the contract. Ask: "Write tests against this contract. Boundary conditions, property-based generators, every error path, negative tests. If a behavior is in the contract, there must be a test for it." Input: Canonical component contract from Phase 12. Council value: 3 independent test suites cover different cases. Merging catches what any single model missed.
Exit artifact: Canonical test suite + coverage matrix (phase-13/{component}/tests/, phase-13/{component}/coverage-matrix.md).
Exit check: Every clause in the component contract is covered by at least one test. Coverage matrix has no gaps. Boundary conditions, error paths, and negative tests present for every behavior.
Key rule: Tests are derived from the contract, not from the implementation. The implementation doesn't exist yet.
Phase 14: Component Implementation
Type: Council round (generation) Purpose: Implement the component. Ask: "Implement [component] to satisfy the contract and pass the tests." Input: Canonical contract + canonical test suite + all previously verified components as foundation. Pre-implementation baseline (required): before coding this component, capture baseline evidence under the current code state.
- Run the Phase 13 test suite against baseline and save outputs to
phase-14/{component}/baseline/tests/ - For visual/runtime criteria, capture baseline screenshots/metrics to
phase-14/{component}/baseline/runtime/ - If no meaningful baseline exists (new behavior), record
phase-14/{component}/baseline/no-baseline.mdwith rationale Council value: 3 independent implementations. The lead synthesizes canonical by extracting the best mental model, error handling, and data structures from across all three. This is a rewrite from the best elements, not a textual splice.
Exit artifact: Canonical implementation + test results (phase-14/{component}/).
Exit check: All Phase 13 tests pass. Implementation compiles/runs without errors.
Phase 15: Component Verification
Type: Council round (audit) Purpose: Prove the implementation is correct in isolation. Ask: "Audit this implementation against the contract. Are there code paths not covered by tests? Assumptions not enforced by preconditions? Ways to be wrong despite passing tests? Unchecked edge cases?" Input: Canonical implementation + canonical contract + canonical tests. Council value: 3 independent audits find different weaknesses.
Exit artifact: Verification report + mutation testing results (phase-15/{component}/verification.md).
Exit check: All audit findings resolved. Mutation testing passed. No unaddressed code paths or unenforced assumptions.
Mutation testing: Inject logical faults into the canonical implementation — swap operators (e.g., < to <=, + to -), return wrong values, skip critical checks. Run the Phase 13 test suite against each mutant. If any mutant passes the full test suite, the tests are insufficient — they failed to detect a known fault. Verification fails, and the test suite must be strengthened before re-attempting this phase.
Key rule: The implementer's models do NOT get a pass on their own code. All 3 audit the canonical (which is the lead's synthesis of all three).
Phase 16: Composition Verification
Type: Council round (audit) Purpose: Prove this component works correctly with its verified neighbors. Ask: "Does this component's output satisfy the next component's preconditions across its full output range? Are there interface mismatches? Assumption gaps between this component and its dependencies?" Input: Canonical verified implementation + all previously verified components it interfaces with + their contracts. Council value: 3 independent composition checks.
Exit artifact: Composition verification report (phase-16/{component}/composition.md).
Exit check: All interface assumptions verified. No assumption gaps between this component and its neighbors. Integration tests pass across the full output range.
Key rule: Two correct components don't automatically compose correctly. This is where correctness most commonly gets lost — the bug lives in the assumption mismatch at the boundary.
After Phase 16: If verified → distribute canonical component as foundation. All members receive it before the next component begins. If not verified → identify failure (contract wrong? tests incomplete? implementation wrong? composition assumption wrong?) → loop back to the appropriate phase for this component.
Repeat Phases 12-16 for each component in the DAG.
System-Level Proof (Phases 17-18)
Phase 17: End-to-End Verification
Type: Council round (generation + audit) Purpose: Prove the complete system satisfies the original acceptance criteria from Phase 2 and specification from Phase 3.
Key rule: Derive e2e tests independently from the Phase 2 acceptance criteria and Phase 3 spec, WITHOUT looking at the implementation. If you derive them from the implementation, you test what it does, not what it should do.
Ask: "Return to the acceptance criteria from Phase 2 and the spec from Phase 3. Write end-to-end tests that verify the complete system satisfies them. Do not look at the implementation — derive tests purely from the spec."
Run against: The complete, composed system. Any gap between spec and system is a failure, not a "known limitation."
Before/after evidence protocol (required):
- Before evidence: run the verification flow on baseline behavior and save artifacts to
phase-17/before/(tests, logs, screenshots, measurements) - After evidence: run the exact same flow on the candidate implementation and save to
phase-17/after/ - Evidence diff: produce
phase-17/evidence-diff.mdmapping every changed observation to acceptance criteria/spec clauses - For visual/runtime criteria, members can capture evidence via their browser tools; preserve member/tool metadata with each artifact
Exit artifact: E2e test suite + test results + (for Fix-type problems) Phase 1 re-observation comparison (phase-17/).
Exit check: All e2e tests pass. For Fix-type problems: the Phase 1 observation has changed, observed directly. For all types: every acceptance criterion from Phase 2 has at least one passing e2e test.
NFR checklist (when flagged in Phase 0):
- Security: pass/fail + evidence path
- Performance: pass/fail + evidence path
- Reliability: pass/fail + evidence path Unresolved NFR items block phase completion.
Runtime re-observation (Fix-type problems): The actual runtime behavior must be re-observed using the same method as Phase 1 (browser inspection, runtime measurement, visual comparison, etc.) and compared to the Phase 1 baseline. "Tests pass" is necessary but not sufficient — the actual behavior that was broken must be shown to be fixed. All members have browser access for this. The Phase 1 baseline document is the comparison target. If the observed behavior has not changed from the Phase 1 baseline, the problem is not fixed regardless of test results.
Failure loop-back:
- Test bug → fix test, re-verify
- Implementation bug → back to Phase 14 for affected component
- Design flaw → back to Phase 10
- Spec wrong → user gate, back to Phase 3
- Acceptance criteria wrong → user gate, back to Phase 2
Test-change governance (Phase 17+):
- Classify every test change as test bug or spec retreat
- Test bug: document the defect, patch tests, re-run coverage + e2e, log decision with
classification: "test_fix" - Spec retreat: forbidden without explicit user approval; escalate with impacted criteria, failing evidence, and options; log
classification: "spec_retreat_escalation" - Any unclassified test modification blocks verification closure
Phase 18: Documentation & Close
Type: Solo (lead via subagents) Purpose: Record what was built and why. Produce the audit trail.
- Generate run report (from
events.jsonlor manual summary) - Archive all artifacts
- Update
dev/council/performance-log.jsonlwith per-run + per-member data - Merge implementation branch (user approval — hard gate)
- Close state doc
Exit artifact: Run report + archived artifacts + updated performance log. Exit check: All artifacts archived. State doc closed. Merge approved by user (or deferred with reason).
Phase Summary
| # | Phase | Activity | Type | Repeats | Exit Artifact |
| 0 | Problem Intake | Translate user intent | Council | Once | Canonical problem statement (user-confirmed) |
| 1 | Reality Grounding | Connect to observable reality | Solo/Council | Once | Baseline recording/measurement with specific values |
| 2 | Acceptance Criteria | Define falsifiable "done" | Council | Once | AC document (user-confirmed) |
| 3 | Specification | Define "correct" fully | Council | Once | Canonical spec (all claims falsifiable, traced to ACs) |
| 4 | Spec Validation | Stress-test the spec | Council | Once | Updated spec + validation report (user-confirmed) |
| 5 | Root Cause / Constraints | Understand why / what shapes solution | Council | Once | PoC fix result (confirmed/falsified) or constraint map |
| 6 | Direction Generation | Explore approaches | Council (divergent) | Once | Collection of proposals |
| 7 | Direction Evaluation | Select approach | Council (convergent) | Once | Evaluation matrix + chosen direction |
| 8 | Adversarial Review | Attack the direction | Council (adversarial) | Once | Adversarial findings + mitigations |
| 9 | Spike / Feasibility | Prove core hypothesis | Council | Conditional | Spike result (proven/disproven) |
| 10 | Decomposition Design | Verification DAG | Council | Once | Canonical DAG + interface contracts |
| 11 | Reference Oracle | Truth source | Council | Conditional | Oracle implementation + verification report |
| 12 | Component Contract | Define "correct" for piece | Council | Per component | Component contract document |
| 13 | Component Tests | Test the contract | Council | Per component | Test suite + coverage matrix |
| 14 | Component Implementation | Build the piece | Council | Per component | Canonical implementation + test results |
| 15 | Component Verification | Prove correct in isolation | Council (audit) | Per component | Verification report + mutation testing results |
| 16 | Composition Verification | Prove correct with neighbors | Council (audit) | Per component | Composition verification report |
| 17 | End-to-End Verification | Prove system satisfies spec | Council | Once | E2e tests + results + re-observation (Fix) |
| 18 | Documentation & Close | Record and archive | Solo | Once | Run report + archived artifacts |
19 phases total (0-18). Phases 12-16 repeat per component. 2 conditional phases (9, 11).
Tiered Testing Guidance
Use tiers as verification planning guidance. This does not add new phases.
| Tier | Typical Work | Primary Gate | Evidence |
| Tier 1: Logic/Data/API | Deterministic behavior, return values, state transitions | Phase 13 tests + Phase 15 mutation/audit + Phase 17 e2e assertions | Test output logs, mutation results |
| Tier 2: Visual/Interactive | UI behavior, layout, interaction flows | Phase 13/17 Playwright behavior assertions + before/after evidence protocol | Screenshots, DOM/computed-style checks, interaction logs |
| Tier 3: Animation/Canvas/Dynamic | Time-based visuals, canvas, dynamic rendering | Instrumentation assertions in Phase 13/17 + runtime re-observation | Timed captures, instrumentation output, frame evidence |
Operational rules:
- Assign each acceptance criterion a tier during planning (Phase 2/10 artifacts)
- For Tier 2/3, define required instrumentation in Phase 12 contracts and enforce it in Phase 13 tests
- Save visual/dynamic golden artifacts under
phase-17/golden/and cross-link fromphase-17/evidence-diff.md
Contradiction Resolution Protocol
Triggered during synthesis when the lead identifies a genuine contradiction — mutually exclusive positions, not additive differences.
Pre-check — categorize before escalating:
| Type | Action |
| Factual ("returns X" vs "returns Y") | Spawn subagent to verify. Often resolved without a round |
| Diagnostic ("cause is X" vs "cause is Y") | Spawn subagent to investigate if feasible |
| Design preference (approach X vs Y) | Not testable — full protocol |
| Risk assessment ("safe" vs "will fail") | Spike via subagent if possible, otherwise full protocol |
Full Protocol (2 rounds max)
Participants: all three members always. The third provides independent perspective and tie-breaking.
Round 1 — Analysis, not defense:
- Present both positions neutrally with evidence
- State the specific claim in dispute (one sentence)
- Ask each member to: (1) identify core disagreement, (2) evaluate evidence for both sides, (3) verdict (A/B/synthesis), (4) confidence, (5) what evidence would be definitive
- Save to
phase-{N}/contradiction_{topic}_r1.md
Between rounds: lead reads responses, looks for synthesis opportunities. If synthesis emerges, frame Round 2 around it.
Round 2 — Targeted resolution (only if Round 1 didn't resolve):
- Lead's synthesis of Round 1
- If synthesis opportunity: propose it, ask if it resolves both concerns
- Each member: final position, strongest evidence, what would change their mind, whether they've shifted
- Signal this is the final round before arbiter
- Save to
phase-{N}/contradiction_{topic}_r2.md
After Round 2:
- Resolved: document resolution, continue
- Not resolved: lead makes arbiter decision. Document: disagreement, both positions, lead's reasoning, dissenting position preserved as risk. Log as
decisionevent witharbiter: true
Contradiction resolution rounds are separate — they do not consume convergence rounds.
Context Management
Principles
- File-first: nothing of value exists only in context. Every synthesis note, vote, artifact draft, and round summary is saved immediately
- Living state document: updated after every significant event, never more than one round stale
State Doc Template
Created during Phase 0 activation at archive/{run-id}/state.md:
# State Document — {run-id}
## Recovery
If reading this after compaction: current phase is {N}, round {R}.
Next action: {concrete next step}
In-progress tasks: {task IDs}
Current component (if in Phases 12-16): {component name}
DAG position: {which components verified, which remaining}
## Run
- Run ID: {id} | Task: {summary} | Profile: {profile} | Version: {A/B} | Branch: council/{run-id}
- Problem type: {Fix/Change/Extend/Build} | Novelty: {known/partial/novel}
- Circuit breaker: 0/{max} calls, 0/2 loop-backs (P5→P1), 0/2 loop-backs (P17→P14), 0/1 loop-backs (P17→P3)
- Started: {timestamp} | Current phase: 0
## Run Health
- Wall time: 0min | Active time: 0min
- Council calls: 0/{max} | Loop-backs: 0
- Current: Phase 0 (Problem Intake)
- Calls by member: gemini 0, codex 0, claude 0
- Retries (quality): 0
- Phases completed: (none)
- Phase durations: (none)
- Convergence rounds: (none)
- Contradictions resolved: 0
- Arbiter decisions: 0
## Verification DAG
(populated after Phase 10)
| Component | Status | Contract | Tests | Impl | Verified | Composed |
|-----------|--------|----------|-------|------|----------|----------|
## Phase History
(phases added as they progress)
## Decisions Locked
- Problem: {from Phase 0}
- Problem type: {Fix/Change/Extend/Build}
- Acceptance criteria: (Phase 2+)
- Root cause / constraints: (Phase 5+)
- Direction: (Phase 7+ or Phase 0 for Standard)
- Decomposition: (Phase 10+)
## Artifact Index
### Live (current, authoritative)
| Artifact | Path | SHA | Description |
|----------|------|-----|-------------|
### Per-phase artifacts
| Phase | Artifact | Path | What's in it |
|-------|----------|------|-------------|
### Council responses (raw)
| Phase | Round | Member | Path |
|-------|-------|--------|------|
## Open Issues
(none)
## Risks & Arbiter Decisions
(none)
## Next Phase
- Phase 0: Problem Intake
- Facilitation focus: understand problem, translate intent, classify type
- Council inputs: (N/A for Phase 0 initial round)
- Success criteria: user approves problem statement
- Active tasks: {task IDs}Save Triggers
State doc MUST be written to disk after each of:
- Phase transition (start or end)
- Round completion (votes received + synthesized)
- Any convergence vote result
- Any decision (including arbiter)
- Any contradiction resolution round
- Circuit breaker warning or limit
- Component verification status change (Phases 12-16)
- DAG position change
Context Awareness
If the harness surfaces context-usage notifications (for example a warning as the context window fills), the lead should checkpoint state to the council documents before continuing, so a fresh instance can resume from the run artifacts.
Proactive Compaction
When the 85% context warning fires:
- Finish current synthesis (don't compact mid-synthesis)
- Verify state doc Recovery section is current
- Trigger
/compactviamcp__slash__run
Natural compaction points (proactively compact if context >60%):
| After | What's compressed |
| Phase 4 (spec validated) | Phases 0-4 deliberation |
| Phase 9 or 10 (direction locked, decomposition done) | Direction deliberation |
| Each component's Phase 16 (component fully verified) | That component's deliberation |
| Before Phase 17 | Clear context for fresh e2e derivation |
Recovery After Compaction
Lead's first 3 actions after any compaction:
- Read
archive/{run-id}/state.md(run-id is in task list descriptions) - Read task list (
TaskList) - Orient from Recovery section: current phase, round, next action, DAG position
Circuit Breaker
Prevents runaway consumption. All limits are soft stops — lead pauses and reports. User can authorize continuation.
| Limit | Value | Rationale |
| Global max calls | 300 | Full run with 5-component DAG: ~25 component calls + ~35 front-loaded + ~5 e2e = ~65 minimum. With convergence rounds: 100-200 typical. 300 gives headroom for iteration. |
| Max loop-backs Phase 5→1 | 2 | Third loop = diagnosis method is wrong |
| Max loop-backs Phase 17→14 | 2 | Third loop = likely design flaw, not implementation bug |
| Max loop-backs Phase 17→3 | 1 | Spec rewrite twice = fundamental confusion |
Warning at 80% (240 calls): logged to state doc + events. Informational, not a pause.
Tracking: state doc Run section tracks calls_used and loopbacks_used. Events.jsonl logs every council_call and loop_back. Lead checks counts before each new call.
When the circuit breaker fires:
- Stop immediately — no further council calls or implementation work.
- Inform the user — state which limit was hit and in which phase.
- Produce a verification status report:
- Which components/phases were fully verified (with evidence)
- Which components/phases were in progress (with current state)
- Which components/phases were never reached
- What the last known-good state is
- Explicitly mark the output as unverified-as-a-system — individual components may be verified, but the system as a whole has not completed the verification process. The output cannot be treated as "verified with caveats" — it is unverified. The user decides whether to use it, extend the limits, or abandon.
Escalation format:
Circuit Breaker — limit reached
{limit_name}: {current}/{max}
What's happening:
- Phase {N}, round {R}: {what's not converging and why}
What's verified so far:
- {verified components with evidence}
- {locked decisions}
What's in progress:
- {current component/phase state}
What's not reached:
- {remaining phases/components}
Options:
1. Continue — authorize {suggested_increase} more calls
2. Narrow scope — {lead's suggestion}
3. Accept current state — document open issues as known risks
4. Escalate — {specific disagreement} needs user inputTask Management
Tasks are the execution backbone. They persist across compaction.
Phase Tasks (created at activation)
Generated from selected profile — skipped phases get no tasks:
Task 1: Phase 0 — Problem Intake | Run: {run-id}
Task 2: Phase 1 — Reality Grounding | Run: {run-id} [blocked by 1]
...
Task N: Phase 18 — Documentation | Run: {run-id} [blocked by N-1]Task descriptions MUST include the run-id and be self-contained instructions.
Atomic Subtasks (created when phase starts)
Task 12: Compose Phase 2 round 1 prompt | Run: {run-id}
Task 13: Send Phase 2 r1 to Gemini | Run: {run-id} [blocked by 12]
Task 14: Send Phase 2 r1 to Codex | Run: {run-id} [blocked by 12]
Task 15: Send Phase 2 r1 to Claude | Run: {run-id} [blocked by 12]
Task 16: Synthesize Phase 2 r1 | Run: {run-id} [blocked by 13,14,15]Component Tasks (created when component loop starts)
For each component in the DAG:
Task 30: Component "{name}" — Phase 12 Contract | Run: {run-id}
Task 31: Component "{name}" — Phase 13 Tests | Run: {run-id} [blocked by 30]
Task 32: Component "{name}" — Phase 14 Implementation | Run: {run-id} [blocked by 31]
Task 33: Component "{name}" — Phase 15 Verification | Run: {run-id} [blocked by 32]
Task 34: Component "{name}" — Phase 16 Composition | Run: {run-id} [blocked by 33]Wire cross-component dependencies: if component B depends on component A, B's Phase 12 task is blocked by A's Phase 16 task.
Task Metadata
Use metadata fields for tracking: phase, component, council_member, round, commit_sha, artifact_path.
Dynamic Tasks
Iteration tasks (fix, re-run, re-review, loop-back) created on the fly when issues are found. Wire blockers at creation time.
Observability
Event Logging
Format: JSONL, append-only at archive/{run-id}/events.jsonl. Single-writer: only the lead appends. Subagents return event data in their response; lead writes it.
Every event has: schema_version (currently 2), type, run_id, ts (ISO8601), phase, component (if in Phases 12-16).
Log deterministically — every council call, phase transition, gate check, and decision has logging baked into the task. No optional logging.
Core event types: run_start, council_call, synthesis, gate_check, checkpoint, decision, contradiction, loop_back, circuit_breaker, phase_start, phase_end, component_start, component_verified, dag_update, run_end.
Full event schemas (field-level detail): see design doc → Observability & Logging section.
Run Health Dashboard
Updated in state doc after every significant event. See State Doc Template → Run Health section.
Standing Rules
- All members get the same input per round. No privileged information.
- Members vote simultaneously — never see each other's votes (prevents anchoring).
- The implementer does NOT verify their own work — confirmation bias.
- Acceptance criteria changes = always user gate. No "clarifications" that change semantics.
- Tests written before implementation (Phase 13 before Phase 14). Tests become the target.
- Evidence pinned to commit SHA. Verification re-confirms SHA matches before running.
- File-first: if it's not saved to disk, it doesn't exist.
- Profile selection logged — user can override, lead recommends.
- Prompt framing for genuine critique: evaluation rounds set the right mindset — give permission and motivation to critique, don't mandate a quota of findings.
- Track structured uncertainty: every council response includes assumptions, gaps, confidence. Lead reviews gaps before synthesis.
- Scope proportionality: if the proposed solution is orders of magnitude larger than the symptom, the diagnosis is suspect. Flag it.
- Relevance check before every component contract: trace the component back to Phase 1 observation or acceptance criterion. Flag if irrelevant.
- Browser verification for visual/runtime work: explicitly call out browser verification in Phases 15, 16, and 17 for any task with visual outputs. Any member may execute this via their browser tool; save artifacts with member/tool metadata.
Anti-patterns
| Anti-pattern | Why it fails | Instead |
| Lead reads raw council responses into own context | Context bloat, crashes long runs | Subagents summarize, lead carries summaries |
| Lead writes implementation code | Role confusion, no independent verification | Subagent implements, lead reviews via summary |
| Asking member to propose AND critique same round | Self-censoring, shallow proposals | Separate generation from evaluation |
| "I checked and it works" | Confirmation bias, no audit trail | Evidence artifacts pinned to SHA |
| Skipping adversarial review | Sunk cost fallacy in chosen direction | Phase 8 always runs (except Light profile) |
| Fixing test to match implementation | Spec retreat disguised as test fix | Classify: test bug vs spec retreat. Spec retreat requires user approval |
| Architectural diagnosis for specific symptom | Architecture Trap — diagnosing messiness as the bug | Scope proportionality check. PoC fix falsification |
| Tests encoding analytical model, not observations | Test Theater — all tests pass while bug persists | Tests derived from acceptance criteria (Phase 2), not analytical model |
| "Fragmented state" as root cause | Premature Abstraction — jumping to architecture before operational facts | Phase 1 grounding: specific values, specific times, specific frames |
| 3 analysts agree → must be right | False consensus from shared methodology | Independence doesn't help when methodology is wrong. Grounding helps |
| Proceeding with unconfirmed diagnosis | Wasted effort on wrong problem | PoC fix falsification in Phase 5. No exceptions |
| BLOCK without specifics | Non-actionable, wastes rounds | Reject, demand concrete "change X" |
| Leading questions in prompts | Anchors members, reduces independence | Neutral framing, present evidence not conclusions |
| Compacting without saving state doc | Lose all progress | State doc always current (continuous saves) |
| Verifying irrelevant components | "Correct contract, wrong component" | Phase 12 relevance check before every component |
| Single implementation phase | Shallow implementation, bugs at composition boundaries | Component Protocol: 5 phases per component, leaves-first |
| Proxy tests instead of runtime observation | "Tests pass" but behavior unchanged | Phase 17 runtime re-observation for Fix-type problems |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

