Skip to content

docs: extraction blueprint — the ollama calling layer as a consumable package - #231

Merged
glennneuber merged 1 commit into
mainfrom
docs/ollama-client-extraction-blueprint
Aug 29, 2026
Merged

docs: extraction blueprint — the ollama calling layer as a consumable package#231
glennneuber merged 1 commit into
mainfrom
docs/ollama-client-extraction-blueprint

Conversation

@glennneuber

Copy link
Copy Markdown

Synthesis of four independent Opus max-effort reviews of the ollama calling layer (wire contract on both sides of the API, ladder+lifecycle, capture+provenance, coupling audit), run against main @ 95715da with blocker claims re-verified by hand before synthesis.

Verdict: extractable. Three modules lift unchanged today (salvage.py, sampling.py, summarize_engine_compare.py); client.py needs shimming, not rewriting — its omission sentinels and tri-state think are the API. What blocks a clean package is enforcement, not mechanisms: four "capped" implementations (two pool capped cells into published means), block identity living in filenames, provenance in stdout, a second payload builder in preflight, and a ladder whose correctness rests on cold restarts nothing verifies (MLX runners never reload on option changes — verified at sched.go).

The blueprint: package layers + design rules; the condensed wire contract a consumer must know (incl. fork-vs-stock deltas invisible in the response shape: pass-summed eval_count, silently dropped fork options, the format:null chat two-pass trigger); a ranked fix-first list (P0 correctness / P1 robustness / P2 measurement follow-ups, including M1 which challenges the 2026-08-19 endpoint entry's interpretation — to be settled by re-measurement per the log's REFUTED convention, not edits); and the strengths inventory to preserve verbatim.

🤖 Generated with Claude Code

… package

Synthesis of four independent max-effort reviews (wire contract on both
sides of the API, ladder+lifecycle, capture+provenance, coupling audit)
against main @ 95715da, blocker claims re-verified by hand. The calling
discipline is extractable — salvage.py, sampling.py and
summarize_engine_compare.py lift unchanged — but each best mechanism has
unsanctioned rivals: four capped definitions (two of which pool capped
cells into published means), identity and provenance living in filenames
and stdout, a second payload builder in preflight, and a ladder whose
correctness rests on cold restarts nothing verifies (MLX runners never
reload on option changes). The blueprint fixes first in-repo (P0/P1),
extracts second, and documents the wire contract a consumer must know —
including fork-vs-stock deltas invisible in the response shape
(pass-summed eval_count, silently dropped fork options) and three
measurement follow-ups (M1 challenges the 2026-08-19 endpoint entry's
interpretation; measurement decides, per the log's REFUTED convention).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant