{"name":"model-routing","title":"Token-efficient, quality-preserving model routing","description":"Decide which model owns which task and when to escalate: give the cheap tier the legwork, keep planning and final review with the expensive one, and protect the driver's context. Symptoms: do this cheaply, which model should do this, delegate the legwork, we're burning tokens, this is too big for one context, set up / switch / inspect / clear a routing profile.","compatibility":"Agent Skills-compatible harnesses; inventory, profiles, and child dispatch are harness-specific.","allowedTools":"Read Write Grep Glob Bash Agent Workflow","license":"MIT","kind":"signals","useWhen":"choosing which model runs a piece of work, or setting routing up for this repository","group":"workflow","lifecycle":"release","version":"1.0.1","author":"crissmoldovan","install":["npx skills add crissmoldovan/agent-skills --skill model-routing"],"asks":["Show routing. Compare the scoped profile with live bindings and report MATCH,\nMISMATCH, UNBOUND, NOT_ADDRESSABLE, or UNAVAILABLE for each role. Do not write.","Set up routing as \"balanced\". Ask me for exact DRIVER and BUILDER models, and a\nSWEEPER model or explicit degraded mode. Validate the live inventory, preview\nthe changes, and wait for confirmation before applying and saving them.","Use the active routing profile. Define acceptance first. Use deterministic local tools\nfor exact work, BUILDER for bounded implementation with objective checks,\nand DRIVER only for ambiguity, trade-offs, synthesis, and acceptance. Delegate\nonly when the savings exceed dispatch/context overhead. Keep child work visible\nwith agent-lifecycle and independently verify the result.","The current route failed verification. Do not rerun the same prompt. Pass the\nfailure delta, relevant artifacts, attempted checks, and remaining acceptance\ncriteria to the next capable route."],"commands":[],"documents":[{"path":"references/harness-generic.md","slug":"harness-generic","title":"Generic Agent Skills harness adapter","body":"# Generic Agent Skills harness adapter\n\nUse this reference when the harness is Agent Skills-compatible but has no dedicated adapter here. It defines minimum safe behavior; do not invent flags, config locations, or model inventories.\n\n## Discovery\n\n1. Use the harness's documented model-listing mechanism to obtain addressable exact identifiers.\n2. Use documented configuration/session APIs to determine whether profiles can be persisted and scoped.\n3. Determine whether child delegation supports a per-child exact model argument and whether the child model can be observed after launch.\n4. Check and load `agent-lifecycle` before starting children. If absent, offer installation with user approval; do not install it unprompted.\n\nIf discovery is unsupported, report that capability as unavailable rather than guessing.\n\n## Dispatch mapping\n\n- Bind the DRIVER to the user-selected exact model for reasoning and coordination.\n- Start independent BUILDER children in parallel only with disjoint file/task ownership.\n- Start a SWEEPER only for a deterministic, mechanically reviewable request.\n- Carry exact model identifiers in prompts and result reports, while treating harness observation as stronger evidence than self-report.\n\nUse native child-agent UI whenever it is available. Only if it is unavailable may the host render the fallback: when a lifecycle source exists, show one aggregate active display-only todo and individual DISPLAY ONLY child rows with ID, state, activity/tool, and freshness; the lifecycle projection is authoritative and row edits are ignored. When no lifecycle source exists, show no child rows and state exactly `Background work visibility unavailable; state unknown.` On reconnect, reconcile and rebuild these rows from the projection; retain terminal mappings literally (`completed`, `failed`, `cancelled`, `lost`).\n\n## Persistent profiles\n\nIf profiles can persist, implement [profile controls](profile-controls.md): scope, auto-load, live revalidation, explicit confirmation for writes/deletes, and no silent remapping. If they cannot persist, support `use once` and report that setup/switching cannot survive the session.\n\n## Degradation language\n\nUse explicit statements such as “The harness cannot select a separate sweeper model; no SWEEPER is bound,” “This child launch accepts no model argument; selected BUILDER is not dispatched,” or “The harness exposes no post-launch model evidence; model use is unobserved.” Do not call these cases configured, dispatched, or observed merely because a profile contains a requested value.\n","bodyHtml":"<h2 id=\"generic-agent-skills-harness-adapter\">Generic Agent Skills harness adapter</h2>\n<p>Use this reference when the harness is Agent Skills-compatible but has no dedicated adapter here. It defines minimum safe behavior; do not invent flags, config locations, or model inventories.</p>\n<h3 id=\"discovery\">Discovery</h3>\n<ol>\n<li>Use the harness&#39;s documented model-listing mechanism to obtain addressable exact identifiers.</li>\n<li>Use documented configuration/session APIs to determine whether profiles can be persisted and scoped.</li>\n<li>Determine whether child delegation supports a per-child exact model argument and whether the child model can be observed after launch.</li>\n<li>Check and load <code>agent-lifecycle</code> before starting children. If absent, offer installation with user approval; do not install it unprompted.</li>\n</ol>\n<p>If discovery is unsupported, report that capability as unavailable rather than guessing.</p>\n<h3 id=\"dispatch-mapping\">Dispatch mapping</h3>\n<ul>\n<li>Bind the DRIVER to the user-selected exact model for reasoning and coordination.</li>\n<li>Start independent BUILDER children in parallel only with disjoint file/task ownership.</li>\n<li>Start a SWEEPER only for a deterministic, mechanically reviewable request.</li>\n<li>Carry exact model identifiers in prompts and result reports, while treating harness observation as stronger evidence than self-report.</li>\n</ul>\n<p>Use native child-agent UI whenever it is available. Only if it is unavailable may the host render the fallback: when a lifecycle source exists, show one aggregate active display-only todo and individual DISPLAY ONLY child rows with ID, state, activity/tool, and freshness; the lifecycle projection is authoritative and row edits are ignored. When no lifecycle source exists, show no child rows and state exactly <code>Background work visibility unavailable; state unknown.</code> On reconnect, reconcile and rebuild these rows from the projection; retain terminal mappings literally (<code>completed</code>, <code>failed</code>, <code>cancelled</code>, <code>lost</code>).</p>\n<h3 id=\"persistent-profiles\">Persistent profiles</h3>\n<p>If profiles can persist, implement <a href=\"profile-controls.md\">profile controls</a>: scope, auto-load, live revalidation, explicit confirmation for writes/deletes, and no silent remapping. If they cannot persist, support <code>use once</code> and report that setup/switching cannot survive the session.</p>\n<h3 id=\"degradation-language\">Degradation language</h3>\n<p>Use explicit statements such as “The harness cannot select a separate sweeper model; no SWEEPER is bound,” “This child launch accepts no model argument; selected BUILDER is not dispatched,” or “The harness exposes no post-launch model evidence; model use is unobserved.” Do not call these cases configured, dispatched, or observed merely because a profile contains a requested value.</p>\n","words":360},{"path":"references/harness-hermes.md","slug":"harness-hermes","title":"Hermes Agent adapter","body":"# Hermes Agent adapter\n\nHermes Agent configuration and UI evolve independently of this skill. Consult current Hermes Agent documentation and the `hermes-agent` skill before using Hermes-specific commands or claiming a configuration capability.\n\n## Required pre-delegation check\n\nBefore delegating child work, locate and load `agent-lifecycle`. It remains responsible for stable child identity, activity, heartbeats, snapshots/reconciliation, and lifecycle truth. If missing, offer installation and wait for user approval; do not replace it with todos, a task board, or a post-run summary.\n\nPrefer Hermes's native lifecycle/child-agent UI. Only if it is unavailable may a fallback be rendered. If a lifecycle source exists, render one aggregate **active, display-only** todo and individual **DISPLAY ONLY** child rows with child ID, literal state, activity or active tool, and freshness; the normalized lifecycle projection is authoritative and edits to those rows are ignored. If no lifecycle source exists, render no child rows and state exactly `Background work visibility unavailable; state unknown.` On reconnect, obtain reconciliation and rebuild the fallback from the projection. Preserve `completed`, `failed`, `cancelled`, and `lost` as literal terminal mappings; never map them to todo completion or cancellation.\n\n## Model-routing capability and degradation\n\nHermes has two relevant live bindings:\n\n- **DRIVER** uses the session's main model: `model.provider` and `model.default`.\n- **BUILDER** uses Hermes's one delegated-child binding: `delegation.provider` and `delegation.model`. Every delegated child uses this same binding; Hermes does not expose separate child bindings per child or per role.\n- **SWEEPER** has no independently addressable Hermes binding. Fold it into BUILDER (`fold-builder`) or do its work inline with DRIVER (`inline-driver`). Report that role as degraded, including the chosen mode.\n\nDo not state that one child binding prevents distinct DRIVER and BUILDER selection: they are distinct session and delegation controls. Do not claim separately dispatchable child models beyond the single BUILDER binding.\n\nFor display, keep provider and model as separate fields. In particular, do **not** concatenate them into a synthetic `provider/model` identifier: gateway providers such as `routera` can select an exact ID such as `openai/gpt-5.6-terra`, where `routera/openai/gpt-5.6-terra` is false.\n\n## Shipped Hermes routing adapter\n\nThis catalog ships a Hermes-specific adapter layer, not a Hermes profile primitive. When Hermes's native routing UI is not the applicable control surface, use the repository's [`hermes-routing.mjs`](../scripts/hermes-routing.mjs) adapter script. It is catalog adapter tooling that reads and applies the catalog's scoped routing intent through documented Hermes configuration; it does not add a native Hermes profile type or claim a Desktop-core feature. Its command line is [`hermes-routing-cli.mjs`](../scripts/hermes-routing-cli.mjs): `setup`, `show`, `change`, `switch`, `clear` or `reset`, with `--root` naming the profile store and `--home` the Hermes home when they are not the defaults. Every command but `show` changes the Hermes configuration and needs `--confirm`, and `setup`, `change` and `switch` read their JSON from stdin.\n\nUse the script only after checking its documented interface and actual output. The adapter reads `$HERMES_HOME/provider_models_cache.json` safely; it never calls the nonexistent `hermes models list --json` command and never reads credentials. It validates the exact selected model ID across all cached provider catalogs, while preserving the configured provider in its own binding field. This supports gateway providers whose model ID is listed under another cached catalog.\n\nBefore applying host bindings, capture all four host values (`model.provider`, `model.default`, `delegation.provider`, and `delegation.model`) in a receipt. Apply and read back every value; if any write or readback fails, roll back every changed key. A reset restores that receipt and clears active routing intent; it never deletes all saved profiles. Live inventory validation and host binding remain Hermes-adapter responsibilities.\n\nAt session start, auto-load the most-specific matching saved profile, validate exact identifiers against Hermes's cached live inventory, and surface invalid or unsupported bindings before child dispatch. Never silently fall back to the session default.\n\n## Reporting\n\nFor each role, label the outcome selected, configured, dispatched, observed, invalid, or degraded as defined in [profile controls](profile-controls.md). A selected profile value is not proof Hermes sent that model to a child; read live child metadata or lifecycle evidence before claiming observed use.\n","bodyHtml":"<h2 id=\"hermes-agent-adapter\">Hermes Agent adapter</h2>\n<p>Hermes Agent configuration and UI evolve independently of this skill. Consult current Hermes Agent documentation and the <code>hermes-agent</code> skill before using Hermes-specific commands or claiming a configuration capability.</p>\n<h3 id=\"required-pre-delegation-check\">Required pre-delegation check</h3>\n<p>Before delegating child work, locate and load <code>agent-lifecycle</code>. It remains responsible for stable child identity, activity, heartbeats, snapshots/reconciliation, and lifecycle truth. If missing, offer installation and wait for user approval; do not replace it with todos, a task board, or a post-run summary.</p>\n<p>Prefer Hermes&#39;s native lifecycle/child-agent UI. Only if it is unavailable may a fallback be rendered. If a lifecycle source exists, render one aggregate <strong>active, display-only</strong> todo and individual <strong>DISPLAY ONLY</strong> child rows with child ID, literal state, activity or active tool, and freshness; the normalized lifecycle projection is authoritative and edits to those rows are ignored. If no lifecycle source exists, render no child rows and state exactly <code>Background work visibility unavailable; state unknown.</code> On reconnect, obtain reconciliation and rebuild the fallback from the projection. Preserve <code>completed</code>, <code>failed</code>, <code>cancelled</code>, and <code>lost</code> as literal terminal mappings; never map them to todo completion or cancellation.</p>\n<h3 id=\"model-routing-capability-and-degradation\">Model-routing capability and degradation</h3>\n<p>Hermes has two relevant live bindings:</p>\n<ul>\n<li><strong>DRIVER</strong> uses the session&#39;s main model: <code>model.provider</code> and <code>model.default</code>.</li>\n<li><strong>BUILDER</strong> uses Hermes&#39;s one delegated-child binding: <code>delegation.provider</code> and <code>delegation.model</code>. Every delegated child uses this same binding; Hermes does not expose separate child bindings per child or per role.</li>\n<li><strong>SWEEPER</strong> has no independently addressable Hermes binding. Fold it into BUILDER (<code>fold-builder</code>) or do its work inline with DRIVER (<code>inline-driver</code>). Report that role as degraded, including the chosen mode.</li>\n</ul>\n<p>Do not state that one child binding prevents distinct DRIVER and BUILDER selection: they are distinct session and delegation controls. Do not claim separately dispatchable child models beyond the single BUILDER binding.</p>\n<p>For display, keep provider and model as separate fields. In particular, do <strong>not</strong> concatenate them into a synthetic <code>provider/model</code> identifier: gateway providers such as <code>routera</code> can select an exact ID such as <code>openai/gpt-5.6-terra</code>, where <code>routera/openai/gpt-5.6-terra</code> is false.</p>\n<h3 id=\"shipped-hermes-routing-adapter\">Shipped Hermes routing adapter</h3>\n<p>This catalog ships a Hermes-specific adapter layer, not a Hermes profile primitive. When Hermes&#39;s native routing UI is not the applicable control surface, use the repository&#39;s <a href=\"../scripts/hermes-routing.mjs\"><code>hermes-routing.mjs</code></a> adapter script. It is catalog adapter tooling that reads and applies the catalog&#39;s scoped routing intent through documented Hermes configuration; it does not add a native Hermes profile type or claim a Desktop-core feature. Its command line is <a href=\"../scripts/hermes-routing-cli.mjs\"><code>hermes-routing-cli.mjs</code></a>: <code>setup</code>, <code>show</code>, <code>change</code>, <code>switch</code>, <code>clear</code> or <code>reset</code>, with <code>--root</code> naming the profile store and <code>--home</code> the Hermes home when they are not the defaults. Every command but <code>show</code> changes the Hermes configuration and needs <code>--confirm</code>, and <code>setup</code>, <code>change</code> and <code>switch</code> read their JSON from stdin.</p>\n<p>Use the script only after checking its documented interface and actual output. The adapter reads <code>$HERMES_HOME/provider_models_cache.json</code> safely; it never calls the nonexistent <code>hermes models list --json</code> command and never reads credentials. It validates the exact selected model ID across all cached provider catalogs, while preserving the configured provider in its own binding field. This supports gateway providers whose model ID is listed under another cached catalog.</p>\n<p>Before applying host bindings, capture all four host values (<code>model.provider</code>, <code>model.default</code>, <code>delegation.provider</code>, and <code>delegation.model</code>) in a receipt. Apply and read back every value; if any write or readback fails, roll back every changed key. A reset restores that receipt and clears active routing intent; it never deletes all saved profiles. Live inventory validation and host binding remain Hermes-adapter responsibilities.</p>\n<p>At session start, auto-load the most-specific matching saved profile, validate exact identifiers against Hermes&#39;s cached live inventory, and surface invalid or unsupported bindings before child dispatch. Never silently fall back to the session default.</p>\n<h3 id=\"reporting\">Reporting</h3>\n<p>For each role, label the outcome selected, configured, dispatched, observed, invalid, or degraded as defined in <a href=\"profile-controls.md\">profile controls</a>. A selected profile value is not proof Hermes sent that model to a child; read live child metadata or lifecycle evidence before claiming observed use.</p>\n","words":651},{"path":"references/profile-controls.md","slug":"profile-controls","title":"Routing profile controls","body":"# Routing profile controls\n\nThis reference defines user-facing intent. Harness adapters may vary in syntax, but must preserve these effects and report exact model identifiers without normalization.\n\n## Commands and effects\n\n| User intent | Required behavior |\n|---|---|\n| **setup** | Inventory addressable models, collect exact role selections, show the resulting profile, validate, then save/apply only after confirmation. |\n| **show** | Read the active profile and live harness bindings; show profile scope, exact identifiers, provenance, and disagreements. It writes nothing. |\n| **change** | Change named role(s) in the active profile after validating each exact identifier; show unchanged roles and request confirmation before writing. |\n| **switch** | Load a named saved profile, validate all bindings against the live inventory, show the complete table, then apply after confirmation. Never remap missing models. |\n| **clear intent** | Remove only the active session's routing intent. Preserve saved profiles and harness defaults. |\n| **reset** | Ask whether the user means clear active intent or restore the host's pre-apply routing configuration from its recorded receipt and clear active intent. State the exact effect before mutation. Reset never deletes all saved profiles. |\n| **delete** | Delete the explicitly named saved profile after confirmation. Do not delete a profile merely because it fails validation. |\n| **use once** | Validate and apply bindings to the current request/session only. Do not save or alter auto-load behavior. |\n\n## Scopes and auto-load\n\nA saved profile must name a scope such as a user, workspace, repository, or harness-defined project. On later sessions in that scope, the adapter must locate the most-specific applicable saved profile, load it before delegation, validate every identifier against live inventory, show invalid/missing entries, and refuse silent substitution or dispatch through an invalid role.\n\nThe portable profile-store root defaults to `~/.agents`. For Hermes, resolve the\nactive profile home first, then use:\n\n- `harness`: `hermes`\n- `scope.kind`: `hermes-home`\n- `scope.id`: the active Hermes profile name (`default` for the default home)\n- `scope.home`: the resolved `$HERMES_HOME` as diagnostic metadata\n\nRun `skills/model-routing/scripts/profile-store-cli.mjs show` with those exact\nvalues before concluding that no profile exists. The resulting store is under\n`~/.agents/model-routing/<derived-scope-key>/profile-v2.json`; do not search only\nthe legacy `~/.agents/model-routing-tiers.yaml` path.\n\nIf no scoped profile exists, ask for exact selections or offer a one-off run. Harness defaults may be shown as context but must not be converted into a profile without user confirmation.\n\n## Profile-store scripts\n\nThe catalog ships scoped-intent helpers at these repository-relative paths:\n\n- `skills/model-routing/scripts/profile-store.mjs`\n- `skills/model-routing/scripts/profile-store-cli.mjs`\n\nThe store and CLI manage profile records and return mutation receipts. A harness adapter must capture\nthe host's prior routing values before applying a profile, retain that host receipt, and use it for\nreset restoration. The helpers do not validate a live model inventory or replace a host's native\nUI; do not claim either until actual adapter output has been read.\n\n## Minimum profile record\n\n```yaml\nname: <profile-name>\nscope: <harness-defined scope>\nroles:\n  driver: <exact model identifier>\n  builders: [<exact model identifier>]\n  sweeper: <exact model identifier or omitted>\n```\n\nAn adapter may add provenance or timestamps, but it must not replace exact identifiers with display names. Omit the sweeper rather than inventing one when it cannot be separately addressed.\n\n## Validation outcomes\n\nReport one outcome per role: **selected** (user chose it), **configured** (adapter persisted/applied it), **dispatched** (a child started with it), **observed** (harness evidence confirms use), **invalid** (absent from live inventory), or **degraded** (role cannot be addressed independently). A dry run may establish validation only; it does not establish dispatched or observed model use.\n","bodyHtml":"<h2 id=\"routing-profile-controls\">Routing profile controls</h2>\n<p>This reference defines user-facing intent. Harness adapters may vary in syntax, but must preserve these effects and report exact model identifiers without normalization.</p>\n<h3 id=\"commands-and-effects\">Commands and effects</h3>\n<table>\n<thead>\n<tr>\n<th>User intent</th>\n<th>Required behavior</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>setup</strong></td>\n<td>Inventory addressable models, collect exact role selections, show the resulting profile, validate, then save/apply only after confirmation.</td>\n</tr>\n<tr>\n<td><strong>show</strong></td>\n<td>Read the active profile and live harness bindings; show profile scope, exact identifiers, provenance, and disagreements. It writes nothing.</td>\n</tr>\n<tr>\n<td><strong>change</strong></td>\n<td>Change named role(s) in the active profile after validating each exact identifier; show unchanged roles and request confirmation before writing.</td>\n</tr>\n<tr>\n<td><strong>switch</strong></td>\n<td>Load a named saved profile, validate all bindings against the live inventory, show the complete table, then apply after confirmation. Never remap missing models.</td>\n</tr>\n<tr>\n<td><strong>clear intent</strong></td>\n<td>Remove only the active session&#39;s routing intent. Preserve saved profiles and harness defaults.</td>\n</tr>\n<tr>\n<td><strong>reset</strong></td>\n<td>Ask whether the user means clear active intent or restore the host&#39;s pre-apply routing configuration from its recorded receipt and clear active intent. State the exact effect before mutation. Reset never deletes all saved profiles.</td>\n</tr>\n<tr>\n<td><strong>delete</strong></td>\n<td>Delete the explicitly named saved profile after confirmation. Do not delete a profile merely because it fails validation.</td>\n</tr>\n<tr>\n<td><strong>use once</strong></td>\n<td>Validate and apply bindings to the current request/session only. Do not save or alter auto-load behavior.</td>\n</tr>\n</tbody></table>\n<h3 id=\"scopes-and-auto-load\">Scopes and auto-load</h3>\n<p>A saved profile must name a scope such as a user, workspace, repository, or harness-defined project. On later sessions in that scope, the adapter must locate the most-specific applicable saved profile, load it before delegation, validate every identifier against live inventory, show invalid/missing entries, and refuse silent substitution or dispatch through an invalid role.</p>\n<p>The portable profile-store root defaults to <code>~/.agents</code>. For Hermes, resolve the\nactive profile home first, then use:</p>\n<ul>\n<li><code>harness</code>: <code>hermes</code></li>\n<li><code>scope.kind</code>: <code>hermes-home</code></li>\n<li><code>scope.id</code>: the active Hermes profile name (<code>default</code> for the default home)</li>\n<li><code>scope.home</code>: the resolved <code>$HERMES_HOME</code> as diagnostic metadata</li>\n</ul>\n<p>Run <code>skills/model-routing/scripts/profile-store-cli.mjs show</code> with those exact\nvalues before concluding that no profile exists. The resulting store is under\n<code>~/.agents/model-routing/&lt;derived-scope-key&gt;/profile-v2.json</code>; do not search only\nthe legacy <code>~/.agents/model-routing-tiers.yaml</code> path.</p>\n<p>If no scoped profile exists, ask for exact selections or offer a one-off run. Harness defaults may be shown as context but must not be converted into a profile without user confirmation.</p>\n<h3 id=\"profile-store-scripts\">Profile-store scripts</h3>\n<p>The catalog ships scoped-intent helpers at these repository-relative paths:</p>\n<ul>\n<li><code>skills/model-routing/scripts/profile-store.mjs</code></li>\n<li><code>skills/model-routing/scripts/profile-store-cli.mjs</code></li>\n</ul>\n<p>The store and CLI manage profile records and return mutation receipts. A harness adapter must capture\nthe host&#39;s prior routing values before applying a profile, retain that host receipt, and use it for\nreset restoration. The helpers do not validate a live model inventory or replace a host&#39;s native\nUI; do not claim either until actual adapter output has been read.</p>\n<h3 id=\"minimum-profile-record\">Minimum profile record</h3>\n<pre><code class=\"language-yaml\">name: &lt;profile-name&gt;\nscope: &lt;harness-defined scope&gt;\nroles:\n  driver: &lt;exact model identifier&gt;\n  builders: [&lt;exact model identifier&gt;]\n  sweeper: &lt;exact model identifier or omitted&gt;\n</code></pre>\n<p>An adapter may add provenance or timestamps, but it must not replace exact identifiers with display names. Omit the sweeper rather than inventing one when it cannot be separately addressed.</p>\n<h3 id=\"validation-outcomes\">Validation outcomes</h3>\n<p>Report one outcome per role: <strong>selected</strong> (user chose it), <strong>configured</strong> (adapter persisted/applied it), <strong>dispatched</strong> (a child started with it), <strong>observed</strong> (harness evidence confirms use), <strong>invalid</strong> (absent from live inventory), or <strong>degraded</strong> (role cannot be addressed independently). A dry run may establish validation only; it does not establish dispatched or observed model use.</p>\n","words":583},{"path":"references/routing-policy.md","slug":"routing-policy","title":"Token-efficient, quality-preserving routing policy","body":"# Token-efficient, quality-preserving routing policy\n\n## Objective\n\nComplete the accepted work with the fewest model tokens and the least DRIVER-context growth that still satisfies the acceptance criteria. Profiles preserve approved exact bindings; they are a mechanism, not the goal.\n\nA route is successful only when its output passes the required verification. Fewer tokens with lower acceptance quality is a failed optimization.\n\n## Routing order\n\nUse the lowest-cost route that can own the work completely:\n\n1. **Deterministic local tool** — exact transformations, formatting, extraction, filtering, counting, validation, and builds that need no language-model judgment.\n2. **SWEEPER** — bounded language work whose correct result is mechanically checkable and needs no judgment.\n3. **BUILDER** — implementation, debugging, research, or review that needs bounded judgment and has objective acceptance criteria.\n4. **DRIVER** — ambiguity, scope, trade-offs, architecture, safety decisions, conflict resolution, final synthesis, and acceptance.\n\nLength alone never promotes a task to DRIVER. Apparent repetition never demotes an ambiguous task to SWEEPER.\n\n## Delegation threshold\n\nDo not delegate when dispatch, context packaging, and reconciliation cost more than doing the small task inline with deterministic tools. Prefer one coherent owner over a fan-out.\n\nDecompose only when at least one is true:\n\n- independent work can run concurrently with a meaningful wall-time benefit;\n- moving implementation detail out of DRIVER context materially reduces context growth;\n- a bounded specialist task can use a less expensive configured model without lowering the acceptance standard.\n\nParallel children require disjoint write ownership, non-overlapping questions, no unresolved decision dependency, and separate acceptance checks. Never ask several children the same broad question unless independent redundancy is itself the planned quality control.\n\n## Minimum context package\n\nEach child receives only:\n\n```text\nGoal: one outcome sentence\nRole: BUILDER or SWEEPER\nOwnership: exact paths, data partition, or question boundary\nInputs: source-of-truth paths/URLs and only necessary excerpts\nConstraints: immutable decisions, safety limits, allowed tools\nAcceptance: executable checks or exact predicates\nStop: ambiguity, missing input, ownership conflict, or exhausted budget\nReturn: status, artifacts/changed paths, verification, blocker/next decision\n```\n\nReference source files and plans instead of pasting them. Do not forward the whole conversation, repository, logs, or prior transcripts. Reuse verified artifacts by path or stable source ID. Child results must be decision-ready and bounded; include full logs only when they are necessary failure evidence.\n\n## Escalation and retry\n\nEscalate on evidence, not on a task label:\n\n- a SWEEPER encounters ambiguity or cannot verify the mechanical result;\n- a BUILDER cannot meet an acceptance criterion with the assigned scope/model;\n- verification fails because reasoning or quality is insufficient;\n- findings conflict materially;\n- the task needs an unassigned shared-file or product/safety decision.\n\nNever blindly retry the same prompt. A transient execution failure permits one bounded retry. Otherwise change the tactic or escalate. Pass the next owner only the failure delta, relevant artifacts, attempted checks, and remaining acceptance criteria so discovery is not repeated.\n\n## Verification economy\n\nUse the cheapest decisive evidence first:\n\n1. deterministic syntax/schema checks;\n2. focused tests for the changed surface;\n3. integration/full-suite checks at phase boundaries or when blast radius requires them;\n4. DRIVER acceptance and synthesis.\n\nA child completion message is evidence, not proof. The DRIVER independently verifies phase and final acceptance boundaries. Keep successful command output summarized; preserve the exact failure evidence needed to diagnose a failure.\n\n## Quality and efficiency checks\n\nA routed run is acceptable only when:\n\n- every task has one accountable owner and an objective acceptance criterion;\n- expensive DRIVER tokens are concentrated on judgment and synthesis;\n- deterministic work did not consume model tokens unnecessarily;\n- parallel prompts do not duplicate source context or work;\n- low-cost attempts stop promptly at escalation triggers;\n- accepted outputs have fresh verification evidence;\n- selected, configured, dispatched, and observed model facts remain distinct.\n\nUseful evaluation metrics are total model tokens per accepted outcome, duplicate-context ratio, dispatch-overhead ratio, acceptance yield, and independently verified acceptance rate. Token reduction must not reduce acceptance yield or verification coverage.\n","bodyHtml":"<h2 id=\"token-efficient-quality-preserving-routing-policy\">Token-efficient, quality-preserving routing policy</h2>\n<h3 id=\"objective\">Objective</h3>\n<p>Complete the accepted work with the fewest model tokens and the least DRIVER-context growth that still satisfies the acceptance criteria. Profiles preserve approved exact bindings; they are a mechanism, not the goal.</p>\n<p>A route is successful only when its output passes the required verification. Fewer tokens with lower acceptance quality is a failed optimization.</p>\n<h3 id=\"routing-order\">Routing order</h3>\n<p>Use the lowest-cost route that can own the work completely:</p>\n<ol>\n<li><strong>Deterministic local tool</strong> — exact transformations, formatting, extraction, filtering, counting, validation, and builds that need no language-model judgment.</li>\n<li><strong>SWEEPER</strong> — bounded language work whose correct result is mechanically checkable and needs no judgment.</li>\n<li><strong>BUILDER</strong> — implementation, debugging, research, or review that needs bounded judgment and has objective acceptance criteria.</li>\n<li><strong>DRIVER</strong> — ambiguity, scope, trade-offs, architecture, safety decisions, conflict resolution, final synthesis, and acceptance.</li>\n</ol>\n<p>Length alone never promotes a task to DRIVER. Apparent repetition never demotes an ambiguous task to SWEEPER.</p>\n<h3 id=\"delegation-threshold\">Delegation threshold</h3>\n<p>Do not delegate when dispatch, context packaging, and reconciliation cost more than doing the small task inline with deterministic tools. Prefer one coherent owner over a fan-out.</p>\n<p>Decompose only when at least one is true:</p>\n<ul>\n<li>independent work can run concurrently with a meaningful wall-time benefit;</li>\n<li>moving implementation detail out of DRIVER context materially reduces context growth;</li>\n<li>a bounded specialist task can use a less expensive configured model without lowering the acceptance standard.</li>\n</ul>\n<p>Parallel children require disjoint write ownership, non-overlapping questions, no unresolved decision dependency, and separate acceptance checks. Never ask several children the same broad question unless independent redundancy is itself the planned quality control.</p>\n<h3 id=\"minimum-context-package\">Minimum context package</h3>\n<p>Each child receives only:</p>\n<pre><code class=\"language-text\">Goal: one outcome sentence\nRole: BUILDER or SWEEPER\nOwnership: exact paths, data partition, or question boundary\nInputs: source-of-truth paths/URLs and only necessary excerpts\nConstraints: immutable decisions, safety limits, allowed tools\nAcceptance: executable checks or exact predicates\nStop: ambiguity, missing input, ownership conflict, or exhausted budget\nReturn: status, artifacts/changed paths, verification, blocker/next decision\n</code></pre>\n<p>Reference source files and plans instead of pasting them. Do not forward the whole conversation, repository, logs, or prior transcripts. Reuse verified artifacts by path or stable source ID. Child results must be decision-ready and bounded; include full logs only when they are necessary failure evidence.</p>\n<h3 id=\"escalation-and-retry\">Escalation and retry</h3>\n<p>Escalate on evidence, not on a task label:</p>\n<ul>\n<li>a SWEEPER encounters ambiguity or cannot verify the mechanical result;</li>\n<li>a BUILDER cannot meet an acceptance criterion with the assigned scope/model;</li>\n<li>verification fails because reasoning or quality is insufficient;</li>\n<li>findings conflict materially;</li>\n<li>the task needs an unassigned shared-file or product/safety decision.</li>\n</ul>\n<p>Never blindly retry the same prompt. A transient execution failure permits one bounded retry. Otherwise change the tactic or escalate. Pass the next owner only the failure delta, relevant artifacts, attempted checks, and remaining acceptance criteria so discovery is not repeated.</p>\n<h3 id=\"verification-economy\">Verification economy</h3>\n<p>Use the cheapest decisive evidence first:</p>\n<ol>\n<li>deterministic syntax/schema checks;</li>\n<li>focused tests for the changed surface;</li>\n<li>integration/full-suite checks at phase boundaries or when blast radius requires them;</li>\n<li>DRIVER acceptance and synthesis.</li>\n</ol>\n<p>A child completion message is evidence, not proof. The DRIVER independently verifies phase and final acceptance boundaries. Keep successful command output summarized; preserve the exact failure evidence needed to diagnose a failure.</p>\n<h3 id=\"quality-and-efficiency-checks\">Quality and efficiency checks</h3>\n<p>A routed run is acceptable only when:</p>\n<ul>\n<li>every task has one accountable owner and an objective acceptance criterion;</li>\n<li>expensive DRIVER tokens are concentrated on judgment and synthesis;</li>\n<li>deterministic work did not consume model tokens unnecessarily;</li>\n<li>parallel prompts do not duplicate source context or work;</li>\n<li>low-cost attempts stop promptly at escalation triggers;</li>\n<li>accepted outputs have fresh verification evidence;</li>\n<li>selected, configured, dispatched, and observed model facts remain distinct.</li>\n</ul>\n<p>Useful evaluation metrics are total model tokens per accepted outcome, duplicate-context ratio, dispatch-overhead ratio, acceptance yield, and independently verified acceptance rate. Token reduction must not reduce acceptance yield or verification coverage.</p>\n","words":654}],"body":"# Token-efficient, quality-preserving model routing\n\nComplete work with the fewest model tokens and least DRIVER-context growth that\nstill meets the acceptance criteria. Route each task to the least expensive\nconfigured model that can own it completely, and escalate only when evidence\nshows that route cannot meet quality. Profiles and exact identifiers preserve\napproved bindings; they are mechanisms, not the product goal.\n\nFable/Opus/Haiku and Sol/Terra/Luna are illustrative names, not defaults or tiers. Never infer a model from one of those examples, a provider, a nickname, or a harness default.\n\n## When to Use\n\n- Work can be decomposed so expensive-model reasoning is reserved for judgment,\n  synthesis, and acceptance.\n- Delegated research, implementation, review, or mechanical processing would\n  otherwise inflate DRIVER context or use a stronger model than necessary.\n- A user asks to set up, inspect, change, switch, clear, reset, delete, or use a\n  routing profile.\n\nDon't delegate a task whose context-packaging and reconciliation overhead exceeds\nthe likely savings. Do not optimize token count by weakening acceptance or\nverification. Do not use a sweeper for interpretation, quality judgment, or\ntaste.\n\nRead [the routing policy](references/routing-policy.md) before planning a routed\nrun. Its local-tool-first, decomposition, context-bound, escalation, retry, and\nverification rules are normative.\n\n## Roles\n\n| Role | Assignment rule | Owns |\n|---|---|---|\n| **DRIVER** | Strongest approved model; use only where marginal reasoning quality matters. | Ambiguity, scope, trade-offs, architecture, orchestration, synthesis, acceptance, and user communication. |\n| **BUILDER** | Least-cost approved model that can meet bounded substantive acceptance criteria. | Implementation, research, tests, debugging, and implementation-level review. |\n| **SWEEPER** | Least-cost approved model for mechanically verifiable language work. | Only bounded zero-judgment transforms when deterministic local tools are insufficient. |\n\nPrefer deterministic local tools before any model for exact transformations,\nformatting, extraction, filtering, counting, and validation. A task moves upward\nonly when evidence shows the lower route cannot meet acceptance: local tool →\nSWEEPER → BUILDER → DRIVER.\n\n## Prerequisites\n\n1. Read [profile controls](references/profile-controls.md) and the reference for the active harness. **Complete when:** the profile command, persistence location, and supported role bindings are known for that harness.\n2. Inventory models the harness can address now. Record each identifier literally. **Complete when:** every proposed binding names an identifier that the harness reports, not a guessed vendor label.\n3. Before child delegation, check for and load the `agent-lifecycle` skill. If it is unavailable, offer to install it and wait for user approval before installation. Do not substitute a todo list for lifecycle evidence. **Complete when:** lifecycle authority and its visible surface are known, or the user has declined installation and the resulting visibility limitation is explicit.\n\n## Procedure\n\n1. **Set the acceptance standard.** State the required output, decisive checks, and\n   judgment/blast radius. **Complete when:** cost cannot be reduced by silently\n   reducing required quality.\n2. **Choose the lowest viable route.** Use deterministic tools first; otherwise\n   classify SWEEPER, BUILDER, or DRIVER by judgment required. **Complete when:**\n   each task has one owner and a reason the cheaper route is insufficient.\n3. **Resolve bindings only as needed.** Reuse and validate a matching scoped\n   profile. Enter profile setup/control mode only when requested or when a needed\n   binding is absent/invalid. **Complete when:** no setup ceremony is repeated\n   for an already valid profile.\n4. **Package minimum context.** Give children source paths, immutable decisions,\n   ownership, acceptance checks, stop conditions, and a bounded result contract;\n   never paste whole conversations/logs/plans. **Complete when:** the child can\n   work from source without receiving unrelated context.\n5. **Decompose only when savings exceed overhead.** Prefer one coherent owner.\n   Parallelize only independent, disjoint work with non-overlapping questions.\n   **Complete when:** no fan-out duplicates source reading, output, or ownership.\n6. **Escalate on evidence.** Stop at ambiguity, failed acceptance, quality risk,\n   or ownership conflict. Retry once only for a transient execution failure;\n   otherwise pass the failure delta/artifacts to a stronger route. **Complete\n   when:** no blind retry repeats full discovery/context.\n7. **Verify economically.** Run deterministic/focused checks first and broader\n   checks at risk or phase boundaries; DRIVER independently accepts the result.\n   **Complete when:** accepted output has fresh evidence and concise reporting.\n8. **Expose lifecycle truth.** Load `agent-lifecycle` for child delegation and\n   prefer native child UI; use its display-only fallback only when needed.\n   **Complete when:** visible state comes from lifecycle evidence, not task guesses.\n\n## Usage Examples\n\n### Show the active route\n\n```text\nShow routing. Compare the scoped profile with live bindings and report MATCH,\nMISMATCH, UNBOUND, NOT_ADDRESSABLE, or UNAVAILABLE for each role. Do not write.\n```\n\n### Set up a reusable profile\n\n```text\nSet up routing as \"balanced\". Ask me for exact DRIVER and BUILDER models, and a\nSWEEPER model or explicit degraded mode. Validate the live inventory, preview\nthe changes, and wait for confirmation before applying and saving them.\n```\n\n### Route a task efficiently\n\n```text\nUse the active routing profile. Define acceptance first. Use deterministic local tools\nfor exact work, BUILDER for bounded implementation with objective checks,\nand DRIVER only for ambiguity, trade-offs, synthesis, and acceptance. Delegate\nonly when the savings exceed dispatch/context overhead. Keep child work visible\nwith agent-lifecycle and independently verify the result.\n```\n\n### Escalate without repeating discovery\n\n```text\nThe current route failed verification. Do not rerun the same prompt. Pass the\nfailure delta, relevant artifacts, attempted checks, and remaining acceptance\ncriteria to the next capable route.\n```\n\n## Harness References\n\n| Harness | Reference |\n|---|---|\n| Hermes Agent | [references/harness-hermes.md](references/harness-hermes.md) |\n| Generic Agent Skills harness | [references/harness-generic.md](references/harness-generic.md) |\n| User command semantics and profile scripts | [references/profile-controls.md](references/profile-controls.md) |\n| Token/quality routing policy | [references/routing-policy.md](references/routing-policy.md) |\n\n## Pitfalls\n\n- A configured harness default is not a user-selected routing profile.\n- A saved profile is not valid forever: model inventory can change, so validate at auto-load and before dispatch.\n- “Cheapest” applies only after the user has selected an exact sweeper model; it never authorizes an agent to pick an unapproved model.\n- Parallelism does not permit concurrent edits to shared files, manifests, or acceptance criteria.\n- Fan-out can spend more tokens than it saves; parallelize only independent work\n  whose wall-time or context benefit exceeds dispatch/reconciliation overhead.\n- Never send complete conversations, repositories, plans, or raw logs to every\n  child. Pass source references and bounded evidence.\n- Never blindly retry the same prompt. Preserve artifacts and escalate on the\n  failure delta.\n- A native task display is not lifecycle authority; a todo fallback is weaker still.\n- Never claim separate role models when the harness can run only one child model.\n\n## Verification\n\n- [ ] Every bound role has a literal exact identifier from the live inventory.\n- [ ] The DRIVER is the strongest model explicitly selected by the user for important reasoning.\n- [ ] Builder work is substantive and independent work is parallel only when ownership is disjoint.\n- [ ] Sweeper work is mechanically specified and contains zero judgment.\n- [ ] Deterministic local tools were preferred where no model judgment was needed.\n- [ ] Child context/results are bounded and do not duplicate broad source material.\n- [ ] Escalations follow failed evidence/ambiguity; no blind retry repeated discovery.\n- [ ] Token reduction did not weaken acceptance criteria or fresh verification.\n- [ ] The active scoped profile auto-load behavior and revalidation outcome are shown.\n- [ ] `agent-lifecycle` was loaded before child delegation, or its absence and approved installation decision are recorded.\n- [ ] Native lifecycle UI is used when present; otherwise the todo fallback is labelled non-authoritative.\n- [ ] Any harness limitation is reported as a degradation, not presented as a successful binding.\n","bodyHtml":"<h2 id=\"token-efficient-quality-preserving-model-routing\">Token-efficient, quality-preserving model routing</h2>\n<p>Complete work with the fewest model tokens and least DRIVER-context growth that\nstill meets the acceptance criteria. Route each task to the least expensive\nconfigured model that can own it completely, and escalate only when evidence\nshows that route cannot meet quality. Profiles and exact identifiers preserve\napproved bindings; they are mechanisms, not the product goal.</p>\n<p>Fable/Opus/Haiku and Sol/Terra/Luna are illustrative names, not defaults or tiers. Never infer a model from one of those examples, a provider, a nickname, or a harness default.</p>\n<h3 id=\"when-to-use\">When to Use</h3>\n<ul>\n<li>Work can be decomposed so expensive-model reasoning is reserved for judgment,\nsynthesis, and acceptance.</li>\n<li>Delegated research, implementation, review, or mechanical processing would\notherwise inflate DRIVER context or use a stronger model than necessary.</li>\n<li>A user asks to set up, inspect, change, switch, clear, reset, delete, or use a\nrouting profile.</li>\n</ul>\n<p>Don&#39;t delegate a task whose context-packaging and reconciliation overhead exceeds\nthe likely savings. Do not optimize token count by weakening acceptance or\nverification. Do not use a sweeper for interpretation, quality judgment, or\ntaste.</p>\n<p>Read <a href=\"references/routing-policy.md\">the routing policy</a> before planning a routed\nrun. Its local-tool-first, decomposition, context-bound, escalation, retry, and\nverification rules are normative.</p>\n<h3 id=\"roles\">Roles</h3>\n<table>\n<thead>\n<tr>\n<th>Role</th>\n<th>Assignment rule</th>\n<th>Owns</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><strong>DRIVER</strong></td>\n<td>Strongest approved model; use only where marginal reasoning quality matters.</td>\n<td>Ambiguity, scope, trade-offs, architecture, orchestration, synthesis, acceptance, and user communication.</td>\n</tr>\n<tr>\n<td><strong>BUILDER</strong></td>\n<td>Least-cost approved model that can meet bounded substantive acceptance criteria.</td>\n<td>Implementation, research, tests, debugging, and implementation-level review.</td>\n</tr>\n<tr>\n<td><strong>SWEEPER</strong></td>\n<td>Least-cost approved model for mechanically verifiable language work.</td>\n<td>Only bounded zero-judgment transforms when deterministic local tools are insufficient.</td>\n</tr>\n</tbody></table>\n<p>Prefer deterministic local tools before any model for exact transformations,\nformatting, extraction, filtering, counting, and validation. A task moves upward\nonly when evidence shows the lower route cannot meet acceptance: local tool →\nSWEEPER → BUILDER → DRIVER.</p>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ol>\n<li>Read <a href=\"references/profile-controls.md\">profile controls</a> and the reference for the active harness. <strong>Complete when:</strong> the profile command, persistence location, and supported role bindings are known for that harness.</li>\n<li>Inventory models the harness can address now. Record each identifier literally. <strong>Complete when:</strong> every proposed binding names an identifier that the harness reports, not a guessed vendor label.</li>\n<li>Before child delegation, check for and load the <code>agent-lifecycle</code> skill. If it is unavailable, offer to install it and wait for user approval before installation. Do not substitute a todo list for lifecycle evidence. <strong>Complete when:</strong> lifecycle authority and its visible surface are known, or the user has declined installation and the resulting visibility limitation is explicit.</li>\n</ol>\n<h3 id=\"procedure\">Procedure</h3>\n<ol>\n<li><strong>Set the acceptance standard.</strong> State the required output, decisive checks, and\njudgment/blast radius. <strong>Complete when:</strong> cost cannot be reduced by silently\nreducing required quality.</li>\n<li><strong>Choose the lowest viable route.</strong> Use deterministic tools first; otherwise\nclassify SWEEPER, BUILDER, or DRIVER by judgment required. <strong>Complete when:</strong>\neach task has one owner and a reason the cheaper route is insufficient.</li>\n<li><strong>Resolve bindings only as needed.</strong> Reuse and validate a matching scoped\nprofile. Enter profile setup/control mode only when requested or when a needed\nbinding is absent/invalid. <strong>Complete when:</strong> no setup ceremony is repeated\nfor an already valid profile.</li>\n<li><strong>Package minimum context.</strong> Give children source paths, immutable decisions,\nownership, acceptance checks, stop conditions, and a bounded result contract;\nnever paste whole conversations/logs/plans. <strong>Complete when:</strong> the child can\nwork from source without receiving unrelated context.</li>\n<li><strong>Decompose only when savings exceed overhead.</strong> Prefer one coherent owner.\nParallelize only independent, disjoint work with non-overlapping questions.\n<strong>Complete when:</strong> no fan-out duplicates source reading, output, or ownership.</li>\n<li><strong>Escalate on evidence.</strong> Stop at ambiguity, failed acceptance, quality risk,\nor ownership conflict. Retry once only for a transient execution failure;\notherwise pass the failure delta/artifacts to a stronger route. <strong>Complete\nwhen:</strong> no blind retry repeats full discovery/context.</li>\n<li><strong>Verify economically.</strong> Run deterministic/focused checks first and broader\nchecks at risk or phase boundaries; DRIVER independently accepts the result.\n<strong>Complete when:</strong> accepted output has fresh evidence and concise reporting.</li>\n<li><strong>Expose lifecycle truth.</strong> Load <code>agent-lifecycle</code> for child delegation and\nprefer native child UI; use its display-only fallback only when needed.\n<strong>Complete when:</strong> visible state comes from lifecycle evidence, not task guesses.</li>\n</ol>\n<h3 id=\"usage-examples\">Usage Examples</h3>\n<h4 id=\"show-the-active-route\">Show the active route</h4>\n<pre><code class=\"language-text\">Show routing. Compare the scoped profile with live bindings and report MATCH,\nMISMATCH, UNBOUND, NOT_ADDRESSABLE, or UNAVAILABLE for each role. Do not write.\n</code></pre>\n<h4 id=\"set-up-a-reusable-profile\">Set up a reusable profile</h4>\n<pre><code class=\"language-text\">Set up routing as &quot;balanced&quot;. Ask me for exact DRIVER and BUILDER models, and a\nSWEEPER model or explicit degraded mode. Validate the live inventory, preview\nthe changes, and wait for confirmation before applying and saving them.\n</code></pre>\n<h4 id=\"route-a-task-efficiently\">Route a task efficiently</h4>\n<pre><code class=\"language-text\">Use the active routing profile. Define acceptance first. Use deterministic local tools\nfor exact work, BUILDER for bounded implementation with objective checks,\nand DRIVER only for ambiguity, trade-offs, synthesis, and acceptance. Delegate\nonly when the savings exceed dispatch/context overhead. Keep child work visible\nwith agent-lifecycle and independently verify the result.\n</code></pre>\n<h4 id=\"escalate-without-repeating-discovery\">Escalate without repeating discovery</h4>\n<pre><code class=\"language-text\">The current route failed verification. Do not rerun the same prompt. Pass the\nfailure delta, relevant artifacts, attempted checks, and remaining acceptance\ncriteria to the next capable route.\n</code></pre>\n<h3 id=\"harness-references\">Harness References</h3>\n<table>\n<thead>\n<tr>\n<th>Harness</th>\n<th>Reference</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Hermes Agent</td>\n<td><a href=\"references/harness-hermes.md\">references/harness-hermes.md</a></td>\n</tr>\n<tr>\n<td>Generic Agent Skills harness</td>\n<td><a href=\"references/harness-generic.md\">references/harness-generic.md</a></td>\n</tr>\n<tr>\n<td>User command semantics and profile scripts</td>\n<td><a href=\"references/profile-controls.md\">references/profile-controls.md</a></td>\n</tr>\n<tr>\n<td>Token/quality routing policy</td>\n<td><a href=\"references/routing-policy.md\">references/routing-policy.md</a></td>\n</tr>\n</tbody></table>\n<h3 id=\"pitfalls\">Pitfalls</h3>\n<ul>\n<li>A configured harness default is not a user-selected routing profile.</li>\n<li>A saved profile is not valid forever: model inventory can change, so validate at auto-load and before dispatch.</li>\n<li>“Cheapest” applies only after the user has selected an exact sweeper model; it never authorizes an agent to pick an unapproved model.</li>\n<li>Parallelism does not permit concurrent edits to shared files, manifests, or acceptance criteria.</li>\n<li>Fan-out can spend more tokens than it saves; parallelize only independent work\nwhose wall-time or context benefit exceeds dispatch/reconciliation overhead.</li>\n<li>Never send complete conversations, repositories, plans, or raw logs to every\nchild. Pass source references and bounded evidence.</li>\n<li>Never blindly retry the same prompt. Preserve artifacts and escalate on the\nfailure delta.</li>\n<li>A native task display is not lifecycle authority; a todo fallback is weaker still.</li>\n<li>Never claim separate role models when the harness can run only one child model.</li>\n</ul>\n<h3 id=\"verification\">Verification</h3>\n<ul>\n<li><input disabled=\"\" type=\"checkbox\"> Every bound role has a literal exact identifier from the live inventory.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The DRIVER is the strongest model explicitly selected by the user for important reasoning.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Builder work is substantive and independent work is parallel only when ownership is disjoint.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Sweeper work is mechanically specified and contains zero judgment.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Deterministic local tools were preferred where no model judgment was needed.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Child context/results are bounded and do not duplicate broad source material.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Escalations follow failed evidence/ambiguity; no blind retry repeated discovery.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Token reduction did not weaken acceptance criteria or fresh verification.</li>\n<li><input disabled=\"\" type=\"checkbox\"> The active scoped profile auto-load behavior and revalidation outcome are shown.</li>\n<li><input disabled=\"\" type=\"checkbox\"> <code>agent-lifecycle</code> was loaded before child delegation, or its absence and approved installation decision are recorded.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Native lifecycle UI is used when present; otherwise the todo fallback is labelled non-authoritative.</li>\n<li><input disabled=\"\" type=\"checkbox\"> Any harness limitation is reported as a degradation, not presented as a successful binding.</li>\n</ul>\n","outline":["When to Use","Roles","Prerequisites","Procedure","Usage Examples","Harness References","Pitfalls","Verification"],"words":1246}
