Skip to content

Quality gates delta

Adversarial Convergence Loop (explicitly invoked)

A request to repeat review and fix until a reviewer reports no findings or no security findings, or to resolve all findings; a second independent review round about to be dispatched for the same change; or a skill workflow repeating its review then fix cycle counts as an explicitly invoked loop from that moment: before the next reviewer dispatch, start ledger; follow _full/adversarial-loop.md (helper output, stop/plateau rules, user's round budget).

For permitted independent review in /develop:review → /develop:fix, /develop:debug root-cause loops, pre-commit review. With the foundry plugin installed, dispatch foundry:challenger via Agent() for a permitted independent pass and use foundry:challenger --codex-full for every loop round, subject to the Codex quota stop below. Use bridge:review only on installs without foundry when the bridge plugin is available. Never use subagent_type: "fork". Give reviewer diff, spec, symptom — never implementation narrative. Challenger round with no deliverable or a blocked envelope = agent failure, never silent not-run: record cause from transcript (safety-classifier stop, refused report write, background stall, malformed envelope, reply truncated before its required closing block), re-dispatch once with brief removing it. Security-filter review: leave Codex on (no --no-codex); challenger runs open-ended bypass search via its Codex cross-check, statically classifies Codex candidates + any caller probe generator, counts reproduced ones in its own six-tier row, never authors bypass strings; no separate Codex row.

Codex quota stop: a challenger reply whose envelope carries "codex_blocked": "quota" means its Codex cross-check stopped on a harness-classified quota-exhausted bridge fault; for the rest of that loop:

  • Pass --no-codex to every later foundry:challenger dispatch, and never switch the loop to a bridge:review route: the peer is out of credits, so another Codex call cannot succeed.
  • Dispatch no later security-filter review: the challenger ignores --no-codex for one, so it would spend a doomed Codex call. Report that review blocked with the quota cause and the options (wait for the quota reset, or the user decides), never PASS.
  • A blocked envelope carrying the key is not re-dispatched, since no brief removes a quota stop.
  • Record the quota stop under the reviewer route limits in loop-report.md.
  • An envelope, when present, decides alone through its top-level "codex_blocked": "quota" key. The ⚠ codex-blocked:quota line counts only when the dispatch demanded no envelope, and only as the first non-blank line under ## Codex Cross-Check, read at the first such heading outside any code fence; other report text never counts.
  • Field absent and no such line → the loop rules apply unchanged.

Shared body lives in foundry-quality-gates.md. This file states only what is specific to the develop plugin: the review-loop scope above and the follow-up-gate routing below. Every other quality-gate obligation — Evidence Grounding, Evidence and real-case acceptance, Adversarial Pass, Confidence Block, Internal Quality Loop, Pre-Handover Check, Link Verification, Report File Format, Reporting Findings — is delivered once by foundry and is not restated here. /develop:setup delivers this delta only when a foundry-owned foundry-quality-gates.md is already installed, and delivers the plugin's complete quality-gates.md otherwise, so a standalone install loses no rule.

Output Routing

Long-output routing (Write, then print: header table, path, executive summary), the conditional follow-up gate and its precedence/follow-through, short-status, copy-intent and no-hollow-question rules are foundry §Output Routing in foundry-quality-gates.md — not restated here. Plugin additions:

  • <branch> in the .temp/output-* filename = $(git branch --show-current 2>/dev/null | tr '/' '-' || echo 'main')
  • Prose paragraphs: no hard line breaks at column width
  • Follow-up gate options: skill-defined; minimum: (a) primary action · (b) skip. A next-step skill with disable-model-invocation cannot be a selectable option — the skill prints it as plain text instead. Canonical examples by skill:
  • develop:review → (a) walk through findings · (b) skip; /develop:fix and /develop:refactor printed as plain-text next steps
  • develop:debug → no gate; /develop:fix --diagnosis <file> printed as a plain-text next step
  • develop:plan → (a) Proceed — print the /develop:feature --plan <file> or /develop:fix --plan <file> handoff line · (b) Revise plan