';
+ + 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;
};
@@ -540,12 +540,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)) : '') + '';
@@ -555,7 +555,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).
@@ -874,7 +874,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('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?
`
@@ -965,7 +965,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
@@ -1002,7 +1002,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
@@ -1217,7 +1217,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.
@@ -1322,13 +1322,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.
@@ -1347,7 +1347,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=>`
{% 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 3f0aa2d5e..168edc47c 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 5213c50c5..cbf89847d 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 2c7a0dc14..a1b252985 100644
--- a/app/templates/builder/new_run.html
+++ b/app/templates/builder/new_run.html
@@ -53,7 +53,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 d75d12c1b..982e9ee94 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) -%}
@@ -275,7 +275,7 @@
{% if papers|length > 1 %}
diff --git a/app/templates/catalogue/benchmarks.html b/app/templates/catalogue/benchmarks.html
index 62dfba13e..3ecf3694b 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 570d56c73..6212dc54f 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 1d7423abc..58b2845f2 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 %}
@@ -62,7 +62,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 f9a397fb9..870472826 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 %}
@@ -49,7 +49,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' %}
@@ -61,7 +61,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 %}
@@ -110,9 +110,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 %}
-
+
@@ -235,7 +235,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 99592a7df..e777e5302 100644
--- a/app/templates/runs/job.html
+++ b/app/templates/runs/job.html
@@ -54,7 +54,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 %}
@@ -303,7 +303,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 %}
{{ job.runner }}'s judge{% if job.runner_judge %} ({{ job.runner_judge }}){% endif %} sets outcomes; Nullius judges causes and flags without changing them.
{% endif %}
@@ -401,18 +401,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 0b84eccb4..e00b871aa 100644
--- a/app/templates/runs/setup.html
+++ b/app/templates/runs/setup.html
@@ -59,7 +59,7 @@
diff --git a/app/templates/settings/settings.html b/app/templates/settings/settings.html
index 11b9ebf67..e9339cf34 100644
--- a/app/templates/settings/settings.html
+++ b/app/templates/settings/settings.html
@@ -6,13 +6,12 @@
{% block head %}{% endblock %}
{% block body %}
{#- 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.
+ are kept in, one at a time from the menu beside them.
The menu's entries are links to the sections, so without a script every section shows. -#}
{% set by = {} %}{% set held = [] %}
{% for group, rows in groups %}{% for r in rows %}{% set _ = by.update({r.name: r}) %}{% if r.source != 'unset' %}{% set _ = held.append(r.name) %}{% endif %}{% endfor %}{% endfor %}
{% set marks = url_for('static', filename='brand/marks.svg') %}
{% set hosts_row = by.get('HOSTS') %}
-{% set chosen = (hosts_row.shown.split(',') | map('trim') | select | list) if hosts_row else [] %}
{#- mode, in a provider's editor: 'plain' is edited in place (a name, an endpoint's URL); 'key' is written,
never shown, and replaced; 'optional-key' may also be removed. Elsewhere, Replace and Remove. -#}
{% macro field(r, label, writable, options=none, mode='', placeholder='', tip='', picker='') %}
@@ -45,17 +44,6 @@
{% endfor %}
{% if c.hidden_kinds %}
all ×
+ title="Draw every kind in this chart again">all
{% endif %}
{% endif %}
@@ -130,7 +130,7 @@
Distributions
Call durations, not a timeline. Their sum ({{ charts.summed_ns|nsdur }}) is not wall time: calls overlap and leave gaps.
{% 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 122ddff3d..cfecad949 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 %} Flagged answers remain unchanged.
{% 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 %} Flagged answers remain unchanged.{% 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 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
@@ -497,7 +497,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 its children out; alt-click its bar" aria-label="Leave this span out">
{{ r.span.duration_ns|nsdur }}
@@ -621,16 +621,25 @@
Waterfall
};
const applyVisibility = () => {
- rows.forEach(r => { r.hidden = false; });
+ const hidden = new Set();
rows.forEach(r => {
- if (r.classList.contains('collapsed')) descendants(r).forEach(d => { d.hidden = true; });
+ if (r.classList.contains('collapsed')) descendants(r).forEach(d => hidden.add(d));
+ });
+ rows.forEach(r => {
+ const expanded = !hidden.has(r);
+ if (r.dataset.expanded === String(expanded)) return;
+ r.dataset.expanded = String(expanded);
+ NulliusDisclosure.setHidden(r, expanded);
});
};
const setCollapsed = (row, collapsed) => {
row.classList.toggle('collapsed', collapsed);
const chev = row.querySelector('.wf-chev');
- if (chev) chev.setAttribute('aria-expanded', String(!collapsed));
+ if (chev) {
+ chev.setAttribute('aria-expanded', String(!collapsed));
+ chev.setAttribute('aria-label', collapsed ? 'Expand subtree' : 'Collapse subtree');
+ }
};
const detail = document.getElementById('wf-detail');
diff --git a/app/tests/test_icons.py b/app/tests/test_icons.py
index 627c77bff..1062fd855 100644
--- a/app/tests/test_icons.py
+++ b/app/tests/test_icons.py
@@ -19,6 +19,7 @@
SINKS = {
("templates/base.html", "icon"): [("templates/base.html", r"for kind, label, list_ep, entry_ep, icon in \[(.*?)\] %\}", r",\s*([^,()]+)\)")],
("templates/_cards.html", "f.icon"): [ICON_KWARG],
+ ("templates/_cards.html", "v.icon"): [("web/builder.py", r'"icon": ("x")')],
("templates/_tables.html", "key"): [("templates/_tables.html", r"for key, name in \((.*?)\) %\}", r"\(([^,()]+),")],
("templates/_tables.html", "c.filter_icon"): [("templates/**/*.html", r"\bfilter_icon=([^,)\s]+)")],
("templates/_tables.html", "icon"): [ICON_KWARG],
diff --git a/app/ui_tests/evidence/icons/builder-after.png b/app/ui_tests/evidence/icons/builder-after.png
new file mode 100644
index 000000000..4708cd7ef
Binary files /dev/null and b/app/ui_tests/evidence/icons/builder-after.png differ
diff --git a/app/ui_tests/evidence/icons/builder-before.png b/app/ui_tests/evidence/icons/builder-before.png
new file mode 100644
index 000000000..d5a0f5957
Binary files /dev/null and b/app/ui_tests/evidence/icons/builder-before.png differ
diff --git a/app/ui_tests/evidence/icons/catalogue-after.png b/app/ui_tests/evidence/icons/catalogue-after.png
new file mode 100644
index 000000000..17c02fa27
Binary files /dev/null and b/app/ui_tests/evidence/icons/catalogue-after.png differ
diff --git a/app/ui_tests/evidence/icons/catalogue-before.png b/app/ui_tests/evidence/icons/catalogue-before.png
new file mode 100644
index 000000000..08e5ac676
Binary files /dev/null and b/app/ui_tests/evidence/icons/catalogue-before.png differ
diff --git a/app/ui_tests/evidence/icons/compare-after.png b/app/ui_tests/evidence/icons/compare-after.png
new file mode 100644
index 000000000..bc36dd02f
Binary files /dev/null and b/app/ui_tests/evidence/icons/compare-after.png differ
diff --git a/app/ui_tests/evidence/icons/compare-before.png b/app/ui_tests/evidence/icons/compare-before.png
new file mode 100644
index 000000000..9786c8fe7
Binary files /dev/null and b/app/ui_tests/evidence/icons/compare-before.png differ
diff --git a/app/ui_tests/evidence/icons/job-after.png b/app/ui_tests/evidence/icons/job-after.png
new file mode 100644
index 000000000..1097c2874
Binary files /dev/null and b/app/ui_tests/evidence/icons/job-after.png differ
diff --git a/app/ui_tests/evidence/icons/job-before.png b/app/ui_tests/evidence/icons/job-before.png
new file mode 100644
index 000000000..0c056a958
Binary files /dev/null and b/app/ui_tests/evidence/icons/job-before.png differ
diff --git a/app/ui_tests/evidence/icons/kits-after.png b/app/ui_tests/evidence/icons/kits-after.png
new file mode 100644
index 000000000..c8f0df945
Binary files /dev/null and b/app/ui_tests/evidence/icons/kits-after.png differ
diff --git a/app/ui_tests/evidence/icons/kits-before.png b/app/ui_tests/evidence/icons/kits-before.png
new file mode 100644
index 000000000..4ed47b85b
Binary files /dev/null and b/app/ui_tests/evidence/icons/kits-before.png differ
diff --git a/app/ui_tests/evidence/icons/settings-after.png b/app/ui_tests/evidence/icons/settings-after.png
new file mode 100644
index 000000000..6a38f0907
Binary files /dev/null and b/app/ui_tests/evidence/icons/settings-after.png differ
diff --git a/app/ui_tests/evidence/icons/settings-before.png b/app/ui_tests/evidence/icons/settings-before.png
new file mode 100644
index 000000000..e905f8f40
Binary files /dev/null and b/app/ui_tests/evidence/icons/settings-before.png differ
diff --git a/app/ui_tests/evidence/icons/trial-after.png b/app/ui_tests/evidence/icons/trial-after.png
new file mode 100644
index 000000000..c4bfb36fc
Binary files /dev/null and b/app/ui_tests/evidence/icons/trial-after.png differ
diff --git a/app/ui_tests/evidence/icons/trial-before.png b/app/ui_tests/evidence/icons/trial-before.png
new file mode 100644
index 000000000..0b82aa279
Binary files /dev/null and b/app/ui_tests/evidence/icons/trial-before.png differ
diff --git a/app/ui_tests/evidence/icons/workspaces-after.png b/app/ui_tests/evidence/icons/workspaces-after.png
new file mode 100644
index 000000000..2c96441d0
Binary files /dev/null and b/app/ui_tests/evidence/icons/workspaces-after.png differ
diff --git a/app/ui_tests/evidence/icons/workspaces-before.png b/app/ui_tests/evidence/icons/workspaces-before.png
new file mode 100644
index 000000000..edd5b4cef
Binary files /dev/null and b/app/ui_tests/evidence/icons/workspaces-before.png differ
diff --git a/app/ui_tests/test_agents.py b/app/ui_tests/test_agents.py
index 7095aa81b..8bcb4e697 100644
--- a/app/ui_tests/test_agents.py
+++ b/app/ui_tests/test_agents.py
@@ -211,7 +211,7 @@ def test_the_add_dialog_builds_a_prompt_and_keeps_the_steps_by_hand_for_each_kin
("/modules", "a Module", ".agents/skills/import-module/SKILL.md",
("nullius standard new module my-memory", ""project"", "from my_memory import Store"))):
html = self.get(url).get_data(as_text=True)
- self.assertIn(f'', html)
+ self.assertIn(f'', html)
self.assertIn('