Files
museion/docs/adr/0014-one-hermes-profile-per-llm-surface.md
AlexKucera ba05392543
CI / ci (push) Canceled after 0s
docs: ADR-0014 one Hermes profile per LLM surface (#128)
Topology (from wayfinder map #125, ticket #128): museion (Chat+Sessions,
resident) + museion-pass1/-pass2 (on-demand per pass run). Settings writes
profile config via hermes CLI, keys fan out to .env; effort dropdowns per
provider (zai/openai/anthropic), one model.reasoning_effort key. PRD
G1/G3/G3a/G4/model, S2.1/S2.2/S2.4/S2.6 amended; ADR-0008 registration
widened per profile; CONTEXT.md carries #126's LLM Surface glossary.
2026-10-23 11:41:19 +02:00

17 lines
2.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 0014 — One Hermes profile per LLM surface
Museion provisions **three Hermes profiles — one per LLM surface** (#126: Pass 1, Pass 2, Chat; Sessions rides Chat's): `museion` (adopted in place — sessions, memory, transcripts survive) runs the **resident** chat engine; `museion-pass1`/`museion-pass2` run **on-demand** engines spawned per pass run (`hermes acp -p museion-passN`) and torn down at verdict, so a model switch costs nothing — the next spawn reads fresh config. Per-surface model config IS each profile's `model:` block: Settings writes it via `hermes -p <profile> config set` (validated keys, format owned by Hermes) and writes provider keys to each matching profile's `.env` directly — no app-side settings store. Fresh pass profiles inherit the model block by **explicit copy from `museion`** at provisioning (`profile create` inherits from the *active* profile — wrong source — and never carries keys; both probed). Reasoning effort is one key (`model.reasoning_effort`) surfaced as per-provider dropdowns — zai low/high/max, OpenAI low/medium/high/xhigh/max, Anthropic low/medium/high/xhigh/max — with Hermes clamping to each route's wire vocabulary (`agent/reasoning_effort.py`). The native direct-HTTP engine was rejected after the #131 chunk-timing probe showed streaming is no differentiator; revisit when distribution without a Hermes install becomes a goal.
## Considered Options
- **Native direct-HTTP engine** (chart-time destination) — out of scope, revisit trigger above (#131).
- **Single profile + per-request model override** — Hermes pins model config per profile; per-request overrides would live app-side and re-invent the settings store.
- **Resident engines ×3** — three idle processes plus teardown/respawn machinery for passes that are one-shot by nature.
## Consequences
- Model dropdowns source Hermes' own registry (`~/.hermes/provider_models_cache.json`, the picker cache) with a free-text fallback — zero HTTP, exactly what Hermes accepts.
- Profile backup (G4) widens to all three profiles — pass-history transcripts are engine-owned (ADR-0007) and not reprovisionable.
- museion-tools registers per profile (ADR-0008 amended); skills seed ×3, same payload, still additive-only (G3a).
- Output budget (24k via `extra_body.max_tokens`, `--force`) is a provisioning-time guardrail, not a Settings control; effort is the cost/latency dial.