BlueGit

ict rusty-teams

docs(guardrails): define where Rusty Teams matches Teams and where it may differ

- must match: screen content, Teams strings, behaviour, account data, what others see
- may differ: look, Graph-first reads, telemetry, local bug fixes, performance, OS-native
- testing rules for the real account

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-17 · 6 weeks ago

Hash
1c2a98dfe3358b1a701a700f11b145c9ff4232ed
Parent
9ee74048
1 file changed +52 −0
GUARDRAILS.md added +52 −0
@@ -0,0 +1,52 @@
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 | Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically, no own message formats. |
28 | Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. |
29
30 ## Never
31
32 - UI for a Teams feature we do not build (Copilot, Loop, breakout rooms): no button, no placeholder, no dead click.
33 - Own properties or message formats on the server.
34
35 ## Internal endpoints
36
37 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.
38
39 ## Testing with the real account
40
41 | Allowed without asking | Ask first |
42 |---|---|
43 | Anything only Daniel sees: `48:notes`, Echo bot, Meet now alone, own settings | Messages, reactions or calls in chats with other people |
44 | Short presence or status changes, reset afterwards | |
45
46 Clean up after every test: delete test messages, restore settings and status.
47
48 ## Before building
49
50 1. Find how Teams does it: `docs/research/*.md`, then the live bundle.
51 2. Write findings back to `docs/research/<topic>.md`.
52 3. If a change has to break a "must match" rule, name the deviation in the commit body.
@@ -0,0 +1,52 @@
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| Own features | MCP, agents, session inbox: allowed when nobody else can tell. Nothing sent automatically, no own message formats. |
28| Own settings | Settings Teams does not know stay in the local DB, never in Teams account properties. |
29
30## Never
31
32- UI for a Teams feature we do not build (Copilot, Loop, breakout rooms): no button, no placeholder, no dead click.
33- Own properties or message formats on the server.
34
35## Internal endpoints
36
37Every 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.
38
39## Testing with the real account
40
41| Allowed without asking | Ask first |
42|---|---|
43| Anything only Daniel sees: `48:notes`, Echo bot, Meet now alone, own settings | Messages, reactions or calls in chats with other people |
44| Short presence or status changes, reset afterwards | |
45
46Clean up after every test: delete test messages, restore settings and status.
47
48## Before building
49
501. Find how Teams does it: `docs/research/*.md`, then the live bundle.
512. Write findings back to `docs/research/<topic>.md`.
523. If a change has to break a "must match" rule, name the deviation in the commit body.