Repository Public
1<!--2Local Chat3File: Documentation/TEST_REPORT.md4Author: Simon-Pierre Boucher5Contact: contact@spboucher.ai6-->7# Test report — 2026-11-20, MacBook Pro M5 Max (48 GB), macOS 27.0, Xcode 27.289## Executed10`swift test --disable-keychain` — **200 tests, 0 failures** (log: `build/logs/all-tests.log`).1112| Target | Tests | What is real |13|---|---|---|14| `LocalChatCoreTests` | 29 | crypto known-answer vectors, Keychain (really executed), path sandbox, SSE, URL policy |15| `LocalChatDataTests` | 88 | SQLite stores, branching, FTS5, export / import, sync records, extraction of generated PDF / DOCX / CSV, vector search (100 000 × 384: 8–12 ms warm), stubbed Hub + resumable downloads, GGUF header, per-device MLX catalog, Apple sentence embeddings end to end |16| `LocalChatServiceTests` | 73 | API server over real sockets against the remote-node client (stream, auth 401, rate limit 429, cancel), agent loop with scripted model (permissions, approvals, limits, shell deny-list, SSRF guard), encrypted sync convergence |17| `LocalChatInferenceTests` | 9 | **real GPU inference**: MLX streaming answer, KV-cache reuse on turn 2, cancellation, tool call (`get_weather(city: Montreal)`), engine load / observe / unload, refusal of a model that cannot fit; llama.cpp answer with prefix reuse |18| `LocalChatAppTests` | 1 | **end to end through the app layer**: real download of `mlx-community/Qwen3-0.6B-4bit` (351 MB, SHA-256 verified), chat, automatic title, regenerate → sibling branch, branch switch, second turn, full-text search, metrics recorded, document indexed and cited in a grounded answer |1920Also run once with `LC_LIVE=1`: live Hugging Face search, starter catalog resolution, one real small download.2122## Checked by hand (screenshots)23- macOS Debug app: launch, real chat with Markdown, LaTeX formula, highlighted code, context bar, metrics, inspector; Models and Observatory screens with measured values (95.6 tokens/s for Qwen3-0.6B-4bit).24- macOS Release app (Developer ID, sandbox, hardened runtime): launches; `spctl` → "accepted, Notarized Developer ID".25- iOS app in the iPhone 17 Pro Simulator (iOS 26.5): launch, tab layout, new chat, send; the system model's failure in the Simulator is reported in the transcript.2627## Bugs found by these runs and fixed28- A late database observation event could replace the conversation state with an older one, so a turn was generated without the newest message. The controller now always re-reads the store.29- The system inspector caused an AppKit constraint loop (crash) during streaming; replaced by a plain side panel.3031## Not executed32- `LocalChatMacUITests` / `LocalChatIOSUITests` (XCUITest): the Xcode test runner timed out before starting on this machine while it was under heavy load (load average above 50). They are written, never run.33- Anything on a physical iPhone or iPad. See `LIMITATIONS.md`.34