Files
Sprachmittler/docs/PROGRESS.md
T
schihei 26b493e7e5 feat(m1): Ollama client, catalog, streaming chat and CLI (T1.1-T1.6)
Add endpoint policy and redirect-safe ephemeral HTTP client, error mapping, catalog cache and version checks, streaming chat with phase timeouts/cancellation, provisional Hy-MT3 prompt/language/request factory, warm-up policy, and sprachmittler-cli models/show/translate. Recapture the 7B fixtures; defer the 1.8B VERIFY items; document ADR-016. Also fix the signature checker's pipefail SIGPIPE issue.
2026-11-26 13:04:22 +01:00

7.6 KiB

Progress

The agent updates this file at the end of every task: check the box, add the ISO date, add one line of notes (deviations, follow-ups). Do not delete history.

Legend: [ ] open · [~] in progress · [x] done · [!] blocked (explain)

M0 — Scaffold and tooling

  • T0.1 Package.swift, module placeholders, fixtures load — 2026-11-26
  • [~] T0.2 App sources, Info.plist, menu-bar stub, entitlements — 2026-11-26 · signatures automated; visual menu-bar/Settings/Quit confirmation pending
  • T0.3 project.yml / XcodeGen — 2026-11-26
  • T0.4 verify script, format/lint, logging + signposts — 2026-11-26
  • [~] T0.5 OpenCode 2.x doctor — 2026-11-26 · doctor green; /status needs an interactive TUI run
  • T0.6 Environment record and smoke run — 2026-11-26

M1 — Ollama text client

  • T1.1 Capture fixtures, resolve VERIFY items — 2026-11-26 · 7B resolved; 1.8B deferred
  • T1.2 HTTP client, endpoint policy, redirects, error mapping — 2026-11-26
  • T1.3 Catalog (version, tags, show, ps) — 2026-11-26
  • T1.4 Streaming chat client (NDJSON, timeouts, cancellation) — 2026-11-26
  • T1.5 Warm-up, keep-alive, unload — 2026-11-26
  • T1.6 sprachmittler-cli models / show / translate — 2026-11-26

M2 — Hy-MT3 adapter and text pipeline

  • T2.1 Adapter protocol, registry, sampling merge
  • T2.2 Hy-MT3 adapter and byte-exact prompt
  • T2.3 Language catalogue (102 languages)
  • T2.4 Language detection, content classifier, chunker
  • T2.5 Protected tokens, output validator, preamble detector
  • T2.6 Prompt policy and documented fallbacks
  • T2.7 Compatibility spike (gate)

M3 — Double-copy capture

  • T3.1 DoubleCopyDetector state machine
  • T3.2 Pasteboard watcher and own-write suppression
  • T3.3 Clipboard snapshot and restore
  • T3.4 Services provider and menu item
  • T3.5 Manual double-copy matrix

M4 — Translation session and panel

  • T4.1 TranslationSession actor and epochs
  • T4.2 Panel controller and view model
  • T4.3 Panel view with Copy and Replace
  • T4.4 Target language, persistence, same-language
  • T4.5 Error messages and recovery actions
  • T4.6 Panel keyboard and accessibility

M5 — Replace

  • T5.1 InsertionCoordinator and target capture
  • T5.2 Accessibility direct replacement
  • T5.3 Paste fallback and clipboard restore
  • T5.4 Safety checks and Copy fallback
  • T5.5 Manual insertion matrix and permission onboarding

M6 — Settings, onboarding, menu bar

  • T6.1 AppSettings and persistence
  • T6.2 Onboarding checks and window
  • T6.3 Settings UI
  • T6.4 Status menu, launch at login, diagnostics
  • T6.5 End-to-end integration checkpoint (gate)

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)

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

Environment record

Item Value Date
OpenCode version 2.4.1 2026-11-26
Ollama version 0.40.18 2026-11-26
Translation model hf.co/tencent/Hy-MT3-7B-GGUF:Q4_K_M (7.5B, Q4_K_M) 2026-11-26
Model resident memory 6.49 GB with num_ctx 8192 2026-11-26
Mac (chip, memory) Apple M5 Pro, 48 GB 2026-11-26
macOS 27.2.1 (26B131) 2026-11-26
Xcode / Swift Xcode 27.2 / Swift 6.4.2 2026-11-26
Reference speed 246 output tokens in 6.52 s, 44.6 tok/s 2026-11-26

