131. Harnesses may set persona models
Date: 2026-10-01
Status
Accepted
Context
ADR 0104 resolves each persona's model from the repo's agents[].subagents.<persona>, then the persona file's frontmatter model:, then the repo's subagents.default, then the parent's live model. None of these is a harness field, so overlays (ADR 0112) cannot route a persona: a review harness can move its own model per task, but not the correctness or security persona it dispatches. The only indirect route, an overlay that swaps skills for a copy with different frontmatter, needs duplicate skills and does nothing for a persona the repo pins.
Decision
- Field. A harness may declare
subagents:, a map from persona name to model. Like other maps it merges per key: a child composed throughbase:and a matching overlay win for the keys they set. - Resolution order. The harness entry sits below the repo's entry and above frontmatter, as ADR 0091 places repo config above the harness:
repo subagents.<persona>>harness subagents.<persona>> frontmattermodel:>repo subagents.default> the parent's live model. - Validation. A harness value is canonicalised and checked against the same trusted closed set as every other persona model (ADR 0104), so a harness cannot widen the set.
- Keys. A harness may not set
default, which stays the repo's. A harness key that matches no persona is ignored and recorded in the resolution trace instead of failing the run, since it may come from a base or an overlay. A repo'skey: ~tombstone falls through to the harness entry.
Consequences
- A harness can route persona models per task through overlays, the same way it routes
modelandeffort. - A repo's own
subagents.<persona>pin still wins over any harness routing for that persona. - The runtime's persona mechanism still decides which keys take effect, so a harness value on a runtime that cannot dispatch a persona does nothing; the resolution trace records the resolved value.
- Persona models, whatever their source, must be in the harness's
modelslist when it declares one (ADR 0130).
