From 04b3279d1f7ef1f5d9859c1140e9ef30918e5fde Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Fri, 13 Nov 2026 12:47:01 +0100 Subject: [PATCH] docs: qualify optional Ollama integration status (#410) Co-authored-by: Arnaud Dartois --- docs/specs.md | 6 +++--- skills/server-healthchecks/SKILL.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/specs.md b/docs/specs.md index 540cd49..35f2fd1 100644 --- a/docs/specs.md +++ b/docs/specs.md @@ -41,8 +41,8 @@ The default deployment does not require a managed cloud service. │ HEIMDALL CENTRAL │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │ -│ │ API │ │ Web │ │ Workers │ │ MediaMTX / IA │ │ -│ │ REST + │ │ Blazor │ │ Hangfire │ │ Ollama / RustFS │ │ +│ │ API │ │ Web │ │ Workers │ │ MediaMTX │ │ +│ │ REST + │ │ Blazor │ │ Hangfire │ │ RustFS │ │ │ │ SignalR │ │ MudBlazor│ │ Jobs │ │ Live media │ │ │ └────┬─────┘ └────┬─────┘ └────┬─────┘ └──────────────────┘ │ │ │ │ │ │ @@ -213,7 +213,7 @@ services: postgresql: # Base de données rustfs: # Stockage S3 (enregistrements) # Analyse ONNX exécutée par l'Agent (CPU par défaut, CUDA NVIDIA optionnel); voir docs/gpu-runtime.md - ollama: # LLM local (résumés) + ollama: # service optionnel; URL configurable et disponibilité sondée, aucune génération LLM livrée mediamtx: # Serveur média RTSP/WHEP (optionnel, live vidéo) coturn: # TURN relay (optionnel, double NAT) ``` diff --git a/skills/server-healthchecks/SKILL.md b/skills/server-healthchecks/SKILL.md index f532858..eb92800 100644 --- a/skills/server-healthchecks/SKILL.md +++ b/skills/server-healthchecks/SKILL.md @@ -9,6 +9,7 @@ Use this workflow when changing `Dockerfile` health checks, Central Compose heal - Central and Agent containers probe `/healthz` on port 8080 (the development Agent may bind its host-mapped port). ASP.NET maps this route for `GET`; a `HEAD` request returns 405 and marks a live server unhealthy. - When documenting health status, compare each summary with the registered check names/tags, endpoint filters, and HTTP status mapping in Web and Agent. Web `/healthz` is liveness (`200`), `/readyz` checks the `ready` PostgreSQL and selected-storage dependencies (`200` only when healthy, otherwise `503`), and `/health/live` selects the `live` PostgreSQL and optional configured AI backend check (`503` when degraded). Agent `/healthz` runs its registered checks (`Degraded` maps to `200`, `Unhealthy` to `503`); `/health/live` selects only the Agent pipeline-degradation check (`503` when degraded). Do not claim a Central broker health check unless one is registered. +- Ollama is optional; its URL can be configured in Central settings, the admin connectivity action can ping it, and `AiHealthCheck` probes `/api/tags`. That endpoint check proves availability only, not model inference or summary generation. Do not document LLM-generated summaries until a production caller for a model generation/chat API is implemented. - In the Alpine image, use BusyBox `wget` with `-O /dev/null` to issue a GET and discard the body. Do not use `--spider`, because BusyBox implements it as HEAD. - Apply this to both `docker/Dockerfile`/Central Compose and `docker/Dockerfile.agent`/Agent development Compose. Keep the image and Compose probes consistent, with bounded timeout/retries and no published health endpoint required. - For acceptance, build the changed Central or Agent image from source under a project-unique tag in a unique Compose project with a generated `.env`, synthetic credentials, a loopback-only unused port, and project-scoped volumes/network. Install an EXIT cleanup trap before build/start. Verify a GET health probe succeeds and an equivalent HEAD receives the endpoint's 405; then confirm the changed service reports healthy. In cleanup remove only that project with `down --volumes --remove-orphans`, verify no labeled containers/volumes/networks remain, remove and inspect each exact local image tag even on failure, and retain shared base images. Preserve the test exit status and report cleanup failures.