Engine topology: one Hermes profile per surface vs native HTTP engine #131

Closed
opened 2026-10-23 10:47:17 +02:00 by AlexKucera · 2 comments
Owner

Part of #125

Question

Mid-map pivot (2026-10-23): one Hermes profile per LLM surface (e.g. museion-pass1 / museion-pass2 / museion-chat, each carrying its own model config; Museion spawns hermes acp -p <profile> per surface; the Settings page writes each profile's model/key config — possibly via the hermes CLI) as the route to per-surface models, instead of the native direct-HTTP engine this map originally assumed. Decide the topology:

  • (a) profiles-per-surface — smallest diff to the user ask; tool rail, research rail, skills, sessions keep working; hermes absorbs provider quirks; keys/endpoints still editable from Settings (written into profile config).
  • (b) native HTTP engine as charted — no hermes dependency, streaming control, direct latency; but the biggest build, research rail deferred, provider quirks become ours.
  • (c) hybrid — profiles now, native later as an engine swap (ADR-0007 seam).

Grounding on file:

  • ProfileProvisioner already creates + seeds one profile additively (S2.1 #43–#48) — ×N is a parameterization, not new architecture.
  • Hermes already solves what the native client would re-solve: param-fix retry ladders, thinking policies per provider, model registries for dropdowns (hermes_cli/models.py).
  • Costs of (a): skills/memory duplicated per profile (Learnings stay shared in the Home, ADR-0005); engine lifecycle per surface (resident chat engine, on-demand pass engines, restart on model change); profile backup (G4) ×N; Museion still requires hermes installed.
  • z.ai content-streaming probe (in flight at charting of this ticket) is an input: if hermes/z.ai cannot live-stream content, the native engine's streaming advantage shrinks.
  • Bench (prototypes/model-bench/results/final/REPORT.md) decides WHICH model per surface; this ticket decides only HOW models are wired.

[Generated by AI]

Part of #125 ## Question Mid-map pivot (2026-10-23): **one Hermes profile per LLM surface** (e.g. `museion-pass1` / `museion-pass2` / `museion-chat`, each carrying its own model config; Museion spawns `hermes acp -p <profile>` per surface; the Settings page writes each profile's model/key config — possibly via the hermes CLI) as the route to per-surface models, instead of the native direct-HTTP engine this map originally assumed. Decide the topology: - (a) profiles-per-surface — smallest diff to the user ask; tool rail, research rail, skills, sessions keep working; hermes absorbs provider quirks; keys/endpoints still editable from Settings (written into profile config). - (b) native HTTP engine as charted — no hermes dependency, streaming control, direct latency; but the biggest build, research rail deferred, provider quirks become ours. - (c) hybrid — profiles now, native later as an engine swap (ADR-0007 seam). Grounding on file: - ProfileProvisioner already creates + seeds one profile additively (S2.1 #43–#48) — ×N is a parameterization, not new architecture. - Hermes already solves what the native client would re-solve: param-fix retry ladders, thinking policies per provider, model registries for dropdowns (hermes_cli/models.py). - Costs of (a): skills/memory duplicated per profile (Learnings stay shared in the Home, ADR-0005); engine lifecycle per surface (resident chat engine, on-demand pass engines, restart on model change); profile backup (G4) ×N; Museion still requires hermes installed. - z.ai content-streaming probe (in flight at charting of this ticket) is an input: if hermes/z.ai cannot live-stream content, the native engine's streaming advantage shrinks. - Bench (`prototypes/model-bench/results/final/REPORT.md`) decides WHICH model per surface; this ticket decides only HOW models are wired. [Generated by AI]
AlexKucera added the wayfinder:grillingwayfinder:grilling labels 2026-10-23 10:47:17 +02:00
AlexKucera added a new dependency 2026-10-23 10:47:19 +02:00
AlexKucera added a new dependency 2026-10-23 10:47:20 +02:00
AlexKucera added a new dependency 2026-10-23 10:47:21 +02:00
AlexKucera self-assigned this 2026-10-23 10:47:24 +02:00
Author
Owner

Round 1 (2026-10-23, in-session): human defers the topology decision until the z.ai content-streaming probe lands (probe in flight at round time — chunk-arrival timing on the coding endpoint, three request shapes: bench shape with stream_options, no stream_options, low effort).

Decision rule agreed for the probe readout:

  • Content streams in small spread chunks → z.ai streaming is real; hermes surfaces the same wire; native's streaming advantage evaporates → recommendation stands: profiles-per-surface, native to Out of scope with revisit trigger (distribution/no-hermes).
  • Content flushes at end-of-turn on z.ai (all shapes) → native gains nothing on GLM either (server behavior, not client) — streaming only differentiates on Anthropic/OpenAI; recommendation still profiles for v1, with the cross-provider live-streaming gap named in the revisit trigger.
  • Either way the bench's model-per-surface findings are route-independent; only the wiring is at stake.

Re-present the choice with probe data attached when it lands.

[Generated by AI]

Round 1 (2026-10-23, in-session): human defers the topology decision until the z.ai content-streaming probe lands (probe in flight at round time — chunk-arrival timing on the coding endpoint, three request shapes: bench shape with stream_options, no stream_options, low effort). Decision rule agreed for the probe readout: - **Content streams in small spread chunks** → z.ai streaming is real; hermes surfaces the same wire; native's streaming advantage evaporates → recommendation stands: profiles-per-surface, native to Out of scope with revisit trigger (distribution/no-hermes). - **Content flushes at end-of-turn on z.ai (all shapes)** → native gains nothing on GLM either (server behavior, not client) — streaming only differentiates on Anthropic/OpenAI; recommendation still profiles for v1, with the cross-provider live-streaming gap named in the revisit trigger. - Either way the bench's model-per-surface findings are route-independent; only the wiring is at stake. Re-present the choice with probe data attached when it lands. [Generated by AI]
Author
Owner

Resolution: profiles-per-surface — one Hermes profile per LLM surface (model + reasoning config per profile, provisioned from the app, editable from Settings). The native direct-HTTP engine moves to the map's Out of scope with a revisit trigger.

Grounding — chunk-timing probe (2026-10-23, coding endpoint, glm-5.3-flash, three request shapes incl. the exact bench shape): z.ai streams reasoning_content AND content live in ≤15-char chunks — 489–512 content chunks spread over 4.3–13.3 s per ~550-token essay; content starts exactly when thinking ends (probe B: content first@31.9 s = reasoning last@31.9 s). The chart-time "end-of-turn flush" was a benchmark artifact: completion_tokens includes reasoning, so out_tok / (wall − content_ttft) inflates tps ~8× (bench "809 tok/s" → real ~100 tok/s content). Streaming was native's last differentiator; Hermes surfaces the same live wire today (its own request shape verified in source — stream_options + delta passthrough).

Corrections shipped with this resolution: prototypes/model-bench/bench.py tps math (content-only tokens), factsheet §1.3 (docs/research/native-llm-providers.md @ 49a121c), map Decisions-so-far gist amended, #128's constraint 3 corrected.

Consequences: #126 / #128 / #129 re-scoped to the profiles topology (their native-engine premises are dead); research-rail deferral is moot (stays hermes-native); Keychain no longer required (keys stay in profile config, editable from Settings).

[Generated by AI]

**Resolution: profiles-per-surface** — one Hermes profile per LLM surface (model + reasoning config per profile, provisioned from the app, editable from Settings). The native direct-HTTP engine moves to the map's Out of scope with a revisit trigger. Grounding — chunk-timing probe (2026-10-23, coding endpoint, glm-5.3-flash, three request shapes incl. the exact bench shape): z.ai streams `reasoning_content` AND content live in ≤15-char chunks — 489–512 content chunks spread over 4.3–13.3 s per ~550-token essay; content starts exactly when thinking ends (probe B: content first@31.9 s = reasoning last@31.9 s). The chart-time "end-of-turn flush" was a benchmark artifact: `completion_tokens` includes reasoning, so `out_tok / (wall − content_ttft)` inflates tps ~8× (bench "809 tok/s" → real ~100 tok/s content). Streaming was native's last differentiator; Hermes surfaces the same live wire today (its own request shape verified in source — stream_options + delta passthrough). Corrections shipped with this resolution: `prototypes/model-bench/bench.py` tps math (content-only tokens), factsheet §1.3 (`docs/research/native-llm-providers.md` @ 49a121c), map Decisions-so-far gist amended, #128's constraint 3 corrected. Consequences: #126 / #128 / #129 re-scoped to the profiles topology (their native-engine premises are dead); research-rail deferral is moot (stays hermes-native); Keychain no longer required (keys stay in profile config, editable from Settings). [Generated by AI]
Sign in to join this conversation.