Ai council

From event4u-app/agent-config · View interactive version

Ai council is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when polling external AIs (OpenAI, Anthropic) outside the host session for a neutral second opinion on a roadmap, diff, prompt, or file set — or 'cross-check with another model'.

How to use this skill

Skill file

Experimental. AI Council is not yet validated by external users. API costs apply per consultation.

<!-- cloud_safe: degrade -->

ai-council

Council-first — try the council BEFORE the user, on these classes

A DESIGN DECISION THE AGENT CANNOT SETTLE FROM THE TREE GOES TO THE COUNCIL
FIRST, NOT TO THE USER FIRST. THE USER IS THE ESCALATION, NOT THE DEFAULT.
NEVER PRESENT A COUNCIL VERDICT THAT WAS NOT REACHED. AN INCONCLUSIVE RUN
IS REPORTED AS INCONCLUSIVE, AND WHATEVER YOU DECIDE INSTEAD IS LABELLED
OWN ANALYSIS.

Interrupting the user is the expensive path: it costs a round trip and their

attention, and on a question two models could have settled it buys nothing they

wanted to be asked. So the ordering is tree → council → user, and the

council leg is the one that gets skipped.

Classes that go to the council first — each is a judgement with a real

trade-off and no answer in the tree:

| Class | Example |

|---|---|

| Competing implementations of one feature | two sessions shipped the same phase; discard, overwrite, or merge |

| Which of N designs, all defensible | four declared types with a derived fifth, or five declared |

| Reopening a recorded decision | an ADR or honest-null blocks a change that now looks net-positive |

| Scope re-cut inside an authorized task | this phase splits into two, or absorbs the next |

| Is the evidence sufficient to conclude | n=1 measurement, a proxy metric, an unreplicated finding |

**Classes that still go straight to the user, and the council never substitutes

for them:** anything behind the Hard Floor

(CODE0) ·

spend · a scope EXPANSION beyond what was authorized · a decision whose inputs

only the user holds (a preference, a deadline, a business constraint) · the

high_impact and user_required classes, which

CODE0 routes to the user by

Iron Law. A council cannot consent on the user's behalf, and asking it to is not

autonomy, it is laundering.

When the council cannot answer

Measured 2026-08-17: a run returned 0 of 2 seats, both cli_quota_exhausted,

with the counters at 72/50 and 99/50. The CLI reported it correctly as

INCONCLUSIVE — DEGRADED and did not print a quorum it had not reached. Three

things follow, and the first is the one under pressure:

  1. Never dress your own verdict as the council's. A fan-out, a solo read, or

your own judgement is a legitimate substitute only when named as such —

the boundary CODE0

states.

  1. Do not bounce to the user just because the council failed. An

unreachable council does not upgrade a decidable question into a

user-required one. Decide it, label it own analysis, state the reason the

council was unavailable, and name what would change the answer. Not for a

modification review (a change to the gated surface or one the learning

lanes originate, ADR-281): there an unavailable council stops the run for

the user per docs/contracts/ratification-artifact.md.

  1. Escalate only if it is genuinely undecidable without them — the two

options are close AND the cost of being wrong is high AND nothing in the tree

separates them. Then say the council was attempted and why it failed, so the

user is not asked to arbitrate something they will assume was already tried.

agent-config council:status is free and answers availability; `council_cli

estimate <file>` is free and answers parse-and-cost. Run both before concluding

the council is not an option — and note the question goes in a file, since

prose passed as an argument overflows the argument limit.

Before the next ratification round

In a checkout that ships src/scripts/review_convergence.ts, run

./scripts-run src/scripts/review_convergence --subject <slug> before writing

round N+1's ratification packet. On stalled or diverging, stop

re-submitting and take ADR-268 § 4's owner rung, attaching the subject's row

from agents/evidence/analysis/review-loop-replay-2026-11.md where it has one.

The script only reports and fails no gate; on any other verdict, or when it

prints review_convergence: unavailable, the ratification procedure continues

unchanged.

When to use

external critique that is not biased by its own framing.

/council.

internal 7-judge pass.

