# stop decision configuration

> Generated from the typed agent gate registry. Edit the registry, then regenerate.

Website: https://harnlang.com/dev/agent-gates/stop-decision.html

This page documents Harn, which is pre-1.0. Language, standard library, and CLI APIs may change. If the intended version is unclear, clarify before using this page.

---

Generated from the typed agent gate registry. Edit the registry, then regenerate.

Reachability records its evidence; source wiring does not prove runtime efficacy.

| Name | Repo | Default | Readers | Headless reachability and evidence | Verdict | Reason / expiry |
| --- | --- | --- | --- | --- | --- | --- |
| JudgeConfig.cadence | harn | empty object; evaluate every turn when a turn-end condition exists | crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (\_\_agent\_turn\_end\_judge\_stall\_cadence) | unknown: turn\_end.\_\_turn\_end\_judge\_cadence normalizes an absent cadence to an empty dictionary. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.deadline\_reserve\_ms | harn | 5000 for completion checkpoints; absent for other checkpoints | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (\_\_judge\_run\_checkpoint); crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_agent\_loop\_completion\_options) | unknown: judge\_internals.\_\_judge\_run\_checkpoint clamps the completion deadline reserve to at least zero. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.cadence.every | harn | absent; evaluate every turn | crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_judge\_cadence); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (\_\_turn\_end\_judge\_every\_due); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (agent\_stall\_turn\_end\_judge\_due) | unknown: turn\_end.\_\_turn\_end\_judge\_every\_due returns true when every is absent. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.feedback\_fallback | harn | dynamic: observed local fallback ""; normalization may override | crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_judge\_invoke\_structured) | unknown: Static declaration/read only; downstream headless binding not observed. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.goal | harn | absent; use the configured system prompt | crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_judge\_stable\_prefix) | unknown: goal\_judge supplies the typed goal; \_\_judge\_stable\_prefix projects it under recorded completion obligations before rendering. Source review establishes this behavior; downstream headless binding is not inferred. | KEEP-with-expiry | The goal judge needs the typed goal to apply accepted retargets without parsing frozen prompt text. / 2026-10-30 |
| JudgeConfig.max\_invocations | harn | completion judge: catalog completion\_review.max\_judge\_calls, then 5; turn-end judge: absent (unbounded); nonpositive disables the cap | crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_agent\_loop\_completion\_options); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (agent\_turn\_end\_judge\_cap) | unknown: completion\_review.\_\_verify\_completion\_judge\_cap and turn\_end.agent\_turn\_end\_judge\_cap own the two caller defaults. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.cadence.min\_iterations\_before\_first | harn | absent; no warmup delay | crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_judge\_cadence); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (\_\_turn\_end\_judge\_past\_warmup); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (agent\_stall\_turn\_end\_judge\_due) | unknown: turn\_end.\_\_turn\_end\_judge\_past\_warmup returns true when the minimum is absent. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.model | harn | provider catalog judge role; refuse if neither explicit nor catalog model resolves | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (judge-model-key-domain) | unknown: judge\_internals.\_\_judge\_resolve\_model returns no model when both sources are absent. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.operation\_timeout\_ms | harn | 60000 for completion checkpoints; absent for other checkpoints | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (\_\_judge\_run\_checkpoint); crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_agent\_loop\_completion\_options) | unknown: judge\_internals.\_\_judge\_run\_checkpoint clamps the completion operation budget to at least 1 ms. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.provider | harn | runner provider, then provider inferred from the actor model; otherwise absent | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (\_\_judge\_provider\_family); crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (\_\_judge\_run\_checkpoint) | unknown: judge\_internals.\_\_judge\_provider\_family resolves the provider family. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.requirement\_contract | harn | absent; no requirement-specific contract | crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_completion\_boundary\_requirements); crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_judge\_invoke\_structured); crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_judge\_stable\_prefix); crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_agent\_loop\_completion\_options) | unknown: completion\_requirements.\_\_completion\_requirement\_contract\_checked returns nil for absent input or an empty requirements list. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.rubric | harn | inherit the agent rubric, otherwise empty | crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_judge\_stable\_prefix) | unknown: judge.\_\_judge\_stable\_prefix resolves judge\_cfg.rubric then opts.rubric then an empty string. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.system | harn | dynamic: observed local fallback ""; normalization may override | crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_judge\_invoke\_structured) | unknown: Static declaration/read only; downstream headless binding not observed. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.timeout\_ms | harn | inherit runner LLM timeout; completion checkpoints fall back to and cap at the operation budget | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (\_\_judge\_run\_checkpoint); crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_agent\_loop\_completion\_options) | unknown: judge\_internals.\_\_judge\_run\_checkpoint resolves provider timeout separately from the operation deadline. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.cadence.max\_invocations | harn | absent; no cadence invocation cap | crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_judge\_cadence); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (\_\_turn\_end\_judge\_under\_cap); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (agent\_stall\_turn\_end\_judge\_due) | unknown: turn\_end.\_\_turn\_end\_judge\_under\_cap returns true when the cap is absent. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Retain public configuration until its owning normalization and caller contract are reviewed; not classified as an experiment. / 2026-09-13 |
| JudgeConfig.cadence.when | harn | always | crates/harn-stdlib/src/stdlib/agent/options\_validation.harn (\_\_validate\_judge\_cadence); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (\_\_turn\_end\_judge\_when\_due); crates/harn-stdlib/src/stdlib/agent/turn\_end.harn (\_\_agent\_turn\_end\_judge\_stall\_cadence) | unknown: turn\_end.\_\_turn\_end\_judge\_when\_due supplies always when the condition is absent. Source review establishes the fallback; canonical host reachability is not inferred. | KEEP-with-expiry | Explicit configuration consumed by the owning module; retain until the typed runner/stop/stall migration settles this seam. / 2026-09-13 |
| agent\_done\_contract.done\_sentinel | harn | the configured done sentinel | crates/harn-stdlib/src/stdlib/agent/judge.harn (\_\_done\_contract\_primary\_prompt) | unknown: Read by \_\_done\_contract\_primary\_prompt when constructing the actor completion instructions. | DELETE | Replace the prose sentinel completion contract with a typed actor completion packet. / none |
| StepJudgeOptions.max\_attempts | harn | 3 | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_should\_skip) | unknown: \_\_should\_skip bounds configured per-turn critique attempts; no canonical headless activation trace collected. | KEEP-with-expiry | A caller-selected bound on model review attempts. / 2026-09-13 |
| StepJudgeOptions.skip\_when\_iterations\_remaining | harn | 1 | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_should\_skip) | unknown: \_\_should\_skip reserves the remaining runner iterations; no canonical headless activation trace collected. | KEEP-with-expiry | Must be reconciled with the single stop-decision budget during cutover. / 2026-09-13 |
| StepJudgeOptions.skip\_when\_empty | harn | true | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_should\_skip) | unknown: \_\_should\_skip bypasses critique when neither text nor tools were returned. | PROMOTE-TO-DEFAULT | Empty-response recovery belongs to the runner; remove the duplicate model-review branch. / none |
| StepJudgeOptions.skip\_when\_stalled | harn | true | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_should\_skip) | unknown: \_\_should\_skip bypasses critique when a stall warning is already present. | PROMOTE-TO-DEFAULT | The stall handler owns recovery from a detected stall; remove competing review control. / none |
| StepJudgeOptions.rubric | harn | default | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_invoke) | unknown: \_\_invoke supplies rubric content to the review prompt. | KEEP-with-expiry | Rubric content is caller policy, distinct from the review mechanism. / 2026-09-13 |
| StepJudgeOptions.fail\_open\_on\_error | harn | true | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_invoke) | unknown: \_\_invoke distinguishes an unavailable reviewer from a passing review. | KEEP-with-expiry | Replace the boolean with the typed stop-decision policy after failure-path evidence. / 2026-09-13 |
| StepJudgeOptions.feedback\_fallback | harn | The previous response should be revised. | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (\_\_invoke) | unknown: \_\_invoke uses this feedback when the reviewer supplies no critique. | KEEP-with-expiry | Caller-owned feedback wording is policy content. / 2026-09-13 |
| StepJudgeOptions.on\_veto | harn | replace | crates/harn-stdlib/src/stdlib/agent/step\_judge.harn (agent\_step\_judge) | unknown: agent\_step\_judge selects the response to a negative review. | KEEP-with-expiry | Reconcile veto handling with the single typed stop decision during cutover. / 2026-09-13 |
| JudgeConfig.temperature | harn | absent; inherit llm\_options.temperature, then provider default | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (judge-override-key-domain) | unknown: \_\_judge\_apply\_llm\_overrides copies this non-null key from the independently scanned override domain onto the checkpoint request. | KEEP-with-expiry | Per-judge model request policy belongs in the typed stop-decision configuration. / 2026-09-13 |
| JudgeConfig.max\_tokens | harn | absent; inherit llm\_options.max\_tokens, then provider default | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (judge-override-key-domain) | unknown: \_\_judge\_apply\_llm\_overrides copies this non-null key from the independently scanned override domain onto the checkpoint request. | KEEP-with-expiry | Per-judge resource limits belong in the typed stop-decision configuration. / 2026-09-13 |
| JudgeConfig.top\_p | harn | absent; inherit llm\_options.top\_p, then provider default | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (judge-override-key-domain) | unknown: \_\_judge\_apply\_llm\_overrides copies this non-null key from the independently scanned override domain onto the checkpoint request. | KEEP-with-expiry | Per-judge model request policy belongs in the typed stop-decision configuration. / 2026-09-13 |
| JudgeConfig.tool\_format | harn | absent; inherit llm\_options.tool\_format, then normal model request resolution | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (judge-override-key-domain) | unknown: \_\_judge\_apply\_llm\_overrides copies this non-null key from the independently scanned override domain onto the checkpoint request. | KEEP-with-expiry | Preserve model format selection until the typed stop-decision request subsumes this override map. / 2026-09-13 |
| JudgeConfig.effort | harn | absent; inherit llm\_options.effort, then model catalog resolution | crates/harn-stdlib/src/stdlib/agent/judge\_internals.harn (judge-override-key-domain) | unknown: \_\_judge\_apply\_llm\_overrides copies this non-null key from the independently scanned override domain onto the checkpoint request. | KEEP-with-expiry | Per-judge model request policy belongs in the typed stop-decision configuration. / 2026-09-13 |

---

## Read next

- [Runner configuration](https://harnlang.com/dev/agent-gates/runner.md)
- [Stall handler configuration](https://harnlang.com/dev/agent-gates/stall-handler.md)
