Skip to content

About

AI quality method for validating LLM output against predefined criteria. Includes a builder-critic workflow, evidence checks, cost limits and stopping conditions.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Gauntlet Loop

A method for validating AI output against criteria written down before the work starts.

The Gauntlet Loop validates AI output against criteria defined before execution and observable evidence. At its controlled levels, it separates the builder from an independent critic using a fresh context when the environment allows. It compares against a real reference or baseline when one exists; otherwise, it declares the loop exploratory. It replaces "the model says it improved" with "here is the evidence, criterion by criterion."

It ships as an installable skill for Claude and as reusable instructions for ChatGPT and other models, plus the two artifacts the method actually runs on: a loop contract and a scorecard.

Methodology created by Matt Shumer (original post). Skill, templates and supporting material adapted and structured by Israel Degasperi.

Version 1.1.1 · CC BY 4.0 · Versão em português


The problem this solves

Ask a model to improve something and it will report that it improved. Ask again and it improves again. Nothing in that exchange is evidence.

The failure is not that the model lies. It is that nobody defined what "better" meant before the first attempt. Without a standard fixed in advance, every subsequent round is graded against the previous round, and the loop drifts toward whatever the model finds easy to defend. Persistence gets mistaken for quality, and cost has no ceiling.

Most people respond by iterating more. More cycles on an undefined standard produce more confident output, not better output.

The Gauntlet Loop closes that gap with five constraints:

  1. Observable outcome. The deliverable has a defined purpose and a named audience.
  2. Verifiable criteria. Adjectives become checks. "Professional" becomes a test that passes or fails.
  3. A real reference or baseline. When one exists, the work is compared against it, not only against its own previous draft. Without one, the limitation is declared and the loop is exploratory.
  4. Independent critique at controlled depth. Whoever builds does not grade. At Levels 2 and 3, the critic uses a fresh context when the environment allows, without access to the builder's rationale.
  5. An explicit budget and stopping condition. Money, time, tokens or cycles, and a rule that ends the loop.

How this implementation differs

Matt Shumer defined the core: split the goal into parts, give each part a specialist builder and a blind critic, and only pass a candidate if it beats a real-world equivalent. Several implementations of that core exist, most of them prompt generators that produce a system prompt and hand it over.

This one adds the governance layer that decides whether the loop is worth running at all:

  • Cost as a first-class input. The maximum budget is asked in the preflight, before any work, in money, time, tokens or cycles. A loop without a ceiling is not a method, it is an open tab.
  • A stopping condition, stated up front. Beat the reference, pass the tests, hit the metric, exhaust the budget, or marginal improvement below a threshold. The loop does not end when the model runs out of suggestions.
  • Depth proportional to the cost of being wrong. Three levels, with the lightest one as the default. Full ceremony applied to ordinary work is what gets the method abandoned on first use.
  • A permanent contract. A correction given in round three does not silently replace the criteria set before round one. Conflicts are escalated to a human. Amendments that lower the bar after a verdict invalidate the loop.
  • Mandatory self-verification before presentation. The builder walks the full gating list and produces a binary verdict with evidence per criterion. This exists because in a real run the builder twice reported the fixes it applied and omitted the six criteria it broke.
  • Bilingual, versioned, and documented against its own failures. English and Brazilian Portuguese, a changelog that records which defect produced each change, and a documented case study with the per-cycle log, all 14 contract amendments, and five declared limitations. The filled base contract is the one source artifact that was not preserved as a standalone file.

Every one of those additions came from running the method on real work and writing down where it broke.

How it runs

Preflight. Three mandatory questions, before any material work: what do you want to create, what is the quality standard, and what is the maximum cost of the project. Cost can be stated in money, time, tokens, cycles, or a combination. Additional questions are asked only when the answer would materially change execution.

Loop contract. Objective, audience, reference, gating criteria and their evidence, requirements and out-of-scope items, budget, stopping condition, and the milestones that require human approval. The contract is permanent: an instruction given in one round adds to it, it does not replace it. When a new instruction conflicts with the contract, the conflict is escalated to a human rather than resolved by the model.

Decomposition. The deliverable is split into independently improvable parts, each with defined inputs, expected output, local criteria and an inspection method. Small or tightly coupled work is not split just to simulate multiple agents.

Build and critique. The builder self-verifies against the full list of gating criteria before presenting anything, and produces a table with a binary verdict and evidence per criterion. A failed gating criterion blocks the candidate from being presented as ready. At Levels 2 and 3, the critic then evaluates it in a fresh context when the environment allows. When independent agents are unavailable, the limitation is stated.

Ratchet. A new candidate is only accepted if it does not regress on any criterion already passed. Amendments that raise the bar are legitimate. Amendments that lower or remove criteria after a verdict invalidate the loop.

Stop. The loop ends when the stopping condition is met, when the budget is exhausted, or when marginal improvement falls below the threshold. Not when the model runs out of suggestions.

Turning "quality" into evidence