reviewer before it calcifies into work.

Do NOT use when:

of opinion → use subagent-orchestration (in-session, no network,

no money).

single strong model** (the reviewer needs to see the working diff and

return actionable fixes) → that is team mode (/team), the depth

complement to the council's breadth. The council is artefact-only and

never grants the external model repo access or the host's framing; team

mode deliberately does the opposite. Neither replaces the other.

bundler's pattern set → ask the user before sending.

do not silently fall back to anything. **But "not configured" is

decided by the CLI, never by the project tree** — see the rule below.

Configuration is ALWAYS user-global

THE COUNCIL CONFIG IS ALWAYS USER-GLOBAL. NEVER SEARCH THE PROJECT FOR IT.
THE ABSENCE OF A COUNCIL FILE IN A PROJECT SAYS NOTHING ABOUT WHETHER
THE COUNCIL IS CONFIGURED. ONLY THE CLI / RESOLVER DECIDES THAT.

The council config lives at one place only:

~/.event4u/agent-config/settings/.ai-council.yml (per

ADR-104,

superseding ADR-093). It is configured once per developer and works

in every project, worktree, and CWD — including consumer repos that

carry none of this package's internals.

Before claiming the council is unavailable, you MUST run the CLI

(council:estimate) and read its exit code + message. Never conclude

"council not configured in this project" from missing project files:

scripts/ai_council (a package-internal directory, absent from every

consumer repo), .agent-settings.yml (the legacy block was removed in

ADR-093), or a project-local .ai-council.yml (never read — ADR-104).

Eyeballing the project for any of these and then deciding solo — instead

of running the resolver — is the canonical failure ADR-104 exists to stop.

The only escape from the user-global location is $AI_COUNCIL_CONFIG, an

explicit absolute path for tests / power users — still not a project search.

When NOT to invoke — necessity self-check

The Phase 6 necessity classifier (see

CODE0)

runs as a pre-flight gate inside the CLI and skips the council when

the prompt looks like routine work. Route around it BEFORE the gate

fires so the user never pays the classifier-pause cost on a request

that obviously did not need a council in the first place.

Skip the council and stay in-session for:

regression. Use systematic-debugging or bug-investigate.

import order, simple rename. Use the language skill directly

(php-coder, eloquent, nextjs-patterns, etc).

"this file", "one-liner", "small change", "add a getter". Use the

language skill directly.

of Z", "syntax of W". Use code-graph ask or the docs skill,

never the council.

Invoke the council when:

refactor strategy, migration plan, rewrite vs redesign.

alternatives need weighing; "pros and cons" is the actual ask.

shape, long-term technical direction.

ambiguous / second opinion / sanity check".

Agent orchestration MUST call council_cli with

--invocation agent so the gate can skip silently on routine

requests. User-typed /council keeps the default

(--invocation user_explicit); the user gets the educational message

--proceed-anyway by design — cost-strict opt-in.

Goal

Bring in independent external models to critique a project

artefact. Independent means: the council members never see the host

agent's reasoning, internal state, or framing language — only the

artefact (roadmap, diff, prompt, file set) plus a neutral system

prompt that asks them to think on their own merits.

Neutrality guidelines (Iron Law)

THE COUNCIL NEVER SEES THE HOST AGENT'S ANALYSIS, REASONING, OR FRAMING.
ROUND 1 SEES THE ARTEFACT + THE NEUTRAL SYSTEM PROMPT. NOTHING ELSE.
ROUND 2+ MAY SEE PRIOR PEER REPLIES — ANONYMISED ONLY, NEVER ATTRIBUTED, NEVER THE HOST'S.
THE HOST AGENT IS THE CONVENER, NEVER A REVIEWER.

Never frame the artefact: it kills the second-opinion value. Use the

unbiased system prompts in scripts/ai_council/prompts.ts; do not

roll your own.

Host convenes, never reviews. The ban is structural: the host

wrote (or framed) the artefact and cannot critique it independently.

Anonymising the host as "Reviewer C" is worse than excluding it — the

user is told they got an outside vote when they did not. Externals

