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
test(e2e): record phase 2's routes in the surface snapshot and coverage gate
Petr Bauchf0df4bd34615
diff --git a/console/tooling-e2e/surface/exemptions.json b/console/tooling-e2e/surface/exemptions.jsonindex 127c6e02e..116d87439 100644--- a/console/tooling-e2e/surface/exemptions.json+++ b/console/tooling-e2e/surface/exemptions.json@@ -2,6 +2,9 @@"_about": "Read by src/gate/gate.ts; see the README, \"Coverage gate\". exempt and unauthenticated need a reason per entry. backlog is what no scenario covered when the gate landed: it only shrinks, and the gate fails on an entry a scenario now covers.","exempt": {"DELETE /gateway/chats/{room_id}/agents/{agent_id}": "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.",+ "DELETE /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.",+ "DELETE /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.",+ "DELETE /gateway/workspace/services/{service}": "A workspace admin dropping their own service switch to take their organization's setting; it matters only with organization_connector_apps on, which no stack the harness builds turns on (the rest of /gateway/workspace/services is still in the backlog). Covered by core's test_workspace_services.py against real Postgres.","GET /gateway/auth/oidc/callback": "Needs a live OIDC identity provider; the harness signs in with a password.","GET /gateway/auth/oidc/login": "Needs a live OIDC identity provider; the harness signs in with a password.","GET /gateway/chats/archived": "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).",@@ -12,6 +15,9 @@"GET /gateway/docs/oauth2-redirect": "FastAPI's generated API documentation; no behaviour of Switch's own to cover.","GET /gateway/hosted-controller/machines": "Needs a hosted controller configured (HOSTED_CONTROLLER_CONFIG_PATH), which no stack the harness builds has.","GET /gateway/openapi.json": "FastAPI's generated API documentation; no behaviour of Switch's own to cover.",+ "GET /gateway/organizations/current/connector-apps": "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.",+ "GET /gateway/organizations/current/connector-apps/{service}/impact": "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.",+ "GET /gateway/organizations/current/services": "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.","GET /gateway/provider-connections/github/authorize": "Needs a registered GitHub App and a browser round trip through github.com.","GET /gateway/provider-connections/github/callback": "Needs a registered GitHub App and a browser round trip through github.com.","GET /gateway/redoc": "FastAPI's generated API documentation; no behaviour of Switch's own to cover.",@@ -24,8 +30,11 @@"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."},diff --git a/console/tooling-e2e/surface/server-surface.json b/console/tooling-e2e/surface/server-surface.jsonindex fb0dbd22a..f48797e87 100644--- a/console/tooling-e2e/surface/server-surface.json+++ b/console/tooling-e2e/surface/server-surface.json@@ -161,11 +161,27 @@"auth": "session","flags": []},+ {+ "route": "DELETE /gateway/organizations/current/connector-apps/{service}",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },{"route": "DELETE /gateway/organizations/current/members/{user_id}","auth": "session","flags": []},+ {+ "route": "DELETE /gateway/organizations/current/services/{service}",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },{"route": "DELETE /gateway/packages/{package_id}","auth": "session",@@ -285,6 +301,13 @@"auth": "session","flags": []},+ {+ "route": "DELETE /gateway/workspace/services/{service}",+ "auth": "session",+ "flags": [+ "service_connections"+ ]+ },{"route": "GET /gateway/agent-sessions/approvals","auth": "session",@@ -621,11 +644,35 @@"auth": "session","flags": []},+ {+ "route": "GET /gateway/organizations/current/connector-apps",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },+ {+ "route": "GET /gateway/organizations/current/connector-apps/{service}/impact",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },{"route": "GET /gateway/organizations/current/members","auth": "session","flags": []},+ {+ "route": "GET /gateway/organizations/current/services",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },{"route": "GET /gateway/organizations/current/workspaces","auth": "session",@@ -1199,6 +1246,14 @@"auth": "session","flags": []},+ {+ "route": "POST /gateway/organizations/current/connector-apps/{service}/check",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },{"route": "POST /gateway/organizations/current/workspaces","auth": "session",@@ -1461,6 +1516,22 @@"agent_management"]},+ {+ "route": "PUT /gateway/organizations/current/connector-apps/{service}",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },+ {+ "route": "PUT /gateway/organizations/current/services/{service}",+ "auth": "session",+ "flags": [+ "organization_connector_apps",+ "service_connections"+ ]+ },{"route": "PUT /gateway/room-groups/{group_id}/rooms","auth": "session",