# Communication Rules

> Last Verified: 2026-02-17 | Owner: John

# Communication Protocols

## Channels (active)
- **Mattermost** — SVA interna komunikacija (Alem, John, klijenti)
- **CLI/Console** — development, deep work (normala)
- **Email** — eksterni kontakti (MCP tools)

## Deprecated (UGAŠENO 2026-02-11)
- SSH Chat — archived to ~/system/archive/comm-deprecated-20260211/
- Discord — archived
- Slack — archived
- Telegram — archived earlier

## Mattermost Setup
- Server: http://localhost:8065 (mm.basicconsulting.no external)
- Tool: node ~/system/tools/mm.js
- Teams: basic (internal), wizzardnuf, rendrom, riad (clients)
- AI Ops channel: basic/ai-ops (system notifications)

## MM Commands
| Command | Usage |
|---------|-------|
| Send | `node ~/system/tools/mm.js send <team> <channel> "msg"` |
| Read | `node ~/system/tools/mm.js read <team> <channel> [limit]` |
| Unread | `node ~/system/tools/mm.js unread <team>` |
| Gate | `node ~/system/tools/mm.js gate <team> "question"` |
| Status | `node ~/system/tools/mm.js status` |

## Daily Rhythm
| Vrijeme | Sta |
|---------|-----|
| 08:00 | John salje jutarnji brief na MM basic/ai-ops |
| Non-stop | Daemon prati: tasks (30min John autowork) |
| Kad treba | John javlja ako treba Alemova odluka (MM gate) |
| 19:00 | Vecernji summary na MM |

## Language Matching Rules

**All client-facing communication MUST match the detected language:**
- English email → English response
- Norwegian email → Norwegian response (NO)
- Bosnian email → Bosnian response (BS)

**Language detection:** Automatic via `intake-analyzer.js detectLanguage()`
- Detection: Character markers (æøå → NO, ćčšžđ → BS) + word frequency analysis
- Stored in: lead notes, drafts.db lang field, follow-up reminders

**Internal communication:** Always English (team, HiveMind, Slack, MM)

**Implementation:**
- All draft generation tools pass `lang` parameter
- Email templates exist in 3 variants: EN/NO/BS
- Follow-up reminders use language-aware templates

## Odluke
| Tip | Ko odlucuje |
|-----|-------------|
| Operativno (<5K EUR) | John — radi, loguje |
| Stratesko (>5K EUR, partneri, pivoti) | Alem |
| Hitno | John eskalira na MM basic/town-square |