Guardrails: where Rusty Teams matches Teams and where it may differ
Rules for every change, by people and by agents. If a rule here and a habit elsewhere disagree, this file wins.
Must match Teams
| Area | Rule |
|---|---|
| Content of a screen | Same elements, same order, same states, same meaning of icons as the Teams web client. |
| Texts | Teams strings from the bundle, in the account's Teams language. Own features get own texts in the same tone. |
| Behaviour | Click paths, shortcuts, defaults, when toasts and badges appear: as in Teams. Extras only additive, never replacing a Teams behaviour. |
| Data in the account | Same endpoints and payloads for every write. Settings Teams knows are saved to the Teams account where Teams saves them, never only locally. |
| What others see | Message formats, reactions, presence, call signaling: indistinguishable from Teams. |
May differ
| Area | Allowed |
|---|---|
| Look | Colors, spacing, islands, radii, theme (docs/design/islands/SPEC.md). |
| Data source | Microsoft Graph first, it is the official API and the path for a future registered client. Results and behaviour must still equal Teams. |
| Graph gaps | Where Graph loses data Teams has (e.g. reaction skin tone), take only the missing part from the Teams service (chatsvc etc.). |
| Requests | Extra or different requests (prefetch, caching, polling) when the result in the account is the same. |
| Telemetry | Leave out Teams telemetry and analytics calls. |
| Local bugs | Fix Teams bugs that are purely local (rendering, scroll, focus). Anything touching server data or other people stays as Teams does it. |
| Performance | Faster, less memory, offline reading from the cache. |
| Platform | OS-native toasts, tray, title bar and sounds. |
| Call windows | A call or meeting opens in its own window like Teams, the main window stays free for chats; a window share minimizes the call window. Layout and gallery behaviour match Teams. Only the share bar and the share border stay out of captures; call, mini and gallery windows show up in screenshots like in Teams. |
| Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically unless the user turned review off (Settings > MCP) or granted a time window; no own message formats. |
| Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. |
Never
- UI for a Teams feature we do not build (see Out of scope in
ROADMAP.md): no button, no placeholder, no dead click. - Own properties or message formats on the server.
Internal endpoints
Every non-Graph endpoint (chatsvc, Substrate, calling, presence service, ...) lives behind its own clearly named module and is listed in docs/research/internal-endpoints.md with what it is used for and whether Graph could replace it.
Testing with a real account
Use your own account or a test tenant. Agents working on someone's account follow the table.
| Allowed without asking | Ask the account owner first |
|---|---|
Anything only the account owner sees: 48:notes, Echo bot, Meet now alone, own settings | Messages, reactions or calls in chats with other people |
| Short presence or status changes, reset afterwards |
Clean up after every test: delete test messages and recordings, hide test meeting chats, restore settings and status.
Before building
1. Find how Teams does it: docs/research/*.md, then the JS bundle of the Teams web client. 2. Write findings back to docs/research/<topic>.md. That folder stays local and untracked; only internal-endpoints.md is committed. 3. If a change has to break a "must match" rule, name the deviation in the commit body. 4. If the change picks one reasonable path over another, and that choice is not already a rule here, add a short note under docs/decisions/ (see docs/decisions/README.md).
Source
| 1 | # Guardrails: where Rusty Teams matches Teams and where it may differ |
| 2 | |
| 3 | Rules for every change, by people and by agents. If a rule here and a habit elsewhere disagree, this file wins. |
| 4 | |
| 5 | ## Must match Teams |
| 6 | |
| 7 | | Area | Rule | |
| 8 | |---|---| |
| 9 | | Content of a screen | Same elements, same order, same states, same meaning of icons as the Teams web client. | |
| 10 | | Texts | Teams strings from the bundle, in the account's Teams language. Own features get own texts in the same tone. | |
| 11 | | Behaviour | Click paths, shortcuts, defaults, when toasts and badges appear: as in Teams. Extras only additive, never replacing a Teams behaviour. | |
| 12 | | Data in the account | Same endpoints and payloads for every write. Settings Teams knows are saved to the Teams account where Teams saves them, never only locally. | |
| 13 | | What others see | Message formats, reactions, presence, call signaling: indistinguishable from Teams. | |
| 14 | |
| 15 | ## May differ |
| 16 | |
| 17 | | Area | Allowed | |
| 18 | |---|---| |
| 19 | | Look | Colors, spacing, islands, radii, theme (`docs/design/islands/SPEC.md`). | |
| 20 | | Data source | Microsoft Graph first, it is the official API and the path for a future registered client. Results and behaviour must still equal Teams. | |
| 21 | | Graph gaps | Where Graph loses data Teams has (e.g. reaction skin tone), take only the missing part from the Teams service (chatsvc etc.). | |
| 22 | | Requests | Extra or different requests (prefetch, caching, polling) when the result in the account is the same. | |
| 23 | | Telemetry | Leave out Teams telemetry and analytics calls. | |
| 24 | | Local bugs | Fix Teams bugs that are purely local (rendering, scroll, focus). Anything touching server data or other people stays as Teams does it. | |
| 25 | | Performance | Faster, less memory, offline reading from the cache. | |
| 26 | | Platform | OS-native toasts, tray, title bar and sounds. | |
| 27 | | Call windows | A call or meeting opens in its own window like Teams, the main window stays free for chats; a window share minimizes the call window. Layout and gallery behaviour match Teams. Only the share bar and the share border stay out of captures; call, mini and gallery windows show up in screenshots like in Teams. | |
| 28 | | Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically unless the user turned review off (Settings > MCP) or granted a time window; no own message formats. | |
| 29 | | Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. | |
| 30 | |
| 31 | ## Never |
| 32 | |
| 33 | - UI for a Teams feature we do not build (see Out of scope in `ROADMAP.md`): no button, no placeholder, no dead click. |
| 34 | - Own properties or message formats on the server. |
| 35 | |
| 36 | ## Internal endpoints |
| 37 | |
| 38 | Every non-Graph endpoint (chatsvc, Substrate, calling, presence service, ...) lives behind its own clearly named module and is listed in `docs/research/internal-endpoints.md` with what it is used for and whether Graph could replace it. |
| 39 | |
| 40 | ## Testing with a real account |
| 41 | |
| 42 | Use your own account or a test tenant. Agents working on someone's account follow the table. |
| 43 | |
| 44 | | Allowed without asking | Ask the account owner first | |
| 45 | |---|---| |
| 46 | | Anything only the account owner sees: `48:notes`, Echo bot, Meet now alone, own settings | Messages, reactions or calls in chats with other people | |
| 47 | | Short presence or status changes, reset afterwards | | |
| 48 | |
| 49 | Clean up after every test: delete test messages and recordings, hide test meeting chats, restore settings and status. |
| 50 | |
| 51 | ## Before building |
| 52 | |
| 53 | 1. Find how Teams does it: `docs/research/*.md`, then the JS bundle of the Teams web client. |
| 54 | 2. Write findings back to `docs/research/<topic>.md`. That folder stays local and untracked; only `internal-endpoints.md` is committed. |
| 55 | 3. If a change has to break a "must match" rule, name the deviation in the commit body. |
| 56 | 4. If the change picks one reasonable path over another, and that choice is not already a rule here, add a short note under `docs/decisions/` (see `docs/decisions/README.md`). |