Records Feature record

FDR-038

Bot Accounts

Experimental Last reviewed 2026-11-19 Source file

Overview

Bot accounts let people run integrations as clearly identified Chatto users without sharing a human login credential. A bot can use the normal public API within an explicit permission allowlist, bounded by its human owner's current authority. It cannot sign in as a person. A bot.manage grant includes issuing credentials for other bots; those credentials use the target bot's authority.

Behavior

  • Public User.bot metadata identifies a bot by its presence and contains owner_user_id. It is absent for humans and deleted-account references. The stored account model keeps its existing bot fields.

  • The client shows a small BOT badge after each bot display name. This includes messages, direct-message lists, profiles, account pickers, typing indicators, notifications, reaction details, and confirmation text. Each bot in a group direct message has its own badge. Selected account pickers show the badge beside the text field. Plain-text values, such as accessibility labels and page titles, use Name (BOT) when they must identify the bot. The badge stays visible when a long name is shortened. Deleted accounts do not have it. Avatars keep their custom-status indicators. Bot avatars show presence dots only for Online, Away, and Do Not Disturb. This makes account type clear without covering the avatar or implying verification.

  • The room sidebar lists bots in a Bots section between Online and Offline. It shows the section only when the room has bots. Bot presence does not move them to another section. Offline bots are not dimmed and have no presence dot. Bots with Online, Away, or Do Not Disturb presence show their normal dot. A bot is Online while its host sends presence heartbeats with the bot's API key, as @chatto/client does with server.reportPresence(). Without heartbeats, the bot is Offline.

  • Bot profiles show an Owned by row below the bot identity. The owner's avatar and name open the shared user profile card on click or tap. The card includes the room’s message and profile actions, subject to viewer permissions. This row stays visible when permissions are collapsed. Owner identity refreshes every 30 seconds while the bot profile is open.

  • A bot's profile pane shows What it can do to all authenticated members. It describes effective permissions after the owner's current authority is applied. Channel rooms and direct messages have separate descriptions. Message and call actions still require membership and other action-specific conditions.

  • Actions appear as short lists aligned below scope headings, with bundled icons in a separate column. Room browsing and joining share one bullet when both apply to the same scope. The section starts expanded and remembers its collapsed state for each server on this device.

  • The profile reads chatto.api.v1.PermissionService.ListEffectivePermissions. Any authenticated member can read bot effective permissions. Human targets, including the caller, require user.manage-permissions. The read returns only effective grants; it never returns stored overrides or inactive grants.

  • The client groups these grants for display. The API reports whether each grant covers all applicable child scopes, including rooms hidden from the viewer. It returns all viewer-visible effective grants in one coherent read, without pagination or truncation.

  • The summary combines broader and narrower grants only when every applicable narrower scope has the same effective access. It omits permissions already included by another displayed permission. Named rooms follow the viewer's normal room visibility. No DM participants or credential details are exposed.

  • Bot owners and authorised human bot managers can expand Inactive grants to see saved grants that are not active, with an explanation that the owner's current permissions do not allow them. The profile loads these separately through the existing admin user matrix read. Other members cannot see inactive grants.

  • The summary refreshes every 30 seconds while the pane is open. A failed read shows an error instead of stale grants. Closing the pane stops refreshes and clears its cache.

  • A human user with bot.create can create a bot account and becomes its owner.

  • Server Admin's Bots page lists the bots visible to the caller and creates new bots. Selecting a bot opens its detail page. The page has three sections, and each section has its own route: Overview edits the login, display name, bio, and avatar, and shows the metadata, owner reassignment, and deletion; Integrations manages outbound webhooks, incoming webhooks, and API keys; Permissions manages the permissions of the bot. Tabs link the sections. The owner and bot managers see all three sections. An account manager who does not manage bots can see all bots and manage their profiles and avatars, and sees only Overview. The account manager cannot manage their credentials or lifecycle. Bot custom-status and personal-settings management are not supported.

  • The user context menu of a bot shows Manage bot to its owner, to a human with bot.manage, and to a human with user.manage-accounts. The item opens the detail page of the bot. The client finds the owner from the public User.bot reference.

  • On a fresh RBAC bootstrap, admin receives bot.create and bot.manage. owner has both through the effective-owner override. Other members need an explicit bot.create grant. The owner grant follows Chatto's normal effective-owner override rather than being stored as an editable permission row.

  • Bot status and ownership are explicit, durable account properties. Human and bot accounts use the same username rules. A username does not identify the account kind.

  • Bot accounts are visible wherever ordinary users are visible, including messages, profiles, directories, mentions, direct messages, and member management. User identity displays mark them as bots with an accessible visual indicator.

  • A bot can have at most 20 active API keys. Each key has a manager-defined name, and names do not need to be unique. Chatto shows the raw key only when it creates the key. The raw key cannot be retrieved later.

  • A manager can create a replacement key before the manager moves an integration. The manager can then revoke only the old key. A bot can remain active without an API key when it uses only incoming webhooks.

  • The bot detail page shows when each API key was created and approximately when Chatto recorded its last use. A missing observation does not prove that the key was not used. The page shows a separate unavailable state when Chatto cannot read this optional telemetry.

  • The bundled frontend stops in-app navigation while it requests a show-once bot credential and while it shows that credential. It asks for confirmation before the browser unloads the page. Navigation becomes available after the manager acknowledges the credential.

  • A bot can have at most 20 active, named incoming webhooks. Creating one webhook shows its complete URL once. A manager can create a replacement before the manager revokes an old webhook.

  • The bot detail page shows when each incoming webhook was created and approximately when Chatto recorded its last use. Chatto attempts to record a successful credential authentication even if the request subsequently fails. If Chatto has no observation, the page shows "No use recorded." This state does not prove that the credential was not used. If Chatto cannot read this optional telemetry, the page shows that it is temporarily unavailable.

  • An incoming webhook can post plain-text messages as the bot. It accepts Slack-compatible text and channel fields, Chatto body and room_id aliases, Grafana message, an optional room_id query parameter, and the Chatto create_thread extension. All non-empty destinations and bodies must agree.

  • Webhook creation has an optional destination channel selector. It lists visible, active channel rooms and adds the selected room ID to the copied URL. The bot still needs membership and posting permission. This choice does not restrict the credential to that room.

  • Grafana can send its default webhook payload without a custom template. Chatto posts its formatted message, including firing or resolved status.

  • An incoming webhook uses stable room IDs. It can select any channel room where the bot is a member and has the normal posting permissions. It can select an existing DM that contains the bot. It cannot create or find a DM. It can create or reply in a DM thread when its DM-scoped allowlist and owner ceiling permit it.

  • Newly issued keys use a 128-bit random secret to remain compact enough for copy-and-paste workflows. Previously issued 256-bit keys remain valid until a manager revokes them.

  • API keys do not expire through inactivity. Revoking one key immediately invalidates that key and terminates realtime connections established with it. Other keys stay active. Deleting the bot or its owner invalidates all keys.

  • A bot API key authenticates normal public API and realtime requests as that bot. The bot can otherwise participate like a user wherever its explicit permissions allow.

  • A bot uses the normal realtime event subscription. There is no bot-only channel. It receives the same authorized semantic events as other clients, including message posts, edits, retractions, reactions, membership changes, room changes, and other public activity.

  • A bot can use stable event IDs to deduplicate delivery. It uses event resource references with the normal ConnectRPC API when it needs more context.

  • A recent reconnect can resume from the bot's last safe cursor. A long, invalid, unsafe, or expensive gap returns current snapshot state instead of every historical transition.

  • Notification occurrences remain available through NotificationService and current-state snapshots. They are not the only activation contract for bot integrations.

  • A delivered direct mention in a channel-room root or reply attempts to follow that thread if the bot has no prior follow state. Later replies can then create followed-thread occurrences for the bot.

  • A direct-mention policy of Off creates no occurrence and no mention-driven follow. It does not remove the interaction relationship created by the durable mention fact.

  • Bots do not inherit the implicit everyone role, named-role permissions, or any other baseline grants. An absent bot permission is denied.

  • The account permission matrix has a Joined row above the permission rows. Owners and human bot managers can add and remove the bot in each visible channel room that is not archived. A confirmation dialog explains that the change takes effect immediately after confirmation. Cancel leaves membership unchanged; grants stay unchanged. user.manage-accounts or room.manage for the room can override a missing join permission. Otherwise adding the bot requires the acting caller's effective room.join. The bot's own room.join controls self-service joins, not additions by its owner or a caller with bot.manage. Bans and archived rooms prevent joining. Bot owners do not need room.manage. Removal does not require room.join. Archived channels have no matrix column; their permissions and membership stay unchanged. Unarchiving restores their columns on the next matrix fetch. Universal membership is automatic: the bot is a member when its effective room.join allows it. The Joined cell of a Universal room tells whether room.join adds the bot, and the row help tells how to remove it: clear room.join where it is granted, or suspend the bot in that room. Server, group, and DM columns have no membership control.

  • Channel-room membership does not give a bot message content. The bot needs an explicit message.read grant for broad access or an explicit message.read-interactions grant for related threads. The broad grant includes the narrow permission. Each grant is bounded by sufficient effective authority on its owner. DM membership remains necessary, and the bot also needs a DM-scoped broad or interaction read grant.

  • A bot can start a DM with an explicit message.post grant at DM scope, bounded by its owner's authority. It can fetch an existing DM through RoomService.StartDM without posting permission, like a human participant.

  • Bot permissions are granted explicitly at their applicable server, room group, or room scope. The bot's effective permission is allowed only when both the bot's allowlist and its owner's current RBAC entitlement allow it at that scope. The owner ceiling does not depend on privileged mode in any human session. Bot permission inspection uses the same rule.

  • A bot manager can grant any permission within the owner's entitlement at the target scope and can clear any saved grant.

  • Bot permission mutations accept only allow or clear; explicit denials are rejected. The editor therefore presents each applicable permission as enabled or disabled instead of exposing RBAC's general three-state control. A direct grant can be cleared. An inherited grant is read-only at the narrower scope and must be changed where the broader grant was configured.

  • Losing the owner's sufficient authority immediately removes the corresponding effective permission from every bot they own. A stored bot grant can become effective again if the owner later regains the required permission.

  • The bot editor marks permissions the owner cannot grant as locked. A stored bot grant that is currently ineffective because of the owner's permission ceiling remains visibly enabled, but is shown as unavailable and distinct from both active grants and unconfigured permissions.

  • A bot owner can view, update, create and revoke API keys for, configure permissions for, and delete their own bots. Losing bot.create does not remove management of bots they already own.

  • The permission matrix exposes room scopes only when they are visible through the room directory to the managing caller. For a different owner, the room must also be visible with the owner’s full entitlement. It exposes the complete directory group layout, including empty groups, so group-scoped permissions such as room.create remain usable.

  • A human or bot with bot.manage can manage any bot. Changes made by a global bot manager remain bounded by that bot's owner's permission ceiling.

  • A human or bot with bot.manage can reassign a bot to another active human account. Ownership alone does not authorize reassignment, and the recipient does not need to accept it or hold bot.create.

  • Reassignment preserves the bot's configured permission allowlist and active API keys. Effective permissions immediately use the new owner's permission ceiling. The previous owner loses owner-derived management access, while the new owner gains it; either person may still have independent bot.manage.

  • Bots can create and manage bots with explicit bot.create and bot.manage grants, bounded by their human owner's authority. A bot-created account belongs to the creating bot's human owner and starts without grants. Bots cannot own bots. Reassignment during creation rejects a stale owner choice with a conflict; the caller can retry.

  • bot.manage includes creating and revoking keys and webhooks. A caller can issue a key for a bot with greater authority than its own. This is part of the permission's authority, and applies equally to human and bot callers.

  • Bots cannot have passwords, verified emails, external identities, browser sessions, OAuth access tokens, password-reset flows, or other human sign-in methods. A bot API key can use administrative operations with the same permission checks as a human. It does not need interactive privileged mode.

  • A bot owner, a caller with bot.manage, or a caller with user.manage-accounts can change a bot's login, display name, and bio, and can upload or delete its avatar. A login change by the owner or a caller with bot.manage checks and starts the 30-day username cooldown of the bot. A caller with user.manage-accounts bypasses the cooldown. A case-only change does not check or start it. The owner and bot managers can see the start of the cooldown through BotService, without admin.view-users. The bot detail page asks for confirmation before a login change that starts the cooldown, and it locks the username field while the cooldown runs. Bot.last_login_change reports the start of the cooldown. These rules apply to human and bot callers.

  • Bots cannot use the human account-deletion flow. Their owner or a caller with bot.manage can delete them through BotService.

  • An administrator with admin.view-users and user.manage-accounts can deactivate and reactivate a bot on its overview page, like a human account (FDR-018). The page shows the control only when the server's admin member read permits the change. The bot keeps its data, API keys, and webhooks. The server rejects them until reactivation. The bot list marks a deactivated bot, and its detail pages show a notice.

  • Deleting a bot uses the normal account-deletion and crypto-shredding behavior. Deleting a human owner also deletes every bot they own at deletion time and revokes those bots' API keys. Bots reassigned beforehand remain active.

  • Bot accounts count toward the server's user limit.

