M1: read-only local Ollama runtime collector #15
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Creatidy/scarcity-router!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "m1-ollama-runtime-collector"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #14
Summary
Simplifies the issue-scoped read-only Ollama runtime collector. Pure provider parsers remain unchanged in role and the collector still emits the v1
CapacitySnapshotplusLocalRuntime(provider=ollama,source=ollama_local). Healthy runtimes reportwindows: []; no quota, scarcity, percentage sentinel, generation, loading, pull/delete, benchmark, GPU, runtime/config mutation, or live provider call is included.Implementation
127.0.0.1or::1, with omitted port canonicalized to11434; unsafe names, ports, userinfo, query/fragment delimiters, whitespace, controls and non-root paths are rejected./api/version,/api/tags, and conditional/api/ps; missing is reported only from a validated reachable listing.http.client.HTTPConnectionwith a finite socket timeout, one simple maximum response-body bound, safe status/transport normalization, strict UTF-8/JSON decoding, and normalfinallycleanup. No raw sockets,connect_ex, readiness polling, worker threads, cancellation state, custom HTTP framing, private response subclass, proxy, or redirect handling./api/pscontext_lengthand digest agreement with/api/tags; digest values never enter output.Tests and limitations
The obsolete transport-mechanism tests were replaced by a focused fake-
HTTPConnectioncontract harness covering endpoint policy, fixed paths, timeout propagation, statuses and transport failures, bounded bodies, cleanup, strict JSON and normalized parser semantics. Pure parser fixtures/tests remain.test_oversized_line_with_secret_never_leaks) emitted a background feeder-thread traceback to stderr and failed. No Ollama test failed.make typecheck/uv run basedpyright: 0 errors, 0 warnings, 0 notes.git diff --check origin/main: clean; branch history is linear with no merge commit.3bfb715(Simplify Ollama runtime transport).The effective-context populated value remains synthetic-fixture-tested only, and cross-version
context_lengthstability plus CLI/status, freshness, selection, REST/MCP and other providers remain out of scope. PR #15 remains open and targetsmain.kilo referenced this pull request2026-10-19 11:20:56 +00:00
kilo referenced this pull request2026-10-19 13:03:38 +00:00
kilo referenced this pull request2026-10-22 14:27:05 +00:00