down → surface and skip; never substitute the host as a reviewer.

Seat memory: facts with provenance, no leads

(CODE0).

Modes

This skill is a router head. Everything above is true in every mode and stays

here: which decision classes reach the council at all, what to do when it cannot

answer, the user-global configuration fact, the necessity self-check, and the

neutrality Iron Law. So does the output format below — it is an ordered MUST that

a pointer cannot carry. The operational manuals live in references/; load the

one the task calls for, not the set.

| Task | Mode body | Covers |

|---|---|---|

| Pick an execution mode, or handle a degraded one | CODE0 | Manual-mode and CLI-mode UX, the cost-gate bypass for non-billable members, degradation modes |

| Run a session end to end | CODE0 | The neutrality context-handoff, the numbered procedure, the convener-skeptic stance, why a mechanism claim needs a probe rather than a second opinion, what this is NOT |

| Place the artefact, or render the synthesis | CODE0 | Output path convention with its forbidden and exempt sets, lens-aware synthesis templates, the --prose-synthesis escape hatch, renderer lens resolution |

| Estimate or gate the spend, or check what is redacted | CODE0 | Redaction expectations, cost awareness, the pre-call estimate format, the stale price-table gate, the mid-flow overrun callback |

| Multi-round debate, deep tier, advisors, replay, low-impact fast-path | CODE0 | rounds:N debate, the deep-reasoning tier and its manual-mode parity, /council debate, Karpathy peer-review, thinking-style advisors, the decision-replay artefact, the Lightweight-QA fast-path with its own Iron Law and output markers |

Two of those bodies carry obligations a pointer cannot summarise: the

output-path convention is enforced by CI, and the Lightweight-QA fast-path

markers are required verbatim by

CODE0.

Load the body before acting in either mode rather than working from memory of it.

Procedure

  1. Inspect first. Run the necessity self-check above and read the artefact

you are about to hand over. It is cheaper to not convene than to convene and

discard.

  1. Confirm availability — agent-config council:status, never an inference

from the project tree (see § Configuration is ALWAYS user-global).

  1. Pick the execution mode from

CODE0.

  1. Run the session per the numbered procedure in

CODE0, under the neutrality

Iron Law above — the preamble is not optional and the question is never

authored toward a conclusion.

  1. Estimate the spend before the call per

CODE0.

  1. Write the artefact in the output format below, at the path

CODE0

fixes, then apply the convener-skeptic verdict yourself — convergence is not

correctness.

Output format

Every council reply MUST contain, in this order:

  1. Header line with mode, member count, and total token cost.
  2. One section per member, titled ### <provider> · <model>,

containing the member's verbatim output.

  1. Convergence / Divergence summary — bullet list, every claim

attributed by provider name. **When the convergence settles a

question as "don't relitigate" / locked / a durable disposition**,

the summary MUST record two additional lines, per

CODE0:

scope: (exactly which mechanism or question is settled — narrow

enough that a superficially similar but different proposal is not

silently covered) and revisit-if: (at least one concrete condition

that reopens it — new evidence class, model-generation or tooling

change, an N-th blocked encounter, or an age threshold). A lock

recorded without both lines is an authoring error. Also state

whether the disposition is settled-by-evidence (an eval ran) or

settled-by-decision (a maintainer call) — the latter is cheaper

to reopen and should say so.

  1. Host verdict per finding — one row per finding with accept

/ accept-with-modification / reject / needs-input plus a

one-line reason citing host evidence (file:line, ADR, contract).

See Critical evaluation above.

  1. User-facing options — CONDITIONAL, on ownership. A conclusive

technical verdict emits no options block: it is a resolution,

and handing it over as options routes a technical decision to a person

because it was hard (ADR-268 § 10). The block is owed when the verdict

is owner-owned (product-owned, business-owned, destructive-owned)

or when the council did not converge — then it is a numbered block per

user-interaction, carrying the host verdict in each option, with

"discard council input" always present. Convergence is read from the

record, never inferred: a record that does not say whether its members

converged is itself the finding. Checkable in both directions with

