/grill-each-other:permutationfrom grill-each-other
Ratify the NxN relationship matrix of a fleet — for every ordered pair of agents, confirm what each expects from and provides to the other, and write the result to structured JSON + markdown with an n8n webhook payload for immutable custody. Use when onboarding a new agent into a fleet, when agent roles change, when handoff protocols need explicit confirmation, or when the user says "permutation", "fleet topology", "relationship matrix", "who does what for whom", "ratify fleet relationships", or "NxN agent mapping".
Ships in grill-each-other. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For every ordered pair (A → B) in a fleet, permutation produces a confirmed
relationship entry describing what A expects from B, what B expects from A, and
the workflow contract between them. The result is a complete NxN matrix — the
fleet topology map — ratified by each agent for its own row and written to
JSON, markdown, and an n8n webhook payload for immutable custody.
This is not fleet-ratify (which ratifies an artifact). Permutation ratifies
inter-agent relationships — the edges, not the nodes.
fleet-ratify round, to confirm the who-talks-to-whom
is correctagent-show-and-tell, when you need to crystallize discovered
relationships into a confirmed contractpeer-grill)fleet-ratify)agent-show-and-tell)agent-show-and-tell)The initiator (any agent) creates the permutation state directory and manifest.
permutation init --roster agent-a,agent-b,agent-c [--topic <slug>]
Working directory: .permutation/<topic>/ (default topic: fleet-topology-YYYY-MM-DD).
The initiator writes:
manifest.yaml — roster, topic, initiator, expires_at, statusroster.yaml — identity cards for each agent (facets from agent-show-and-tell)matrix.json — empty NxN structure, ready for each agent's rowmatrix.md — empty human-readable tableIf n8n is configured, the initiator sends an init payload to the n8n webhook:
{
"event": "permutation.init",
"topic": "<topic>",
"roster": ["agent-a", "agent-b", "agent-c"],
"initiated_at": "<ISO8601>",
"initiated_by": "<agent>"
}
Each agent fills its own row of the matrix — the A→B entries for every other agent B. For each pair, the agent writes:
# <agent-a>.row.yaml
from: agent-a
entries:
- to: agent-b
provides: # what A provides TO B
- "CI/CD pipeline status updates"
- "PR review notifications"
expects: # what A expects FROM B
- "Deployment approvals within 2h"
- "Incident escalation handoff"
workflow: # the contract between A and B
trigger: "PR merged to main"
channel: "slack:#deployments"
format: "structured notification"
sla: "2h response for approvals"
confidence: high | medium | low
notes: optional free-text
- to: agent-c
provides: [...]
expects: [...]
workflow: {...}
confidence: ...
Rules:
confidence: low, and add to notes:.provides and expects are promises — they represent what this agent
commits to providing or genuinely needs, not wishful thinking.workflow block is the contract between A and B. It's the
handoff protocol — trigger, channel, format, and SLA.When all agents have written their rows, the merge writer (first alphabetically among agents who submitted rows) cross-checks the matrix:
For each unordered pair {A, B}:
A.row → to: B and B.row → to: Aexpects from B aligns with B's provides to A (and vice versa)The merge writer produces:
cross-check.md — human-readable cross-check results with alignment scorescross-check.json — machine-readable resultsAnd sends a cross-check payload to n8n:
{
"event": "permutation.cross-check",
"topic": "<topic>",
"aligned": 5,
"misaligned": 2,
"gaps": 1,
"pairs": [
{"from": "agent-a", "to": "agent-b", "status": "aligned"},
{"from": "agent-a", "to": "agent-c", "status": "misaligned", "detail": "A expects Slack notifications from C, but C provides email only"}
]
}
Each agent reviews the cross-check for its row. For each pair:
SIGN (the relationship as described matches reality)DISSENT with specifics about what's wrongNOTE with what's missing (e.g., "I didn't know C provides
deployment rollbacks — that's useful, I'll add expecting that")Each agent writes <agent>.ratify.yaml:
agent: agent-a
topic: fleet-topology
timestamp: 2026-05-16T18:00:00Z
decisions:
- pair: [agent-a, agent-b]
verdict: SIGN
- pair: [agent-a, agent-c]
verdict: DISSENT
reason: "C provides email notifications but my workflow expects Slack"
notes: "Need to add rollback expectation from C"
The merge writer tallies ratifications:
SIGN → write ratified-matrix.json and ratified-matrix.md
with the confirmed fleet topologyDISSENT or NOTE → write convergence-gaps.md with the issues,
set status: pending-convergence, ping the humanThe human reviews gaps, decides how to resolve them, and the cycle re-opens for affected pairs only.
On full ratification, the merge writer:
ratified-matrix.json — the canonical NxN matrixratified-matrix.md — human-readable topology mapSHA-256 of ratified-matrix.jsonpermutation.finalize payload to n8n for immutable custody{
"event": "permutation.finalize",
"topic": "<topic>",
"roster": ["agent-a", "agent-b", "agent-c"],
"sha256": "<hash>",
"ratified_at": "<ISO8601>",
"pairs_confirmed": 6,
"artifacts": [
"ratified-matrix.json",
"ratified-matrix.md"
]
}
The n8n payload is immutable custody — it proves the topology was ratified
at a specific point in time, with specific content, by specific agents. This
is the same principle as fleet-ratify's SHA-256 attestation, but for
relationships rather than decisions.
All state lives in .permutation/<topic>/ under the repo root.
| File | Writers | Purpose |
|---|---|---|
manifest.yaml | initiator | roster, topic, expires_at, status |
roster.yaml | initiator (from show-and-tell facets or manual) | identity cards for each agent |
matrix.json | merge writer (assembled from rows) | the NxN matrix being built |
matrix.md | merge writer | human-readable matrix table |
<agent>.row.yaml | only that agent | A's expectations of and provisions to all other agents |
cross-check.md | merge writer | alignment analysis |
cross-check.json | merge writer | machine-readable alignment results |
<agent>.ratify.yaml | only that agent | ratification decisions per pair |
convergence-gaps.md | merge writer | unresolved misalignments for human review |
ratified-matrix.json | merge writer (terminal) | confirmed NxN topology with SHA-256 |
ratified-matrix.md | merge writer (terminal) | human-readable confirmed topology map |
log.md | append-only, all | timestamped event log |
All payloads share a common envelope:
{
"schema": "permutation-v1",
"topic": "<topic>",
"event": "init | discover | cross-check | ratify | converge | finalize | gap | fail",
"timestamp": "<ISO8601 UTC>",
"agent": "<agent-slug>",
"payload": { ... }
}
The webhook URL is read from PERMUTATION_N8N_WEBHOOK env var or
.permutation/<topic>/manifest.yaml n8n_webhook_url field. If neither is set,
n8n payloads are skipped — the protocol still works via filesystem alone.
| Skill | Ratifies | Scope |
|---|---|---|
fleet-ratify | An artifact (document, decision, ADR) | 1 artifact, N agents |
permutation | Inter-agent relationships | NxN pairs, fleet topology |
agent-show-and-tell | Nothing (visibility only) | 1 report per agent, no commitment |
peer-grill | Nothing (reconciliation) | 2 agents, specific state |
A typical fleet coordination flow:
agent-show-and-tell — discover what each agent knows and doespermutation — ratify the relationships discovered in step 1fleet-ratify — ratify any decisions that emerge from the confirmed topology| Mistake | Fix |
|---|---|
| Filling another agent's row | Only write <your-agent>.row.yaml. Other agents fill their own. |
| Writing what you wish B provided instead of what B actually provides | Be honest. Gaps go in notes: with confidence: low. The cross-check catches dishonesty. |
| Skipping the cross-check | The cross-check is how A's "expects" aligns with B's "provides". Without it the matrix is just two unverified wish lists. |
| Ratifying a pair you didn't actually check | Read the other agent's row for that pair before ratifying. |
| Treating ratified-matrix as static forever | Topology changes. Re-run permutation when agents are added, removed, or roles change. |
| Command | Does |
|---|---|
permutation init --roster a,b,c | Create manifest, empty matrix, roster |
permutation discover | Find permutations awaiting your row |
permutation check | Find permutations awaiting your ratification |
permutation cross-check <topic> | Merge writer: run alignment analysis |
permutation tally <topic> | Merge writer: tally ratifications |
The CLI is a convenience wrapper. The protocol — not the CLI — is the contract. If the commands aren't installed, perform each step by hand, writing files directly per the templates.
Templates: templates/. Full fleet-ratification design:
=notes/docs/plans/2026-05-16-fleet-ratification-design.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jar-reis/dancer-a2a --plugin grill-each-other10 skills in this plugin
/agent-show-and-tellEach agent in a local fleet — Claude sessions on different machines, mixed-model agents, or whatever's in play — independently writes a short "what I know and what I'm working on" report to a shared directory. One reader collates them into a roundup. No grilling, no consensus, no merging. Use when you want visibility across a multi-agent fleet, or the user mentions "fleet show and tell", "agent roundup", "what does each agent know", or "round-robin status from the agents"./dialectic-vocabularyReference for the scholastic + Greek vocabulary used in peer-grill and grill-me-agents protocols. Use when an agent needs to know what ELENCHOS, QUAESTIO, SED-CONTRA, RESPONDEO, or ALETHEIA mean as grill-log tags, or when authoring a structured disputation./fleet-ratifyUse when the fleet must formally sign off on an artifact — a converged grill result, a vault doc, an ADR, a convention, or a proposition — and one agent's or a pair's approval is not enough and you need fleet-wide consensus. Use when chaining ratification onto a finished grill, or when a decision needs N-agent attestation or approval with dissent recorded rather than overruled./grill-meInterview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me"./grill-me-agentsInterview the user relentlessly about a multi-agent collaboration design until every role, handoff, and failure mode is resolved. Use when the subject is multi-agent collaboration, subagent orchestration, fleet topology, or agent-roster design — prefer this over `grill-me` whenever multiple agents are involved. Triggers: "grill my agent topology", "grill my multi-agent design", "stress-test agent collaboration", "interrogate the agent roster", "design subagent orchestration". Do NOT use for greenfield non-agent plan grilling (use `grill-me`) or when the agent stack already exists in the codebase and you want to stress-test a change to it (use `grill-me-with-agents`)./grill-me-with-agentsCode-aware variant of grill-me-agents — interrogates a multi-agent design while continuously cross-referencing existing agent definitions, skills, prompts, and tool configs in the repo. Use ONLY when the agent stack is already implemented in the repo and you want to stress-test a *change* to it (versus designing from scratch — use `grill-me-agents` for greenfield). Triggers: "grill the existing agent stack", "stress-test the agent stack", "grill the implemented agents", "audit the agent topology against code". Do NOT use for greenfield agent design (use `grill-me-agents`) or for two agents grilling each other (use `peer-grill`).