feat(m7-m8): evaluation harness, privacy self-test, localisation and release

M7: corpus manifest loader/validation, chrF/BLEU/token/numeric metrics, raw-output and report.md/report.json writer, and sprachmittler-cli languages/detect/eval. A synthetic 4-segment run with the 7B validated the harness; the private-corpus and 1.8B evaluation and the default-model ADR remain open.

M8: privacy-check root fixture + seeded self-test wired into make verify; English/German localisation for the app shell; end-user USER_GUIDE; release.sh (unsigned archive, Developer ID sign, notarise/staple, DMG, --dry-run); idle CPU/memory and warm 7B measurements in PERFORMANCE.

Docs: PROGRESS M7–M8, MODEL_EVALUATION results log/gate status, PERFORMANCE measurements, TESTING evaluation cases, ADR-008 status. Compatibility/VoiceOver/notarisation gates remain manual.

Verified: make verify green (format, strict lint, privacy self-test, Debug+Release signatures, 227 package tests); CLI languages/detect/eval run; release dry-run.
This commit is contained in:
schihei committed 2026-11-26 14:16:21 +01:00
1 parent a78572adc3
commit 0ab5ae78bf
26 files changed
+1799 -28

No files matched your search

+14
View File
@@ -56,3 +56,17 @@ footprint -p $(pgrep -x Sprachmittler) # app memory, excluding Ollama
- Do not add a system message, a timestamp or dynamic context to the default prompt.
- Changing the target language changes the prefix and the cache; that is expected.
- `keep_alive: "30m"` keeps the model loaded between translations. A cold load can add seconds; measure it on the target Mac and record it here.
## 6. App shell measurements (2026-11-26)
| Metric | Measurement | Budget | Status |
|---|---|---|---|
| Idle CPU, app only, panel closed | 0.1% after 6 s | < 0.5% | ✅ |
| Idle RSS, app only | 86,960 KB ≈ 84.9 MB | ≤ 90 MB | ✅ |
| First translation token, warm 7B (synthetic eval) | 57–102 ms | ≤ 1.5 s | ✅ |
| Warm segment, 7B (synthetic eval) | 0.45–0.91 s | 250 tokens ≤ 8 s | ✅ |
| Panel visible after a two-copy smoke | panel appeared; latency not instrumented | ≤ 250 ms | not measured |
| Copy / Replace / idle hangs | not instrumented | budgets in §2 | not measured |
| 1.8B latency and memory | model not installed | budgets in §2 | not measured |
The synthetic eval used four short segments, one run, 7B Q4_K_M, temperature 0.7, `num_ctx` 8192. It validates the harness and warm 7B behavior, not the private corpus. Measure panel signposts, Copy, Replace, cold load and the 1.8B model on the target Mac before release.