Skip to content
Merged
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
2 changes: 0 additions & 2 deletions app/nullius/catalogue/benchmarks/osworld1/benchmark.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
],
"origin": "official",
"good_to_know": [
"An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps (100) and Pause (3.0 seconds) set that loop.",
"Original runs one of OSWorld's own agents, chosen by the Agent option (M3 by default), with a model it is published with.",
"Providers: OpenAI for OpenAI CUA; OpenAI-compatible for Muse Spark (Meta's API) and for EvoCUA, AutoGLM-OS and Mano (your model server); OpenRouter for the others.",
"At this version only the null control has run through Nullius. OSWorld's agents are the same code as in main (044bc33), where M3, PromptAgent and Qwen-CUA completed tasks.",
Expand Down Expand Up @@ -58,7 +57,6 @@
"versions": {
"044bc33": {
"good_to_know": [
"An agent runs it through the computer port: the agent's tool calls drive OSWorld's own loop, one step for each acting call. A step's observation is the screenshot that loop hands its agent for the next decision, with no capture added; the files a step names are read once its actions and their pauses have run. Steps (100) and Pause (3.0 seconds) set that loop.",
"Original runs one of OSWorld's own agents, chosen by the Agent option (M3 by default), with a model it is published with.",
"Providers: OpenAI for OpenAI CUA; OpenAI-compatible for Muse Spark (Meta's API) and for EvoCUA, AutoGLM-OS and Mano (your model server); OpenRouter for the others.",
"Only M3, PromptAgent and Qwen-CUA have completed tasks through Nullius. The other agents were checked up to their first model call.",
Expand Down
8 changes: 5 additions & 3 deletions app/nullius/catalogue/benchmarks/osworld1/standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
"yours"
],
"default": "default",
"yours": "100",
"pattern": "default|[1-9][0-9]{0,3}",
"example": "50",
"limit": true,
Expand Down Expand Up @@ -218,8 +219,8 @@
}
},
"pause": {
"label": "Pause",
"summary": "run_single_example's sleep_after_execution for an agent: the seconds env.step waits after each action, 3.0 as in run_multienv_m3.py's default.",
"label": "Pause after each action (seconds)",
"summary": "Seconds to wait after each action before taking the next screenshot.",
"pattern": "[0-9]{1,2}(\\.[0-9]{1,2})?",
"example": "5.0",
"default": "3.0",
Expand All @@ -230,7 +231,8 @@
},
"host": {
"docker": {
"summary": "Docker on the machine the driver runs on, usable without sudo, for the upstream's docker provider; /dev/kvm makes the VMs fast, and the upstream runs them without it, slowly.",
"label": "Docker for the tasks' VMs",
"summary": "Docker on the machine, usable without sudo: OSWorld starts each task's VM in it. /dev/kvm makes the VMs fast; without it they run slowly.",
"check": [
"docker"
]
Expand Down
5 changes: 4 additions & 1 deletion app/nullius/standard/contract/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ def _bench_options(d: dict) -> List[str]:
``embeddings`` model called through the run's relay, ``host`` requirements or ``files`` by name - and
``when`` it applies: another option's values (a retriever's, only with a retrieval). ``limit``:
a bound the upstream has of its own (its steps, its errors), offered with the run's limits; ``by``:
its default under each value of another option (an agent's own steps), for a default of ``default``. ``names``: a name for some of its values, shown in their place. ``step``: ``where`` for a choice of where the work runs, ``dataset`` for one its datasets need, the builder step that asks it."""
its default under each value of another option (an agent's own steps), for a default of ``default``; ``yours``: the value
an agent's or a capability's run gets for it (the steps of a port's loop). ``names``: a name for some of its values, shown in their place. ``step``: ``where`` for a choice of where the work runs, ``dataset`` for one its datasets need, the builder step that asks it."""
opts = d.get("options")
if opts is None:
return []
Expand All @@ -548,6 +549,8 @@ def _bench_options(d: dict) -> List[str]:
k != name and k in opts and isinstance(m, dict) and set(m) == set(opts[k].get("values") or [None])
and all(option_problem(o, v) is None for v in m.values()) for k, m in by.items())):
bad.append(f"{w}.by: another option -> its every value -> this one's default under it")
if "yours" in o and (by is None or o["yours"] == o.get("default") or option_problem(o, o["yours"])):
bad.append(f"{w}.yours: beside by, the value an agent's or a capability's run gets for a default of default")
# agent: an agent's run alone, on a benchmark agents run, and never beside another scope
if on is not None and (not isinstance(on, list) or not on or any(x not in SETUPS + ("yours", "agent") for x in on)
or "agent" in on and (on != ["agent"] or d.get("family") != "agent")):
Expand Down
13 changes: 8 additions & 5 deletions app/nullius/standard/pages/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ def _all() -> Dict[str, List[dict]]:


def _shown(o: dict, v: str, values: dict) -> str:
"""An option's value as Review shows it: its name, or for ``default`` under ``by`` the value it stands for."""
"""An option's value as Review shows it: its name, or for ``default`` under ``by`` the value it stands for (an
agent's or a capability's run, which takes no value of that other option, gets ``yours``)."""
by = next(iter((o.get("by") or {}).items()), None)
v = by[1].get(values.get(by[0]), v) if v == "default" and by else v
if v == "default" and by:
v = by[1].get(values.get(by[0]), v) if by[0] in values else o.get("yours") or v
return (o.get("names") or {}).get(v) or v


Expand Down Expand Up @@ -185,7 +187,7 @@ def _bench_page(b: dict) -> dict:
"options": {n: {"label": o.get("label") or n.replace("_", " ").capitalize(), "summary": o["summary"], "datasets": o.get("datasets") or [],
"setups": o.get("setups") or ["yours"],
**({"values": o["values"]} if "values" in o else {"pattern": o["pattern"], "example": o.get("example")}), "default": o.get("default"), "about": o.get("about") or {}, "names": o.get("names") or {}, "needs": o.get("needs") or {}, "when": o.get("when") or {},
"limit": bool(o.get("limit")), "step": o.get("step") or "", "by": o.get("by") or {}}
"limit": bool(o.get("limit")), "step": o.get("step") or "", "by": o.get("by") or {}, "yours": o.get("yours") or ""}
for n, o in (b.get("options") or {}).items()},
"host": {n: {"label": r.get("label") or n, "summary": r["summary"], "check": r["check"], "install": hostreq.install_lines(b, [n]), "needed_by": r["needed_by"]}
for n, r in hostreq.all_of(b).items()},
Expand Down Expand Up @@ -558,7 +560,8 @@ def add(step, message, shown=False, field=None):
add("model", why)
agents_local = [p["o"]["label"] for p in picks if side == "agent" and not p["control"] and not p.get("setup") and backend == "local"]
if agents_local and recipe.get("unsandboxed") is not True:
add("where", f"{', '.join(agents_local)} would run as you, not sandboxed: tick Run it as me, or choose Docker.")
add("where", f"{', '.join(agents_local)} would run as you, not sandboxed: tick Run it as me"
+ ("; a container cannot start its VMs." if definitions.boots_vms(b) else ", or choose Docker."), field="unsandboxed")
only_controls = bool(picks) and all(p["control"] for p in picks)
needs_model = any(not p["control"] for p in picks)
model_choice = recipe.get("model_choice", "any")
Expand Down Expand Up @@ -602,7 +605,7 @@ def add(step, message, shown=False, field=None):
# each attempt run again up to N times when it ends in a failure a further try may mend (runner.retries)
retries = 0 if recipe.get("retries") in (None, "") else _int(recipe.get("retries"), 0, MAX_RETRIES)
if retries is None:
add("limits", f"Retries per attempt: a whole number from 0 to {MAX_RETRIES}.")
add("limits", f"Retries after an error: a whole number from 0 to {MAX_RETRIES}.")
retries = 0
sim_model = str(recipe.get("simulator_model") or "").strip()
judge_model = str(recipe.get("judge_model") or "").strip()
Expand Down
4 changes: 2 additions & 2 deletions app/static/builder/command-builder-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
keepEndpoint(r, raw);
if ((Number.isInteger(raw.limit) && raw.limit >= 1) || raw.limit === '') r.limit = raw.limit;
if ((Number.isInteger(raw.concurrency) && raw.concurrency >= 1) || raw.concurrency === '') r.concurrency = raw.concurrency;
// attempts per unit, retries per attempt, and the judge's and user simulator's models: a reopened recipe runs as it was saved
// attempts per unit, retries after an error, and the judge's and user simulator's models: a reopened recipe runs as it was saved
if (Number.isInteger(raw.repeat) && raw.repeat >= 1 && raw.repeat <= 32) r.repeat = raw.repeat;
if (Number.isInteger(raw.retries) && raw.retries >= 0 && raw.retries <= 9) r.retries = raw.retries;
// the run's spending cap in USD, shared by its jobs (recipe.py): an amount above zero, or none
Expand Down Expand Up @@ -548,7 +548,7 @@
if (!Number.isInteger(Number(r[key])) || Number(r[key]) < 1) add(STEP.limits, key + ' must be an integer of at least 1, or empty for every task.');
}
// empty: none, as the standard's field reads it
if (r.retries !== '' && r.retries != null && (!Number.isInteger(Number(r.retries)) || Number(r.retries) < 0)) add(STEP.limits, 'Retries per attempt must be a whole number of at least 0, or empty.');
if (r.retries !== '' && r.retries != null && (!Number.isInteger(Number(r.retries)) || Number(r.retries) < 0)) add(STEP.limits, 'Retries after an error must be a whole number of at least 0, or empty.');
if (!Number.isFinite(Number(r.timeoutMultiplier)) || !(Number(r.timeoutMultiplier) > 0)) add(STEP.agent, 'Timeout multiplier must be positive.', 'Common');
// Common trial settings (Harbor's own per-trial flags): empty means the flag is not written.
for (const [key, label] of COMMON) if (r[key] !== '' && (!Number.isFinite(Number(r[key])) || !(Number(r[key]) > 0))) add(STEP.agent, label + ' must be a positive number, or empty.', 'Common');
Expand Down
Loading
Loading