Design Decisions

1. Explicit account kind

Decision: Bot status is an immutable account kind. Human and bot usernames use the same rules. Why: Clients and authorization rules need a stable way to distinguish bots from people. Inferring identity from a name would make accounts ambiguous. Tradeoff: Account creation, profile projection, public user shapes, and identity rendering all need to carry the account kind explicitly.

2. User identity with non-human authentication

Decision: A bot is a normal user identity for API resources, authorship, membership, and public rendering, but has a separate API-key authentication path and cannot enrol a human sign-in method. Why: Integrations should use the same rooms, messages, mentions, and public APIs as people without requiring parallel bot-only resource models. Separating authentication keeps an API credential from becoming an interactive login. Tradeoff: Account-security and credential-enrolment operations must enforce the account-kind boundary rather than treating every passwordless account as eligible for a password or external identity. Profile and avatar operations stay shared in UserService. They take a target user ID, so the bot itself and its human managers use the same methods.

3. Explicit allowlist instead of normal role inheritance

Decision: Bots receive permissions only from explicit decisions in the canonical user permission matrix. They do not receive the implicit everyone baseline or named-role grants, and absence means deny. Why: API keys are long-lived automation credentials and should start with no ambient authority. Owners should be able to explain a bot's access from one explicit matrix rather than by combining roles and server defaults. Tradeoff: Owners must grant even ordinary member capabilities before a new bot can do useful work, and newly introduced permissions do not automatically become available to existing bots. Owners cannot carve out a denied narrower scope beneath a broader bot grant; they must clear the broader grant and add only the narrower grants the bot should retain.

