';
+ + button(' Custom agent', 'id="nb-add-custom-agent"', 'nb-subtab') + '';
// Harbor's own agents: what the recipe's Harbor registers, once it has been scanned (Runner step).
const builtin = vocab.filter(a => a.kind === 'builtin');
html += builtin.length ? `
`
@@ -354,7 +354,7 @@
if (url) {
const head = ((got && got.branches) || []).find(x => x.name === h.revision)?.commit;
body += refPicker({got, kind: h.revisionKind, revision: h.revision, source: C.repoLabel(url), seg: 'harbor-ref', kindAttr: 'harbor-ref-kind', refAttr: 'harbor-ref',
- after: got && !got.loading ? ' ' + button('↻ List again', 'data-harbor-refs-fresh', 'nb-inlinebutton') : '',
+ after: got && !got.loading ? ' ' + button(' List again', 'data-harbor-refs-fresh', 'nb-inlinebutton') : '',
commitField: ``,
notes: {branch: 'Pinned at the commit shown' + (h.commit ? ', ' + h.commit.slice(0, 12) : '') + ': the recipe keeps it, and a later push to the branch changes nothing until it is chosen again.' + (head && h.commit && head !== h.commit ? ' The branch has moved to ' + head.slice(0, 12) + ' since; choose it again to move the pin.' : ''),
tag: 'Pinned at the commit the tag names' + (h.commit ? ', ' + h.commit.slice(0, 12) : '') + '.'}});
@@ -380,10 +380,10 @@
let html;
if (s.state === 'scanning') html = `
${esc(pin.kind === 'repo' ? 'Building harbor from ' + C.repoLabel(pin.url) + ' at ' + pin.commit.slice(0, 12) + ' here, then asking it for its agents…' : 'Installing harbor ' + pin.version + ' and asking it for its agents…')} The first time takes a minute or two.
`;
else if (s.state === 'asking') html = `
Looking for what was kept of this Harbor…
`;
- else if (s.state === 'failed') html = `
✕ ${esc(s.error || 'the scan failed')}
The builder offers its own agents until this Harbor answers.${ask('Try again')}
`;
+ else if (s.state === 'failed') html = `
${esc(s.error || 'the scan failed')}
The builder offers its own agents until this Harbor answers.${ask('Try again')}
`;
else if (s.state === 'ready') {
const n = (s.agents || []).length;
- html = `
✓ ${esc(C.harborLabel({...pin, extras: []}))} installed · ${n} agent${n === 1 ? '' : 's'} on the Agent step
`;
+ html = `
${esc(C.harborLabel({...pin, extras: []}))} installed · ${n} agent${n === 1 ? '' : 's'} on the Agent step
`;
} else html = `
${esc(C.harborLabel({...pin, extras: []}))} is not installed here yet.${schema.local ? ask(pin.kind === 'repo' ? 'Build and install' : 'Install') : ' It is installed from a browser on the application host.'}
`;
return html;
};
@@ -515,12 +515,12 @@
const bound = e => { const [k, v] = Object.entries(e || {})[0] || ['at_least', 1]; return [k === 'at_most' ? '>' : '<', v]; };
// short: a proof that met a bound short of the full mark (prove.short_of) - its tick is not green, its bound on hover
function proofOf(proven, failed, expect, short) {
- if (proven) return {state: short ? 'part' : 'ok', text: '✓ ' + (proven.passed || '') + (proven.limit ? ' · first ' + proven.limit : ''), title: [short, proven.limit && 'over the first ' + proven.limit, proven.shard && 'shard ' + proven.shard].filter(Boolean).join(' · ')};
- if (failed && failed.value !== undefined) { const [op, v] = bound(failed.expect || expect); return {state: 'no', text: '✕ ' + failed.value + ' ' + op + ' ' + v, title: 'not proven: ' + [failed.passed, ...(failed.problems || [])].filter(Boolean).join(' · ')}; }
- if (failed) return {state: 'no', text: '✕ not proven', title: (failed.problems || []).join(' · ')};
+ if (proven) return {state: short ? 'part' : 'ok', mark: 'check', text: (proven.passed || '') + (proven.limit ? ' · first ' + proven.limit : ''), title: [short, proven.limit && 'over the first ' + proven.limit, proven.shard && 'shard ' + proven.shard].filter(Boolean).join(' · ')};
+ if (failed && failed.value !== undefined) { const [op, v] = bound(failed.expect || expect); return {state: 'no', mark: 'x', text: failed.value + ' ' + op + ' ' + v, title: 'not proven: ' + [failed.passed, ...(failed.problems || [])].filter(Boolean).join(' · ')}; }
+ if (failed) return {state: 'no', mark: 'x', text: 'not proven', title: (failed.problems || []).join(' · ')};
return {state: 'none', text: 'not run'};
}
- const proofSpan = p => `${esc(p.text)}`;
+ const proofSpan = p => `${p.mark === 'check' ? '' : p.mark === 'x' ? '' : ''} ${esc(p.text)}`;
// A control or a check as a plain chip: its name and its proof; where the control comes from is in its title.
const controlChip = (c, proof = true, of = '') => `${esc(c.key)}${of ? `${esc(of)}` : ''}`
+ (proof ? proofSpan(proofOf(c.proven, c.failed, c.expect, c.short)) : '') + '';
@@ -530,7 +530,7 @@
const controlChips = (o, b, ids) => { const chosen = b.datasets.filter(x => ids.includes(x.id)), ds = chosen.length ? chosen : b.datasets.slice(0, 1);
const chip = x => controlChip(((x || {}).controls || []).find(c => c.key === o.key) || {...o, from: o.summary}, true, ds.length > 1 ? x.label : '');
return ds.length > 1 ? `${ds.map(chip).join('')}` : chip(ds[0]); };
- const checkChip = (name, proven, failed, says) => { const p = proofOf(proven, failed); if (p.state === 'ok') { p.title = [says, proven.passed, p.title].filter(Boolean).join(' · '); p.text = '✓'; }
+ const checkChip = (name, proven, failed, says) => { const p = proofOf(proven, failed); if (p.state === 'ok') { p.title = [says, proven.passed, p.title].filter(Boolean).join(' · '); p.text = ''; }
return `${esc(name)}${proofSpan(p)}`; };
// The yes to an agent running as you: asked only for the local backend, where it is no sandbox. Its field names the
// error asking for it, said under the box (fieldErrors).
@@ -848,7 +848,7 @@
}).join('') + ''; };
// the chosen ones' settings, one tab each: the benchmark's own way, the benchmark's settings every agent takes, each one's own
const yoursWord = agent ? 'agent' : (b.kind || 'Module');
- const controlTile = o => tile({attr: 'std-other', key: o.key, on: C.chosenOf(rec).includes(o.key), mark: o.key === 'nop' ? '∅' : '≡', title: o.label,
+ const controlTile = o => tile({attr: 'std-other', key: o.key, on: C.chosenOf(rec).includes(o.key), mark: o.key === 'nop' ? icon('nop') : icon('oracle'), title: o.label,
tip: o.summary + (b.judged ? ' The judge still runs.' : ''), foot: controlChips(o, b, C.datasetsOf(rec))});
const onSetups = setups.filter(o => C.chosenOf(rec).includes(o.key)).concat(chosen.some(o => o.own) ? [{label: b.procedure}] : []);
return `
Who runs it?
`
@@ -939,7 +939,7 @@
...(on && !picked ? [tile({attr: 'std-taskset', key: on, data: ` data-of="${esc(x.id)}"`, on: true, title: on})] : [])].join('') + '';
// the dataset's name only where several are chosen: one chosen is the one above
const head = C.datasetsOf(rec).length > 1 ? esc(x.label) + ': which tasks?' : 'Which tasks?';
- return `
` : '');
}
// A chosen dataset's plan started on some of it: all of it, or specific tasks, ticked in the list of the plan's tasks (the
@@ -976,7 +976,7 @@
tile({attr: 'std-start-pick', key: x.id, data, on: !!ids, title: 'Specific ' + u.nouns, meta: ids ? ids.length + ' chosen' : ''}),
...(older ? [tile({attr: 'std-start', key: on, data, on: true, title: older})] : [])];
return `
`;
}
// Specific tasks: the tasks page's list (catalogue/tasks.js) in a dialog, of the dataset's tasks at the recipe's
@@ -1190,7 +1190,7 @@
keepFocus($('#nb-form'),()=>{$('#nb-form').innerHTML=html+'';placeGrids();});
if(step===REVIEW&&schema.local){drawPrereq();checkPrereq();}
$('#nb-back').hidden=step===S.benchmark;
- $('#nb-next').textContent=step===REVIEW?'Export recipe JSON':stepName(steps[nextShown(step,1)],nextShown(step,1))+' →';
+ $('#nb-next').innerHTML=step===REVIEW?'Export recipe JSON':esc(stepName(steps[nextShown(step,1)],nextShown(step,1)))+' ';
placeThumb();
}
// The open step's errors. The Model step says none over a model being typed, nor before one is chosen or its field left.
@@ -1295,13 +1295,13 @@
if(!schema.local)return note('Run from the application host','Runs start from a browser on the machine Nullius runs on.');
// A provider not set in Settings: Run waits and says why.
const blocked=C.providerBlocker(rec);
- if(blocked)return `
${button('▶ Run on '+esc(where),'id="nb-run" disabled data-held title="'+esc(blocked)+'"','nb-button nb-primary')}
${button('▶ Run on '+esc(where),'id="nb-run"','nb-button nb-primary')}
`+(out.confirm?`
${/^Run /.test(out.confirm)?`No ${esc(noun)} limit: `+esc(out.confirm.replace(/^Run /,'').replace(/\?$/,'')):esc(out.confirm.replace(/\?$/,''))}. Run asks before it starts.
${button(' Run on '+esc(where),'id="nb-run"','nb-button nb-primary')}
`+(out.confirm?`
${/^Run /.test(out.confirm)?`No ${esc(noun)} limit: `+esc(out.confirm.replace(/^Run /,'').replace(/\?$/,'')):esc(out.confirm.replace(/\?$/,''))}. Run asks before it starts.
`:'')}
`;
}
const plan=C.runnable(rec), listed=C.compile(rec).errors.map(e=>e.message); // the red box's, not said twice
- return `
${button(' Run on '+esc(where),'id="nb-run"'+(C.validate(rec).errors.length?' disabled data-held':''),'nb-button nb-primary')}
`+(plan.confirm?`
No task limit: ${esc(plan.confirm.replace(/^Run /,'').replace(/\?$/,''))}. Run asks before it starts.
`:'')}
`;
};
// Prerequisites: what the recipe needs of each machine it runs on, asked when Review opens and on Check again
// (/new-run/prerequisites, nullius/prerequisites.py). Run waits until every row is ready; the run asks again as it starts.
@@ -1320,7 +1320,7 @@
}
function drawPrereq(){
const el=$('#nb-prereq'); if(!el)return;
- const out=prereq.out, mark={ok:'✓',missing:'✕',install:'↓'};
+ const out=prereq.out, mark={ok:'',missing:'',install:''};
const rows=m=>m.rows.map(x=>`
- ${href ? `Open the trial →` : ''}`;
+ ${href ? `Open the trial ` : ''}`;
}
function render(snapshot, opts) {
diff --git a/app/static/settings/hosts.js b/app/static/settings/hosts.js
index a74b8191b..896ae6ccc 100644
--- a/app/static/settings/hosts.js
+++ b/app/static/settings/hosts.js
@@ -37,6 +37,7 @@
}
svg.setAttribute('aria-label', said); svg.querySelector('title').textContent = said;
};
+ const failed = (out, message) => { out.textContent = ' ' + message; out.insertAdjacentHTML('afterbegin', ''); };
let running = 0; // tests under way: Test all waits for every one
const testAll = () => document.querySelector('#hosts [data-test-all]');
const test = async row => {
@@ -48,7 +49,7 @@
const r = await nulliusFetch(list().dataset.test, {method: 'POST', headers: {'X-CSRF-Token': csrf()}, body: new URLSearchParams({entry: row.dataset.machine})});
const j = await r.json();
const ok = j.ok; // reached; what runs there is in its Info
- out.textContent = ok ? '' : '✕ ' + (j.error || 'HTTP ' + r.status);
+ out.textContent = ''; if (!ok) failed(out, j.error || 'HTTP ' + r.status);
settle(row, ok ? 'st-runs' : 'st-blocked', ok ? 'Reached' : 'Not reached');
if (j.info) row.querySelector('[data-panel="info"]').innerHTML = j.info;
Object.entries(j.cells || {}).forEach(([cell, text]) => { row.querySelector(`[data-cell="${cell}"]`).textContent = text; });
@@ -61,7 +62,7 @@
if (!note) { note = document.createElement('p'); note.className = 'st-note st-warn'; value.append(note); }
note.textContent = warn[i.dataset.key];
});
- } catch (err) { out.textContent = '✕ ' + err; settle(row, 'st-blocked', 'Not reached'); }
+ } catch (err) { failed(out, err); settle(row, 'st-blocked', 'Not reached'); }
finally { running -= 1; if (testAll()) testAll().disabled = running > 0; if (button) button.disabled = false; }
};
// what the edit panel names now, as an entry: an alias, or [Name=]user@address[:port][:key]
@@ -78,14 +79,14 @@
try {
const r = await nulliusFetch(document.getElementById('settings-form').action, {method: 'POST', headers: {Accept: 'application/json'}, body});
const j = await r.json();
- if (!j.ok) { said.textContent = '✕ ' + (j.message || 'HTTP ' + r.status); return; }
+ if (!j.ok) { failed(said, (j.message || 'HTTP ' + r.status)); return; }
delete opened[row.dataset.machine];
list().replaceWith(new DOMParser().parseFromString(j.html, 'text/html').getElementById('HOSTS'));
window.nulliusSettings.rebase();
reopen();
document.dispatchEvent(new CustomEvent('nullius-hosts-replaced'));
window.nulliusNotify(j.message, {key: 'settings'});
- } catch (err) { said.textContent = '✕ ' + err; }
+ } catch (err) { failed(said, err); }
};
document.addEventListener('click', event => {
const t = event.target;
diff --git a/app/static/style.css b/app/static/style.css
index 02fa3c601..a005a6994 100644
--- a/app/static/style.css
+++ b/app/static/style.css
@@ -431,12 +431,7 @@ button.seg:hover { filter: brightness(1.25); }
.grid.sortable thead th { cursor: pointer; user-select: none; white-space: nowrap; }
.grid.sortable thead th:hover { color: var(--text); }
-/* an arrow on the sorted column only, in a size independent of the small uppercase header text */
-.grid.sortable thead th[data-sorted]::after {
- margin-left: .4rem; font-size: 1.05rem; line-height: 0; vertical-align: -.1em; color: var(--accent); font-weight: 500;
-}
-.grid.sortable thead th[data-sorted="asc"]::after { content: "↑"; }
-.grid.sortable thead th[data-sorted="desc"]::after { content: "↓"; }
+.grid.sortable .sort-mark { margin-left: .4rem; color: var(--accent); }
.grid.sortable thead th:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-soft); }
/* a header without data-type (a checkbox, a state, the actions) does not sort */
.grid.sortable thead th:not([data-type]) { cursor: default; }
@@ -796,8 +791,7 @@ button.seg:hover { filter: brightness(1.25); }
border: none; background: none; cursor: pointer; padding: 0;
color: var(--text-faint); font-size: .7rem; line-height: 1;
}
-.wf-chev::before { content: "▼"; display: inline-block; transition: transform .12s ease; }
-.wf-row.collapsed .wf-chev::before { transform: rotate(-90deg); }
+:root .wf-chev.disclosure-chevron::before { margin: 0; }
.wf-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.wf-label {
border: none; background: none; padding: 0; cursor: pointer;
diff --git a/app/static/tables.js b/app/static/tables.js
index 4a13c5abd..c18bbeccb 100644
--- a/app/static/tables.js
+++ b/app/static/tables.js
@@ -36,6 +36,8 @@ window.NulliusTable = {
after();
};
const mark = () => heads.forEach((th, idx) => {
+ th.querySelector('.sort-mark')?.remove();
+ if (idx === col) th.insertAdjacentHTML('beforeend', dir > 0 ? '' : '');
th.toggleAttribute('data-sorted', idx === col);
th.toggleAttribute('aria-sort', idx === col);
if (idx === col) { th.dataset.sorted = dir > 0 ? 'asc' : 'desc'; th.setAttribute('aria-sort', dir > 0 ? 'ascending' : 'descending'); }
diff --git a/app/static/traces/conversation.js b/app/static/traces/conversation.js
index cb3a43492..85742e3de 100644
--- a/app/static/traces/conversation.js
+++ b/app/static/traces/conversation.js
@@ -10,6 +10,8 @@
const button = (label, action, disabled = false, className = 'btn sm') => {
const node = el('button', className, label);
node.type = 'button'; node.disabled = disabled;
+ if (label === 'Previous') node.insertAdjacentHTML('afterbegin', ' ');
+ if (label === 'Next') node.insertAdjacentHTML('beforeend', ' ');
node.addEventListener('click', action);
return node;
};
@@ -91,9 +93,9 @@
block.append(pre);
} else block.append(el('p', 'muted', content.label === 'Result' ? 'No result recorded for this call.' : 'No content recorded.'));
const nav = el('nav', 'reader-content-nav'); nav.setAttribute('aria-label', 'Content pages');
- nav.append(keyed(button('← Previous', () => change(content.key, content.chunk - 1), content.chunk === 0), 'part-previous'),
+ nav.append(keyed(button('Previous', () => change(content.key, content.chunk - 1), content.chunk === 0), 'part-previous'),
el('span', '', `Part ${number(content.chunk + 1)} / ${number(content.chunks)} · ${number(content.start + (content.characters ? 1 : 0))}–${number(content.end)}`),
- keyed(button('Next →', () => change(content.key, content.chunk + 1), content.chunk + 1 >= content.chunks), 'part-next'));
+ keyed(button('Next', () => change(content.key, content.chunk + 1), content.chunk + 1 >= content.chunks), 'part-next'));
block.append(nav); host.append(block);
}
@@ -149,9 +151,9 @@
if (content.text) { const pre = el('pre', '', content.text); pre.tabIndex = 0; pre.setAttribute('aria-label', content.label); block.append(pre); }
else block.append(el('p', 'muted', 'No content recorded.'));
const nav = el('nav', 'reader-content-nav'); nav.setAttribute('aria-label', 'Content pages');
- nav.append(keyed(button('← Previous', () => change({section: content.key, chunk: content.chunk - 1}), content.chunk === 0), 'part-previous'),
+ nav.append(keyed(button('Previous', () => change({section: content.key, chunk: content.chunk - 1}), content.chunk === 0), 'part-previous'),
el('span', '', `Part ${number(content.chunk + 1)} / ${number(content.chunks)} · ${number(content.start + (content.characters ? 1 : 0))}–${number(content.end)}`),
- keyed(button('Next →', () => change({section: content.key, chunk: content.chunk + 1}), content.chunk + 1 >= content.chunks), 'part-next'));
+ keyed(button('Next', () => change({section: content.key, chunk: content.chunk + 1}), content.chunk + 1 >= content.chunks), 'part-next'));
block.append(nav); return block;
};
const renderCalls = data => {
@@ -185,7 +187,7 @@
if (chosen.cost_usd !== null) facts.push(`$${chosen.cost_usd.toFixed(4)}${chosen.cost_from === 'estimate' ? ' estimated' : ''}`);
info.append(el('p', '', facts.join(' · ')));
const actions = el('div', 'reader-step-actions');
- actions.append(keyed(button('← Previous', () => change({position: chosen.previous, section: null, chunk: 0}), chosen.previous === null), 'previous'), keyed(button('Next →', () => change({position: chosen.next, section: null, chunk: 0}), chosen.next === null), 'next'));
+ actions.append(keyed(button('Previous', () => change({position: chosen.previous, section: null, chunk: 0}), chosen.previous === null), 'previous'), keyed(button('Next', () => change({position: chosen.next, section: null, chunk: 0}), chosen.next === null), 'next'));
header.append(info, actions); selectedHost.append(header);
const selected = chosen.content?.key, sent = [], answer = [];
if (!chosen.sent.recorded) sent.push(el('p', chosen.sent.unreadable ? 'small bad' : 'muted', chosen.sent.note));
@@ -269,7 +271,7 @@
if (chosen.duration !== null) facts.push(`${chosen.duration.toFixed(2)}s until the next source step`);
info.append(el('p', '', facts.join(' · ')));
const actions = el('div', 'reader-step-actions');
- actions.append(keyed(button('← Previous', () => change({position: chosen.previous, section: null, chunk: 0}), chosen.previous === null), 'previous'), keyed(button('Next →', () => change({position: chosen.next, section: null, chunk: 0}), chosen.next === null), 'next'));
+ actions.append(keyed(button('Previous', () => change({position: chosen.previous, section: null, chunk: 0}), chosen.previous === null), 'previous'), keyed(button('Next', () => change({position: chosen.next, section: null, chunk: 0}), chosen.next === null), 'next'));
header.append(info, actions); selectedHost.append(header);
renderContent(selectedHost, chosen, (section, chunk) => change({section, chunk}));
} catch (error) {
diff --git a/app/templates/_cards.html b/app/templates/_cards.html
index 50e02a071..b176ec8a6 100644
--- a/app/templates/_cards.html
+++ b/app/templates/_cards.html
@@ -24,7 +24,7 @@
{%- for x in ([v] if v is string or v is mapping or v is number else v or []) if x is not none and x != '' %}{{ caller(f, x if x is mapping else {'text': x}) }}{% endfor %}{% endfor %}{% endmacro %}
{#- A value as a pill: its field's class and its own, its tooltip. #}
-{% macro pill(f, v) %}{% set cls = [f.class, v.class]|select|join(' ') %}{{ v.text }}{% endmacro %}
+{% macro pill(f, v) %}{% set cls = [f.class, v.class]|select|join(' ') %}{{ v.text }}{% if v.icon %}{% endif %}{% endmacro %}
{# A collection of cards (NulliusTable.cards): its controls row, its cards, the note when none passes. `id` names it;
`search`, `choices`, `only`, `layout` and each field's `filter` as the table's controls; `sort` the Sort by menu, over
diff --git a/app/templates/_icons.svg b/app/templates/_icons.svg
index 298ab39a2..ae1cd30c5 100644
--- a/app/templates/_icons.svg
+++ b/app/templates/_icons.svg
@@ -151,5 +151,10 @@
{#- Themes #}
+
+
+
+
+
diff --git a/app/templates/agents/entry.html b/app/templates/agents/entry.html
index db51d673a..ea534c463 100644
--- a/app/templates/agents/entry.html
+++ b/app/templates/agents/entry.html
@@ -64,7 +64,7 @@
Source
{% for r in e.ports %}
{% if r.kit %}{{ r.label }}{% else %}{{ r.label }}{% endif %}{{ r.port }}{{ r.summary }}
- {% if r.skills %}Skills: {% for s in r.skills %}{{ s.says }} {{ '✓' if s.shown else '✗' }}{{ ' · ' if not loop.last }}{% endfor %}{% endif %}
+ {% if r.skills %}Skills: {% for s in r.skills %}{{ s.says }} {% if s.shown %}{% else %}{% endif %}{{ ' · ' if not loop.last }}{% endfor %}{% endif %}
{% if not r.kit %}No kit yet: nothing can prove it until a benchmark needs it.{% endif %}
{% if e.fidelity %}
{# cli fidelity: the same tasks driven over ACP and through the agent's own command, the model's requests compared #}
Fidelity
-
ACP {{ '= its own CLI ✓' if e.fidelity.verdict == 'same' else '≠ its own CLI: ' ~ e.fidelity.verdict }}
+
ACP {% if e.fidelity.verdict == 'same' %}= its own CLI {% else %}≠ its own CLI: {{ e.fidelity.verdict }}{% endif %}
Its model gets the same requests over ACP as from its own command line{% if e.fidelity.differs %}; differs in {{ e.fidelity.differs|map(attribute='field')|join(', ') }}{% endif %}.
{% endif %}
{% if e.options %}
diff --git a/app/templates/agents/standard.html b/app/templates/agents/standard.html
index dfa62e7d7..40a6498bb 100644
--- a/app/templates/agents/standard.html
+++ b/app/templates/agents/standard.html
@@ -10,7 +10,7 @@
{% block body %}
{# The standard's agents (or Modules) as cards. docs/standard.md #}
- {% set actions %}{% endset %}
+ {% set actions %}{% endset %}
{{ page_head(plural, sub=items|length ~ ' ' ~ (many if items|length != 1 else one), actions=actions) }}
{% from "catalogue/add_dialog.html" import add_dialog %}
diff --git a/app/templates/base.html b/app/templates/base.html
index 455a8bc6f..5812f1c42 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -379,7 +379,7 @@
}
}
const label = btn.dataset.copyLabel || (btn.dataset.copyLabel = btn.textContent); // the button's own word, however fast it is clicked again
- btn.textContent = copied ? 'copied ✓' : 'copy failed';
+ btn.innerHTML = copied ? 'copied ' : 'copy failed';
setTimeout(() => { btn.textContent = label; }, 1200);
});
})();
diff --git a/app/templates/builder/new_run.html b/app/templates/builder/new_run.html
index f92accd2c..aa38b3e80 100644
--- a/app/templates/builder/new_run.html
+++ b/app/templates/builder/new_run.html
@@ -54,7 +54,7 @@
No saved recipe yet.{% if local %} Build one →{% endif %}
+
No saved recipe yet.{% if local %} Build one {% endif %}
{% endif %}
diff --git a/app/templates/catalogue/benchmark.html b/app/templates/catalogue/benchmark.html
index 90ba1f7e9..529e2acf1 100644
--- a/app/templates/catalogue/benchmark.html
+++ b/app/templates/catalogue/benchmark.html
@@ -11,7 +11,7 @@
{% set mark %}{% endset %}
{% set tags %}{% if b.category %}{{ b.category }}{% endif %}{% for y in views %}{{ y.origin|capitalize }}{% endfor %}{% endset %}
{% set actions %}
- {% if b.usable_routes %}Build a run →{% endif %}
+ {% if b.usable_routes %}Build a run {% endif %}
{% if b.citation %}Cite{% endif %}
{% if editable %}Edit{% endif %}
{#- deleting asks first, in place: the button opens the question, never a dialog #}
@@ -59,16 +59,16 @@
Overview
{% if std %}
{#- The standard's proofs of it, per dataset (standard/proofs/prove.py): its controls as chips, their source in the title, then its units and leak checks; and Prove it, cli prove as a run. -#}
{% macro proof(rec, failed, expect, short='') -%}
- {%- if rec %}{% set notes = [short, ('over the first ' ~ rec.limit) if rec.limit, ('shard ' ~ rec.shard) if rec.shard]|select|list %}✓ {{ rec.passed }}{% if rec.limit %} · first {{ rec.limit }}{% endif %}
- {%- elif failed and failed.value is defined %}{% set e = (failed.expect or expect or {'at_least': 1}) %}{% set k = e|list|first %}✕ {{ failed.value }} {{ '>' if k == 'at_most' else '<' }} {{ e[k] }}
- {%- elif failed %}✕ not proven
+ {%- if rec %}{% set notes = [short, ('over the first ' ~ rec.limit) if rec.limit, ('shard ' ~ rec.shard) if rec.shard]|select|list %} {{ rec.passed }}{% if rec.limit %} · first {{ rec.limit }}{% endif %}
+ {%- elif failed and failed.value is defined %}{% set e = (failed.expect or expect or {'at_least': 1}) %}{% set k = e|list|first %} {{ failed.value }} {{ '>' if k == 'at_most' else '<' }} {{ e[k] }}
+ {%- elif failed %} not proven
{%- else %}not run{% endif -%}
{%- endmacro %}
{% macro chip(c) -%}
{{ c.key }}{{ proof(c.proven, c.failed, c.expect, c.short) }}
{%- endmacro %}
{% macro check(name, says, rec, failed) -%}
- {{ name }}{% if rec %}✓{% else %}{{ proof(rec, failed) }}{% endif %}
+ {{ name }}{% if rec %}{% else %}{{ proof(rec, failed) }}{% endif %}
{%- endmacro %}
{#- One version's proofs: its pin, each dataset's checks, and the form that runs them on it. -#}
{% macro proofs(s) -%}
@@ -276,7 +276,7 @@
{% if papers|length > 1 %}
diff --git a/app/templates/catalogue/benchmarks.html b/app/templates/catalogue/benchmarks.html
index ed644dc96..960a1a48d 100644
--- a/app/templates/catalogue/benchmarks.html
+++ b/app/templates/catalogue/benchmarks.html
@@ -9,7 +9,7 @@
{% set listed = cat.listed_benchmarks %}
{% set count = namespace(datasets=0) %}{% for b in listed %}{% set count.datasets = count.datasets + b.datasets|length %}{% endfor %}
- {% set actions %}{% endset %}
+ {% set actions %}{% endset %}
{{ page_head('Benchmarks', sub=listed|length ~ ' benchmarks · ' ~ count.datasets ~ ' datasets', actions=actions) }}
{#- Two routes in: the Nullius standard (a paper's own scripts as its Original setup), or Harbor. #}
diff --git a/app/templates/catalogue/tasks.html b/app/templates/catalogue/tasks.html
index a7db379f7..b4f11fd6d 100644
--- a/app/templates/catalogue/tasks.html
+++ b/app/templates/catalogue/tasks.html
@@ -21,7 +21,7 @@
{% set mark %}{% endset %}
{% set tags %}{{ 'Tasks' if heading == (ds.label or ds.id) else 'Task set' }}{{ title }}{% endset %}
{% set actions %}
- Build a run →
+ Build a run
{#- renaming and deleting ask first, in place; one question open at a time #}
{% if writable and entry %}Rename
diff --git a/app/templates/compare/compare.html b/app/templates/compare/compare.html
index c253befca..aee966f3e 100644
--- a/app/templates/compare/compare.html
+++ b/app/templates/compare/compare.html
@@ -144,7 +144,7 @@
- {% for key, label, href in card.styles %}{{ label }}{% endfor %}
+ {% for key, label, href in card.styles %} {{ label }}{% endfor %}
{% set n = loop.index %}
@@ -154,7 +154,7 @@
{%- if card.axes|length == 1 %}{% else %}{{ axis.name }}{% endif %}{{ axis.label }}
{% for group, links in axis.groups.items() %}{% endfor %}
@@ -297,7 +297,7 @@
{% if t.f2p_pass or t.f2p_fail %}
{{ t.f2p_pass }}/{{ t.f2p_pass + t.f2p_fail }} {{ t.vocab.gained_abbr or t.vocab.gained }}
{% endif %}
- {% if t.is_regression %}⚠{% endif %}
+ {% if t.is_regression %}{% endif %}
Total time{{ t.dur_total|secs }}
{% set used_tokens = (t.n_input_tokens or 0) + (t.n_output_tokens or 0) %}
@@ -334,7 +334,7 @@
title="Harbor control: applies the gold patch or does nothing. Never calls a model, and never ranked.">control{% endif %}
{% if p.trial %}
{{ p.trial.outcome_label }}
- {% if p.trial.is_regression %}⚠ broke {{ p.trial.p2p_fail }}{% endif %}
+ {% if p.trial.is_regression %} broke {{ p.trial.p2p_fail }}{% endif %}
{% else %}not run{% endif %}
@@ -54,7 +54,7 @@
{{ p.job.agent_label or p.job.job_id }}
title="{{ p.job.job_id }}">{{ p.job.job_id }}
{% if p.trial %}
Open full trial →
+ title="Every step, tool call and observation for this run">Open full trial
{% endif %}
{{ '' if st.state in ('done', 'cached') else '✕' if st.state == 'failed' else loop.index }}{{ st.label }}
+
{% if st.state == 'failed' %}{% elif st.state not in ('done', 'cached') %}{{ loop.index }}{% endif %}{{ st.label }}
{%- if st.state == 'cached' %}cached{% elif st.get('seconds') is not none and st.state in ('done', 'failed') %}{{ st.seconds|secs }}{% endif %}
{%- if st.state in ('running', 'failed') and st.detail and st.detail != sp.detail %}{{ st.detail }}{% endif %}
{% endfor %}
@@ -58,7 +58,7 @@
if (st.state === 'running') li.setAttribute('aria-current', 'step'); else li.removeAttribute('aria-current');
let mark = li.querySelector('i');
if (!mark) { mark = el('i'); mark.setAttribute('aria-hidden', 'true'); li.append(mark); }
- mark.textContent = {done: '', cached: '', failed: '✕'}[st.state] ?? String(n + 1);
+ mark.innerHTML = {done: '', cached: '', failed: ''}[st.state] ?? String(n + 1);
while (mark.nextSibling) mark.nextSibling.remove();
const name = li.appendChild(el('span', 'xs-label', st.label)); if (st.full) name.title = st.full;
if (st.state === 'cached') li.append(el('span', 'xs-time', 'cached'));
diff --git a/app/templates/runs/feasibility.html b/app/templates/runs/feasibility.html
index bd15ddf2b..73a19d168 100644
--- a/app/templates/runs/feasibility.html
+++ b/app/templates/runs/feasibility.html
@@ -96,7 +96,7 @@
{{ r.task_base }}
{% for s in (r.nop, r.oracle) %}
- {% if s.present %}{{ s.label }}{% if s.exception_type %} {{ s.exception_type }}{% endif %}{% if s.broke_tests %} ⚠ broke {{ s.p2p_fail }}{% endif %}
+ {% if s.present %}{{ s.label }}{% if s.exception_type %} {{ s.exception_type }}{% endif %}{% if s.broke_tests %} broke {{ s.p2p_fail }}{% endif %}
{% else %}not run{% endif %}
{% if part == 'fold' %}{% endif %}
{%- endif %}
{%- if kind == 'control' %}
{{ r.state }}
-
{{ '✓' if v and v.state == 'ok' else ('⚠' if v and v.state == 'warn' else '○') }}
- {%- if v %}{{ v.label }}{% else %}{{ 'must reject every task' if r.control == 'nop' else 'must pass every task' }}{% endif %}
+
{% if v and v.state == 'ok' %}{% elif v and v.state == 'warn' %}{% else %}{% endif %}
+ {%- if v %}{{ v.label|replace(' ✓', '')|replace(' ⚠', '') }}{% else %}{{ 'must reject every task' if r.control == 'nop' else 'must pass every task' }}{% endif %}
{%- else %}
{{ r.state }}
{% if j and j.scored_only %}
@@ -46,7 +46,7 @@
{%- elif j and j.adjusted_solve_rate is not none %}
{{ j.adjusted_solve_rate|pct }}
{%- else %}
—
{% endif %}
- {%- if j and j.trials and not j.scored_only and oc.unknown and oc.unknown * 4 >= j.trials|length %}⚠ {{ oc.unknown }} of {{ j.trials|length }} have no verdict{% endif %}
+ {%- if j and j.trials and not j.scored_only and oc.unknown and oc.unknown * 4 >= j.trials|length %} {{ oc.unknown }} of {{ j.trials|length }} have no verdict{% endif %}
{%- endif %}
{% if j and j.trials %}{% for k in ORDER %}{% if oc[k] %}{% endif %}{% endfor %}{% else %}{% endif %}
{%- if kind == 'control' %}
@@ -58,7 +58,7 @@
{% if j and (j.total_input_tokens or j.total_output_tokens) %}{{ (j.total_input_tokens + j.total_output_tokens)|tokens(j.kind) }}{% else %}—{% endif %}
{% if j and j.total_cost_usd is not none %}{{ j.total_cost_usd|usd(j.kind) }}{% else %}—{% endif %}
{% if j and j.duration_min %}{{ j.duration_min|runtime }}{% else %}—{% endif %}
{%- endmacro %}
@@ -107,9 +107,9 @@
{% set n_regr = jobs|map(attribute='n_regressions')|sum %}
{% if n_regr %}
+ title="Runs containing a patch that broke previously-passing tests"> Broke tests {{ n_regr }}
{% endif %}
-
+
@@ -232,7 +232,7 @@
{{ g.dataset_title if L.dataset else (L.name or g.dataset_title) }}{% if g.n
All three sort at -2 — below the agents and below a run nothing
scored (-1) — so the columns keep the controls apart. #}
{% set ctl_title = v.control ~ " is a Harbor control: it must be " ~ v.expected ~ " on every task — " ~ v.label ~ ". Not a score." %}
-
{{ g.dataset_title if L.dataset else (L.name or g.dataset_title) }}{% if g.n
{# Zero regressions is only a fact for a benchmark that checks for them.
Where none were reported the column shows absence, not a reassuring 0. #}
diff --git a/app/templates/runs/job.html b/app/templates/runs/job.html
index 62042071a..28fb9f07f 100644
--- a/app/templates/runs/job.html
+++ b/app/templates/runs/job.html
@@ -53,7 +53,7 @@
{% endif %}
{% if control %}control{{ control.label }}{% endif %}
+ title="{{ control.control }} must be {{ control.expected }} on every task; this is a check on the tasks, not a score">{{ control.label|replace(' ✓', '')|replace(' ⚠', '') }}{% if control.label.endswith('✓') %} {% elif control.label.endswith('⚠') %} {% endif %}{% endif %}
{% call identity_card(limit_rows) %}
Trials{% if job.start_with %}{{ job.n_tasks_run }} of {{ job.n_tasks }} tasks run{% else %}{{ job.trials|length }}{% if job.n_planned and job.n_planned != job.trials|length %} of {{ job.n_planned }} planned{% endif %}{% endif %}
{% if job.duration_min is not none %}
Duration{{ job|run_min|runtime }}
{% endif %}
@@ -302,7 +302,7 @@
judged {{ judgement.judged }}/{{ judgement.trials }}
{% if judgement.truncation and judgement.truncation.truncated %}state truncated {{ judgement.truncation.truncated }}/{{ judgement.truncation.records }}{% endif %}
- {% if judgement.judged %}Classifier vs judge →{% endif %}
+ {% if judgement.judged %}Classifier vs judge {% endif %}
{% if job.runner %}
The outcomes are {{ job.runner }}'s own judge{% if job.runner_judge %}: {{ job.runner_judge }}{% endif %}.
This one is Nullius's, asked on a click: it reads each conversation for a cause and flags, and changes no outcome.
{% endif %}
@@ -400,18 +400,18 @@
Trials
{{ job.trials|length + waiting|length }}
-
OutcomeAll▾
+
OutcomeAll
{% for k in ORDER %}{% if oc[k] %}{{ LABELS[k] }}{{ oc[k] }}{% endif %}{% endfor %}{% for o, label in (('not_run', 'Not run'), ('no_result', 'No result')) %}{% set n = waiting|selectattr('outcome', 'eq', o)|list|length %}{% if n %}{{ label }}{{ n }}{% endif %}{% endfor %}
{% endfor %}
{% for w in waiting %}{#- a task the job planned with no result: never begun, or begun and ended with none #}
diff --git a/app/templates/runs/setup.html b/app/templates/runs/setup.html
index 5341cef7b..2d62ac794 100644
--- a/app/templates/runs/setup.html
+++ b/app/templates/runs/setup.html
@@ -59,7 +59,7 @@
Distributions
{% endfor %}
{% if c.hidden_kinds %}
all ×
+ title="Draw every kind in this chart again">all
{% endif %}
{% endif %}
@@ -136,7 +136,7 @@
Distributions
The {{ charts.summed_ns|nsdur }} they add up to is not wall clock: calls overlap and leave gaps. {{ tail }}
{% if charts.note %}{{ charts.note }}{% endif %}
{% if chart_filter.active %}
- Draw every kind again ×
+ Draw every kind again
{% endif %}
Values
diff --git a/app/templates/traces/_judgement.html b/app/templates/traces/_judgement.html
index 9a895a938..b3b29f7d1 100644
--- a/app/templates/traces/_judgement.html
+++ b/app/templates/traces/_judgement.html
@@ -1,7 +1,7 @@
{# The Judgement tab: the judge's answers beside the recorded evidence, never in its place.
Outcome questions as cards, then the behaviour flags as a table. "Not judged" until asked; Judge asks. Every count is Nullius's; the judge is never asked how many. #}
{% macro pill(r) -%}
-{% if r.undecided %}—{% elif r.flag and r.raised %}⚑{% elif r.flag %}✓{% endif %} {{ r.pill }}
+{% if r.undecided %}—{% elif r.flag and r.raised %}{% elif r.flag %}{% endif %} {{ r.pill }}
{%- endmacro %}
{% macro judgement_panel(j, job, trial, csrf) %}
{%- set llm = j.lane == 'llm' %}
@@ -23,12 +23,12 @@
{%- if j.record.truncated %}{{ note.sep }}state truncated{% if j.record.states %} ({% for kind, k in j.record.states.items() if k.truncated %}{{ kind }}{{ ', ' if not loop.last }}{% endfor %}){% endif %}{% endif -%}
{% endif %}
{% if j.hygiene and j.hygiene.flagged %}
- ⚠ state hygiene {% for kind, raised in j.hygiene.flagged.items() %}`{{ kind }}` state: {% for id, label, p, decided in raised %}{{ label }} {{ '%.0f'|format(p * 100) }}%{% if not decided %} (undecided){% endif %}{{ '; ' if not loop.last }}{% endfor %}{{ ' · ' if not loop.last }}{% endfor %} — the answers from that state are marked ⚠; none is changed
{% endif %}
+ state hygiene {% for kind, raised in j.hygiene.flagged.items() %}`{{ kind }}` state: {% for id, label, p, decided in raised %}{{ label }} {{ '%.0f'|format(p * 100) }}%{% if not decided %} (undecided){% endif %}{{ '; ' if not loop.last }}{% endfor %}{{ ' · ' if not loop.last }}{% endfor %} — the answers from that state are marked ; none is changed{% endif %}
{% if r.answer %}{{ r.headline }}%{% if r.floor is not none %}{% endif %}{% if r.floor is not none %} ±{{ '%.0f'|format(r.floor * 100) }}{% else %}±?{% endif %}{% endif %}
{% if x.held is sameas true %}✓{% elif x.held is sameas false %}×{% else %}·{% endif %} {{ x.name|replace("_", " ") }}{% if x.text %}: {% if x.cut %}{{ x.cut }}…{{ x.text }}{% else %}{{ x.text }}{% endif %}{% endif %}
+ {% for x in g.flags %}
{% if x.held is sameas true %}{% elif x.held is sameas false %}{% else %}·{% endif %} {{ x.name|replace("_", " ") }}{% if x.text %}: {% if x.cut %}{{ x.cut }}…{{ x.text }}{% else %}{{ x.text }}{% endif %}{% endif %}
{% endfor %}
{% endfor %}{% endif %}
@@ -307,7 +307,7 @@
Trace unreadable
{% if trace.zero_measured %}
-
⚠ Nothing was measured
+
Nothing was measured
All {{ trace.totals.span_count }} spans are
inferred — the exporter captured nothing and the producer fell back to reading
the agent's own logs. Every duration below is approximate, and simply wrong wherever
@@ -339,7 +339,7 @@
Filter
the filter, so this sentence must not shrink with it. #}
{{ trace.shown }} span{{ '' if trace.shown == 1 else 's' }} shown,
{{ trace.hidden_count }} left out.
- Clear ×
+ Clear
{% else %}
Click a label to leave out every span carrying it, or the × on a
waterfall row — alt-click its bar — to leave out one call. Either way what it called goes with
@@ -490,14 +490,14 @@
Waterfall
{{ trace.rows|length }} of {{ trace.shown }} span{{ '' if trace.shown == 1 else 's' }}
· starts {{ trace.zoom_offset_ns|nsoff }} into the capture
· {{ trace.axis.span_ns|nsdur }} wide — offsets below count from its start
- Reset zoom ×
+ Reset zoom
{% elif trace.zoom_lost %}
No span {{ trace.zoom_lost[:24] }} in this view— nothing to zoom to, so this is the whole trace. It may be hidden by the
filter, or belong to another trace file.
- Clear ×
+ Clear
- {% if r.has_children %}{% else %}{% endif %}
+ {% if r.has_children %}{% else %}{% endif %}
{# Links, not buttons: the filter and the zoom live in the URL, so these
@@ -535,7 +535,7 @@
Waterfall
title="Zoom the axis to this span and what it called" aria-label="Zoom to this span">⤢
{% endif %}
×
+ title="Leave this span, and what it called, out" aria-label="Leave this span out">