From 28c353712114b688618ca879a162d00aac161d91 Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 11:52:27 -0500 Subject: [PATCH 1/9] docs(ops): add model-management targets to MAKE_TARGETS.md Add new Model Management section documenting up-model-management, down-model-management, and health-dormant targets introduced in PR #791. Update Preflight section to document bringup-layered now including the model-management layer between minimal and workers. Co-Authored-By: Claude Opus 4.6 --- pmoves/docs/operations/MAKE_TARGETS.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pmoves/docs/operations/MAKE_TARGETS.md b/pmoves/docs/operations/MAKE_TARGETS.md index 5ad066b88d..fb9a8fd4a3 100644 --- a/pmoves/docs/operations/MAKE_TARGETS.md +++ b/pmoves/docs/operations/MAKE_TARGETS.md @@ -22,6 +22,20 @@ This file summarizes the most-used targets and maps them to what they do under d - `make recreate-v2-gpu` - Force-recreate v2‑GPU container without dependencies. +## Model Management +- `make up-model-management` + - Starts model-registry (`orchestration` profile), then gpu-orchestrator (`gpu` profile) if NVIDIA runtime is detected. + - GPU detection: `docker info --format '{{json .Runtimes}}' | grep nvidia`. + - Idempotent — safe to re-run without stopping first. +- `make down-model-management` + - Stops model-registry and gpu-orchestrator; removes containers. + - Included in the `down-all` cascade (after `down-agents`, before `down-workers`). +- `make health-dormant` + - Container-state-aware health check for dormant/newly-activated services. + - Checks: model-registry, gpu-orchestrator, pdf-ingest, botz-gateway, tokenism-simulator, transcribe-backend. + - Reports per-service: `healthy` / `running` (no healthcheck) / `starting` / `FAIL` / `SKIP` (not running). + - Uses `docker inspect` instead of HTTP probes, avoiding false negatives for Docker-network-only services. + ## Model Profiles & Registry - `make model-profiles` - Lists local fallback profiles under `pmoves/models/*.yaml`. @@ -248,6 +262,10 @@ This file summarizes the most-used targets and maps them to what they do under d - `make ci-queue-drain-nonpr-apply` - Executes queued-run cancellations immediately (still threshold-guarded). - Intended for deadlock recovery when self-hosted lanes are starved by stale runs. +- `make bringup-layered` + - Deterministic local layered bring-up: minimal → model-management → workers → agents → monitoring → prod smoke. + - Model-management layer sits between minimal and workers, ensuring model-registry and (optionally) gpu-orchestrator are ready before dependent workers start. + - Respects `SUPABASE_RUNTIME` (default `cli`). - `make bringup-showtime` - Bring-up orchestration + retro diagnostics + Codex quick health in one sequence. - Starts a live readiness watcher by default (`SHOWTIME_WATCH=1`) so service transitions are visible while bring-up runs. From 5651ec644b68b56ef5b82116f6038ff4a9487e39 Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 11:53:09 -0500 Subject: [PATCH 2/9] docs(ops): add gpu-orchestrator and transcribe-backend to PORT_REGISTRY.md Register port 8200 (GPU Orchestrator) and port 8074 (Transcribe Backend) in the Core Services tier. Update the 8200-8999 range example to include GPU Orchestrator alongside Archon. Co-Authored-By: Claude Opus 4.6 --- pmoves/docs/operations/PORT_REGISTRY.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmoves/docs/operations/PORT_REGISTRY.md b/pmoves/docs/operations/PORT_REGISTRY.md index 23804c598a..b3d8dd64e6 100644 --- a/pmoves/docs/operations/PORT_REGISTRY.md +++ b/pmoves/docs/operations/PORT_REGISTRY.md @@ -12,7 +12,7 @@ Central registry of all service ports to prevent conflicts and ensure consistenc | 6000-6999 | Vector/Search | Qdrant 6333, Meilisearch 7700† | | 7000-7999 | Core Services | Agent Zero 8080‡ | | 8000-8199 | Agent/Worker Services | session-context-worker 8100, gateway-agent 8100, github-runner-ctl 8104 | -| 8200-8999 | Orchestration Services | Archon 8181 | +| 8200-8999 | Orchestration Services | GPU Orchestrator 8200, Archon 8181 | | 9000-9999 | Infrastructure | Prometheus 9090, NATS 4222‡ | *Postgres uses standard 5432 @@ -70,7 +70,9 @@ Central registry of all service ports to prevent conflicts and ensure consistenc | 8097 | Channel Monitor | External content watcher | | 8098 | DeepResearch | Research planner | | 8099 | SupaSerch | Multimodal search orchestrator | +| 8074 | Transcribe Backend | Text transcription (PMOVES-transcribe-and-fetch) | | 8110 | Model Registry | Dynamic model configuration service | +| 8200 | GPU Orchestrator | Dynamic GPU resource management & model lifecycle | ### Agent/Worker Services (Tier 3) From 4e88ad4bcea699ed56f5d9070165522bffb7f96c Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 11:53:32 -0500 Subject: [PATCH 3/9] docs(ops): add model-registry and gpu-orchestrator health endpoints Document health endpoints, additional APIs, NATS subjects, and availability notes for model-registry (8110), gpu-orchestrator (8200), and transcribe-backend (8074). Co-Authored-By: Claude Opus 4.6 --- .../operations/SERVICE_HEALTH_ENDPOINTS.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/pmoves/docs/operations/SERVICE_HEALTH_ENDPOINTS.md b/pmoves/docs/operations/SERVICE_HEALTH_ENDPOINTS.md index 60d89d17a1..1ada892263 100644 --- a/pmoves/docs/operations/SERVICE_HEALTH_ENDPOINTS.md +++ b/pmoves/docs/operations/SERVICE_HEALTH_ENDPOINTS.md @@ -31,3 +31,33 @@ POSTGREST_URL=http://localhost:3011 ``` After editing `pmoves/env.shared`, run `make -C pmoves env-setup` (or restart the console dev server) so changes apply to the UI. + +## Model Registry +- Default base URL: `http://localhost:8110` +- Health path: `/healthz` +- Additional endpoints: + - `GET /api/models` — List registered models + - `GET /api/providers` — List model providers + - `GET /api/deployments` — List active model deployments +- NATS: Publishes `model.registry.updated.v1` on catalog mutations +- Compose profile: `orchestration` + +## GPU Orchestrator +- Default base URL: `http://localhost:8200` +- Health path: `/healthz` +- Additional endpoints: + - `GET /api/v1/status` — GPU status (VRAM, loaded models) + - `GET /api/v1/models` — List models loaded on GPU + - `GET /metrics` — Prometheus metrics +- NATS subjects: + - Publishes: `mesh.gpu.status.v1` (every 5s), `mesh.gpu.model.loaded.v1`, `mesh.gpu.model.unloaded.v1`, `mesh.gpu.vram.warning.v1` + - Subscribes: `mesh.gpu.command.v1` (load/unload/optimize requests) + - Publishes: `mesh.gpu.command.result.v1` (command execution results) +- **Note:** Only available when NVIDIA GPU runtime is present. The `make up-model-management` target auto-detects this. +- Compose profile: `gpu` + +## Transcribe Backend +- Default base URL: `http://localhost:8074` +- Health path: `/healthz` +- Submodule: `PMOVES-transcribe-and-fetch` +- Compose profile: `workers` From 8134e18d4bd2f3b76aeb3cafd551effaea4609f9 Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 11:54:27 -0500 Subject: [PATCH 4/9] docs(context): add model-registry, gpu-orchestrator, transcribe-backend to services-catalog Add full catalog entries for the three formerly-dormant services activated in PRs #787-791. Includes ports, APIs, NATS subjects, dependencies, compose profiles, and lifecycle notes. Updates Quick Reference health endpoint listing. Co-Authored-By: Claude Opus 4.6 --- .claude/context/services-catalog.md | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/.claude/context/services-catalog.md b/.claude/context/services-catalog.md index 5eb700bfeb..feda8633fe 100644 --- a/.claude/context/services-catalog.md +++ b/.claude/context/services-catalog.md @@ -120,6 +120,43 @@ Comprehensive reference of all production services, ports, APIs, and integration - **Dependencies:** Agent Zero, DeepResearch, databases - **Compose Profile:** `orchestration` +### Model Registry +- **Ports:** 8110 +- **Purpose:** Dynamic model configuration service — central catalog for LLM/embedding model providers, mappings, and active deployments +- **Key APIs:** + - `GET /healthz` - Service health + - `GET /api/models` - List registered models + - `GET /api/providers` - List model providers + - `GET /api/deployments` - List active model deployments +- **NATS Topics:** + - Publish: `model.registry.updated.v1` (catalog mutation notifications) + - Subscribe: `mesh.gpu.model.loaded.v1`, `mesh.gpu.model.unloaded.v1` (syncs deployment state from GPU Orchestrator) +- **Dependencies:** Supabase (required), NATS +- **Docker Image:** Custom build from `services/model-registry` +- **Compose Profile:** `orchestration` +- **Lifecycle:** Formerly dormant; activated in PR #787-791 + +### GPU Orchestrator +- **Ports:** 8200 +- **Purpose:** Dynamic GPU resource management and model lifecycle controller +- **Key APIs:** + - `GET /healthz` - Service health + - `GET /api/v1/status` - GPU status (VRAM utilization, loaded models, temperature) + - `GET /api/v1/models` - List models loaded on GPU + - `GET /metrics` - Prometheus metrics +- **NATS Topics:** + - Publish: `mesh.gpu.status.v1` (every 5s), `mesh.gpu.model.loaded.v1`, `mesh.gpu.model.unloaded.v1`, `mesh.gpu.vram.warning.v1`, `mesh.gpu.command.result.v1` + - Subscribe: `mesh.gpu.command.v1` (model load/unload/optimize requests) +- **Features:** + - Bidirectional NATS wiring with model-registry + - VRAM warning rate-limited to 1/min + - Command execution results via fire-and-forget NATS (no request-reply) +- **Dependencies:** NATS (required), NVIDIA GPU runtime +- **Docker Image:** Custom build from `services/gpu-orchestrator` +- **Compose Profile:** `gpu` +- **Note:** Only started by `make up-model-management` when NVIDIA runtime is detected +- **Lifecycle:** Formerly dormant; activated in PR #787-791 + ### Open Notebook (External Integration) - **Purpose:** Knowledge base / note-taking (SurrealDB-backed) - **Access:** Via `OPEN_NOTEBOOK_API_URL` + API token @@ -257,6 +294,16 @@ Comprehensive reference of all production services, ports, APIs, and integration - **Dependencies:** Open Notebook, LangExtract, Extract Worker - **Compose Profile:** `orchestration` +### Transcribe Backend +- **Ports:** 8074 +- **Purpose:** Text transcription service (PMOVES-transcribe-and-fetch submodule) +- **Key APIs:** + - `GET /healthz` - Service health +- **Dependencies:** Supabase, NATS +- **Submodule:** `PMOVES-transcribe-and-fetch` +- **Compose Profile:** `workers` +- **Lifecycle:** Formerly dormant; activated in PR #787-791 + ## Utility & Integration Services ### Presign @@ -549,6 +596,10 @@ http://localhost:8080/healthz # Agent Zero http://localhost:8091/healthz # Archon http://localhost:8097/healthz # Channel Monitor +# Model Management +http://localhost:8110/healthz # Model Registry +http://localhost:8200/healthz # GPU Orchestrator (GPU only) + # Retrieval & Knowledge http://localhost:8086/healthz # Hi-RAG v2 CPU http://localhost:8087/healthz # Hi-RAG v2 GPU @@ -569,6 +620,7 @@ http://localhost:8083/healthz # Extract Worker http://localhost:8084/healthz # LangExtract http://localhost:8092/healthz # PDF Ingest http://localhost:8095/healthz # Notebook Sync +http://localhost:8074/healthz # Transcribe Backend # CHIT & Geometry http://localhost:8103/healthz # Tokenism Simulator From a721023bd065c084bc106f3c9777e778a9f8349c Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 12:25:01 -0500 Subject: [PATCH 5/9] docs(ops): address CodeRabbit port and command consistency comments --- .claude/context/services-catalog.md | 2 ++ pmoves/docs/operations/MAKE_TARGETS.md | 2 +- pmoves/docs/operations/PORT_REGISTRY.md | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.claude/context/services-catalog.md b/.claude/context/services-catalog.md index feda8633fe..dbfd01f227 100644 --- a/.claude/context/services-catalog.md +++ b/.claude/context/services-catalog.md @@ -122,6 +122,7 @@ Comprehensive reference of all production services, ports, APIs, and integration ### Model Registry - **Ports:** 8110 +- **Port Note:** `8110` also appears in the BoTZ VPN MCP stack; these are profile-separated deployments (`orchestration` vs `vpn/remote`) and should not be exposed on the same host at the same time. - **Purpose:** Dynamic model configuration service — central catalog for LLM/embedding model providers, mappings, and active deployments - **Key APIs:** - `GET /healthz` - Service health @@ -409,6 +410,7 @@ Comprehensive reference of all production services, ports, APIs, and integration ### BoTZ VPN MCP Server - **Port:** 8110 +- **Port Note:** Collides with Model Registry (`8110`) when both stacks are host-exposed; run this service only with `vpn/remote` profiles on hosts that are not exposing `model-registry`. - **Purpose:** MCP server exposing VPN and remote desktop tools - **Transport:** SSE - **MCP Tools:** diff --git a/pmoves/docs/operations/MAKE_TARGETS.md b/pmoves/docs/operations/MAKE_TARGETS.md index fb9a8fd4a3..529f2d08f5 100644 --- a/pmoves/docs/operations/MAKE_TARGETS.md +++ b/pmoves/docs/operations/MAKE_TARGETS.md @@ -25,7 +25,7 @@ This file summarizes the most-used targets and maps them to what they do under d ## Model Management - `make up-model-management` - Starts model-registry (`orchestration` profile), then gpu-orchestrator (`gpu` profile) if NVIDIA runtime is detected. - - GPU detection: `docker info --format '{{json .Runtimes}}' | grep nvidia`. + - GPU detection: `docker info --format '{{json .Runtimes}}' | grep -qi nvidia`. - Idempotent — safe to re-run without stopping first. - `make down-model-management` - Stops model-registry and gpu-orchestrator; removes containers. diff --git a/pmoves/docs/operations/PORT_REGISTRY.md b/pmoves/docs/operations/PORT_REGISTRY.md index b3d8dd64e6..39f526dd45 100644 --- a/pmoves/docs/operations/PORT_REGISTRY.md +++ b/pmoves/docs/operations/PORT_REGISTRY.md @@ -12,7 +12,7 @@ Central registry of all service ports to prevent conflicts and ensure consistenc | 6000-6999 | Vector/Search | Qdrant 6333, Meilisearch 7700† | | 7000-7999 | Core Services | Agent Zero 8080‡ | | 8000-8199 | Agent/Worker Services | session-context-worker 8100, gateway-agent 8100, github-runner-ctl 8104 | -| 8200-8999 | Orchestration Services | GPU Orchestrator 8200, Archon 8181 | +| 8200-8999 | Orchestration Services | GPU Orchestrator 8200, Jellyfin AI Gateway 8300 | | 9000-9999 | Infrastructure | Prometheus 9090, NATS 4222‡ | *Postgres uses standard 5432 From 6f10e72c71d2fba31ae236a218efd4f97ef2093d Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 12:34:03 -0500 Subject: [PATCH 6/9] docs(ops): align bringup-layered wording with startup semantics --- pmoves/docs/operations/MAKE_TARGETS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmoves/docs/operations/MAKE_TARGETS.md b/pmoves/docs/operations/MAKE_TARGETS.md index 529f2d08f5..0b5a8b512c 100644 --- a/pmoves/docs/operations/MAKE_TARGETS.md +++ b/pmoves/docs/operations/MAKE_TARGETS.md @@ -264,7 +264,7 @@ This file summarizes the most-used targets and maps them to what they do under d - Intended for deadlock recovery when self-hosted lanes are starved by stale runs. - `make bringup-layered` - Deterministic local layered bring-up: minimal → model-management → workers → agents → monitoring → prod smoke. - - Model-management layer sits between minimal and workers, ensuring model-registry and (optionally) gpu-orchestrator are ready before dependent workers start. + - Model-management layer sits between minimal and workers, starting model-registry and (optionally) gpu-orchestrator before dependent workers (no explicit readiness gate). - Respects `SUPABASE_RUNTIME` (default `cli`). - `make bringup-showtime` - Bring-up orchestration + retro diagnostics + Codex quick health in one sequence. From 23b84caee285ce4b58071ced5b3692274a087852 Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 12:48:55 -0500 Subject: [PATCH 7/9] fix(topology): align gpu-orchestrator policy port with compose --- pmoves/configs/topology_policy_manifest.json | 1 - 1 file changed, 1 deletion(-) diff --git a/pmoves/configs/topology_policy_manifest.json b/pmoves/configs/topology_policy_manifest.json index ced4a46b37..089bae5ba6 100644 --- a/pmoves/configs/topology_policy_manifest.json +++ b/pmoves/configs/topology_policy_manifest.json @@ -127,7 +127,6 @@ 8097 ], "gpu-orchestrator": [ - 8100, 8200 ], "hi-rag-gateway-v2": [ From b7fb8d1d11e1b1956066d86c6b8835df69b85524 Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 12:58:14 -0500 Subject: [PATCH 8/9] Revert "fix(topology): align gpu-orchestrator policy port with compose" This reverts commit 23b84caee285ce4b58071ced5b3692274a087852. --- pmoves/configs/topology_policy_manifest.json | 1 + 1 file changed, 1 insertion(+) diff --git a/pmoves/configs/topology_policy_manifest.json b/pmoves/configs/topology_policy_manifest.json index 089bae5ba6..ced4a46b37 100644 --- a/pmoves/configs/topology_policy_manifest.json +++ b/pmoves/configs/topology_policy_manifest.json @@ -127,6 +127,7 @@ 8097 ], "gpu-orchestrator": [ + 8100, 8200 ], "hi-rag-gateway-v2": [ From c86a2fa9206025f4066f7d0473500251e209e2c7 Mon Sep 17 00:00:00 2001 From: Shaela Bello Date: Wed, 4 Mar 2026 14:26:42 -0500 Subject: [PATCH 9/9] docs(ops): align health-dormant status labels with target output --- pmoves/docs/operations/MAKE_TARGETS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmoves/docs/operations/MAKE_TARGETS.md b/pmoves/docs/operations/MAKE_TARGETS.md index 0b5a8b512c..4ece68c26d 100644 --- a/pmoves/docs/operations/MAKE_TARGETS.md +++ b/pmoves/docs/operations/MAKE_TARGETS.md @@ -33,7 +33,7 @@ This file summarizes the most-used targets and maps them to what they do under d - `make health-dormant` - Container-state-aware health check for dormant/newly-activated services. - Checks: model-registry, gpu-orchestrator, pdf-ingest, botz-gateway, tokenism-simulator, transcribe-backend. - - Reports per-service: `healthy` / `running` (no healthcheck) / `starting` / `FAIL` / `SKIP` (not running). + - Reports per-service: `OK` (state is `healthy` or `running`), `STARTING`, `FAIL`, or `SKIP` (not running). - Uses `docker inspect` instead of HTTP probes, avoiding false negatives for Docker-network-only services. ## Model Profiles & Registry