4. The owner's current authority is a dynamic ceiling

Decision: A bot permission is effective only while the bot's human owner also has that permission at the relevant scope. This ceiling applies during server-side authorization, not only when the owner edits the matrix. Why: A one-time grant check would let a bot retain authority after its owner lost it. A dynamic ceiling makes bot delegation attenuating and keeps owner revocation meaningful. Tradeoff: Bot authorization depends on both bot and owner state. A stored grant may appear configured but temporarily ineffective, so management UIs must show the owner's ceiling and explain unavailable cells.

5. Bot creation is administrative by default

Decision: bot.create lets humans and bots create bots. Human ownership permits management of existing bots, and bot.manage permits management of any bot. Fresh RBAC state grants bot.create and bot.manage to admin. Effective owners receive both through the normal virtual owner override. Bots need explicit grants for these capabilities and do not inherit everyone. Upgraded 0.4 servers receive neither grant (ADR-113). Why: A bot holds API credentials and acts for its owner. Operators decide which members may create one. Human owners retain management access if their ability to create more bots is revoked. Bot creators need bot.manage for later management; sharing a human owner grants no implicit access. Tradeoff: Servers that want members to create bots must grant bot.create to everyone or to a role. Startup does not reconcile later default changes. Bot-management authorization also has an ownership path alongside the permission path used by global managers.