The method refuses vague standards. "Good", "professional", "premium" and "better" are not criteria. They get converted into signals that can be checked by someone who was not in the conversation:

  • passing a test suite
  • performance against a named metric
  • comparison against a specific reference
  • clarity for a defined reader
  • traceable sources
  • screenshots or visual inspection
  • conversion or an expected behavior
  • human approval at a named milestone

Gating criteria are separated from preference criteria. When they conflict, the priority is recorded in the contract.

Three depth levels

Applying maximum ceremony to ordinary work turns the method into bureaucracy and gets it abandoned before the first result. Depth should follow the cost of being wrong, not the ambition of the process.

Level What it includes When to use
1. Essential (default) Objective, up to three gating criteria, one reference, two cycles. No formal contract, no scorecard. Most work.
2. Controlled Full contract, scorecard per cycle, ratchet, explicit budget, critique in a separate context. High-impact deliverables.
3. Organizational Everything above, plus an amendment log, named approval points, and declared risks and limitations. Work that will be audited by a third party.

Install

The installable package, the step-by-step install guide and the case study are hosted on the site:

If you would rather not download anything, everything in this repository is readable as-is. en/skill/SKILL.md is the complete instruction set. Copy it into a project, a custom GPT, or a system prompt.

What is in this repository

README.md              this file
README.pt-br.md        Portuguese version
LICENSE                CC BY 4.0
CITATION.cff           how to cite this work
VERSION                1.1.1
CHANGELOG.md           what changed in each version
CHANGELOG.pt-br.md
.gitignore              excludes ZIP files and operating-system metadata

case-study/            the method run on its own landing page, six cycles
  README.md                    what happened, in English
  scorecard.pt-br.md           per-cycle verdicts and evidence
  contract-amendments.pt-br.md all 14 amendments, with date, reason and effect
  cycle-instructions/          instructions issued for cycles 3 to 6
  evidence/                    screenshots at 390, 768 and 1280 pixels

en/
  skill/SKILL.md               the complete method, as an instruction set
  skill/agents/openai.yaml     configuration for ChatGPT, Codex, API and Atlas
  skill/assets/icon.svg
  templates/loop-contract.md          blank, fill in before starting
  templates/loop-contract-filled.md   worked example
  templates/scorecard.md              blank, log of cycles, verdicts and evidence
  templates/scorecard-filled.md       worked example

pt-br/
  skill/SKILL.md
  skill/agents/openai.yaml
  skill/assets/icon.svg
  templates/contrato-do-loop.md
  templates/contrato-preenchido.md
  templates/scorecard.md
  templates/scorecard-preenchido.md

The installable .zip is not in this repository. The online guides and the narrative case study are published on the site so they can be corrected and expanded without forcing a new download. The raw case record is versioned here in case-study/.

When to downgrade or avoid it

  • Exploratory work with no reference. With nothing real to compare against, the critique loses most of its discriminating power. Declare that limitation and only continue if the exploratory value justifies the cost.
  • Work from zero. Build a baseline or an architecture contract first, then start the loop.
  • Anything where the cost of being wrong is low. Level 1 exists for this. Below that, the loop costs more than the defect.

Questions

How do I know if AI output is actually good? You do not, unless "good" was defined before the model produced anything. The Gauntlet Loop forces that definition into a written contract and then requires evidence against it, criterion by criterion.

What is a builder–critic loop? A pattern where one agent produces a candidate and a second, independent agent evaluates it against fixed criteria. The separation matters: an agent that can see its own reasoning tends to grade that reasoning rather than the output.

How is this different from asking the model to critique itself? Self-critique in the same context inherits the builder's assumptions and its definition of success. At controlled depth, the Gauntlet Loop uses a fresh context when the environment allows, against criteria the critic did not write and, when available, a real reference or baseline.

Do I need two different models? No. At Levels 2 and 3, two separate contexts are enough when the environment supports them. Different models may add diversity because they can fail differently, but they are not required.

How many cycles should I run? As many as the stopping condition and the budget allow. The default at Level 1 is two. More cycles on an undefined standard do not produce a better result.

Does the skill collect data? No. Nothing is transmitted. There is no telemetry of any kind. Logging a completed project is voluntary and happens on the site, not from inside the skill.

Credit and license

Methodology created by Matt Shumer. Skill, templates and supporting material adapted and structured by Israel Degasperi.

Licensed under CC BY 4.0. You may adapt and redistribute, including commercially, as long as you give credit and indicate what changed.

Suggested attribution:

Gauntlet Loop. Methodology created by Matt Shumer. Skill and supporting materials adapted and structured by Israel Degasperi. Available at https://idegasperi.com. Licensed under CC BY 4.0.

About the author

Israel Degasperi works on growth, revenue operations and revenue intelligence, connecting acquisition, CRM, pipeline and sales data for B2B, SaaS and technology companies. He teaches Search Engine Marketing in the Digital Marketing MBA at IPAM, Portugal.

Context article: The Gauntlet Loop has no criteria · Versão em português

About

AI quality method for validating LLM output against predefined criteria. Includes a builder-critic workflow, evidence checks, cost limits and stopping conditions.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Contributors