Skip to content

feat(inference): real local Ollama backend for the InferenceGateway adapter - #128

Merged
mdheller merged 1 commit into
mainfrom
feat/inference-backend-ollama
Aug 3, 2026
Merged

feat(inference): real local Ollama backend for the InferenceGateway adapter#128
mdheller merged 1 commit into
mainfrom
feat/inference-backend-ollama

Conversation

@mdheller

@mdheller mdheller commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Local inference now actually runs — the deepen-the-local-side step.

  • src/agent_machine/inference_backends.pyollama_backend() serves a model on the local Ollama daemon (/api/generate, no egress, sovereign-local). HTTP transport is injectable, so it's testable without a live daemon; any failure (daemon down, malformed response) raises → the gateway (feat(inference): local InferenceGateway adapter — fail-closed, audits every call #127) turns it into an audited denial, never a silent success. Consent still gates even with a working backend.
  • scripts/validate-inference-backends.py — 9 controls (served output + usage mapping + correct /api/generate payload; unreachable → denied audit; malformed → denied audit; no-consent-still-refused). Wired into make validate.

Verified: make validate-inference-backends → 9/9 pass.

…dapter

ollama_backend() serves a model on the local Ollama daemon — no egress, sovereign-local.
Injectable HTTP transport so it's testable without a live daemon; any failure (daemon down,
malformed reply) raises → the gateway turns it into an audited denial, never a silent
success. Consent still gates even with a live backend. scripts/validate-inference-backends.py
(9 controls) wired into make validate. Local inference now actually executes.
@mdheller
mdheller merged commit fe6988d into main Aug 3, 2026
2 checks passed
@mdheller
mdheller deleted the feat/inference-backend-ollama branch August 3, 2026 10:28
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