6. Multiple named, show-once API keys

Decision: Each bot can have at most 20 non-expiring API keys. Each key has a name and an independent revocation lifecycle. Names are labels and do not need to be unique. Chatto shows a raw key only when it creates that key. The new keys contain 128 bits of random secret. The verifier accepts the earlier 256-bit format so existing integrations continue to work. Why: Each integration can have its own credential. A manager can move one integration to a replacement key and revoke the old key without an outage for other integrations. Show-once delivery limits later secret exposure. Tradeoff: Managers must identify keys by stable ID when names are the same. Last-use data is optional and approximate. Established realtime connections retain only the accepted non-secret verifier and close when Chatto projects a revocation for that key.

7. Administrative reassignment preserves running integrations

Decision: A caller with bot.manage can reassign a bot directly to another active human account. Reassignment keeps the configured permission allowlist and active API keys, while immediately applying the new owner's permission ceiling. User-family OCC serializes reassignment with deletion of the previous or new owner. Deleting a human still cascades to bots they own at deletion time. Why: Operational handoffs need a recovery path before an owner leaves, but do not require a two-party invitation protocol. Keeping credential revocation separate avoids unnecessary integration downtime; an operator can create a replacement and revoke the affected key when credential custody is in doubt. Tradeoff: Chatto relies on the administrator to verify that the recipient requested or accepts the handoff. A permission may become active or inactive as soon as the owner changes, so the UI warns about the new ceiling. Existing credential holders retain access until an administrator separately revokes their keys.

