diff --git a/app/nullius/runs/feasibility.py b/app/nullius/runs/feasibility.py index 9b93ab82f..9e84bd81c 100644 --- a/app/nullius/runs/feasibility.py +++ b/app/nullius/runs/feasibility.py @@ -76,10 +76,10 @@ } DESCRIPTIONS = { FEASIBLE: "The verifier rejected the empty solution and accepted the reference one. Both controls ran; the task is feasible.", - UNEXPECTED_REWARD: "The verifier accepted the empty solution. It rejects nothing, so a pass on this task means nothing — whatever the oracle did.", - TASK_BROKEN: "The empty solution failed tests that were passing before it. nop changes nothing, so the task was already broken as shipped, or its verifier is unstable — the failures are named. Not feasible, whatever the oracle did.", + UNEXPECTED_REWARD: "The verifier accepted the empty solution. It rejects nothing, so a pass on this task means nothing, whatever the oracle did.", + TASK_BROKEN: "The empty solution failed previously passing tests. Because nop changes nothing, the task is broken or its verifier is unstable. The failures are named. Not feasible, whatever the oracle did.", REFERENCE_REJECTED: "Both controls reached the verifier, and it rejected the reference solution. The task cannot be passed as shipped.", - SETUP_FAILURE: "A control failed before the verifier ran — environment build, image, API or agent error — so the task was not exercised on that side.", + SETUP_FAILURE: "A control failed before verification because of an environment build, image, API or agent error. The task was not exercised on that side.", MISSING: "A control has no recorded outcome for this task: it did not run, ran elsewhere, or recorded nothing. Not validated.", } diff --git a/app/nullius/traces/charts.py b/app/nullius/traces/charts.py index 3b545bbd5..dcfb2dfb9 100644 --- a/app/nullius/traces/charts.py +++ b/app/nullius/traces/charts.py @@ -374,7 +374,7 @@ def note(self) -> str: parts.append( f"{self.excluded} of {self.total} spans " f"{'has' if one else 'have'} no known duration and " - f"{'is' if one else 'are'} left out — a span with one known instant " + f"{'is' if one else 'are'} left out; a span with one known instant " "is not a zero-length one." ) if self.wrapped: @@ -752,7 +752,7 @@ def _edges_for(samples: tuple, fallback: tuple) -> tuple: def _kind_note(off: frozenset, visible: tuple) -> str: """What the legend has done to this chart, said underneath it; "" when nothing.""" if not visible: - return "Every kind is switched off — click a chip above to draw one again." + return "Every kind is switched off; click a chip above to draw one again." if not off: return "" names = ", ".join(sorted(off)) diff --git a/app/static/builder/command-builder-core.js b/app/static/builder/command-builder-core.js index 57650784c..834cdcd02 100644 --- a/app/static/builder/command-builder-core.js +++ b/app/static/builder/command-builder-core.js @@ -595,7 +595,7 @@ return 'harbor from ' + repoLabel(pin.url) + ' · ' + (pin.revisionKind === 'commit' ? 'commit ' + at : pin.revisionKind + ' ' + pin.revision + ' at ' + at) + ex; } function harborExecutable(r) { - if (r.harborDev) return {kind: 'development', executable: r.harborDev, command: path(r.harborDev), label: 'development · ' + r.harborDev + ' — not a release'}; + if (r.harborDev) return {kind: 'development', executable: r.harborDev, command: path(r.harborDev), label: 'development · ' + r.harborDev + ' · not a release'}; const pin = harborPin(r); if (pin) return {kind: pin.kind, executable: 'harbor', command: 'uvx --from ' + q(harborSpec(pin)) + ' harbor', label: harborLabel(pin), pin}; return {kind: 'path', executable: 'harbor', command: 'harbor', label: 'harbor from PATH'}; @@ -760,7 +760,7 @@ const rank = id => id === 'nop' ? 0 : id === 'oracle' ? 1 : agentById(id, r)?.control ? 2 : 3; const order = [...r.agents].sort((a, b) => rank(a) - rank(b)); const runs = order.map(id => compiled.artifacts.find(a => a.id === 'run-' + id)).filter(Boolean); - const script = ['#!/usr/bin/env bash', '# ' + r.name + ' — generated by Nullius; NULLIUS_HARBOR, NULLIUS_TASKS, NULLIUS_JOBS and the credentials arrive as environment.', + const script = ['#!/usr/bin/env bash', '# ' + r.name + ': generated by Nullius; NULLIUS_HARBOR, NULLIUS_TASKS, NULLIUS_JOBS and the credentials arrive as environment.', 'set -uo pipefail', 'status=0', ...runs.map(a => '# ' + a.label + '\n' + a.text + ' || status=1'), 'exit "$status"'].join('\n\n') + '\n'; const parts = runs.map(a => ({id: a.id.slice(4), label: a.label, script: '#!/usr/bin/env bash\nset -uo pipefail\n' + a.text + '\n'})); const jobs = order.map(id => ({name: r.name + (r.agents.length > 1 ? '-' + id : ''), agent: agentById(id, r)?.arg || id, dataset: r.source === 'local' ? r.path.replace(/\/$/, '').split('/').pop() : r.dataset})); diff --git a/app/static/catalogue/add.js b/app/static/catalogue/add.js index 905c5e79f..92c329688 100644 --- a/app/static/catalogue/add.js +++ b/app/static/catalogue/add.js @@ -25,14 +25,14 @@ // Fill the prompt as it is typed: trim values and omit an empty Remark line. const field = id => document.getElementById(id); - const out = field('std-add-prompt'), copy = field('std-add-copy'), hint = field('std-add-hint'); + const out = field('std-add-prompt'), copy = field('std-add-copy'); const build = () => { const tpl = d.querySelector(`template[data-add-kind="${field('std-add-kind').value}"]`).content.textContent; const v = { name: field('std-add-name').value.trim(), source: field('std-add-source').value.trim(), remark: field('std-add-remark').value.trim() }; const lines = tpl.split('\n').filter(l => v.remark || l !== 'Remark: {remark}'); out.textContent = lines.join('\n').replace(/\{(name|source|remark)\}/g, (_, k) => v[k]); const ready = !!(v.name && v.source); - copy.disabled = !ready; hint.hidden = ready; + copy.disabled = !ready; }; ['std-add-name', 'std-add-source', 'std-add-remark'].forEach(id => field(id).addEventListener('input', build)); field('std-add-kind').addEventListener('change', build); diff --git a/app/static/catalogue/catalogue.css b/app/static/catalogue/catalogue.css index b357b2f90..ec0dae95c 100644 --- a/app/static/catalogue/catalogue.css +++ b/app/static/catalogue/catalogue.css @@ -326,7 +326,6 @@ dialog.std-how::backdrop { background: rgba(0, 0, 0, .45); } .std-add-fields :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .std-prompt pre { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; } .std-copy:disabled { opacity: .5; cursor: not-allowed; } -.std-add-hint { font-size: 12.5px; } @media (max-width: 640px) { dialog.std-how { padding: 18px 16px; } .std-add-fields { grid-template-columns: 1fr; } .std-add-fields :is(input, textarea) { font-size: 16px; } } /* What runs a benchmark, as bubbles - on its card, its page and the Add dialog - named as the filter chips name them. */ .run-tag { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 500; letter-spacing: .03em; padding: .12rem .55rem; border-radius: 5px; border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap; } diff --git a/app/static/onboarding.css b/app/static/onboarding.css index b40cb3bf0..dacb9ba3f 100644 --- a/app/static/onboarding.css +++ b/app/static/onboarding.css @@ -51,7 +51,6 @@ body.onb-open .shell { margin-right: 310px; } .onb-subs li.done .onb-tick { background: var(--ok); border-color: var(--ok); color: var(--surface); } .onb-subs li.next button { font-weight: 500; } .onb-opt { font-size: .7rem; color: var(--text-faint); font-weight: 400; } -.onb-hint { font-size: .76rem; color: var(--text-faint); border-top: 1px solid var(--border-soft); padding-top: .6rem; } .onb-restart { border: 0; background: none; color: var(--text-faint); font-size: .76rem; cursor: pointer; text-decoration: underline; padding: 0; align-self: flex-start; } .onb-todo { outline: 2px solid var(--accent) !important; outline-offset: 3px; border-radius: 6px; animation: onb-pulse 1.6s ease-in-out infinite; } diff --git a/app/static/onboarding.js b/app/static/onboarding.js index c5fae282e..9902731b2 100644 --- a/app/static/onboarding.js +++ b/app/static/onboarding.js @@ -44,7 +44,6 @@ ${open ? `` : ''} `; }).join('')} -
Click a step: Nullius opens its page and points at what to do.
`; } @@ -135,7 +134,7 @@ const spot = document.createElement('div'); spot.className = 'onb-spot'; Object.assign(spot.style, {top: y0 + 'px', left: x0 + 'px', width: x1 - x0 + 'px', height: r.top + Math.min(r.height, innerHeight - r.top - 16) + pad - y0 + 'px'}); const pop = document.createElement('div'); pop.className = 'onb-pop'; pop.setAttribute('role', 'dialog'); pop.setAttribute('aria-label', s.k); - pop.innerHTML = `${i + 1} of ${TOUR.length} · ${esc(s.k)}

${esc(s.h)}

${esc(s.p)}

+ pop.innerHTML = `${i + 1} of ${TOUR.length} · ${esc(s.k)}

${esc(s.h)}

${s.p ? `

${esc(s.p)}

` : ''}
${TOUR.map((_, j) => ``).join('')}
`; document.body.append(spot, pop); diff --git a/app/static/runs/live-board.js b/app/static/runs/live-board.js index 4a3d30cba..80ebc8612 100644 --- a/app/static/runs/live-board.js +++ b/app/static/runs/live-board.js @@ -311,8 +311,8 @@ stateLabel: state === 'finished' && s.ended_by ? s.ended_by[0].toUpperCase() + s.ended_by.slice(1) : STATE_LABEL[state] || state, finished: state === 'finished', // The footer says only what the board above does not: the stage a job is preparing, or that nothing has started. - status: state === 'preparing' ? `preparing${s.preparing && s.preparing.stage ? ' — ' + s.preparing.stage : ''}${s.preparing ? ' · ' + clock(s.preparing.elapsed_sec) + ' in this stage' : ''}` - : state === 'starting' ? `starting — ${C.total == null ? 'trials' : C.total + ' trial' + (C.total === 1 ? '' : 's')} queued, none has entered a phase yet` + status: state === 'preparing' ? `preparing${s.preparing && s.preparing.stage ? ': ' + s.preparing.stage : ''}${s.preparing ? ' · ' + clock(s.preparing.elapsed_sec) + ' in this stage' : ''}` + : state === 'starting' ? `starting: ${C.total == null ? 'trials' : C.total + ' trial' + (C.total === 1 ? '' : 's')} queued, none has entered a phase yet` : '', head: renderHead(s, state), meta: renderMeta(s), @@ -367,7 +367,7 @@ $('[data-lb-flight]').innerHTML = out.flight; const drawer = $('[data-lb-drawer]'); drawer.innerHTML = out.drawer; drawer.hidden = !out.drawer; board.classList.toggle('open', !!out.drawer); - const said = misses ? `feed unavailable (${misses}) — showing the last snapshot` : out.status; + const said = misses ? `feed unavailable (${misses}); showing the last snapshot` : out.status; $('[data-lb-status]').textContent = said; $('[data-lb-foot]').hidden = !said; // Trials that ended since the page loaded are not in its Results yet: the badge counts them, and the tab reads them again const badge = doc.getElementById('results-badge'), shown = Number(badge?.dataset.trials || 0), done = (snap.counts || {}).completed || 0; diff --git a/app/templates/agents/entry.html b/app/templates/agents/entry.html index db51d673a..c41ccae31 100644 --- a/app/templates/agents/entry.html +++ b/app/templates/agents/entry.html @@ -2,7 +2,7 @@ {% from '_page.html' import page_head %} {% from "catalogue/use_bundle.html" import use_bundle %} {% set plural = 'Agents' if kind == 'agent' else 'Modules' %} -{% block title %}{{ title }} — Nullius{% endblock %} +{% block title %}{{ title }} · Nullius{% endblock %} {% block crumb %}/ {{ 'agents' if kind == 'agent' else 'Modules' }} / {{ e.d.key }}{% endblock %} {% block head %}{% endblock %} {% block body %} diff --git a/app/templates/agents/kits.html b/app/templates/agents/kits.html index 810fca964..e7d13a9d3 100644 --- a/app/templates/agents/kits.html +++ b/app/templates/agents/kits.html @@ -1,6 +1,6 @@ {% extends "base.html" %} {% from '_page.html' import page_head %} -{% block title %}{{ entry.label ~ ' kit' if entry else 'Kits' }} — Nullius{% endblock %} +{% block title %}{{ entry.label ~ ' kit' if entry else 'Kits' }} · Nullius{% endblock %} {% block crumb %}/ kits{% if entry %} / {{ entry.label }}{% endif %}{% endblock %} {% block head %} {% if not entry %}{% endif %}{% endblock %} diff --git a/app/templates/agents/standard.html b/app/templates/agents/standard.html index dfa62e7d7..3f0aa2d5e 100644 --- a/app/templates/agents/standard.html +++ b/app/templates/agents/standard.html @@ -2,7 +2,7 @@ {% from '_page.html' import page_head %} {% set plural = 'Agents' if kind == 'agent' else 'Modules' %} {% set one, many = ('agent', 'agents') if kind == 'agent' else ('Module', 'Modules') %} -{% block title %}{{ plural }} — Nullius{% endblock %} +{% block title %}{{ plural }} · Nullius{% endblock %} {% block crumb %}/ {{ 'agents' if kind == 'agent' else 'Modules' }}{% endblock %} {% block head %} {% endblock %} diff --git a/app/templates/base.html b/app/templates/base.html index 455a8bc6f..5213c50c5 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -398,7 +398,7 @@ {'url': url_for('settings_page'), 'sel': '.nav-item[href="' ~ url_for('settings_page') ~ '"]', 'k': 'Settings', 'h': 'Keys, hosts and judges', 'p': 'Model providers, the machines that run benchmarks, and the two judges. Keys stay in a file on this machine.'}, {'url': url_for('settings_page'), 'sel': '#onb-panel', 'k': 'First steps', 'h': 'What is left to do', - 'p': 'Click a step: Nullius opens its page and points at what to do next. Hide it any time; it stays in the rail.'}, + 'p': ''}, ] %} {% if not embedded %} diff --git a/app/templates/builder/new_run.html b/app/templates/builder/new_run.html index f92accd2c..2c7a0dc14 100644 --- a/app/templates/builder/new_run.html +++ b/app/templates/builder/new_run.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% from '_page.html' import page_head %} {% from 'catalogue/_tasks_list.html' import tasks_list, tasks_state %} -{% block title %}Run builder — Nullius{% endblock %} +{% block title %}Run builder · Nullius{% endblock %} {% block crumb %}/ run builder{% endblock %} {% block head %}{# the Agent step's cards #} {# the Delete question's dialog #} @@ -33,7 +33,6 @@
Your experiment

Give this recipe a name.

-

A name you will recognise in your saved recipes.

diff --git a/app/templates/builder/recipes.html b/app/templates/builder/recipes.html index 5c09c6525..43423f5b9 100644 --- a/app/templates/builder/recipes.html +++ b/app/templates/builder/recipes.html @@ -1,7 +1,7 @@ {% from '_tables.html' import table, cell, greyed %} {% extends "base.html" %} {% from '_page.html' import page_head %} -{% block title %}Recipes — Nullius{% endblock %} +{% block title %}Recipes · Nullius{% endblock %} {% block crumb %}/ recipes{% endblock %} {% block head %} {# its dialog #} diff --git a/app/templates/catalogue/add_dialog.html b/app/templates/catalogue/add_dialog.html index 7214f5470..7223105ee 100644 --- a/app/templates/catalogue/add_dialog.html +++ b/app/templates/catalogue/add_dialog.html @@ -22,7 +22,6 @@
{% for key, prompt in prompts.items() %}{% endfor %} -

Fill in the name and the source to copy it.