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"}}}}| Kind | Criteria | Answer fields | Caps |
|---|---|---|---|
noul | optional {true, false} | noul = P(yes). Laya also returns confidence | none |
choice | {option: description or null} | choice, probabilities, confidence | Jev 255 options. Laya is bounded by head_max_len and returns 422 |
score | list of levels, lowest first | score (a weighted mean, can fall between levels), legend, probabilities, confidence | Jev 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
| Id | Base | Key | Model sent | Price |
|---|---|---|---|---|
| 🦙 laya | http://127.0.0.1:51961 (loopback), or https://yevv.loca.zone with a bearer | LAYA_API_KEY | english, multilingual, typed-decisions, or omitted to auto-route | $0, local CPU |
| ⚡ jev | https://api.typesafe.ai | TYPESAFE_API_KEY | jev-latest | 0 |
| 🛣️ openrouter | https://openrouter.ai/api | OPENROUTER_API_KEY | ~typesafe/jev-latest | OpenRouter 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
| Unit | Scope | Port | Run as | Notes |
|---|---|---|---|---|
yevv-laya.service | system | 127.0.0.1:51961 | loca | Nice=-10, CPUWeight=1000, LAYA_THREADS=8, HF_HUB_OFFLINE=1, one inference worker |
yevv-app.service | system | 127.0.0.1:51960 | loca | yevv_app.py, analytics off |
| Path | Holds |
|---|---|
~/dev/yevv/.venv | Python 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.py | Playground: 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.env | LAYA_API_KEY, mode 600 |
~/.config/yevv/keys.env | TYPESAFE_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.zone | Both vhosts. Certbot manages TLS for yevv and wiki.yevv |
~/dev/services/authelia/config/configuration.yml | The yevv.loca.zone one_factor rule |
Edge
| Route | Gate | Upstream |
|---|---|---|
https://yevv.loca.zone/ | Authelia one_factor, because it holds paid Jev keys | Gradio 51960, proxy_buffering off for SSE |
https://yevv.loca.zone/v1/systemone | laya-serve bearer (LAYA_API_KEY). No Authelia, because omp clients have no browser | laya-serve 51961 |
https://wiki.yevv.loca.zone | public | ~/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 feature | Uses the judge role | Laya on loca |
|---|---|---|
eval judge() / judge_batch() | yes | one tested call. omp -p returned {'churn': {'type': 'bool', 'bool': 1}}, and the first attempt timed out |
TTSR question: rules | yes | same judge path, not tested separately |
unexpected-stop detection (smart) | yes | same judge path, not tested separately |
| automatic thinking level | yes | too slow for every prompt, so the level is pinned |
find tool and omp find | yes | ❌ 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 · choiceheld three generations.layahad 65 input tokens and 10.4 s.openrouterwastypesafe/jev-1.13-20260917, 364 tokens, $0.0000153, 1.1 s.jevwas level ERROR with the 402. Scores werelaya.confidence0.896 andopenrouter.confidence1. Read back throughGET /api/public/traces/{id}. - loca’s local Langfuse 4.41 (events-only mode) returned a
GENERATIONthroughGET /api/public/v2/observations. Its legacy/api/public/ingestionrejects trace events, which is why yevv sends OTLP.
Runbook
| Task | Command |
|---|---|
| Health | curl -s 127.0.0.1:51961/health on loca |
| Logs | sudo journalctl -u yevv-laya -u yevv-app -f |
| Restart | sudo systemctl restart yevv-laya yevv-app. Restarting laya-serve also drops a queued backlog |
| Add Jev or Langfuse keys | Fill ~/.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 Mac | Fill the Mac keys.env, or run omp login typesafe |
| Deploy an app change | rsync -a 2026-09-19_JEV/app/ loca.zone-loca:dev/yevv/app/ then sudo systemctl restart yevv-app |
| Rebuild this wiki | rsync -a 2026-09-19_JEV/wiki/ loca.zone-loca:dev/wikis/yevv/content/ then ~/dev/wikis/build.sh yevv |
| Rotate the Laya bearer | Edit ~/.config/yevv/laya.env, restart both units, then copy the value to ~/.config/yevv/laya.key on the Mac |