Notes log

2026-11-26 · kit · Package scaffold, docs and OpenCode 2.x configuration created. Package build/test and app build verified. 2026-11-26 · kit · Canonical prompt validated against the real 7B model: 178 prompt tokens, 246 output tokens, 44.6 tok/s. URL, e-mail, {{placeholder}}, Markdown and JSON preservation checked with the default prompt. 2026-11-26 · kit · Owner reference run recorded: 255 output tokens, 43.07 tok/s, 5.97 s warm, 177/178 prompt tokens cached. 2026-11-26 · kit · make smoke passed with 7B Q4_K_M: 34 output tokens in 2.89 s, 45.81 tok/s, cold load 2.05 s. 2026-11-26 · kit · make fixtures captured version, tags, ps, show, en→de, de→en, Markdown, truncated and missing-model fixtures. Digest 262ac792aeb5. 2026-11-26 · T0.1 · Verified swift build and make test; the text and Ollama fixture-loading tests pass through Bundle.module. Placeholder enums stay until their modules gain real types. 2026-11-26 · T0.2 · Debug + Release builds and signatures pass via scripts/check-signature.sh; an install-style re-sign preserves only app-sandbox=false plus Hardened Runtime. The app launches as a UIElement (no Dock icon); visual menu-bar/Settings/Quit confirmation is still pending. 2026-11-26 · T0.3 · xcodegen generate and Debug/Release xcodebuild pass; the generated project stays git-ignored. Bundle prefix remains the provisional de.schihei. 2026-11-26 · T0.4 · Added the 9 os.Logger categories, 8 OSSignposter intervals and a 12-hex shortHash; contract tests pass. verify.sh now lints Tests and checks Debug + Release signatures; make install preserves entitlements and Hardened Runtime. Leaf logging seam for M1/M2 is documented; shortHash must be logged with privacy: .private. 2026-11-26 · T0.5 · make doctor green; native V2 config resolves; agents/commands/skills and the /status command file are present. /status itself still needs one interactive TUI run. 2026-11-26 · T0.6 · make smoke with 7B Q4_K_M: 35 output tokens, 0.86 s warm, 46.96 tok/s, URL preserved. Environment table was already filled. 2026-11-26 · T1.1 · Re-ran make fixtures with the 7B (digest 262ac792aeb5); every fixture < 200 KB and the new contract tests pass. keep_alive:"0" unloads immediately; done_reason observed stop/length; a client abort returns no final object. 1.8B VERIFY deferred to T2.7/T7.4. 2026-11-26 · T1.2 · Added EndpointPolicy, ephemeral/redirect-refusing OllamaHTTPClient, error-body parsing and the Core SprachmittlerError mapper. Endpoint, redirect, session and error tests pass; CLI unreachable exits 3. 2026-11-26 · T1.3 · Added InstalledModel/ModelDetails/LoadedModel, OllamaVersion and the actor OllamaCatalogClient with per-digest show caching and refresh(). Filter, :latest, parameter, cache and version tests pass. 2026-11-26 · T1.4 · Added the streaming OllamaChatClient: NDJSON lines, split-line handling, done_reason/metrics, mid-stream errors, first-token/idle/total timeouts with ManualSleeper, and cancellation that stops the URL task. All transport/chat tests pass. 2026-11-26 · T1.5 · Added the provisional Engines slice (ModelLanguage, 16 common names, byte-exact Default prompt, documented options, request factory) and the loopback-only warm-up policy. Warm-up uses fixed Hello. and num_predict: 8; unload uses keep_alive:"0". 2026-11-26 · T1.6 · Implemented sprachmittler-cli models, show and translate (--text/--file, --target, --model, --json, --include-source). Live 7B checks: models/show, en→de text, JSON with null sourceLanguage/empty warnings, unreachable exit 3. The 102-language catalogue remains T2.3. 2026-11-26 · M1 · Review fixes: 180 s URLSession request/resource budget (no 60 s pre-emption), missing-done is an error, CLI diagnostics go to stderr and endpoint rejection exits 2, CLIEnvironment is the composition root, and cancellation/URL-task-stop tests are deterministic. Both reviewers approved.