Vili/docs/verse-service-contract.md
2026-06-12 14:05:12 +01:00

2.1 KiB

Vili Verse Service Contract

Objective

Vili turns Persona performance intent into animation work. The near-term body is Kimodo on Raven; the durable contract is a service surface that can accept a gesture/action prompt, run or queue motion synthesis, and publish inspectable state for Odin and Idunn.

CultMesh Verses

  • vili.service: service identity, provider advertisement, health, and runtime.
  • vili.animation: animation jobs, prompts, backend choices, and artifact refs.
  • vili.operator: daemon status, backend readiness, and Eve/CultUI surface.

Witnesses

  • .vili/provider-advertisement.json: compatibility provider advertisement.
  • .vili/operator-state.json: daemon health and backend readiness.
  • .vili/eve-operator-surface.json: current operator surface.
  • .vili/jobs/{jobId}.json: accepted animation job records.
  • .vili/artifacts/{jobId}/: generated motion outputs when generation succeeds.

JSON is currently a compatibility witness because Raven's first Vili body is a small Node daemon. Promotion to .cc CultCache witnesses should happen when the animation job schema stabilizes.

Command Boundary

POST /motion/generate accepts an explicit animation request:

{
  "prompt": "a person gives a small friendly wave",
  "duration": 2,
  "diffusionSteps": 20,
  "seed": 123,
  "output": "wave-test",
  "bvh": true
}

The daemon may reject or defer requests when:

  • Kimodo image is unavailable.
  • Docker/GPU backend is unhealthy.
  • Hugging Face token is absent and the selected backend requires gated model access.
  • The request omits a concrete prompt.

Credential State

Raven has a Hugging Face token installed in the Ubuntu-24.04 WSL cache, and Vili mounts it into Kimodo containers read-only. Verified on 2026-06-12: a Kimodo container launched by Raven could read gated metadata for meta-llama/Meta-Llama-3-8B-Instruct. Full motion generation may still require the first large model download/cache warmup.

First Runtime Invariant

Health checks must be cheap. They may verify process, port, backend metadata, and cached readiness, but they must not launch a Kimodo generation job.