Choose an agent with a swipe at Ready (0.2.0)

Bridge: an owner-configured list of agents (HERMEVEN_AGENTS). Each extra
agent is another profile of the same Hermes gateway, reached at
/p/<profile> with that profile's own key. GET /v1/agents lists ids and
names; POST /v1/conversations takes an optional agent_id checked against
the list. A conversation belongs to one agent (migration v3) and its turns
are submitted, polled and stopped at that agent. /v1/device is unchanged so
clients built earlier keep working.

Client: at Ready a swipe moves between agents; the name is shown through
the exchange; each agent keeps its own conversation; a follow-up goes to
the agent that answered. Reopened within the conversation window it opens
on the last agent, otherwise on the default. With one agent, or a bridge
without /v1/agents, nothing changes.

Also: contract section G, server survey and key evidence, the 0.1.2
upload, and the CODY-020 correction. Not reviewed, not deployed, not
uploaded.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Dan
2026-11-21 16:08:11 -08:00
co-authored by Claude Fable 5.2
parent 15714bd848
commit 9394c249ad
20 changed files with 1117 additions and 42 deletions
+7 -1
View File
@@ -641,7 +641,13 @@ No check was omitted.
| Never paired: nothing leaves in 30 minutes, even with a gesture and a `glassesMenu` source | both files |
| Simulator: opened by URL with no gesture, leaves from Ready after the shortened wait; exit confirmed; display empty | eighth simulator scenario |
Negative control: with the old rule restored (leave only after a `glassesMenu` launch source),
Correction (CODY-020, Round 14): the mutation described next is **stricter** than the previous
implementation, which also armed after any gesture. It is
`|| this.launchSource !== 'glassesMenu'` added to the guard in `scheduleIdleExit()`. Cody restored
the exact previous controller from `3e04688` and reported 7 failed, 62 passed of 69; the
implementer did not re-run that.
Negative control (stricter mutation): leave only after a `glassesMenu` launch source,
11 of the 69 tests in the two files fail, including all five new cases above except "never
paired". The CODY-019 control was not re-run; `activityEpoch` and its tests are unchanged and
pass.