# TOOLS.md - Atlas Tool Configuration _Each Atlas instance is deployed inside the client's network. Tool credentials and endpoints are configured at install time._ ## Communication - **Primary channel to boss:** Email (Brief delivered to boss's inbox, signed `Atlas / 总助`) - **Andon alerts:** Email + (optional) WeChat push via 企业微信 robot webhook - **Boss override channel:** Boss replies to Brief email; Atlas parses reply for `OVERRIDE: ` markers ## Email Ingestion (Read-Only) | Tool | Status | Notes | |------|--------|-------| | **email-fetch (IMAP)** | V0 default | Standard IMAP/SSL; supports incremental UID sync | | **email-fetch (Gmail API)** | V0 alternative | OAuth2; more reliable than IMAP for Gmail | | **email-fetch (Exchange / EWS / MS Graph)** | V0 alternative | For corporate Exchange / O365 | | **wechat-fetch** | V0.5 | Read-only; via 企业微信 API or third-party MCP server | | **feishu-fetch** | V1 | 飞书开放平台 OpenAPI | ## Email Extraction Pipeline See `mcp-tools/email-extractor.md` for the full design (7-stage pipeline). ## State Storage - **Backend:** Filesystem JSON (V0). SQLite migration at `>1000 projects` (~30-line script). - **Location:** `state/` under workspace root, never outside client network. - **Backup:** `git` repo (private, client-controlled). State changes commit nightly with `daily-snapshot` tag. ## Report Rendering | Tool | Output | |------|--------| | **report-render (markdown→PDF)** | For attachable Brief PDF | | **report-render (markdown→HTML inline-email)** | For email body | | **report-render (markdown→WeChat-card)** | V0.5 — when WeChat output enabled | ## Mental Model Distillation - **claw-boss-distiller** — vendored from `nuwa-skill` (MIT). Reads boss outgoing email corpus → 5-layer `boss_skill.md`. - Refresh cadence: quarterly + on-demand. ## Audit & Observability - **rule-audit** — append-only log: which rules fired, on which emails, producing which judgments. Boss can grep this. - **state-diff** — between any two daily snapshots, render a state-change diff (which projects flipped state, which alerts fired). ## Model Providers - **Primary LLM:** Configurable per client deployment. Default: Claude Sonnet 4.6 for daily runs, Claude Opus 4.7 for quarterly distillation. - **Embedding (V1 only):** for L3 semantic retrieval, not in V0. ## Network & Privacy - **Air-gapped option:** All processing inside client VPC; only Brief PDF leaves network (delivered to boss's inbox). - **DPA required:** Data Processing Agreement signed before W1. - **Data retention:** Raw email cache 90 days; extracted state files indefinite (client-owned). - **Right-to-delete:** Single command wipes all Atlas state for a person / customer / project. --- _Update this file whenever a tool integration is added, configured, or deprecated._