This page describes the system as it runs. Laws that came out of measuring it are in the codex. When this page and the codex disagree, trust the codex and then fix this page.

Map

flowchart TB
  subgraph Mac["💻 Mac · omp 18.3.0"]
    OMP["omp judge role<br/>eval judge() · TTSR · stop detection"]
  end
  subgraph Loca["🖥️ loca.zone"]
    NGX["nginx · yevv.loca.zone"]
    AUTH["Authelia one_factor"]
    APP["yevv-app · Gradio 6.28<br/>127.0.0.1:51960"]
    LAYA["yevv-laya · laya-serve 0.3.20<br/>127.0.0.1:51961 · CPU"]
    LOMP["loca omp 18.2.6<br/>no typesafe api yet"]
  end
  JEV["⚡ api.typesafe.ai/v1/systemone"]
  ORT["🛣️ openrouter.ai/api/v1/systemone"]
  OMP -- "bearer · /v1/systemone" --> NGX
  NGX -- "/v1/systemone" --> LAYA
  NGX -- "/" --> AUTH --> APP
  APP --> LAYA
  APP -. "key set" .-> JEV
  APP -. "key set" .-> ORT
  LOMP -. "needs omp ≥ 18.3.0" .-> LAYA

The one wire

Every backend takes the same body at {base}/v1/systemone:

{"model": "english", "state": "…text or JSON…",
 "questions": {"q": {"type": "choice", "instructions": "Which team?",
                     "criteria": {"billing": "refunds", "tech": "bugs"}}}}
KindCriteriaAnswer fieldsCaps
nouloptional {true, false}noul = P(yes). Laya also returns confidencenone
choice{option: description or null}choice, probabilities, confidenceJev 255 options. Laya is bounded by head_max_len and returns 422
scorelist of levels, lowest firstscore (a weighted mean, can fall between levels), legend, probabilities, confidenceJev 2–10 levels. Laya needs a description for every level

omp’s eval helper names the yes/no kind bool and translates it to noul on the wire.

Backends

IdBaseKeyModel sentPrice
🦙 layahttp://127.0.0.1:51961 (loopback), or https://yevv.loca.zone with a bearerLAYA_API_KEYenglish, multilingual, typed-decisions, or omitted to auto-route$0, local CPU
⚡ jevhttps://api.typesafe.aiTYPESAFE_API_KEYjev-latest0
🛣️ openrouterhttps://openrouter.ai/apiOPENROUTER_API_KEY~typesafe/jev-latestOpenRouter card

Laya treats any model value it does not recognise, laya included, as a checkpoint name or alias. laya maps to english. Omit model to let the router choose by script and language.

Services on loca

UnitScopePortRun asNotes
yevv-laya.servicesystem127.0.0.1:51961locaNice=-10, CPUWeight=1000, LAYA_THREADS=8, HF_HUB_OFFLINE=1, one inference worker
yevv-app.servicesystem127.0.0.1:51960locayevv_app.py, analytics off
PathHolds
~/dev/yevv/.venvPython 3.13 venv: torch 2.14 CPU, laya[serve] 0.3.20, gradio 6.28, typesafe-sdk 0.7.1, httpx
~/dev/yevv/app/yevv_app.pyPlayground: one gr.HTML surface plus two Python server functions, status and run. The source of truth is the Mac topic folder 2026-09-19_JEV/app/, synced with rsync
~/.config/yevv/laya.envLAYA_API_KEY, mode 600
~/.config/yevv/keys.envTYPESAFE_API_KEY, OPENROUTER_API_KEY, LANGFUSE_HOST, LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY. Mode 600. Placeholders with comments. Read again on every run, so there is no restart. An empty value means off
/etc/nginx/sites-available/yevv.loca.zoneBoth vhosts. Certbot manages TLS for yevv and wiki.yevv
~/dev/services/authelia/config/configuration.ymlThe yevv.loca.zone one_factor rule

Edge

RouteGateUpstream
https://yevv.loca.zone/Authelia one_factor, because it holds paid Jev keysGradio 51960, proxy_buffering off for SSE
https://yevv.loca.zone/v1/systemonelaya-serve bearer (LAYA_API_KEY). No Authelia, because omp clients have no browserlaya-serve 51961
https://wiki.yevv.loca.zonepublic~/dev/wikis/yevv/current

omp integration

omp 18.3.0 treats any model whose api is typesafe as a native judge and sends {baseUrl}/v1/systemone. No plugin is needed.

~/.omp/agent/models.yml on the Mac:

providers:
  yevv:
    baseUrl: https://yevv.loca.zone
    apiKey: "!cat /Users/mbp/.config/yevv/laya.key"
    api: typesafe
    models:
      - { id: english, name: Laya English 421M (yevv), contextWindow: 512 }
      - { id: multilingual, name: Laya multilingual 322M (yevv), contextWindow: 1024 }
      - { id: typed-decisions, name: Laya typed-decisions 421M (yevv), contextWindow: 1024 }

Opt a folder in with its .omp/config.yml. 2026-09-19_JEV ships Jev first and Laya as the free fallback. All three are native System One judges, so omp keeps them all in the chain:

modelRoles: { judge: openrouter/~typesafe/jev-latest }
retry: { fallbackChains: { judge: [typesafe/jev-latest, yevv/english] } }

For a Laya-only folder, use judge: yevv/english, find: { enabled: "off" } and defaultThinkingLevel: high, so that find and the auto-thinking classifier stay off Laya’s slow CPU path.

Keys: the Mac models.yml sets typesafe and openrouter apiKey: "!/Users/mbp/.config/yevv/yevv-key NAME". That helper parses keys.env the same way as the playground: quotes and inline # comments are stripped, and an empty value prints nothing. A fake "sk-or-fake-quoted-42" # test came back from omp token openrouter as sk-or-fake-quoted-42. A running omp session keeps the credentials it loaded, so start a new session after you change keys.

find with working keys, 2026-09-26, fresh omp find processes: 3 requests, 0 failures, $0.0003, about 2.5 s, both globally and in 2026-09-19_JEV.

omp featureUses the judge roleLaya on loca
eval judge() / judge_batch()yesone tested call. omp -p returned {'churn': {'type': 'bool', 'bool': 1}}, and the first attempt timed out
TTSR question: rulesyessame judge path, not tested separately
unexpected-stop detection (smart)yessame judge path, not tested separately
automatic thinking levelyestoo slow for every prompt, so the level is pinned
find tool and omp findyes❌ all 12 of 12 requests timed out on Laya

laya-serve is wire-compatible with the tested judge() call. That is all the evidence covers. The global judge role stays on omp’s built-in chain, typesafe/jev-latest then openrouter/~typesafe/jev-latest. A working key lets that chain reach Jev, and then find can be tested again. A key does not guarantee the fix. omp find loads settings from the directory it searches, not from where you run it.

The Mac’s ~/.omp/agent/models.yml also points the built-in typesafe and openrouter providers at ~/.config/yevv/keys.env through !sed -n s/^NAME=//p …. An empty value prints nothing, and omp then falls back to its stored credentials. Side effect: omp models --kind judge now lists typesafe even while the value is empty.

Langfuse

With all three LANGFUSE_* values set, each ▶ creates one trace, tagged yevv, the mode, and the kind. Every backend call adds one generation span, sent over OTLP to /api/public/otel/v1/traces, with the state, questions, answer, model, input tokens and cost. Scores <backend>.confidence and <backend>.p_yes go to /api/public/scores. The result card links to the trace.

Proof, 2026-09-26:

  • lf.typox.de (Langfuse 4.45.1, legacy write mode): trace yevv · decide · choice held three generations. laya had 65 input tokens and 10.4 s. openrouter was typesafe/jev-1.13-20260917, 364 tokens, $0.0000153, 1.1 s. jev was level ERROR with the 402. Scores were laya.confidence 0.896 and openrouter.confidence 1. Read back through GET /api/public/traces/{id}.
  • loca’s local Langfuse 4.41 (events-only mode) returned a GENERATION through GET /api/public/v2/observations. Its legacy /api/public/ingestion rejects trace events, which is why yevv sends OTLP.

Runbook

TaskCommand
Healthcurl -s 127.0.0.1:51961/health on loca
Logssudo journalctl -u yevv-laya -u yevv-app -f
Restartsudo systemctl restart yevv-laya yevv-app. Restarting laya-serve also drops a queued backlog
Add Jev or Langfuse keysFill ~/.config/yevv/keys.env on loca, save, press ▶. On the Mac, fill the same file and push it with scp ~/.config/yevv/keys.env loca.zone-loca:.config/yevv/keys.env
Jev in omp on the MacFill the Mac keys.env, or run omp login typesafe
Deploy an app changersync -a 2026-09-19_JEV/app/ loca.zone-loca:dev/yevv/app/ then sudo systemctl restart yevv-app
Rebuild this wikirsync -a 2026-09-19_JEV/wiki/ loca.zone-loca:dev/wikis/yevv/content/ then ~/dev/wikis/build.sh yevv
Rotate the Laya bearerEdit ~/.config/yevv/laya.env, restart both units, then copy the value to ~/.config/yevv/laya.key on the Mac