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 ? `
${esc(s.p)}
+ pop.innerHTML = `${i + 1} of ${TOUR.length} · ${esc(s.k)}${esc(s.p)}
` : ''}