BlueGit

ict rusty-teams

Files

rusty-teams / GUARDRAILS.md

GUARDRAILS.md

GUARDRAILS.md 3.5 KiB Download Raw

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

AreaRule
Content of a screenSame elements, same order, same states, same meaning of icons as the Teams web client.
TextsTeams strings from the bundle, in the account's Teams language. Own features get own texts in the same tone.
BehaviourClick paths, shortcuts, defaults, when toasts and badges appear: as in Teams. Extras only additive, never replacing a Teams behaviour.
Data in the accountSame endpoints and payloads for every write. Settings Teams knows are saved to the Teams account where Teams saves them, never only locally.
What others seeMessage formats, reactions, presence, call signaling: indistinguishable from Teams.

May differ

AreaAllowed
LookColors, spacing, islands, radii, theme (docs/design/islands/SPEC.md).
Data sourceMicrosoft Graph first, it is the official API and the path for a future registered client. Results and behaviour must still equal Teams.
Graph gapsWhere Graph loses data Teams has (e.g. reaction skin tone), take only the missing part from the Teams service (chatsvc etc.).
RequestsExtra or different requests (prefetch, caching, polling) when the result in the account is the same.
TelemetryLeave out Teams telemetry and analytics calls.
Local bugsFix Teams bugs that are purely local (rendering, scroll, focus). Anything touching server data or other people stays as Teams does it.
PerformanceFaster, less memory, offline reading from the cache.
PlatformOS-native toasts, tray, title bar and sounds.
Call windowsLike Teams (Daniel 2026-11-11, replaces the 2026-10-17 deviation): a call or meeting opens in its own window, the main window stays free for chats; a window share minimizes the call window like Teams. 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 (Daniel 2026-11-12).
Own featuresMCP, 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 settingsSettings Teams does not know stay in the local DB, never in Teams account properties.

Never

  • UI for a Teams feature we do not build (Copilot, Loop, breakout rooms): 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 the real account

Allowed without askingAsk first
Anything only Daniel sees: 48:notes, Echo bot, Meet now alone, own settingsMessages, reactions or calls in chats with other people
Short presence or status changes, reset afterwards

Clean up after every test: delete test messages, restore settings and status.

Before building

1. Find how Teams does it: docs/research/*.md, then the live bundle. 2. Write findings back to docs/research/<topic>.md. 3. If a change has to break a "must match" rule, name the deviation in the commit body.

Source
1# Guardrails: where Rusty Teams matches Teams and where it may differ
2
3Rules 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 | Like Teams (Daniel 2026-11-11, replaces the 2026-10-17 deviation): a call or meeting opens in its own window, the main window stays free for chats; a window share minimizes the call window like Teams. 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 (Daniel 2026-11-12). |
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 (Copilot, Loop, breakout rooms): no button, no placeholder, no dead click.
34- Own properties or message formats on the server.
35
36## Internal endpoints
37
38Every 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 the real account
41
42| Allowed without asking | Ask first |
43|---|---|
44| Anything only Daniel sees: `48:notes`, Echo bot, Meet now alone, own settings | Messages, reactions or calls in chats with other people |
45| Short presence or status changes, reset afterwards | |
46
47Clean up after every test: delete test messages, restore settings and status.
48
49## Before building
50
511. Find how Teams does it: `docs/research/*.md`, then the live bundle.
522. Write findings back to `docs/research/<topic>.md`.
533. If a change has to break a "must match" rule, name the deviation in the commit body.