Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ MODEL_NAME=google/gemini-2.5-flash
# OMNIJEV_BASE=Qwen/Qwen3.5-0.8B # the Qwen3.5 backbone of the same size
# OMNIJEV_PROMPT=full # full: text state + goal + rules; short: goal + ask over the screenshot

# ---- GLiDE (behind --model glide; hosted Fastino or a local /v1/systemone server) ----
# GLIDE_URL=http://127.0.0.1:8000 # local glide.server; wins over hosted Fastino when set
# FASTINO_API_KEY= # hosted https://api.fastino.ai/v1/systemone, used only when GLIDE_URL is unset
# GLIDE_MODEL=fastino/GLiDE # or a GLiDE model id you deployed. Omitting it on the wire is 422
# GLIDE_API_KEY= # when a local server expects X-API-Key
# GLIDE_TIMEOUT_S=30 # per decision, including transport / 502 / 504 and Fastino 425 / 429 / 503 retries

# ---- Optional Cua-S1 4B ----
# uv sync --extra cua-four-b (separate from the Laya demo).
# CUA_S1_VARIANT=4b
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); ver

## Unreleased

### Added

- `--model glide`: [GLiDE](https://arxiv.org/abs/2611.26509) as a **served** System One client against hosted
Fastino (`FASTINO_API_KEY`, `POST https://api.fastino.ai/v1/systemone`) or a local `glide.server` (`GLIDE_URL`).
Request `model` defaults to `fastino/GLiDE` (`GLIDE_MODEL`). Posts choice/noul; screenshots travel as GLiDE
`state` `image_url` data-URL parts (JPEG/PNG/GIF/WebP, max 4), not Clef `images` or OneJev `media`. Hosted
evals send `store: false`. `score` questions are unsupported on our interface. Weights use the Fastino
Community License and are not vendored. Contract tests use a fake HTTP server; live Fastino / GPU
qualification is not claimed (#129).

## 0.4.0 - 2026-11-13

### Added
Expand Down
2 changes: 2 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ This product includes software developed by third parties:
Beurer-Kellner, Marc Fischer, and Florian Tramèr). Full license text: THIRD_PARTY_LICENSES.md
- s1a/decision_models/onejev.py: HTTP client for OneJev / qev (OmniJev/OneJev), Apache-2.0;
the weights and server are not vendored. Details: THIRD_PARTY_LICENSES.md
- s1a/decision_models/glide.py: HTTP client for Fastino GLiDE; the weights are under the Fastino
Community License and are not vendored. Details: THIRD_PARTY_LICENSES.md
9 changes: 9 additions & 0 deletions THIRD_PARTY_LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,12 @@ OneJev and its serving code are Apache License 2.0 (Copyright OmniJev Team). Thi
vendor OneJev weights, training code, or the `qev`/`flide` packages; install and run them separately
per the model card. The unrelated PyPI package named `qev` is not the OneJev server — install from the
OneJev GitHub repository as the model card instructs.

## Fastino GLiDE

The `--model glide` adapter (`s1a/decision_models/glide.py`) talks to Fastino GLiDE through the hosted
API (`POST https://api.fastino.ai/v1/systemone`) or a local `glide.server`. GLiDE weights (for example
[fastino/GLiDE-27B](https://huggingface.co/fastino/GLiDE-27B)) are under the Fastino Community License,
not Apache-2.0. This repository does not vendor GLiDE weights, training code, or the `glide` serving
package; use the hosted API or install and run a local server separately per the model card and
https://docs.fastino.ai/inference/systemone.
6 changes: 3 additions & 3 deletions docs/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ hook of a running agent. The injection guard rail fails closed: a decision error
| `blackjack` | tool | payoff per hand (RLCard) | `s1a run blackjack --model jev --rethink off --episodes 100` |
| `injection_guard` | rail | precision and recall on a labelled injection set | `s1a run injection_guard` |

Every tool agent takes `--model jev|clm|laya|laya-served|cua|llm|random|rule`, `--rethink on|off`, `--episodes N`, `--seed S`,
Every tool agent takes `--model jev|clm|laya|laya-served|cua|glide|llm|random|rule`, `--rethink on|off`, `--episodes N`, `--seed S`,
`--max-steps` and `--timeout`, and writes a Harbor-shaped job folder under `evals/results/<agent>/`. A browser agent
takes `--model jev|clm|laya|laya-served|cua|omnijev|onejev|llm`, `--goal` and the same `--rethink` flag.
takes `--model jev|clm|laya|laya-served|cua|omnijev|onejev|glide|llm`, `--goal` and the same `--rethink` flag.
The desktop agent adds `--rethink-attempts` and `--rethink-timeout` and stalls after 3 actions without observed
progress. The browser front takes the same three names; `docs/browser-front.md` decision 19 describes its branch. A rail takes
`--model jev|clm|laya|laya-served`, the models that answer `noul`.
`--model jev|clm|laya|laya-served|glide`, the models that answer `noul`.
`uv run python -m evals.table evals/results` aggregates every job folder per eval and model into one table.

Every `run` prints one JSON object on stdout and nothing else there; `s1a-mcp` serves the same agents over stdio
Expand Down
11 changes: 6 additions & 5 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ validation; `docs/decision-models.md`), `s1a/decision_models/wire.py` (the HTTP
| `cua` | [Cua-S1 Nano](https://huggingface.co/cua-ai/cua-s1-nano-0.1) (`cua-ai/cua-s1-nano-0.1`, 855K) | in process, `uv sync --extra cua`; no key | a 256-byte context (header, goal, state, then rules), 96 bytes per option |
| `omnijev` | [OmniJev](https://github.com/tinnel123666888/OmniJev) (Qwen3.5 VL, 0.8B by default, 2B or 4B) | in process, browser agents only, `uv sync --extra omnijev` and a clone named by `OMNIJEV_REPO`; no key; a GPU for useful speed | a viewport screenshot per tick, plus the text state (recent actions first, page text capped at 2,000 characters) |
| `onejev` | [OneJev](https://github.com/OmniJev/OneJev) (0.8B–27B, Apache-2.0) via `qev`/`flide` | served HTTP, browser agents only; `ONEJEV_URL`; no cloud key | a viewport screenshot per tick as `media` with `<image:N>` in state |
| `glide` | [GLiDE](https://arxiv.org/abs/2611.26509) (Fastino Community License) | served HTTP: `GLIDE_URL` (local `/v1/systemone`) or hosted Fastino (`FASTINO_API_KEY`); `GLIDE_MODEL` defaults to `fastino/GLiDE` | text state; optional screenshots as GLiDE `state` image parts (max 4). No `score` questions on our interface. Hosted evals send `store: false` |
| `random`, `rule` | the tool front's two baselines | in process | the candidates |
| `llm` | the chat model | for the comparison columns | the transcript |

`decision_models.build_model(model_name)` builds the first six; `llm` is not a decision model.
`decision_models.build_model(model_name)` builds every `--model` name except `llm`, which is not a decision model.

## Entry points

Expand All @@ -64,17 +65,17 @@ the first import of both, routes the harness logs to files under `runs/logs` bef
MCP stdio protocol only.

Every `run` prints one JSON object on stdout: a tool agent's series summary with its `job_dir`, a browser agent's
answer, a rail's evaluation. A browser agent takes `--model jev|laya|cua|omnijev|onejev|llm`; its policy switches are run-time flags:
answer, a rail's evaluation. A browser agent takes `--model jev|laya|cua|omnijev|onejev|glide|llm`; its policy switches are run-time flags:
`--batch on|off`, `--prefetch on|off`, `--goal-values on|off`. `s1a-mcp` serves the same agents to an MCP host over stdio,
one Runner for the server's lifetime and one run at a time. `uv run python -m evals.table evals/results`
aggregates every job folder per eval and model into one table. `scripts/showcase.sh` plays one visual episode per
eval and model outside the matrix and `python -m evals.replay` renders a pair side by side, with a GIF; see
`evals/README.md`.

Every tool agent, `desktop` included, takes `--model jev|laya|cua|llm|random|rule`, `--rethink on|off`,
Every tool agent, `desktop` included, takes `--model jev|laya|cua|glide|llm|random|rule`, `--rethink on|off`,
`--episodes N`, `--seed S`, `--max-steps`, `--timeout` and `--headed`, and writes a Harbor-shaped job folder under
`evals/results/<agent>/`. Every browser agent takes `--model jev|laya|cua|omnijev|onejev|llm` and `--goal`. A rail takes
`--model jev|laya`, the two models that answer `noul`. `decide` and `probe` take `--model jev|laya|cua`. On a browser
`evals/results/<agent>/`. Every browser agent takes `--model jev|laya|cua|omnijev|onejev|glide|llm` and `--goal`. A rail takes
`--model jev|laya|glide`, the models that answer `noul`. `decide` and `probe` take `--model jev|laya|cua|glide`. On a browser
agent `laya` needs `LAYA_MAX_LEN` raised to the page's size; `cua` reads a 256-byte context (header, goal, state,
then rules) and 96 bytes per option, a baseline on any page. Exit codes: 0 for a finished run, including one whose
JSON has `ok: false`; 1 for a run, key, model or file error, one line on stderr; 2 for a usage error (an unknown
Expand Down
1 change: 1 addition & 0 deletions docs/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ For issue trackers and serving support, see [System1-Omni model tracker #83](htt
| LAYA (`--model laya-served`; served checkpoint/revision is reported by the endpoint) | Text | `choice`, `noul` | Tool, browser, rails, `decide`/`probe`, MCP | Agents HTTP client can connect directly to a Laya worker or through System1-Omni `omni-jev` at `/v1/systemone` | Historical direct-worker and Omni-front MPS ticket-router measurements are recorded below (90 decisions/configuration, 63 correct each); historical CPU served request replay is separate and is not task-success evidence. Other hardware/checkpoints unverified. |
| OmniJev (`--model omnijev`; default `tinnel123/OmniJev-0.8B@v1.1` on `Qwen/Qwen3.5-0.8B`; configurable 2B/4B) | Screenshot plus text state/context | `choice`, `noul` | Browser front via `s1a run` and MCP `run_agent`; direct `build_model()` factory path. Not registered in tool/rails, CLI `decide`/`probe`, or MCP `decide` | In-process OmniJev clone via `MSO1.system_one`; no System1-Omni served vision path | Historical A100 80 GB 4B runs, Windows 11 CPU 0.8B runs, and A40 46 GB 4B runs are detailed below. They do not establish broad task success; current-main reproduction unverified. |
| OneJev (`--model onejev`; default request id `OmniJev/OneJev1.6-4B`; set `ONEJEV_MODEL`) | Screenshot(s) plus text state/context via TypeSafe `media` / `<image:N>` | `choice`, `noul` | Browser front via `s1a run` and MCP `run_agent`; direct `build_model()` factory path. Not registered in tool/rails, CLI `decide`/`probe`, or MCP `decide` | HTTP client to `qev`/`flide` at `ONEJEV_URL` (`POST /v1/systemone` + `media`) | Contract tests use a fake HTTP server. Live GPU / GGUF hardware validation **not recorded in this checkout** (#88). |
| GLiDE (`--model glide`; default request id `fastino/GLiDE`; set `GLIDE_MODEL`) | Text state; optional screenshots as GLiDE `state` `image_url` data-URL parts (JPEG/PNG/GIF/WebP, max 4) | `choice`, `noul`; Fastino also defines `score`, but Agents has no corresponding question type | Tool, browser, rails, `decide`/`probe`, MCP | HTTP `POST /v1/systemone` to hosted Fastino (`FASTINO_API_KEY`) or a local `glide.server` (`GLIDE_URL`). Hosted evals send `store: false`. Weights are Fastino Community License, not Apache-2.0, and are not vendored | **Adapter wired** only: contract tests use a fake HTTP server. Live Fastino / local-GPU qualification **not recorded in this checkout** (#129). Do not treat Fastino's or Artificial Analysis Decision Index figures as Agents results. |
| Cua-S1 Nano (`cua-ai/cua-s1-nano-0.1/text`, `--model cua`, default variant) | Text | `choice` only | Tool/browser paths where registered; no screenshot input | In-process `cua_s1.nano.NanoScorer` | No real Nano inference artifact found in this checkout. **CPU/GPU/MPS unverified here.** |
| Cua-S1 4B 0.2 text adapter (`Qwen/Qwen3.5-4B` + `cua-ai/cua-s1-4b-0.2/text`, `CUA_S1_VARIANT=4b`, `CUA_S1_MODALITY=text`) | Text | `choice` only | Tool decisions and text-only client paths; desktop option grounding is implemented | In-process Transformers/PEFT scorer | Contract tests use a fake scorer; real checkpoint/device validation **not present in this checkout**. |
| Cua-S1 4B 0.2 multimodal adapter (`Qwen/Qwen3.5-4B` + `cua-ai/cua-s1-4b-0.2/multimodal`, variant `4b`) | One current screenshot plus text task/context | `choice` only; maximum 26 options in text and multimodal modes; multimodal requires exactly one screenshot | Screenshot-dependent desktop decision adapter; this does not itself complete the Omni capture/execute bridge | In-process Transformers/PEFT scorer with screenshot passed as a temporary file | Contract tests use a fake scorer; separate historical external evidence reports a bounded MPS fixture run (see below). Current-main reproduction and CUDA validation remain unverified. |
Expand Down
5 changes: 5 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ Variables can be exported in your shell or placed in a `.env` file at the root o
| `ONEJEV_MODEL` | `onejev` model | `OmniJev/OneJev1.6-4B` | Model id sent in the `/v1/systemone` body (checkpoint the server loaded, e.g. `OmniJev/OneJev1.6-0.8B`). |
| `ONEJEV_API_KEY` | `onejev` model | *(unset)* | Bearer token when the server expects one; loopback `qev`/`flide` usually needs none. |
| `ONEJEV_TIMEOUT_S` | `onejev` model | `30` | Deadline per decision in seconds, the one refused-connection / 502 / 504 retry included. A finite number above 0. Raise for large checkpoints or a cold load. |
| `GLIDE_URL` | `glide` model | *(unset)* | Base URL of a local `glide.server`, e.g. `http://127.0.0.1:8000`. Wins over hosted Fastino when set. |
| `FASTINO_API_KEY` | `glide` model | *(unset)* | Fastino API key, sent as `X-API-Key`, used when `GLIDE_URL` is unset. Required for the hosted path. |
| `GLIDE_MODEL` | `glide` model | `fastino/GLiDE` | Model id sent in the `/v1/systemone` body (or a GLiDE id you deployed). The hosted response echoes the engine name as `glide`. |
| `GLIDE_API_KEY` | `glide` model | *(unset)* | `X-API-Key` when a local server expects one; loopback `glide.server` usually needs none. |
| `GLIDE_TIMEOUT_S` | `glide` model | `30` | Deadline per decision in seconds, including the transport / 502 / 504 retry and bounded Fastino `425` / `429` / `503` retries (`Retry-After`). A finite number above 0. Fastino recommends a 300 s read timeout if you wait out a cold model; raise this accordingly. |
| `CUA_DRIVER_BIN` | `desktop` agent | `cua-driver` | Path to the `cua-driver` executable on Windows or macOS when not located on `PATH`. |
| `CUA_DRIVER_PERMISSION_MODE` | `desktop` agent | `standard` | Permission mode passed to `cua-driver mcp` (`standard`, or `bounded` for restricted capability manifests). |
| `HF_HOME` | Hugging Face runtime | `~/.cache/huggingface` | Cache directory where Laya and Cua-S1 checkpoints are downloaded on first run. |
Expand Down
24 changes: 24 additions & 0 deletions docs/decision-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,30 @@ ONEJEV_URL=http://127.0.0.1:8000 ONEJEV_TIMEOUT_S=60 \
This is a setup recipe only. Capability registration and stub-server contract tests do **not** establish task
success rates or hardware validation; see [capabilities.md](capabilities.md).

### Served GLiDE

`glide` is registered in `build_model()` and on the tool, browser, rails, `decide`/`probe` and MCP fronts. Point
`GLIDE_URL` at a local [`glide.server`](https://huggingface.co/fastino/GLiDE-27B), or set `FASTINO_API_KEY` for
the [hosted Fastino API](https://docs.fastino.ai/inference/systemone). `GLIDE_MODEL` defaults to `fastino/GLiDE`.
The existing Jev question builder is reused (`instructions` as a JSON object, which Fastino accepts). Browser
element rows in choice `criteria` are flattened to description strings. Hosted requests send `store: false`.
Screenshots become `state` `image_url` data-URL parts (max 4; JPEG/PNG/GIF/WebP); a text observation still runs.
`score` questions are unsupported on our interface. The weights are under the Fastino Community License and are
not vendored. Example (not run in CI; needs a Fastino key or a local server, and is not a qualification record):

```bash
# local server, as on the GLiDE-27B model card
# python -m glide.server --model /models/GLiDE-27B --port 8000
GLIDE_URL=http://127.0.0.1:8000 uv run s1a probe path/to/cases.jsonl --model glide

# hosted Fastino
FASTINO_API_KEY=... uv run s1a probe path/to/cases.jsonl --model glide
```

The capability matrix distinguishes this **adapter wiring** from qualification on a named checkpoint and path:
no live Fastino or GPU run is recorded in this checkout, and published Decision Index / Artificial Analysis
numbers are not Agents results.

### Served JEV-VL

`jev-vl-served` is registered in the browser front and `build_model()`. It sends the observation's text state,
Expand Down
5 changes: 3 additions & 2 deletions s1a/browser/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"cua",
"omnijev",
"onejev",
"glide",
"llm",
) # a decision model over HTTP or in process, or the chat model
RUNS_DIR = HOME / "runs" / "browser"
Expand Down Expand Up @@ -254,7 +255,7 @@ async def browse(
workspace = str(logs_dir / "workspace") # the harness scaffolds SOUL.md, memory/ and friends here, not in the cwd
instance = BrowserInstanceConfig(launch_args=browser_launch_args(headless))
match model_name:
case "jev" | "jev-vl-served" | "clm" | "laya" | "laya-served" | "cua" | "omnijev" | "onejev":
case "jev" | "jev-vl-served" | "clm" | "laya" | "laya-served" | "cua" | "omnijev" | "onejev" | "glide":
if decision_model is None:
raise RuntimeError(f"--model {model_name} needs a decision model")
slot_model = BrowserDecisionModel(
Expand Down Expand Up @@ -321,7 +322,7 @@ def parser(spec: BrowserAgentSpec) -> argparse.ArgumentParser:
"--model",
choices=BROWSER_MODEL_NAMES,
required=True,
help="who decides each browser step: jev, jev-vl-served, clm, laya-served or onejev (over HTTP; jev-vl-served and onejev require a screenshot), laya, cua or omnijev (in process; omnijev reads a screenshot), or llm (the chat model in MODEL_NAME)",
help="who decides each browser step: jev, jev-vl-served, clm, laya-served, onejev or glide (over HTTP; jev-vl-served and onejev require a screenshot), laya, cua or omnijev (in process; omnijev reads a screenshot), or llm (the chat model in MODEL_NAME)",
)
build.add_argument(
"--goal", default=spec.goal, required=spec.goal is None, help="the task; the spec's goal when it has one"
Expand Down
7 changes: 4 additions & 3 deletions s1a/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"laya",
"laya-served",
"cua",
"glide",
) # the decision models that answer one question on their own: no env, no rule, no chance


Expand All @@ -40,7 +41,7 @@ def parser() -> argparse.ArgumentParser:
run.add_argument("flags", nargs=argparse.REMAINDER)
decide = commands.add_parser(
"decide",
help="one choice question to a decision model: jev, clm or laya-served over HTTP, or laya and cua in process",
help="one choice question to a decision model: jev, clm, laya-served or glide over HTTP, or laya and cua in process",
)
decide.add_argument("--state", required=True, help="a JSON object, or @path to a file holding one")
decide.add_argument(
Expand All @@ -55,7 +56,7 @@ def parser() -> argparse.ArgumentParser:
"--model",
choices=DECIDE_MODEL_NAMES,
default="jev",
help="who answers: jev, clm or laya-served over HTTP, laya and cua in process",
help="who answers: jev, clm, laya-served or glide over HTTP, laya and cua in process",
)
fit = commands.add_parser("probe", help="the fit probe: hand-written choice cases from a JSONL file")
fit.add_argument(
Expand All @@ -67,7 +68,7 @@ def parser() -> argparse.ArgumentParser:
"--model",
choices=DECIDE_MODEL_NAMES,
default="jev",
help="who answers: jev, clm or laya-served over HTTP, laya and cua in process",
help="who answers: jev, clm, laya-served or glide over HTTP, laya and cua in process",
)
fit.add_argument(
"--order",
Expand Down
2 changes: 2 additions & 0 deletions s1a/decision_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from s1a.decision_models.baselines import RandomModel, Rule, RuleModel
from s1a.decision_models.cua import CuaS1Model
from s1a.decision_models.factory import DECISION_MODEL_NAMES, build_model
from s1a.decision_models.glide import GlideModel
from s1a.decision_models.fakes import ScriptedModel, ScriptedTransport
from s1a.decision_models.jev import JevModel, jev_question
from s1a.decision_models.laya import LayaModel
Expand Down Expand Up @@ -57,6 +58,7 @@
"Noul",
"NoulQuestion",
"OmniJevModel",
"GlideModel",
"OneJevModel",
"Observation",
"Question",
Expand Down
Loading