Repository navigation
Conversation
Closes #129. --model glide talks to hosted Fastino or a local glide.server; contract tests use a stub HTTP server.
Birfy
left a comment
There was a problem hiding this comment.
Review (Birfy) — comment only, own PR, not approving
Head 48239991, CI green (core 3.11/3.13, full, benchmarks). This matches #129: --model glide against hosted Fastino (FASTINO_API_KEY, X-API-Key, https://api.fastino.ai/v1/systemone, store: false) or a local glide.server (GLIDE_URL, path /v1/systemone). GLIDE_URL wins when both are set. Images are Fastino state image_url data-URL parts (JPEG/PNG/GIF/WebP, max 4, 3.75 MiB), not Clef images or OneJev media. Empty instructions become a short fallback string; browser element criteria are flattened. Retries cover one transport / 502 / 504 plus bounded 425 / 429 / 503 with Retry-After, still inside the decision deadline. Score questions are not sent. Provenance keeps path, URL, request id, optional Fastino retention headers, and image digests.
Offline stub tests cover the hosted vs local body, auth header, image layout, transient retries, and config errors. No live Fastino or GPU run in this PR, as stated. Do not copy Fastino / Decision Index percentages as Agents results. I did not find a blocker in the adapter.
One non-blocking note: retry_after_s parses Retry-After only as a delay in seconds and uses the default when the value is an HTTP-date. That is documented. If a first live hosted run sees 425/429 with a date-style header, the wait will be the 30 s / 1 s default — fine inside the deadline, just do not treat a short default wait as "the server asked for that delay".
I am not approving this PR (it is mine). The adapter looks ready for review.
Required human contributor answers
Per the repo owner's (Danyang, @Birfy) standing instruction, these are filled from the issue (#129) instead of waiting for separate human answers.
What outcome are you trying to achieve?
Answer: Agents can call Fastino GLiDE as a served System One decision model over HTTP (
--model glide) for text, and for screenshots when the observation has images, without loading weights in process ([Feat] Add Fastino GLiDE as a served System One decision backend #129).What is the highest-leverage variable for that outcome?
Answer: Whether the HTTP body matches the official Fastino / local
glide.serverschema (modelrequired,state, namedquestions, hostedstore: false) with GLiDE'sstateimage parts (not Clefimagesor OneJevmedia), X-API-Key auth, and Fastino retries (425/429/503), failing closed on a missing URL/key or a bad body — without inventing a second unused shaping layer or ascorepath our interface does not have.How will this work move that variable rather than create busywork?
Answer: It adds a dedicated served adapter (same shape as
clm/onejev/clef): one deadline per decision, provenance (url,request_id, served model name, usage, path), and contract tests against a stub server so CI does not call Fastino or a GPU.Who is the customer or user, and what do they actually need?
Answer: People who want
--model glideagainst hosted Fastino or a localglide.serverfor choice/noul decisions, including optional screenshots, without waiting for a live qualification run.After answering the four questions: is a PR needed at all to achieve this outcome?
Human decision and rationale (or explicit source reference): Yes; #129 proposes this adapter as the scope of one PR and distinguishes "adapter wired" from "qualified on this checkpoint and path".
For a bug fix: link actual observed failure evidence.
Evidence: Not a bug fix: a new served backend (#129).
Why
system1-agents has no
--model glide. GLiDE cannot ride the existingjevclient unchanged: auth isX-API-Key, the requestmodelmust befastino/GLiDE(values with/are rejected as OpenRouter ids on the TypeSafe path), hosted requests default tostore: true, retries include425 model_warming, and images arestateimage_urlparts. Closes #129.How
Start with
s1a/decision_models/glide.py, thenfactory.pyand the fronts, andtests/test_decision_models_glide.py.--model glide→GlideModel.from_env():GLIDE_URL(local/v1/systemone) orFASTINO_API_KEY(hostedhttps://api.fastino.ai/v1/systemone).GLIDE_URLwins when both are set.GLIDE_MODELdefaults tofastino/GLiDE. OptionalGLIDE_API_KEY/GLIDE_TIMEOUT_S.X-API-Key(not Bearer). Hosted evals sendstore: false.jev_question(instructionsas a JSON object, which Fastino accepts). An empty instructions object becomes a short fallback string (Fastino rejects empty instructions). Browser element rows in choicecriteriaare flattened to description strings.stateimage_urldata-URL parts (JPEG/PNG/GIF/WebP, max 4, 3.75 MiB each). A text observation still runs. Noimages,media, orvideosfields.425/429/503retries that respectRetry-Afterwithin the decision deadline.rawkeepsserved_by(includingpath:localorhosted),url,request_id,server_timing, optional Fastino retention / request-id headers, andsent_imagesdigests (never image bytes). The hosted response model name isglide.DECISION_MODEL_NAMESand on the tool, browser, rails, CLIdecide/probe, and MCPdecidefronts (GLiDE is text-capable; images are optional).scorequestions are unsupported on our interface and are not sent. Weights are under the Fastino Community License and are not vendored.What
GLIDE_URL,FASTINO_API_KEY,GLIDE_MODEL,GLIDE_API_KEY,GLIDE_TIMEOUT_Sindocs/configuration.mdand.env.example.docs/decision-models.md(backend row + optional smoke recipe),docs/capabilities.md(adapter wired vs not qualified; no Decision Index / Artificial Analysis figures copied as ours),docs/agents.md,docs/architecture.md.Verification
ruff format --check . && ruff check . && ty check: all clean (run with the box's existing dev environment; this box was out of inodes so a freshuv synccould not be completed here)pytest -qandscripts/smoke.sh: 1406 passed, 134 skipped, 270 subtests passed; smoke OKCHANGELOG.mdand the docs say what the code does nowOffline tests cover the text path (no
images/media/videos/storeon the local path), hostedX-API-Key+store: false, screenshotstateimage parts, Fastino header provenance, more than 4 images, oversize / empty / unknown media types, transport error (after retry), malformed answers, HTTP 500 / 422,425/429/503retry-after, one decision deadline across the permitted retry,from_env/build_model(local vs hosted, local URL wins), and front registration.Demo / evidence
docs/results/. Hardware / path qualification remains unmarked in the capability matrix until a pinned run lands.issue-129-glideat4823999; no System1-Omni involved (hosted Fastino or a localglide.server).