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.
This commit is contained in:
1 parent
7ca5c710ec
commit
26b493e7e5
93 files changed
+3732
-218
No files matched your search
+13
-6
@@ -13,12 +13,12 @@ Legend: `[ ]` open · `[~]` in progress · `[x]` done · `[!]` blocked (explain)
|
||||
- [x] T0.6 Environment record and smoke run — 2026-11-26
|
||||
|
||||
## M1 — Ollama text client
|
||||
- [ ] T1.1 Capture fixtures, resolve VERIFY items
|
||||
- [ ] T1.2 HTTP client, endpoint policy, redirects, error mapping
|
||||
- [ ] T1.3 Catalog (version, tags, show, ps)
|
||||
- [ ] T1.4 Streaming chat client (NDJSON, timeouts, cancellation)
|
||||
- [ ] T1.5 Warm-up, keep-alive, unload
|
||||
- [ ] T1.6 sprachmittler-cli models / show / translate
|
||||
- [x] T1.1 Capture fixtures, resolve VERIFY items — 2026-11-26 · 7B resolved; 1.8B deferred
|
||||
- [x] T1.2 HTTP client, endpoint policy, redirects, error mapping — 2026-11-26
|
||||
- [x] T1.3 Catalog (version, tags, show, ps) — 2026-11-26
|
||||
- [x] T1.4 Streaming chat client (NDJSON, timeouts, cancellation) — 2026-11-26
|
||||
- [x] T1.5 Warm-up, keep-alive, unload — 2026-11-26
|
||||
- [x] T1.6 sprachmittler-cli models / show / translate — 2026-11-26
|
||||
|
||||
## M2 — Hy-MT3 adapter and text pipeline
|
||||
- [ ] T2.1 Adapter protocol, registry, sampling merge
|
||||
@@ -100,3 +100,10 @@ Legend: `[ ]` open · `[~]` in progress · `[x]` done · `[!]` blocked (explain)
|
||||
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.
|
||||
Reference in new issue
Block a user