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
+21 -1
View File
@@ -127,8 +127,28 @@ export const RevokeResponse = Type.Object(
export type RevokeResponse = Static<typeof RevokeResponse>;
// ---------------------------------------------------------- conversations
/** Lower-case id of an agent the bridge is configured to reach. `default` is the main one. */
const AgentId = Type.String({ pattern: '^[a-z][a-z0-9_-]{0,31}$' });
export const AgentsResponse = Type.Object(
{
schema_version: SchemaVersion,
/** In the order the owner configured them; the first is the default. Never empty. */
agents: Type.Array(
Type.Object({ id: AgentId, name: Type.String({ minLength: 1, maxLength: 24 }) }, { additionalProperties: false }),
{ minItems: 1, maxItems: 16 },
),
},
{ additionalProperties: false },
);
export type AgentsResponse = Static<typeof AgentsResponse>;
export const ConversationCreateRequest = Type.Object(
{ schema_version: SchemaVersion },
{
schema_version: SchemaVersion,
/** Which configured agent this conversation is with. Omitted = the default agent. */
agent_id: Type.Optional(AgentId),
},
{ additionalProperties: false },
);
export type ConversationCreateRequest = Static<typeof ConversationCreateRequest>;