From 3adb61649771c8f5c29324cb6d4ebc0407adea52 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Fri, 23 Oct 2026 03:09:22 +0200 Subject: [PATCH] Docs and launch scripts for the smoke deletion and the listen addresses package.json loses the smoke script; the README and the service contract say no GET changes anything and name the listen addresses and the missing CORS; the launch and install scripts default -HostName to 127.0.0.1,10.77.0.4 instead of 0.0.0.0. Co-Authored-By: Claude Opus 5.5 --- README.md | 14 +++++++++----- docs/verse-service-contract.md | 6 +++--- package.json | 1 - scripts/install-vili-task.ps1 | 2 +- scripts/restart-vili-daemon.ps1 | 2 +- scripts/run-vili-daemon.ps1 | 2 +- scripts/start-vili-daemon.ps1 | 2 +- 7 files changed, 16 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e07fa1e..6dfe397 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ first backend is Kimodo on Raven, running through Docker Engine inside - **Value:** a warm, supervised path from a text prompt to generated body motion. Vili runs Kimodo as a resident GPU worker on Raven and returns motion artifacts (`motion.npz`, optional BVH) for a job. - **Problem:** Personas and games need generated motion, but cold per-request container runs took about 195 seconds per 1 second clip, versus about 54 warm. One daemon owns job identity, worker lifecycle and artifact references so callers do not touch Docker, WSL or model state. -- **Entry points:** `scripts/vili-daemon.mjs` (the daemon; `npm start`, `npm run health`, `npm run smoke`, `npm run provider`), `scripts/kimodo-resident-worker.py` (the resident worker), `POST /motion/generate` (see Motion Generation), `docs/verse-service-contract.md` and `docs/motion-pipeline-target.md`. -- **Live:** the resident Kimodo worker on Raven, `POST /motion/generate`, `GET /smoke`, and the CultCache service store. It runs under a Raven scheduled task, not under Idunn. It has `motion.npz` and optional BVH output on the SOMA skeleton; there is no FBX export. +- **Entry points:** `scripts/vili-daemon.mjs` (the daemon; `npm start`, `npm run health`, `npm run provider`), `scripts/kimodo-resident-worker.py` (the resident worker), `POST /motion/generate` (see Motion Generation), `docs/verse-service-contract.md` and `docs/motion-pipeline-target.md`. +- **Live:** the resident Kimodo worker on Raven, `POST /motion/generate`, and the CultCache service store. It runs under a Raven scheduled task, not under Idunn. It has `motion.npz` and optional BVH output on the SOMA skeleton; there is no FBX export. - **Planned (target, 2026-10-20):** FBX animation export on the SOMA skeleton and a text-prompt-to-Unity-clip path with no hand steps, with each artifact recording prompt, constraints, seed and model. Retargeting stays with the consuming engine; see `docs/motion-pipeline-target.md`. ## Authority @@ -41,6 +41,11 @@ Default compatibility endpoint: http://10.77.0.4:8824 ``` +The daemon listens only on the addresses `--host` names, comma-separated, one server each: on +Raven `127.0.0.1` (the tray and `--health`) and `10.77.0.4` (the WireGuard peers: Starfire and +the services that call `POST /motion/generate`). A wildcard such as `0.0.0.0` refuses to start. +No response carries a CORS header, so a web page cannot read the daemon either; no browser +caller exists. Vili is not an Idunn target today. Its lifecycle is the `GameCult\Vili` scheduled task on Raven, and `GET /health` is an operator lowering. Admission to Idunn is motion-pipeline:question:vili-under-idunn. @@ -63,7 +68,6 @@ Important routes: - `GET /eve/operator` - `GET /eve/deck/providers` - `WS /eve/deck/vili.animation` -- `GET /smoke` - `POST /motion/generate` ## Motion Generation @@ -145,8 +149,8 @@ Vili keeps Kimodo warm through a resident worker container named the loaded model. Because Raven's Docker Engine runs inside WSL, Vili also keeps a tiny WSL sleep-loop alive while the worker is resident so the Docker substrate does not disappear underneath the model. `GET /health` observes -worker state without launching model load. `GET /smoke` verifies the backend -and starts the resident worker when it is absent. +worker state without launching model load and without changing anything. Only a +`POST /motion/generate` that holds the GPU slot starts the worker. Kimodo's 8B text encoder (LLM2Vec, Llama 3) never lives in the worker. The worker answers Kimodo's encoder call from a CultCache store of float32 vectors, diff --git a/docs/verse-service-contract.md b/docs/verse-service-contract.md index 9f6fd09..abb4ca7 100644 --- a/docs/verse-service-contract.md +++ b/docs/verse-service-contract.md @@ -158,7 +158,7 @@ It mounts: Inside the worker, Kimodo owns synthesis. Vili owns worker lifecycle, request/response persistence, timeout handling, and artifact references. Direct -user requests, programmatic requests, and smoke-started warmup all use the same +user requests and programmatic requests use the same resident worker health and generation path. Observed on `2026-06-12`: first worker model load took about 100 seconds. Once @@ -169,5 +169,5 @@ resident, five 1 second / 20 step service-path generations averaged about Health checks must be cheap. They may verify process, port, backend metadata, and cached readiness, but they must not launch a Kimodo generation job or start -model load. Smoke checks may start the resident worker because their purpose is -backend readiness, not cheap liveness. +model load. They change nothing: no GET route starts the worker, Docker or the GPU. Only a +`POST /motion/generate` that holds the GPU slot starts the worker. diff --git a/package.json b/package.json index 4164e53..5f67561 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "health": "node scripts/vili-daemon.mjs --health", "test": "node --test scripts/test-gpu-tenancy.mjs", "test:http": "node --test scripts/test-gpu-gate-http.mjs", - "smoke": "node scripts/smoke-vili.mjs", "provider": "node scripts/vili-daemon.mjs --print-provider-advertisement" }, "dependencies": { diff --git a/scripts/install-vili-task.ps1 b/scripts/install-vili-task.ps1 index f00b14a..10cd66a 100644 --- a/scripts/install-vili-task.ps1 +++ b/scripts/install-vili-task.ps1 @@ -1,7 +1,7 @@ param( [string]$TaskName = "GameCult\Vili", [int]$Port = 8824, - [string]$HostName = "0.0.0.0", + [string]$HostName = "127.0.0.1,10.77.0.4", [string]$StateRoot = "E:\Projects\Vili\.vili" ) diff --git a/scripts/restart-vili-daemon.ps1 b/scripts/restart-vili-daemon.ps1 index e935d12..44706ff 100644 --- a/scripts/restart-vili-daemon.ps1 +++ b/scripts/restart-vili-daemon.ps1 @@ -1,6 +1,6 @@ param( [int]$Port = 8824, - [string]$HostName = "0.0.0.0", + [string]$HostName = "127.0.0.1,10.77.0.4", [string]$StateRoot = "E:\Projects\Vili\.vili" ) diff --git a/scripts/run-vili-daemon.ps1 b/scripts/run-vili-daemon.ps1 index 0e10cba..dcf1333 100644 --- a/scripts/run-vili-daemon.ps1 +++ b/scripts/run-vili-daemon.ps1 @@ -1,6 +1,6 @@ param( [int]$Port = 8824, - [string]$HostName = "0.0.0.0", + [string]$HostName = "127.0.0.1,10.77.0.4", [string]$StateRoot = "E:\Projects\Vili\.vili" ) diff --git a/scripts/start-vili-daemon.ps1 b/scripts/start-vili-daemon.ps1 index 3d49de7..d167917 100644 --- a/scripts/start-vili-daemon.ps1 +++ b/scripts/start-vili-daemon.ps1 @@ -1,6 +1,6 @@ param( [int]$Port = 8824, - [string]$HostName = "0.0.0.0", + [string]$HostName = "127.0.0.1,10.77.0.4", [string]$StateRoot = "E:\Projects\Vili\.vili" )