There is one kind of group chat. New group chat always plans a room its
gateway owns, whether the bots are on this computer or on others, so it
keeps running with Desktop closed. When that is not possible (Hermes too
old on the owner, an owner that cannot seat peers, a lender missing its
API server, address or approvals, an unreachable computer), the dialog
says what is missing on which computer, keeps the draft and offers Retry;
it never falls back to a Desktop-driven room.
Bots from a named profile on another computer now join too: lender
checks are keyed per connection and profile, the pin carries the profile
the lender's catalog names, and the invite asks that profile.
Removed: the Desktop-driven creation path, the "Start a group chat that
runs without Desktop" upgrade (canonical-group-upgrade.tsx) and the copy
only it and the courier note used. Existing Desktop-driven rooms keep
their history and composer, and a membership edit keeps them that way;
no edit makes a room Desktop-driven.
A gateway could seat only its `default` profile as a cross-gateway group
chat member. Now any profile it serves can be lent:
- room_link()/groups.peer.invite advertise and mint for the connection's
own served profile (the grant's target_profile).
- A named profile that inherits the gateway's room_link_url advertises
`<room_link_url>/p/<profile>` in its catalog (covered by the digest), so
every lender call runs under that profile's /p/ prefix scope: its home,
config, .env secrets and state.db. A profile that sets its own
room_link_url advertises it as is.
- Grants answer only on their own profile's route: the run routes
(POST/GET /v1/runs, stop, approvals, events) now check
claims.target_profile against the request profile, as the room-member
routes already did. An unprefixed request is the listener's own profile.
- The owner no longer refuses a non-default peer target in
groups.peer.register; the pinned target profile must still equal the
catalog's execution_policy.target_profile.
test_session_group_peers.py::test_room_link_is_enabled_only_when_this_gateway_can_host_a_member
changes deliberately: a named profile now reports the next missing piece
(endpoint_required) instead of default_profile_required.
Document closed-key lifetime and Retry after a lost close reply while keeping the maintainer's non-admitting Discard and older-member refusal. Explain that grants received during Disband must be revoked before the group chat is deleted, and that recovery waits for the held driver lease before its deferral interval.
Requires the no-service guard, route-lock release, retained- and late-grant fixes, closed-key lifetime, lost-reply Retry, and renewed-lease recovery fixes.
Project lender prompts into room approvals and answer with their observed
prompt identity and run generation without requiring a fresh status poll.
Keep that observation when the same verified peer route gets a new grant.
Return the local nonpending refusal for stale peer answers, preserve older
lenders, and document the gateway behavior.
Scope owner and lender checks to the canonical gateway, including forwarded
Desktop calls, and explain standalone serve differences. Document both roles
and prove a home with RoomLink disabled can register a peer and publish its
reply without changing runtime behavior.
Document JSON-RPC seating and the current text/default-profile limits.
Distinguish group chats that keep running without Desktop from group
chats whose scheduling and message delivery require Desktop to stay
open.
Describe capability checks, send recovery, Stop and approval behavior.
Document the gateway-owned and Desktop-driven group chat paths.
(cherry picked from commit 572a99dfdbd04d667918a8e8b2ba13f289ad2952)