./scripts-run src/scripts/council_record_shape <record.md>.

The host agent NEVER ships council output as its own reasoning, and

NEVER ships the host verdict as council output. Provider attribution

stays visible in the per-member sections; host verdicts stay

attributed to the host.

Tally-vs-reasoned boundary. Option-level decisions (which design /

approach to take) use the council stance tally — the Convergence /

Divergence summary aggregates member stances across the option set.

Finding-level review (is this specific bug/line real) uses the

reasoned validation in CODE0

(each finding stands on its own traced reason, never a vote count). The

two never cross-apply — no resolving a design option by

reasoned-validating one member's take, no resolving a bug finding by

counting council votes. Mirrored in code-review-lens so the boundary is

grep-checkable from both sides.

Do NOT

attribution and you've stripped the value.

— convergence ≠ correctness, and the user deserves the agent's

reasoned filter, not a raw forward.

identity — that primes the reviewer and collapses diversity.

ask for narrower scope.

applies only where one was set, and the absence of one is not a reason

to ask. Show the estimate as information and run.

load_*_key() each call.

Gotchas

Real failure modes seen in the wild:

what do you think?" → council rubber-stamps. Symptom: 100%

convergence, zero unique insight. Fix: send artefact only, neutral

preamble, no host reasoning.

retries one member to "complete" the council. Result: skewed sample,

hidden spend. Fix: surface partial result, stop, ask user.

reviewer infers host model and mirrors it. Fix: redact host-agent

identity strings before bundling.

| Anti-pattern | Why it's wrong | Correct approach |

|---|---|---|

| "Pre-warm" the council with the agent's own analysis. | Bias attack — collapses the reviewer to a yes-man. | Send the artefact text only. |

| Paste the host-agent identity ("I am Augment / Claude Code…") | Identity primes the reviewer's model. | Neutrality preamble in prompts.ts already handles this. |

| Silently truncate a too-large bundle. | Misleads the reviewer into thinking they saw the whole thing. | Bundler raises BundleTooLarge; narrow scope (or --max-bundle-bytes). |

| Reuse the same SDK client across calls without re-loading the key. | Leaks the key in long-lived process state. | Each invocation builds fresh clients from load_*_key(). |

| Spend against a billable member with no configured ceiling because "the council is standing-authorized". | Standing authorization is a bound the user set once, not a blank cheque. No ceiling = nothing was authorized. | Surface the estimate and ask, exactly in that one case (Procedure § 3). |

| Re-ask per invocation once a ceiling exists. | The ceiling already carried the decision; re-asking is the approval burden this default removed. | Fan out; let on_overrun ask on breach. |

| Forward council convergence to the user as numbered options without a host verdict. | Convergence ≠ correctness; the council never saw the codebase. | Apply the Critical evaluation lens; tag every finding accept / accept-with-modification / reject / needs-input with one-line reason. |

| Reject a finding on preference, not evidence. | "I don't like this" is not a verdict. | Cite the file, line, ADR, or contract that justifies the rejection — or surface as needs-input. |

| Paraphrase council output into the host's own analysis to defend a verdict. | Strips attribution, breaches direct-answers no-invented-facts. | Verdict cites host evidence (file:line); council output stays attributed in the per-member sections. |

Redaction and cost

Both moved verbatim to

CODE0: what the

bundler's redaction pass strips, the cost-awareness rules, the pre-call estimate

format, the stale price-table gate, and the mid-flow overrun callback. A breach

without on_overrun short-circuits the remaining members — surface the partial

result and ask, never retry silently.

Advanced modes

Multi-round debate, the deep-reasoning tier, Karpathy peer-review, thinking-style

advisors, the decision-replay artefact and the Lightweight-QA fast-path moved

verbatim to CODE0. Each

is opt-in and each prices higher than a single round; none is a default.

See also

network, no spend, but no diversity of weights either).

(depth); council is breadth on an artefact, team is one strong model in

the repo. Different mechanism, not a competitor.

system prompts.

resolution.

guard.

contract.

Phase 9 audit trail contract + redaction modes.

calls).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.