Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
Merge pull request #1292 from sandbox-quantum/fix/e2e-client-mistakes-outsider-invite
Petr Bauch8f2c885f433a
diff --cc console/tooling-e2e/README.mdindex 937e3bd5b,701d69d60..f9aa05edf--- a/console/tooling-e2e/README.md+++ b/console/tooling-e2e/README.md@@@ -137,10 -137,10 +137,10 @@@ passed or not. A teardown that leaves s| `unaddressed-history` | Five unaddressed messages arrive in the recipient's room history in the order sent, and none of them as a notification. | — || `operations-front-door` | The operations registry over HTTP: it lists the operations, `list_rooms` returns the room, `read_context` returns a message posted in it. | — || `mattermost-roundtrip` | A room on the Mattermost bridge: an addressed post from the human reaches the agent, and the agent's reply appears as its bot. | Mattermost |-| `agent-identity` | Renaming an agent from the gateway and with `!rename-agent` renames its Mattermost bot in place, and mentions follow the new name; `!delete-agent`, confirmed, deletes it. | Mattermost |+| `agent-identity` | The human links their chat account by posting the code the gateway issued, and a replaced code confirms nothing; renaming an agent from the gateway and with `!rename-agent` renames its Mattermost bot in place, and mentions follow the new name; `!delete-agent`, confirmed, deletes it. | Mattermost || `room-group-paths` | The same subgroup name under two parents: a bare name both share is refused naming each path, the path picks one, and a second group of that name under one parent is refused whatever its case. | — || `attachment-names` | A file whose name is not latin-1 is posted, listed by `read_context` and downloaded under its own name (`filename*` in `Content-Disposition`). | — |- | `client-mistakes` | An outsider inviting itself into a room or reading it gets a 403, and a history timestamp that is not ISO 8601 a 400 naming the parameter; never a 500. | — |+ | `client-mistakes` | An outsider reading a room gets a 403, and a history timestamp that is not ISO 8601 a 400 naming the parameter; never a 500. | — || `room-capture` | A room built from a document keeps the package it names, and the room captured back as a document builds a second room with the same package; both rooms delete. | — || `follow-ups` | Follow the conversation: an untagged message continuing an exchange the agent just answered, or replying in its thread, reaches it; one after another agent spoke, or after the window, does not; an agent's message follows no one. | Mattermost; ephemeral only, where the stack turns the flag on with a 20-second window |diff --cc console/tooling-e2e/surface/exemptions.jsonindex 116d87439,02acad409..974a949e3--- a/console/tooling-e2e/surface/exemptions.json+++ b/console/tooling-e2e/surface/exemptions.json@@@ -26,17 -20,13 +26,18 @@@"POST /gateway/auth/oidc/exchange": "Needs a code from a live OIDC sign-in; the harness signs in with a password.","POST /gateway/chats/{room_id}/agents": "Switch Console group chats. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog), and the stacks the harness builds do not turn on the group_chats flag these routes need.","POST /gateway/chats/{room_id}/unarchive": "Switch Console archived chats. Covered by core's test_chats_routes.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog).",+ "POST /gateway/collaborations/{bridge_id}/identities/require-confirmation": "Demotes every older link on a bridge at once, so a scenario running on a shared stack (dev, staging) would demote every real person's link there. Core's test_identity_link_confirmation.py covers it against real Postgres; the agent-identity scenario covers the list it acts on.",+ "POST /gateway/collaborations/{bridge_id}/identities/{external_user_row_id}/verify-session": "Used only by the bundled deployment's setup job, against the Mattermost account it seeds, before any channel has an agent to hear a code. Every bundled install runs it; core's test_identity_link_confirmation.py and test_setup_link_owner.py cover it.","POST /gateway/hosted-controller/machines/{machine_id}/observation": "Needs a hosted controller configured (HOSTED_CONTROLLER_CONFIG_PATH), which no stack the harness builds has.","POST /gateway/hosted-controller/machines/{machine_id}/prepare": "Needs a hosted controller configured (HOSTED_CONTROLLER_CONFIG_PATH), which no stack the harness builds has.",+ "POST /gateway/organizations/current/connector-apps/{service}/check": "An organization's own connector apps, behind the organization_connector_apps flag (off by default), which no stack the harness builds turns on; saving or checking one also needs a real vendor app. Covered by core's test_organization_connector_apps.py against real Postgres.","POST /gateway/rooms/{room_id}/sync-name": "Needs a bridged room whose linked channel was renamed on the platform, which the fast lane's stacks cannot stage. Covered by core's test_room_sync_name.py against real Postgres.","PUT /gateway/chats/{room_id}/read": "Switch Console read positions. Covered by core's test_chats_groups.py against real Postgres; no scenario drives Console chats yet (every other /gateway/chats route is still in the backlog).",+ "PUT /gateway/organizations/current/connector-apps/{service}": "An organization's own connector apps, behind the organization_connector_apps flag (off by default), which no stack the harness builds turns on; saving or checking one also needs a real vendor app. Covered by core's test_organization_connector_apps.py against real Postgres.",+ "PUT /gateway/organizations/current/services/{service}": "An organization's service switches, behind the organization_connector_apps flag (off by default), which no stack the harness builds turns on. Covered by core's test_organization_services.py against real Postgres.","WS /gateway/changes/ws": "Console's change-notice socket. What it sends is covered by core's test_changes_socket.py, and the session probe checks it refuses a handshake without a session; no scenario drives Console's lists yet.",- "get_template_status": "Needs an agent created from an official template on a managed machine and then a newer revision of that template; no stack the harness builds has managed agents yet (create_agent is in the backlog). Covered by core's test_template_updates.py."+ "get_template_status": "Needs an agent created from an official template on a managed machine and then a newer revision of that template; no stack the harness builds has managed agents yet (create_agent is in the backlog). Covered by core's test_template_updates.py.",+ "invite_agent_to_room": "Its interesting answer is the refusal, and an agent is refused only when its owner is neither an admin nor the room's owner. Every harness agent and room belongs to the harness admin, and a second, plain user to own the agent cannot be deleted afterwards, which rules it out on local, dev and staging. Who may change a room's roster is covered by core's test_room_roster_authz.py, and the 403 with its detail by test_refusal_status_codes.py."},"unauthenticated": {"GET /gateway/agents/known-types": "The catalogue of agent types this server can register and their option schemas; no tenant data. Public since the initial import, and nothing records whether that is deliberate.",