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-codexto every laterfoundry:challengerdispatch, and never switch the loop to abridge:reviewroute: the peer is out of credits, so another Codex call cannot succeed. - Dispatch no later security-filter review: the challenger ignores
--no-codexfor one, so it would spend a doomed Codex call. Report that reviewblockedwith the quota cause and the options (wait for the quota reset, or the user decides), never PASS. - A
blockedenvelope 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:quotaline 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 thedevelopplugin: 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:setupdelivers this delta only when a foundry-ownedfoundry-quality-gates.mdis already installed, and delivers the plugin's completequality-gates.mdotherwise, 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-invocationcannot 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:fixand/develop:refactorprinted as plain-text next stepsdevelop:debug→ no gate;/develop:fix --diagnosis <file>printed as a plain-text next stepdevelop:plan→ (a) Proceed — print the/develop:feature --plan <file>or/develop:fix --plan <file>handoff line · (b) Revise plan