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

+22 -11
View File
@@ -59,19 +59,19 @@ Legend: `[ ]` open · `[~]` in progress · `[x]` done · `[!]` blocked (explain)
- [~] T6.5 End-to-end integration checkpoint (gate) — 2026-11-26 · needs the user's manual 10-app pass
## M7 — Evaluation and the default-model gate
- [ ] T7.1 Corpus manifest and eval CLI
- [ ] T7.2 Metrics
- [ ] T7.3 Reports
- [ ] T7.4 Evaluation run
- [ ] T7.5 Default-model ADR (gate)
- [x] T7.1 Corpus manifest and eval CLI — 2026-11-26
- [x] T7.2 Metrics — 2026-11-26
- [x] T7.3 Reports — 2026-11-26
- [~] T7.4 Evaluation run — 2026-11-26 · synthetic harness validated; private corpus and 1.8B still needed
- [~] T7.5 Default-model ADR (gate) — 2026-11-26 · blocked on T7.4 and user decision
## M8 — Hardening and release
- [ ] T8.1 Privacy audit and self-test
- [ ] T8.2 Accessibility pass
- [ ] T8.3 Performance pass
- [ ] T8.4 German localisation and end-user README
- [ ] T8.5 Release script
- [ ] T8.6 Compatibility matrix completion
- [x] T8.1 Privacy audit and self-test — 2026-11-26
- [~] T8.2 Accessibility pass — 2026-11-26 · labels/keyboard in code; VoiceOver manual
- [~] T8.3 Performance pass — 2026-11-26 · app/7B measured; panel/Copy/Replace/1.8B unmeasured
- [x] T8.4 German localisation and end-user README — 2026-11-26 · user review pending
- [x] T8.5 Release script — 2026-11-26 · dry-run; credentials/notarisation manual
- [~] T8.6 Compatibility matrix completion — 2026-11-26 · 10-app matrix needs a person
## Environment record
@@ -138,3 +138,14 @@ Legend: `[ ]` open · `[~]` in progress · `[x]` done · `[!]` blocked (explain)
2026-11-26 · T6.5 · The end-to-end gate is ready to run but not marked complete: it needs the user's manual double-copy → panel → Copy/Replace pass.
2026-11-26 · M4/M5/M6 smoke · Launched the Debug app and sent two identical clipboard copies; the non-activating panel appeared on screen without a crash. Full focus, Copy/Replace, VoiceOver, onboarding and 10-app matrices remain manual.
2026-11-26 · M4/M5/M6 review · Cleared the previous translation when a new capture arrives (menu Replace cannot pair old text with a new selection); restored the clipboard on cancelled/failed paste; reset the panel before showing a new capture; mapped blocked Replace to the real warning; mapped endpoint/transport errors in onboarding and settings; surfaced launch-item errors; moved Fast-model detection to Engines; suppressed retry deltas and streamed chunk separators; made settings updates atomic and fastModel nullable; fixed refresh endpoint validation; localized warning strings; used the captured selection for an early safety check; the event observer now sees only current-epoch events and only a validated `.ready` result can become the status-menu last translation; insertion-target enrichment is generation-guarded. `make verify` green.
2026-11-26 · T7.1 · Added `sprachmittler-cli languages`, `detect` and `eval`; manifest decoding/validation, relative path loading, target filtering and precise errors.
2026-11-26 · T7.2 · Added chrF, BLEU, protected-token retention, numeric consistency and latency percentiles with hand-computed tests.
2026-11-26 · T7.3 · Added `report.md`/`report.json` with environment, per-category tables, observations and limitations; raw outputs stay under the ignored results path.
2026-11-26 · T7.4 · Ran the eval harness on a synthetic 4-segment manifest with the 7B: 0% failures, token retention 1.0, chrF 61–96, first token 57–102 ms. The private corpus and 1.8B comparison remain pending; this is not a default decision.
2026-11-26 · T7.5 · ADR-008 remains Proposed. The gate needs the private corpus report, 1.8B numbers and the user's decision; docs still label the 7B provisional.
2026-11-26 · T8.1 · Extended `privacy-check.sh` for the evaluation harness and added `privacy-self-test.sh`, which seeds and detects every major SP rule; wired into `make verify`.
2026-11-26 · T8.2 · Added accessibility labels to panel/settings/onboarding controls and keyboard paths; VoiceOver, Reduce Motion and Increase Contrast remain manual.
2026-11-26 · T8.3 · Measured idle CPU 0.1%, app RSS ≈84.9 MB, 7B first token 57–102 ms and 0.45–0.91 s warm on the synthetic eval. Panel/Copy/Replace signposts and 1.8B remain unmeasured.
2026-11-26 · T8.4 · Added English/German `Localizable.strings` for the app shell and `docs/USER_GUIDE.md` (install, permissions, privacy, troubleshooting).
2026-11-26 · T8.5 · Added `scripts/release.sh` (archive unsigned, Developer ID sign, notarise/staple, DMG, `--dry-run`) and `make release`.
2026-11-26 · T8.6 · The compatibility matrix remains a manual 10-app pass; no untested cell is claimed.