5565 Commits

Author SHA1 Message Date
fcef884699 Merge pull request 'Hermes: combine multilingual Piper with Whisper language routing (after #43)' (#46) from feature/hermes-pr44-after-pr43 into main
Reviewed-on: atlas/titan-iac#46
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 21:30:06 +00:00
Hermes Agent
820872e117 feat(hermes-voice): route Whisper language to multilingual Piper
Port the original #27 detected-language pipeline onto the verified PR #39 prerequisite while preserving the current-main conversation instrument and host continuity changes.

Keep voice selection server-side with no user selector or client voice field. Reuse 207c16ab only for its stricter exact-code trust boundary, omitting malformed or absent language so Piper defaults to Amy.
2026-08-21 13:58:50 +00:00
Hermes Agent
724656d841 feat(hermes-tts): prepare fixed multilingual voice policy
Supersede draft PR #26 with a merge-safe prerequisite: bake and preload the amy, irina, and claude Piper models, route only validated server-side language to fixed voices, and leave the live voice deployment manifest unchanged.

Remove the pinned WebUI speaker selector and its persisted preference, omit client voice fields from every outbound TTS path, and keep hands-free Voice Mode and the conversation instrument intact. Hostile or legacy voice fields remain ignored by the Piper server.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 13:45:31 +00:00
431533dfce Merge pull request 'Fix hands-free STT WebM conversion' (#43) from fix/hermes-handsfree-stt-webm into main
Some checks failed
Tests / Declarative: Post Actions failed: 40, skipped: 7, passed: 2612
Reviewed-on: atlas/titan-iac#43
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 13:38:58 +00:00
Hermes Agent
cfd8a75e95 fix(hermes-voice): preserve MediaRecorder container headers 2026-08-21 11:12:15 +00:00
5f9c600f6e Merge pull request 'hermes: restore legacy chat/triage hosts alongside the renamed ones' (#38) from fix/hermes-restore-legacy-chat-triage-hosts-v2 into main
Reviewed-on: atlas/titan-iac#38
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 10:17:49 +00:00
4d072f32ce Merge branch 'main' into fix/hermes-restore-legacy-chat-triage-hosts-v2 2026-08-21 10:17:25 +00:00
flux-bot
ab33b582c8 chore(bstein-dev-home): automated image update 2026-08-21 10:06:01 +00:00
flux-bot
678698c44b chore(bstein-dev-home): automated image update 2026-08-21 10:04:01 +00:00
Hermes Agent
fd4bf69007 test(hermes): pin public chat/triage host continuity across every layer
The #34 rename dropped the legacy chat/triage names from the certificate
SANs, the hermes-sites Ingress, the CoreDNS overrides and the Keycloak
ensure script at the same time, so nothing failed loudly: DNS and TLS
still looked healthy while the legacy hosts served 404 and the renamed
hosts could not finish a login.

Pin the invariant that makes that silent: a public host is either served
by all four layers or by none. The table of hosts is the contract, so
retiring a name stays a deliberate edit rather than a side effect.

Verified to catch the regression: against the pre-fix tree these fail for
both legacy hosts on all four layers (9 failures); against this branch
the suite is green.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 08:57:50 +00:00
Hermes Agent
f4f51323f6 hermes: restore legacy chat/triage hosts alongside the renamed ones
PR #34 renamed the public chat/triage hosts in place rather than adding
the new names, so chat.hermes.bstein.dev and triage.hermes.bstein.dev
were dropped from the certificate SANs, the hermes-sites Ingress rules
and the CoreDNS overrides at once. Both legacy hosts now answer 404 with
Traefik's default self-signed certificate, and the renamed hosts cannot
complete a login because the Keycloak clients still carry the old
redirect URIs, so chat and triage are unreachable on every hostname.

Make the rename additive, which is the rollback path the post-merge
runbook asks for when the OIDC step fails:

- put the legacy names back on hermes-sites-tls and on the Ingress,
  pointing at the same oauth2-proxy backends
- restore both CoreDNS host overrides for in-cluster resolution
- teach ensure_proxy_client to register an optional legacy origin, so
  hermes-chat-proxy and hermes-triage-proxy accept the old and new
  redirect URIs, web origins and post-logout origins at the same time
  while rootUrl stays on the canonical new host
- bump the immutable ensure Job so Flux reruns the script

Serving both names is deliberate: oauth2-proxy cookies are host-bound,
so redirecting the legacy hosts would silently drop live sessions.
Retiring them stays a separate, explicit change.

Supersedes #36, which only bumped the Job and would have left the
legacy hosts dark.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-21 08:49:09 +00:00
e3de466ad1 Merge pull request 'Complete direct CLI lane concurrency omitted by #30 (supersedes #31)' (#35) from feature/hermes-direct-cli-lane-concurrency-2-replacement into main
Some checks failed
Tests / Declarative: Post Actions failed: 36, skipped: 7, passed: 2591
Reviewed-on: atlas/titan-iac#35
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 07:58:17 +00:00
66a537ddbe Merge branch 'main' into feature/hermes-direct-cli-lane-concurrency-2-replacement 2026-08-21 07:57:35 +00:00
8ace4d47e1 Merge pull request 'refactor(hermes): rename chat and triage public hostnames' (#34) from feature/hermes-domain-rename-chat-bstein-triage into main
Reviewed-on: atlas/titan-iac#34
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 07:48:55 +00:00
Hermes Agent
4277aa6a02 fix(hermes): allow two direct CLI lane workers 2026-08-21 07:11:55 +00:00
Hermes Agent
79be4d1c71 refactor(hermes): rename chat and triage public hosts 2026-08-21 06:43:19 +00:00
db70509e08 Merge pull request 'Persist Hermes per-profile Kanban concurrency of two' (#30) from feature/hermes-kanban-profile-concurrency-2 into main
Reviewed-on: atlas/titan-iac#30
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 06:12:01 +00:00
468b21beb7 Merge branch 'main' into feature/hermes-kanban-profile-concurrency-2 2026-08-21 06:11:08 +00:00
25fcda010f Merge pull request 'feat(hermes-voice): add premium conversation instrument' (#29) from hermes/chat-voice-conversation-instrument into main
Reviewed-on: atlas/titan-iac#29
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-21 04:06:44 +00:00
bf38f81787 Merge branch 'main' into hermes/chat-voice-conversation-instrument 2026-08-21 04:06:31 +00:00
flux-bot
0c264e873b chore(maintenance): automated image update 2026-08-21 01:50:29 +00:00
flux-bot
79c1809286 chore(maintenance): automated image update 2026-08-21 01:49:29 +00:00
flux-bot
287b61ed3e chore(maintenance): automated image update 2026-08-21 01:46:27 +00:00
flux-bot
12f568e78b chore(maintenance): automated image update 2026-08-21 01:41:26 +00:00
Hermes Agent
dda2d5fb60 fix(hermes): persist per-profile Kanban concurrency 2026-08-21 00:27:38 +00:00
Hermes Agent
c8f53ecdf5 feat(hermes-voice): add conversation state instrument 2026-08-20 23:13:51 +00:00
flux-bot
33534e3b52 chore(bstein-dev-home): automated image update 2026-08-20 21:59:54 +00:00
flux-bot
ded90b607a chore(bstein-dev-home): automated image update 2026-08-20 21:57:54 +00:00
ac01fbd38a Merge pull request 'fix(hermes): poll the session contract the chat tenants actually serve' (#25) from fix/hermes-chat-session-continuity-contract into main
Reviewed-on: atlas/titan-iac#25
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-20 21:55:16 +00:00
Hermes Agent
d22588dddb fix(hermes): poll the session contract the chat tenants actually serve
Returning to chat.hermes.bstein.dev after a Keycloak logout/login showed
"This session is unavailable to this account. Start a new chat." even
though the session was intact and owned by the same subject.

The banner comes from the continuity fallback the router injects into
every chat page. It polled `/api/sessions/<id>` and
`/api/sessions/<id>/messages` — routes that belong to the Hermes agent
dashboard (added by scripts/patch_web_session_activity.py, applied only
in agent-deployment.yaml). The router proxies browser traffic to the
tenant Hermes WebUI instead, whose only session read is
`GET /api/session?session_id=<id>`; the dashboard paths are unrouted
there, so server.py answered its generic 404 for every poll and the
fallback reported a false ownership failure.

The script runs only on a full document load of `/session/<id>`, which is
exactly what the OIDC round-trip produces when oauth2-proxy returns the
browser to `rd=/session/<id>` — hence the "only after relogin" symptom.

Poll the WebUI contract instead, and let its own answers decide what the
banner claims: 409 `session_profile_mismatch` is the single response that
means the session is outside this account's active scope, 404 now means
the conversation is no longer stored, and 401/403 still re-enter OIDC.
The steady-state poll drops to one request and backs off to 3s/15s now
that it reaches a real endpoint on the tenant Raspberry Pi.

`boundSessionSnapshot` follows the same move: it caps the WebUI envelope
`{"session": {..., "messages": [...]}}`, relaying every other session key
verbatim rather than re-serializing a fixed struct that would silently
drop metadata the banner depends on.

Isolation is unchanged and now covered: the router still resolves the
slot from the salted Keycloak subject, overwrites any client-supplied
X-Hermes-Tenant-Identity, and forwards only the two tenant cookies.

Tests: relogin keeps a stable slot and resolves the durable session; a
second subject replaying the owner's session id, WebUI cookie and a
forged tenant header gets 404 from its own backend and never reaches the
owner's; the legacy dashboard paths are pinned as permanent 404s against
a stub of the deployed WebUI dispatch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 18:14:55 +00:00
flux-bot
11bd04cce5 chore(maintenance): automated image update
Some checks failed
Tests / Declarative: Post Actions failed: 35, skipped: 7, passed: 2586
2026-08-20 13:49:00 +00:00
flux-bot
1c731b5baa chore(maintenance): automated image update 2026-08-20 13:48:53 +00:00
flux-bot
16bf178b18 chore(maintenance): automated image update 2026-08-20 13:45:52 +00:00
flux-bot
ce0b81c49f chore(maintenance): automated image update 2026-08-20 13:39:52 +00:00
flux-bot
347183090a chore(bstein-dev-home): automated image update 2026-08-20 09:53:23 +00:00
flux-bot
b036fbba88 chore(bstein-dev-home): automated image update 2026-08-20 09:51:23 +00:00
flux-bot
a45a9b67fe chore(maintenance): automated image update
Some checks failed
Tests / Declarative: Post Actions failed: 35, skipped: 7, passed: 2586
2026-08-20 01:51:22 +00:00
flux-bot
58d6da2fac chore(maintenance): automated image update 2026-08-20 01:50:23 +00:00
flux-bot
1a82ab4912 chore(maintenance): automated image update 2026-08-20 01:47:21 +00:00
flux-bot
4d026ff2b4 chore(maintenance): automated image update 2026-08-20 01:42:20 +00:00
9872ee0995 Merge pull request 'fix(monitoring): keep VictoriaMetrics writable so public dashboards render' (#23) from hermes/fix-grafana-no-data-vm-storage into main
Reviewed-on: atlas/titan-iac#23
Reviewed-by: bstein <bstein@noreply.scm.bstein.dev>
2026-08-20 00:50:00 +00:00
2b683d9775 Merge branch 'main' into hermes/fix-grafana-no-data-vm-storage
Some checks failed
Tests / Declarative: Post Actions failed: 35, skipped: 7, passed: 2586
2026-08-20 00:49:40 +00:00
flux-bot
417355b2af chore(bstein-dev-home): automated image update 2026-08-19 22:00:51 +00:00
flux-bot
4470e1e3ae chore(bstein-dev-home): automated image update 2026-08-19 21:57:51 +00:00
flux-bot
00741d6830 chore(maintenance): automated image update
Some checks failed
Tests / Declarative: Post Actions failed: 40, skipped: 7, passed: 2578
2026-08-19 13:48:54 +00:00
flux-bot
33b373fffe chore(maintenance): automated image update 2026-08-19 13:48:48 +00:00
flux-bot
5c23790df9 chore(maintenance): automated image update 2026-08-19 13:45:48 +00:00
flux-bot
297dd27db3 chore(maintenance): automated image update 2026-08-19 13:40:47 +00:00
Hermes Agent
c4eac8ceee fix(monitoring): keep VictoriaMetrics writable 2026-08-19 10:51:44 +00:00
flux-bot
8675cb81d0 chore(bstein-dev-home): automated image update 2026-08-19 10:09:21 +00:00