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: 2 additions & 0 deletions .claude/rules/ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ also supports `--only KEY` for a focused benchmark check.
- Collapsible content uses the shared thin chevron and sliding transition in
`app/static/disclosures.js`; navigation groups use the same animation. Respect
reduced motion and keyboard activation. Filter menus and popovers are separate.
- **One icon, one meaning.** A new kind of thing gets its own icon, never a
neighbour's.

- Catalogue Add actions share one dialog with the entry type preselected from the page. Keep generated prompts short and refer to import skills instead of duplicating their instructions.
2 changes: 1 addition & 1 deletion .claude/skills/import-standard/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ output to stderr: stdout carries the JSON lines.
(and `model`); then `cli prove KEY` (its controls, units, no leak).
An agent or capability: `cli conform KEY --model <cheap model> [--unsandboxed]`.
A value that needs a `host` requirement this machine lacks (a GPU) is
proven on a machine that has it: choose a run host from Settings and
proven on a machine that has it: choose a host from Settings and
launch the short trial from the builder's Review step. Execution snapshots
the current standard runtime and effective catalogue, including user
additions, and sends that payload to the host. A `git archive` of the
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ One line each; the code and the pages carry the rest.
upstream's own code at a pin, its dependencies in its own environment, and
any code of ours beyond glue is asked about first
- Settings, its variables and their validation — `app/nullius/settings.py`;
run hosts, keys and the connection test — `app/nullius/hosts.py`
hosts, keys and the connection test — `app/nullius/hosts.py`
- Removing a benchmark, agent or capability throughout the app, including
generated artifacts and requested runtime data — `/remove-integration`
(`.claude/skills/remove-integration/SKILL.md`)
Expand Down
2 changes: 1 addition & 1 deletion app/site/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ nav:
- LLM judge provider: settings/llm-judge.md
- Custom keys: settings/agent-keys.md
- Model prices: settings/model-prices.md
- Run hosts: settings/run-hosts.md
- Hosts: settings/run-hosts.md
- Data providers: settings/data-providers.md
- Sandbox: settings/sandbox.md
- Other: settings/other.md
Expand Down
4 changes: 2 additions & 2 deletions app/static/builder/command-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
const web = agentRun && Object.values((b || {}).environments || {}).some(e => e.network); // an agent's public web proxy
return '<div class="nb-sectionhead"><h2>Where does it run?</h2></div>'
+ `<div class="nb-pick-grid nb-where">${machine('local', 'This machine', 'Nullius runs it here, in runs/' + rec.name + '.')}${H.map(h => machine(h.entry, h.label, 'Over ssh: the standard\'s code at this commit is sent there, uv put there if missing; its job comes back as it runs.')).join('')}</div>`
+ (H.length ? (list.some(w => w !== 'local') ? button('Test connection', 'id="nb-test-host"') + ' <span id="nb-hosttest" class="nb-note"></span>' : '') : `<p class="nb-note">Hosts are named in ${button('Settings → Run hosts', 'data-href="/settings#HOSTS"', 'nb-inlinebutton')}; this machine is the only choice until then.</p>`)
+ (H.length ? (list.some(w => w !== 'local') ? button('Test connection', 'id="nb-test-host"') + ' <span id="nb-hosttest" class="nb-note"></span>' : '') : `<p class="nb-note">Hosts are named in ${button('Settings → Hosts', 'data-href="/settings#HOSTS"', 'nb-inlinebutton')}; this machine is the only choice until then.</p>`)
+ '<div class="nb-sectionhead std-wherehead"><h3>How it runs there</h3></div>'
+ `<div class="nb-pick-grid std-backends">${how('local', 'Local processes', 'Its commands run as you, not sandboxed.', '')}`
+ how('container', 'Container', web ? 'Sandboxed: each unit in a container whose only ways out are its relay and a public web proxy.'
Expand Down Expand Up @@ -724,7 +724,7 @@
const H=schema.hosts||[], rec2=r(), on=v=>rec2.where===v;
html='<div class="nb-sectionhead"><h2>Where does it run?</h2></div>'
+`<div class="nb-pick-grid nb-where">${[['local','This machine','Nullius runs the script here, in runs/'+esc(rec2.name)+'.'],...H.map(h=>[h.entry,h.label,own?'Over ssh. uv and a snapshot of this runner are put there if missing; results and proofs come back as it runs.':'Over ssh. The tasks are sent there, and a repository’s Harbor as the wheels built here; uv runs the Harbor the recipe pins; the job comes back as it runs.'])].map(([v,t,sub])=>machineTile('where',v,t,sub,on(v))).join('')}</div>`
+(H.length?button('Test connection','id="nb-test-host"'+(rec2.where==='local'?' disabled':''))+' <span id="nb-hosttest" class="nb-note"></span>':note('No host yet','Hosts are named in Settings → Run hosts; this machine is the only choice until then.'));
+(H.length?button('Test connection','id="nb-test-host"'+(rec2.where==='local'?' disabled':''))+' <span id="nb-hosttest" class="nb-note"></span>':note('No host yet','Hosts are named in Settings → Hosts; this machine is the only choice until then.'));
}
if(step===REVIEW){
// the standard's review names Where itself (recipe.py): its machines and its backend
Expand Down
2 changes: 1 addition & 1 deletion app/static/catalogue/catalogue.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
@media(max-width:640px){.setup-wrap.import-setup{margin:0}.import-setup h1{font-size:29px}.import-setup .setup-card{padding:22px 18px}.import-setup .drop{padding:26px 17px}.import-setup .field-label{font-size:12px}.import-setup .path-row input{font-size:16px}}
@media(pointer:coarse){.import-setup .add-btn,.import-setup .row-x{min-width:44px;min-height:44px}}

/* Settings: what testing a run host said. */
/* Settings: what testing a host said. */
.settings-page .settings-test { font-size: 12px; color: var(--text-dim); }
.settings-page .settings-test:empty { display: none; }
.settings-page .settings-test.ok { color: var(--ok); }
Expand Down
2 changes: 1 addition & 1 deletion app/static/settings/constraints.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Constraints, in each machine's Constraints panel of the Run hosts list. Each edit rewrites the hidden JSON, which
// Constraints, in each machine's Constraints panel of the Hosts list. Each edit rewrites the hidden JSON, which
// autosave saves. × empties one field, Remove all a machine's; an empty field is no constraint. Memory is kept in MB
// and shown in MB or GB. Where the capacity is known, a slider moves with CPUs and Memory: continuous from one step
// to a tick at the capacity, then one jump to No limit (the field empty) at the far end. A value above the capacity
Expand Down
2 changes: 1 addition & 1 deletion app/static/settings/hosts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Run hosts: a table, a row per machine, this machine first. A row's actions (Info, Connection, Constraints, Delete) open a panel
// Hosts: a table, a row per machine, this machine first. A row's actions (Info, Connection, Constraints, Delete) open a panel
// in a row below it, one at a time, with the shared sliding disclosure. Test asks the machine and redraws its Info; Connection and
// Delete go through the settings save with the form token, then the list is drawn again from the answer.
(() => {
Expand Down
5 changes: 4 additions & 1 deletion app/static/settings/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
.st-key-new-fields { grid-template-columns: minmax(0, 1fr); }
}

/* run hosts: a row each - its name tests it, the result says what answered */
/* hosts: a row each - its name tests it, the result says what answered */
.st-hosts { padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.host-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.host-table th, .host-table td { padding: 6px 4px; text-align: left; vertical-align: middle; font-weight: 400; }
Expand Down Expand Up @@ -299,6 +299,9 @@
.st-provider-choice { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 500 14px/1.5 var(--sans); text-align: left; cursor: pointer; }
.st-provider-choice:hover { background: var(--nav-hover); border-color: var(--text-faint); }
.st-provider-choice .st-logo { width: 28px; height: 28px; }
/* A custom provider's logo: the first two letters of its name, on the workspace badge. */
.ws-avatar.st-logo { width: 20px; height: 20px; font-size: .5rem; border-radius: 5px; color: var(--accent); letter-spacing: 0; }
.st-provider-choice .ws-avatar.st-logo { width: 28px; height: 28px; font-size: .64rem; border-radius: 7px; }
.st-provider-summary { display: flex; align-items: center; gap: 14px; min-width: 0; }
.st-provider-summary > div { flex: 1; min-width: 0; }
.st-provider-summary h3 { overflow-wrap: anywhere; }
Expand Down
11 changes: 9 additions & 2 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,15 @@
<symbol id="i-runs" viewBox="0 0 24 24"><path d="M9 6h12M9 12h12M9 18h12"/><circle cx="4" cy="6" r="1.2"/><circle cx="4" cy="12" r="1.2"/><circle cx="4" cy="18" r="1.2"/></symbol>
<symbol id="i-compare" viewBox="0 0 24 24"><rect x="3" y="4" width="7.5" height="16" rx="1.5"/><rect x="13.5" y="4" width="7.5" height="16" rx="1.5"/><path d="M6.75 9v6M17.25 9v6"/></symbol>
<symbol id="i-import" viewBox="0 0 24 24"><path d="M12 4v11M7 10l5 5 5-5M4 20h16"/></symbol>
<symbol id="i-newrun" viewBox="0 0 24 24"><path d="M4 17l6-5-6-5M12 19h8"/></symbol>
<symbol id="i-ws" viewBox="0 0 24 24"><path d="M3 8a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></symbol>
<symbol id="i-newrun" viewBox="0 0 24 24"><rect x="3" y="9" width="18" height="11" rx="2"/><path d="M6 9V6.5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1V9M14 9V6.5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1V9"/></symbol>
<symbol id="i-ws" viewBox="0 0 24 24"><rect x="4" y="4" width="6.5" height="6.5" rx="1.5"/><rect x="13.5" y="4" width="6.5" height="6.5" rx="1.5"/><rect x="4" y="13.5" width="6.5" height="6.5" rx="1.5"/><rect x="13.5" y="13.5" width="6.5" height="6.5" rx="1.5"/></symbol>
<symbol id="i-scale" viewBox="0 0 24 24"><path d="M12 3v18M7 21h10M5 7h14M5 7l-3 7a3 3 0 0 0 6 0zM19 7l-3 7a3 3 0 0 0 6 0z"/></symbol>
<symbol id="i-gavel" viewBox="0 0 24 24"><path d="M10.5 7.5l4-4 6 6-4 4zM14.5 9.5 5 19M15 19.5h7"/></symbol>
<symbol id="i-text" viewBox="0 0 24 24"><path d="M5 7.5V4.5h14v3M12 4.5v15M9 19.5h6"/></symbol>
<symbol id="i-key" viewBox="0 0 24 24"><circle cx="8" cy="8" r="4.5"/><path d="M11.2 11.2 20.5 20.5M17.5 17.5l2.5-2.5M14.5 14.5l1.8-1.8"/></symbol>
<symbol id="i-server" viewBox="0 0 24 24"><rect x="3" y="3.5" width="18" height="7.5" rx="2"/><rect x="3" y="13" width="18" height="7.5" rx="2"/><path d="M7 7.25h.01M7 16.75h.01"/></symbol>
<symbol id="i-disk" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M3 13h18M7 16h.01M10.5 16h.01"/></symbol>
<symbol id="i-cloud-down" viewBox="0 0 24 24"><path d="M4.4 15.3A7 7 0 1 1 15.7 8h1.8a4.5 4.5 0 0 1 2.4 8.3M12 12v9M8.5 17.5 12 21l3.5-3.5"/></symbol>
<symbol id="i-dollar" viewBox="0 0 24 24"><path d="M12 3v18M16.5 7.5C15.9 6 14.2 5 12 5c-2.5 0-4.5 1.3-4.5 3.3 0 4.4 9 2.4 9 6.9 0 2-2 3.3-4.5 3.3-2.2 0-3.9-1-4.5-2.5"/></symbol>
<symbol id="i-refresh" viewBox="0 0 24 24"><path d="M20 12a8 8 0 1 1-2.7-6M20 4v5h-5"/></symbol>
<symbol id="i-close" viewBox="0 0 24 24"><path d="M9 7l-5 5 5 5M4 12h12M18 5v14"/></symbol>
Expand Down
24 changes: 12 additions & 12 deletions app/templates/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block crumb %}/ settings{% endblock %}
{% block head %}<link rel="stylesheet" href="{{ url_for('static', filename='catalogue/catalogue.css') }}"><link rel="stylesheet" href="{{ url_for('static', filename='settings/settings.css') }}">{% endblock %}
{% block body %}
{#- A section per thing a run needs - the model providers, the judge, the run hosts - and the file they
{#- A section per thing a run needs - the model providers, the judge, the hosts - and the file they
are kept in, one at a time from the menu beside them; the strip above says what a run can use today.
The menu's entries are links to the sections, so without a script every section shows. -#}
{% set by = {} %}{% set held = [] %}
Expand Down Expand Up @@ -53,7 +53,7 @@ <h1>Settings</h1>
{% endfor %}
<a href="#providers" class="st-ready-i{{ ' on' if ns.custom }}"><span aria-hidden="true">{{ '✓' if ns.custom else '○' }}</span> Custom<span class="sr">{{ ': set' if ns.custom else ': not set' }}</span></a>
{% for jj, name in [(judges[0], 'System One'), (judges[1], 'LLM judge')] %}<a href="#judge" class="st-ready-i{{ ' on' if jj }}"><span aria-hidden="true">{{ '✓' if jj else '○' }}</span> {{ name }}<span class="sr">{{ ': set' if jj else ': not set' }}</span></a>{% endfor %}
{% for item in chosen %}<a href="#HOSTS" class="st-ready-i on"><span aria-hidden="true">✓</span> <span class="mono">{{ item.split('=', 1)[0] if '=' in item.split('@', 1)[0] else item.split(':/')[0].split(':~')[0] }}</span></a>{% else %}<a href="#HOSTS" class="st-ready-i"><span aria-hidden="true">○</span> no run host</a>{% endfor %}
{% for item in chosen %}<a href="#HOSTS" class="st-ready-i on"><span aria-hidden="true">✓</span> <span class="mono">{{ item.split('=', 1)[0] if '=' in item.split('@', 1)[0] else item.split(':/')[0].split(':~')[0] }}</span></a>{% else %}<a href="#HOSTS" class="st-ready-i"><span aria-hidden="true">○</span> no host</a>{% endfor %}
</div>
</header>
{% if not writable %}
Expand All @@ -78,19 +78,19 @@ <h1>Settings</h1>
{{ section_link('providers', 'Model providers', 'capability', 'openrouter openai anthropic openai-compatible local endpoint ollama vllm api key model_api_url') }}
{% set access_search = namespace(words='agent keys agent_keys cursor copilot dataset credentials token licence benchmark access') %}
{% for b in benchmark_access %}{% set access_search.words = access_search.words ~ ' ' ~ b.title %}{% for s in b.needs %}{% set access_search.words = access_search.words ~ ' ' ~ s.name ~ ' ' ~ s.summary %}{% endfor %}{% endfor %}
{{ section_link('data-providers', 'Data providers', 'ws', 'hugging face huggingface hf_token docker hub login registry token dataset pull limit') }}
{{ section_link('custom-keys', 'Custom keys', 'agent', access_search.words) }}
{{ section_link('judge', 'Judges', 'compare', 'typesafe system one llm model judgement') }}
{{ section_link('data-providers', 'Data providers', 'cloud-down', 'hugging face huggingface hf_token docker hub login registry token dataset pull limit') }}
{{ section_link('custom-keys', 'Custom keys', 'key', access_search.words) }}
{{ section_link('judge', 'Judges', 'scale', 'typesafe system one llm model judgement') }}
{{ section_link('prices', 'Model prices', 'dollar', 'cost price estimate usd tokens list update') }}
</div>
<div class="st-nav-group">
<div class="st-nav-label">Execution</div>
{{ section_link('hosts', 'Run hosts', 'runs', 'ssh remote machines server hosts') }}
{{ section_link('hosts', 'Hosts', 'server', 'ssh remote machines server hosts') }}
{{ section_link('sandbox', 'Sandbox', 'kit', 'docker container') }}
</div>
<div class="st-nav-group">
<div class="st-nav-label">Application</div>
{{ section_link('storage', 'Local data', 'ws', 'settings.json config catalogue workspaces runs cache licences storage paths file') }}
{{ section_link('storage', 'Local data', 'disk', 'settings.json config catalogue workspaces runs cache licences storage paths file') }}
</div>
<p class="st-search-empty" role="status" hidden>No settings found.</p>
</nav>
Expand All @@ -106,7 +106,7 @@ <h1>Settings</h1>
<p>Manage the providers available for runs and judges.</p>
</div>

{% macro provider_logo(key) %}{% if key == 'typesafe' %}<img class="st-logo" src="{{ url_for('static', filename='brand/typesafe.png') }}" alt="" width="28" height="28">{% elif key.startswith('custom') %}<svg class="st-logo st-icon" aria-hidden="true" viewBox="0 0 24 24"><rect x="3" y="4" width="18" height="7" rx="2"/><rect x="3" y="13" width="18" height="7" rx="2"/><path d="M7 7.5h.01M7 16.5h.01"/></svg>{% else %}<svg class="st-logo" aria-hidden="true"><use href="{{ marks }}#{{ key }}"/></svg>{% endif %}{% endmacro %}
{% macro provider_logo(key, title='Custom') %}{% if key == 'typesafe' %}<img class="st-logo" src="{{ url_for('static', filename='brand/typesafe.png') }}" alt="" width="28" height="28">{% elif key.startswith('custom') %}<span class="ws-avatar st-logo" aria-hidden="true">{{ title[:2]|upper }}</span>{% else %}<svg class="st-logo" aria-hidden="true"><use href="{{ marks }}#{{ key }}"/></svg>{% endif %}{% endmacro %}
<button type="button" class="btn ghost st-provider-back" data-provider-back hidden>← Model providers</button>
<p class="st-about" data-provider-empty hidden>No providers added yet.</p>
<div class="st-provider-catalogue" hidden>
Expand All @@ -124,7 +124,7 @@ <h3>Add a provider</h3>
{% for c in provider_cards %}
<div class="st-card st-provider-card" data-provider-card="{{ c.key }}" data-configured="{{ 'true' if c.configured else 'false' }}" data-ready="{{ 'true' if c.ready else 'false' }}">
<div class="st-provider-summary">
{{ provider_logo(c.key) }}
{{ provider_logo(c.key, c.title) }}
{% set removable = writable and c.configured %}
{#- Test asks the saved settings at no cost (providers.test); TypeSafe has no such request -#}
{% set last = tested.get(c.key) %}
Expand Down Expand Up @@ -221,15 +221,15 @@ <h2 id="judge-h">Judges</h2>
{% set srow = by.get('SYSTEM_ONE_PROVIDER') %}
{% if srow and by.get('SYSTEM_ONE_MODEL') %}
<fieldset class="st-card{{ ' st-card-unset' if not s1 }}" data-judge-card>
<legend><svg class="st-logo st-icon" aria-hidden="true" viewBox="0 0 24 24"><path d="M12 3v18M7 21h10M5 7h14M5 7l-3 7a3 3 0 0 0 6 0zM19 7l-3 7a3 3 0 0 0 6 0z"/></svg>System One</legend>
<legend><svg class="st-logo st-icon" aria-hidden="true"><use href="#i-gavel"/></svg>System One</legend>
{{ judge_rows('SYSTEM_ONE', s1_providers, s1, 'Where System One is asked') }}
{{ field(by['SYSTEM_ONE_MODEL'], 'Model', writable, s1_providers[s1.provider].models) }}
</fieldset>
{% endif %}
{% set prow = by.get('LLM_JUDGE_PROVIDER') %}
{% if prow and by.get('LLM_JUDGE_MODEL') %}
<fieldset class="st-card{{ ' st-card-unset' if not llm }}" data-judge-card>
<legend><svg class="st-logo st-icon" aria-hidden="true" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8"/><path d="M9 10h.01M15 10h.01M9 15c1.5 1.2 4.5 1.2 6 0"/></svg>LLM judge</legend>
<legend><svg class="st-logo st-icon" aria-hidden="true"><use href="#i-text"/></svg>LLM judge</legend>
{{ judge_rows('LLM_JUDGE', llm_providers, llm, "The LLM judge's provider") }}
{{ field(by['LLM_JUDGE_MODEL'], 'Model', writable, []) }}
</fieldset>
Expand All @@ -241,7 +241,7 @@ <h2 id="judge-h">Judges</h2>
<section class="st-section" id="hosts" aria-labelledby="hosts-h">
{% set ro = hosts_row and hosts_row.source == 'environment' %}
<div class="st-section-head">
<div class="st-provider-heading"><h2 id="hosts-h">Run hosts</h2>{% if writable and hosts_row %}<span class="st-heading-acts"><button type="button" class="btn sm ghost" data-test-all>Test all</button><button type="button" class="btn sm ghost st-provider-add" data-add-host aria-label="Add a host" aria-expanded="false" aria-controls="add-host"{% if ro %} disabled title="Set in the environment"{% endif %}><span aria-hidden="true">+</span> Add</button></span>{% endif %}</div>
<div class="st-provider-heading"><h2 id="hosts-h">Hosts</h2>{% if writable and hosts_row %}<span class="st-heading-acts"><button type="button" class="btn sm ghost" data-test-all>Test all</button><button type="button" class="btn sm ghost st-provider-add" data-add-host aria-label="Add a host" aria-expanded="false" aria-controls="add-host"{% if ro %} disabled title="Set in the environment"{% endif %}><span aria-hidden="true">+</span> Add</button></span>{% endif %}</div>
<p>Machines a recipe can run on, and what Nullius may use on each.</p>
</div>
{% if writable and hosts_row and not ro %}
Expand Down
Loading
Loading