8. Bot identity is visible on canonical user surfaces

Decision: Public user representations identify bot accounts, and clients render an accessible bot marker on user identity surfaces. The bundled client omits this marker from extra-small avatars to keep them clear. Larger avatars keep the marker. Why: People should know when messages or other actions come from automation. Using the canonical user representation keeps the distinction consistent across existing and future surfaces. Tradeoff: Older clients that do not understand the additive bot marker will render a bot like an ordinary user until they are upgraded.

9. Bots use normal DM permissions

Decision: Bots can start DMs with message.post at DM scope, subject to explicit grants and the owner's authority ceiling. Existing DM lookup does not require posting permission. New group DMs remain unsupported. Why: Workflows such as invoice approval need bots to contact people. An account-kind restriction does not prevent spam from human credentials. Tradeoff: Existing bots with DM posting authority can initiate contact. There is no separate permission or approval step for initiation.

10. Semantic public events are the bot activation contract

Decision: Bots receive every authorized public realtime event type through the normal client stream. Notification occurrences remain a separate current state and triage feature. They do not limit which message, reaction, room, membership, profile, or call changes a bot can observe. See ADR-091 and FDR-045.

Why: A bot author should react to what happened in Chatto instead of interpreting frontend projection replacements or relying only on notification policy. The same public event meaning can serve bots, the bundled frontend, alternate clients, and a future reliable delivery transport.

Tradeoff: Realtime provides bounded reconnect recovery, not indefinite delivery. Bots must deduplicate stable event IDs. An integration that must process every event after a long outage needs a future acknowledged transport or paged activity feature. Outbound webhook jobs survive restart and use bounded retries.

11. Incoming webhooks use a separate action credential

Decision: A bot can have at most 20 active, named incoming webhook credentials. Each credential can call only the incoming webhook HTTP endpoint. The endpoint posts through the normal message operation as the bot. Each credential can select a room through the request URL or JSON payload. Chatto shows each raw URL only when it creates the selected credential. A manager creates a replacement before the manager moves a caller and revokes the old credential. The bot detail page shows creation metadata and an approximate last-use time for each credential. The bundled frontend stops in-app navigation until it shows the raw credential and the manager acknowledges it.

Why: An external system can post a message without receiving the bot's complete API authority. Dynamic room selection keeps one automation usable across the rooms that the bot can already access.

Tradeoff: The credential is in the webhook URL and needs the same secret handling as an API key. The first version has no idempotency key. A retry after a lost response can create a duplicate message. Last-use telemetry is best-effort and can be delayed, unavailable, or missing after a process or storage failure. Rich Slack payloads and replies to existing threads are deferred.

