docs: ADR-0014 one Hermes profile per LLM surface (#128)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
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.
This commit is contained in:
1 parent
32f601d33f
commit
ba05392543
5 files changed
+35
-15
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ Owned by the root AGENTS.md contract.
|
||||
|
||||
## Local Contracts
|
||||
|
||||
- ADRs live in `docs/adr/`, sequentially numbered `NNNNN-slug.md` (currently `0001`–`0013`: stack, license, forge/CI, content layout, learnings home, fix-card transport, state ownership, tools host, sandbox posture, prose editor substrate, apex HTML reading pipeline, projects/archive layout + type-as-frontmatter, outliner block surface).
|
||||
- ADRs live in `docs/adr/`, sequentially numbered `NNNNN-slug.md` (currently `0001`–`0014`: stack, license, forge/CI, content layout, learnings home, fix-card transport, state ownership, tools host, sandbox posture, prose editor substrate, apex HTML reading pipeline, projects/archive layout + type-as-frontmatter, outliner block surface, one Hermes profile per LLM surface).
|
||||
- ADR format follows the domain-modeling skill's `ADR-FORMAT.md`: short title + 1–3 sentences; optional Considered Options / Consequences only when they earn their place.
|
||||
- `docs/agents/` holds the engineering-skills config (issue tracker, triage labels, domain-docs consumer rules) written by `setup-matt-pocock-skills` — edit directly, no child doc needed.
|
||||
- `docs/sample-pass.md` is the worked sample Pass demonstrating the craft-canon skills firing as Fix Cards (issues #7, #11, and #123 verification artifacts); card shape follows CONTEXT.md (lane and emitter fields included), anchors follow ADR-0006.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# 0008 — Writing tools are an in-app Swift MCP server
|
||||
|
||||
Museion's writing tools (`query_learnings`, `submit_fix_cards`) ship inside the app binary, exposed as a stdio MCP server (`museion-tools`) and registered into the `museion` profile via `hermes mcp add museion-tools --command …` once the mode exists (#23) — the provisioning pass itself never writes `mcp_servers` (#44). One signed artifact, native file access, and the fix-card tool exists from M0. Draft stats are computed natively in Swift at capture (not an agent tool) so the unaided-first-draft guarantee is enforced in code; research stays engine-native. Rejected: a separate Python server (second runtime to ship and sign) and skills-only (cards would need prose parsing — reversing later rewrites the card path). Model/provider stays user-managed in the profile's own config — Museion never touches it.
|
||||
Museion's writing tools (`query_learnings`, `submit_fix_cards`) ship inside the app binary, exposed as a stdio MCP server (`museion-tools`) and registered into every Museion surface profile (`museion`, `museion-pass1`, `museion-pass2` — ADR-0014) via `hermes mcp add` once the mode exists (#23) — the provisioning pass itself never writes `mcp_servers` (#44). One signed artifact, native file access, and the fix-card tool exists from M0. Draft stats are computed natively in Swift at capture (not an agent tool) so the unaided-first-draft guarantee is enforced in code; research stays engine-native. Rejected: a separate Python server (second runtime to ship and sign) and skills-only (cards would need prose parsing — reversing later rewrites the card path). Model/provider stays user-managed in the profile's own config — Museion never touches it.
|
||||
@@ -0,0 +1,16 @@
|
||||
# 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.
|
||||
Reference in new issue
Block a user