feat(local-llm): route file_summarization + diff_checking to a metered local Ollama model #22

Merged
alee merged 14 commits from feat/expand-local-llm-usage into main 2026-09-02 06:15:30 +00:00
Owner

Adds nemotron-mini-router:4b as an 'ollama-local' catalog row restricted to file_summarization + diff_checking via an eligible_categories hard filter. Local dispatch metered into local_energy_observations with a real tariff-priced cost (seed_local_dispatch_energy.py), circuit-breaker failover to cloud, /outcome attribution for local answers, 14 new eval tasks, multi-provider eval runner, and docs.

Todos 1-12 complete and verified (Final Wave F1-F4 approved, 1020 tests). Todo 13 (live runbook) is BLOCKED on the user providing a real local_energy.tariff_usd_per_kwh and Ollama hardware — leave until the tariff is supplied.

Adds nemotron-mini-router:4b as an 'ollama-local' catalog row restricted to file_summarization + diff_checking via an eligible_categories hard filter. Local dispatch metered into local_energy_observations with a real tariff-priced cost (seed_local_dispatch_energy.py), circuit-breaker failover to cloud, /outcome attribution for local answers, 14 new eval tasks, multi-provider eval runner, and docs. Todos 1-12 complete and verified (Final Wave F1-F4 approved, 1020 tests). Todo 13 (live runbook) is BLOCKED on the user providing a real local_energy.tariff_usd_per_kwh and Ollama hardware — leave until the tariff is supplied.
alee added 14 commits 2026-09-02 06:13:22 +00:00
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
- _run_local_dispatch now returns metering data it already measured,
  and dispatch_endpoint builds Telemetry from that instead of spawning a
  second local_energy.measure that wrapped nothing and double-logged.
- Split seed_local_dispatch_energy.py pure derivation into
  seed_local_dispatch_core.py so the CLI script stays under 250 LOC.
- Update imports/stubs and assert single measure + single log in the
  /dispatch telemetry test.

Verification: pytest target files 86 passed; full suite 1020 passed.
alee merged commit dd08bd36e6 into main 2026-09-02 06:15:30 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alee/6krrt#22