12. Independent outbound webhooks

Decision: A bot manager can create up to 20 named outbound endpoints, each with its own URL, optional Authorization value, and signing secret. Each enabled endpoint receives new direct mentions and messages in DMs that include the bot, including replies. A DM mention produces one request with both trigger values. The bot's own messages do not activate it. Channel messages without a direct mention, edits, reactions, and notification preferences do not activate an outbound webhook.

Why: A fixed JSON structure and explicit event type let the receiving tool route requests without a separate event selection UI. See ADR-097.

Tradeoff: Generic tools must accept the Chatto JSON body. Signing headers are available, but signature verification is the receiver's responsibility. The bot uses the normal API to reply. Webhook response bodies have no action.

The saved name and URL remain visible to bot managers; Authorization remains write-only. Creation opens the signing-secret dialog immediately. Closing the dialog clears the secret. New endpoints start enabled in the UI. Names and signing secrets are fixed. The edit dialog changes the URL and lets managers type a replacement Authorization header directly. A blank field keeps the saved header; a clear action removes it and can be undone before saving. The saved value is never loaded into the field. Edits preserve the creation time and signing secret, and cancel retries for the previous settings. Row actions use icons with accessible labels and hover hints. Pause and resume preserve credentials. Resume accepts only new messages and does not revive cancelled retries. Revocation stops one endpoint permanently; an HTTP request already in flight can still finish. Paused endpoints count toward the limit. Bots can manage endpoints with bot.manage. The UI uses the same collection and dialog layout as API keys and incoming webhooks, with toast feedback for completed actions.

Chatto retries failed requests within an operator-configured lifetime and attempt limit. Pending work and retries are durable jobs and survive restart. The webhook job pool limits concurrent attempts to core.job_concurrency on each replica. Exhausted or expired jobs remain failed in server settings until someone retries or deletes them. A failed, unexpired job can be retried manually with the required permission. Requests have a stable delivery ID. A receiver must tolerate duplicates. The bot page shows recent failures for each endpoint. Failures expire after the operator-configured retention period, seven days by default. Later success does not clear an earlier failure. An empty history does not prove successful delivery. Access is checked before sending. The message body is the currently readable version, so it can change between attempts after an edit. Retracted or inaccessible messages are not sent.

Permissions

  • A bot can receive user.delete-self when its owner has that permission. The grant appears in the bot's effective permissions. Only human accounts can use it to delete their own account.

  • bot.create — create bot accounts. Human callers become the owner; bot callers use their current human owner.

  • bot.manage — view and manage every bot on the server, including reassigning its owner, while preserving the current owner's permission ceiling.

  • message.read — give the bot broad message access in configured channel rooms or in DMs, subject to membership and the owner's effective broad-read authority at the same scope. This grant includes message.read-interactions.

  • message.read-interactions — give the bot complete access to a thread that it started, where another account directly mentioned it, or where it received a DM, subject to membership and the owner's effective broad or narrow read authority.

  • message.post — post roots and thread replies at configured scopes. Includes message.post-in-thread and message.post-in-interactions. A bot can receive this permission only at Direct messages scope when it must not post in channels.

  • message.post-in-thread — post replies, including the first reply to a root, in readable threads at configured scopes. A bot that responds only in private-conversation threads can combine this DM-scoped allow with DM-scoped message.read. It does not need message.post.

  • message.post-in-interactions — reply only in related threads, with separate read access. A broad reader can use this grant to speak only in conversations involving it. The owner's effective authority must also include this grant.

Notification delivery modes are user preferences, not permissions. A bot can change its own notification policy through the normal notification policy API when it has access to the selected scope.

Fresh RBAC bootstrap grants bot.create and bot.manage to admin. Effective owners have both through the virtual owner override, so no editable owner permission row is seeded.

Bot ownership authorizes management of the owner's existing bots without a separate permission. Effective owners retain their normal all-permissions override. Bot callers need explicit grants within their owner's authority.

API Compatibility

