feat(workbench): use the decision server's local model while the AI API is on hold
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / integration (push) Skipped
CI (SIAX Cloud) / sonar (push) Skipped
masterplan-lock / check (pull_request) Successful in 3s
masterplan-lock / check (push) Successful in 5s
Security Scan (SIAX Cloud) / security (push) Successful in 15s
CI (SIAX Cloud) / security (pull_request) Successful in 22s
CI (SIAX Cloud) / security (push) Successful in 23s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 23s
CI (SIAX Cloud) / integration (pull_request) Successful in 30s
CI (SIAX Cloud) / quality (push) Successful in 45s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m18s
CI (SIAX Cloud) / sonar (pull_request) Skipped
CI (SIAX Cloud) / integration (push) Skipped
CI (SIAX Cloud) / sonar (push) Skipped
masterplan-lock / check (pull_request) Successful in 3s
masterplan-lock / check (push) Successful in 5s
Security Scan (SIAX Cloud) / security (push) Successful in 15s
CI (SIAX Cloud) / security (pull_request) Successful in 22s
CI (SIAX Cloud) / security (push) Successful in 23s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 23s
CI (SIAX Cloud) / integration (pull_request) Successful in 30s
CI (SIAX Cloud) / quality (push) Successful in 45s
CI (SIAX Cloud) / quality (pull_request) Successful in 1m18s
- DecisionOllamaGatewayClient calls the self-hosted Ollama on server-decision-01 (tailnet HTTP only for loopback/RFC1918/100.64-127), keeps the same local admission and reports providerKind=local. - createInf0Gateway prefers it over INF0/LiteLLM when configured. - Evidence is computed deterministically from values when a small model omits offsets; a value must occur exactly once in the source or the result goes to review. This makes a 9B local model usable without weakening verification. Tests: 4 new gateway cases + 2 evidence-derivation cases; full typecheck green.
This commit is contained in:
@@ -54,11 +54,18 @@ is accepted by middleware as a verified principal (Bearer still wins).
|
||||
|
||||
## Which AI path is used
|
||||
|
||||
`createInf0Gateway()` prefers the **live LiteLLM gateway**
|
||||
(`INF0_GATEWAY_LITELLM_KEY`, `https://ai-gateway.siax.io/v1`, OpenAI-compatible)
|
||||
and falls back to the native `INF0_URL` surface. Admission — tenant/project
|
||||
scope, model allow-list, data class, external-transfer policy and token limits —
|
||||
runs locally in both paths before the request leaves the process.
|
||||
Order:
|
||||
1. **Decision server model** (`DECISION_OLLAMA_URL` + `DECISION_OLLAMA_MODEL`) —
|
||||
the self-hosted Ollama on server-decision-01, used while the external model
|
||||
API is on hold. Internal only, no provider key, no per-token cost.
|
||||
2. **Live LiteLLM gateway** (`INF0_GATEWAY_LITELLM_KEY`).
|
||||
3. Native `INF0_URL` surface.
|
||||
|
||||
Admission — tenant/project scope, model allow-list, data class,
|
||||
external-transfer policy and token limits — runs locally in every path before
|
||||
the request leaves the process. Evidence spans are computed deterministically
|
||||
from the returned values when a small local model omits offsets: a value must
|
||||
occur exactly once in the source, otherwise the result is `needs_review`.
|
||||
|
||||
## What is still deliberately not claimed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user