Account membership uses the existing room APIs. Targeted reads now permit account managers and managers of the requested bot. Add and remove operations accept account managers and bot managers in addition to room managers. Room and account managers can override a missing join permission. Membership events and permission grants keep their existing storage format. No data migration is required.

Bot identity, management, reassignment, permission ceilings, and named credentials are additive in Chatto 0.5. The removal of the experimental replace-all key operation is a breaking public API change. Historical users remain human accounts when bot identity is absent. Older clients can still render bot accounts as ordinary users, and the bundled client does not call bot-management operations on an older server.

Operators must replace all replicas before they create or revoke bot credentials or reassign bot ownership. An older replica can omit newer bot facts. Updated servers continue to accept the first longer bot-key format while issuing the current shorter format. Exact field, method, event, and version-gate details belong in the public schema and API compatibility guide.

Named API-key methods, metadata, and lifecycle facts are additive. Existing bot API keys project as a named legacy key and stay valid after upgrade. Older replicas ignore added named keys, so clients cannot use a new named key on every replica until the rollout is complete. A targeted revocation of an older key also writes a compatibility fence that prevents an older binary from restoring that key after rollback. Chatto 0.5 removes the experimental RotateBotApiKey public method and the legacy rotation timestamp field. Older clients receive an unimplemented-method error if they call that method against a current server. They must create a named key, move the integration, and revoke the old key. The bundled current client does not expose key management when it connects to an older server that lacks the named-key methods. The bundled client enables named-key management for Chatto 0.5.0-alpha.4 or later.

Incoming webhook management methods, metadata, and lifecycle facts are additive. The create response shows the URL one time. Older clients ignore the metadata and do not call the new methods. Replace all replicas before you create or revoke a webhook. An older replica cannot project multiple webhook credentials correctly after replay and cannot authenticate the new URL format. Current servers read the rotation fact from the unreleased implementation, but they do not write it.

Avatar upload and deletion move from MyAccountService to target-aware UserService methods in Chatto 0.5.0-alpha.6. This is an intentional pre-1.0 breaking change. Old clients receive an unimplemented-method error from new servers. New clients receive the same error from old servers. The bundled client hides avatar editors when the server version is earlier than 0.5.0-alpha.6. Custom clients must regenerate their bindings, change the service, and send the target user ID.

Profile updates move from MyAccountService.UpdateProfile and AdminUserService.UpdateUser to the target-aware UserService.UpdateUserProfile in Chatto 0.5.0-beta.9. This is an intentional pre-1.0 breaking change. Bots that update their own profile must call the new method and send their own user ID. The bundled client shows the bot profile editor only when the server version is 0.5.0-beta.9 or later.

  • ADRs: ADR-113 (one-time upgrade grants for new permissions), ADR-100 (shared integration client), ADR-111 (client state layer in @chatto/client), ADR-098 (retained operational log), ADR-123 (durable background jobs), ADR-097 (webhook security and selection), ADR-007 (per-user encryption and crypto-shredding), ADR-033 (event-sourced state), ADR-036 (runtime state), ADR-040 (permission-only RBAC with owner override), ADR-045 (public API stability tiers), ADR-046 (typed runtime credentials), ADR-052 (subject-specific RBAC), ADR-076 (deterministic notification occurrences), ADR-077 (persistent notification list), ADR-080 (explicit message-read permissions), ADR-083 (action-limited bot incoming webhooks), ADR-085 (user-scoped MCP integration), ADR-087 (request-time authorization with aggregate OCC), ADR-089 (server content view), ADR-091 (semantic realtime events)
  • FDRs: FDR-001 (Roles & Permissions), FDR-002 (Replies & Threads), FDR-006 (@Mentions), FDR-007 (Direct Messages), FDR-012 (Notifications), FDR-018 (Account Lifecycle), FDR-022 (User Profile), FDR-023 (Authentication & Sessions), FDR-025 (User Search & Member Directory), FDR-039 (Message Access & Interactions), FDR-043 (Model Context Protocol Integration), FDR-045 (Realtime Event Stream)

Open Questions

  • API-key expiry is deferred.
  • Additional outbound event types are deferred.

Records that name this record

Esc