From 390491832a03b12fa27278e969f5265b34f97f31 Mon Sep 17 00:00:00 2001 From: Etienne Filhol Date: Tue, 1 Dec 2026 19:22:06 +0100 Subject: [PATCH 1/4] fix(web): replace control glyphs with sprite icons --- app/static/builder/command-builder.js | 48 +++++++++--------- app/static/catalogue/catalogue.css | 2 - app/static/compare/columns.js | 1 + app/static/compare/comparison.css | 7 +-- app/static/onboarding.js | 6 +-- app/static/runs/live-board.js | 4 +- app/static/settings/hosts.js | 9 ++-- app/static/style.css | 10 +--- app/static/tables.js | 2 + app/static/traces/conversation.js | 14 ++--- app/templates/_cards.html | 2 +- app/templates/_icons.svg | 5 ++ app/templates/agents/entry.html | 4 +- app/templates/agents/standard.html | 2 +- app/templates/base.html | 2 +- app/templates/builder/new_run.html | 2 +- app/templates/builder/recipes.html | 2 +- app/templates/catalogue/benchmark.html | 12 ++--- app/templates/catalogue/benchmarks.html | 2 +- app/templates/catalogue/tasks.html | 2 +- app/templates/compare/compare.html | 8 +-- app/templates/compare/compare_task.html | 6 +-- app/templates/error.html | 2 +- app/templates/runs/_execution.html | 4 +- app/templates/runs/feasibility.html | 2 +- app/templates/runs/index.html | 18 +++---- app/templates/runs/job.html | 16 +++--- app/templates/runs/setup.html | 2 +- app/templates/runs/start.html | 8 +-- app/templates/settings/data_providers.html | 2 +- app/templates/settings/settings.html | 18 +++---- app/templates/traces/_charts.html | 4 +- app/templates/traces/_judgement.html | 8 +-- app/templates/traces/artifact.html | 2 +- app/templates/traces/trial.html | 35 ++++++++----- app/tests/test_icons.py | 1 + app/ui_tests/evidence/icons/builder-after.png | Bin 0 -> 130009 bytes .../evidence/icons/builder-before.png | Bin 0 -> 129526 bytes .../evidence/icons/catalogue-after.png | Bin 0 -> 248113 bytes .../evidence/icons/catalogue-before.png | Bin 0 -> 247334 bytes app/ui_tests/evidence/icons/compare-after.png | Bin 0 -> 183304 bytes .../evidence/icons/compare-before.png | Bin 0 -> 183353 bytes app/ui_tests/evidence/icons/job-after.png | Bin 0 -> 189710 bytes app/ui_tests/evidence/icons/job-before.png | Bin 0 -> 189601 bytes app/ui_tests/evidence/icons/kits-after.png | Bin 0 -> 154843 bytes app/ui_tests/evidence/icons/kits-before.png | Bin 0 -> 154843 bytes .../evidence/icons/settings-after.png | Bin 0 -> 155984 bytes .../evidence/icons/settings-before.png | Bin 0 -> 155366 bytes app/ui_tests/evidence/icons/trial-after.png | Bin 0 -> 171712 bytes app/ui_tests/evidence/icons/trial-before.png | Bin 0 -> 171598 bytes .../evidence/icons/workspaces-after.png | Bin 0 -> 138684 bytes .../evidence/icons/workspaces-before.png | Bin 0 -> 138684 bytes app/ui_tests/test_agents.py | 10 ++-- app/ui_tests/test_builder_check_chips.py | 8 +-- app/ui_tests/test_catalogue_routes.py | 4 +- app/ui_tests/test_comparison_routes.py | 1 + app/ui_tests/test_controls_apart.py | 20 ++++---- app/ui_tests/test_feasibility_routes.py | 2 +- app/ui_tests/test_launch_shards.py | 8 +-- app/ui_tests/test_routes.py | 2 +- app/ui_tests/test_runs_by_launch.py | 2 +- app/ui_tests/test_tables.py | 11 ++++ app/ui_tests/test_trial_detail.py | 10 ++-- app/web/builder.py | 2 +- 64 files changed, 190 insertions(+), 164 deletions(-) create mode 100644 app/ui_tests/evidence/icons/builder-after.png create mode 100644 app/ui_tests/evidence/icons/builder-before.png create mode 100644 app/ui_tests/evidence/icons/catalogue-after.png create mode 100644 app/ui_tests/evidence/icons/catalogue-before.png create mode 100644 app/ui_tests/evidence/icons/compare-after.png create mode 100644 app/ui_tests/evidence/icons/compare-before.png create mode 100644 app/ui_tests/evidence/icons/job-after.png create mode 100644 app/ui_tests/evidence/icons/job-before.png create mode 100644 app/ui_tests/evidence/icons/kits-after.png create mode 100644 app/ui_tests/evidence/icons/kits-before.png create mode 100644 app/ui_tests/evidence/icons/settings-after.png create mode 100644 app/ui_tests/evidence/icons/settings-before.png create mode 100644 app/ui_tests/evidence/icons/trial-after.png create mode 100644 app/ui_tests/evidence/icons/trial-before.png create mode 100644 app/ui_tests/evidence/icons/workspaces-after.png create mode 100644 app/ui_tests/evidence/icons/workspaces-before.png diff --git a/app/static/builder/command-builder.js b/app/static/builder/command-builder.js index 96f98aea8..8a02b44bd 100644 --- a/app/static/builder/command-builder.js +++ b/app/static/builder/command-builder.js @@ -228,7 +228,7 @@ // The Harbor agents as cards, grouped by what they are for. Every selected // agent becomes one run command. const agentLabel = (id, rec = r()) => C.agentById(id, rec)?.label || id; - const chip = (id, label, on, extra = '') => ``; + const chip = (id, label, on, extra = '') => ``; // The agent list: the vocabulary as chips, and custom agents as typed // import paths (each one an agent under evaluation). const agentCards = rec => { @@ -241,7 +241,7 @@ if (ref.length) html += `

Benchmark reference

${ref.map(a => chip(a.id, a.label, on(a.id), `title="${esc(a.summary || '')}"`)).join('')}
`; html += `

Under evaluation

${vocab.filter(a => a.kind === 'evaluated').map(a => chip(a.id, a.label, on(a.id), `title="${esc(a.summary || '')}"`)).join('')}` + rec.customAgents.map((p, i) => `${chip('custom-' + i, 'custom', on('custom-' + i))}${button('', `data-remove-custom-agent="${i}" aria-label="Remove custom agent ${i + 1}"`, 'nb-remove')}`).join('') - + button('+ Custom agent', 'id="nb-add-custom-agent"', 'nb-subtab') + '
'; + + 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 ? `

Harbor built-in

${builtin.map(a => chip(a.id, a.label, on(a.id), `title="${esc(a.summary || '')}"`)).join('')}
` @@ -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 `

${head}

${picked ? 'Open ' + esc(picked.name) : 'Choose its tasks'}
` + choice; + return `

${head}

${picked ? 'Open ' + esc(picked.name) : 'Choose its tasks'}
` + choice; } // a dataset's proofs as its card shows them: its controls, then whether its ids are stable and nothing leaks const datasetChecks = (b, x) => (x.controls || []).map(c => controlChip(c)).join('') + checkChip('stable', (x.proofs || {}).units, (x.failed || {}).units, 'the same ids twice, each unique') @@ -961,7 +961,7 @@ ...(on && !picked ? [tile({attr: 'std-family-set', key: on, data: was + ` data-in="${esc(x.id)}"`, on: true, title: on})] : [])]; const page = `/benchmarks/${encodeURIComponent(b.key)}/tasks/${encodeURIComponent(picked ? picked.of.id : whole.id)}`; const head = C.datasetsOf(rec).length > 1 ? esc(whole.label) + ': which tasks?' : 'Which tasks?'; - return `

${head}

${picked ? 'Open ' + esc(picked.label) : 'Choose its tasks'}
` + return `

${head}

${picked ? 'Open ' + esc(picked.label) : 'Choose its tasks'}
` + `
${own.join('')}
` + (yours.length ? `
${yours.join('')}
` : ''); } // 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 `

${C.datasetsOf(rec).length > 1 ? esc(x.label) + ': start with' : 'Start with'}

` - + (ids ? `` : '') + + (ids ? `` : '') + `
${tiles.join('')}
`; } // 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')}

${esc(blocked)} ${button('Model step','data-step="'+S.model+'"','nb-inlinebutton')} · ${button('Settings','data-href="/settings#'+C.needsOf(C.choiceOf(rec))+'"','nb-inlinebutton')}

`; + if(blocked)return `
${button(' Run on '+esc(where),'id="nb-run" disabled data-held title="'+esc(blocked)+'"','nb-button nb-primary')}

${esc(blocked)} ${button('Model step','data-step="'+S.model+'"','nb-inlinebutton')} · ${button('Settings','data-href="/settings#'+C.needsOf(C.choiceOf(rec))+'"','nb-inlinebutton')}

`; if(C.isStandard(rec)){ const out=runnerOut||{errors:[{message:'Compiling the recipe…'}]}, noun=C.isStandard(rec)?unitsOf(rec).noun:'item'; - return `
${(out.errors||[]).length?(runnerOut?[]:out.errors).map(e=>`

${esc(e.message)}

`).join(''):`
${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.

`:'')}
`; + return `
${(out.errors||[]).length?(runnerOut?[]:out.errors).map(e=>`

${esc(e.message)}

`).join(''):`
${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 `
${plan.errors.length?plan.errors.filter(e=>!listed.includes(e)).map(e=>`

${esc(e)}

`).join(''):`
${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.

`:'')}
`; + return `
${plan.errors.length?plan.errors.filter(e=>!listed.includes(e)).map(e=>`

${esc(e)}

`).join(''):`
${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=>`
  • ${esc(x.label)}${x.detail?` ${esc(x.detail)}`:''}${x.state==='missing'&&x.install.length?`${x.install.map(esc).join('
    ')}
    `:''}
  • `).join(''); const head=prereqHead(out,prereq.busy,$('#nb-run')); el.innerHTML=`

    Prerequisites

    ${head}${button('Check again','id="nb-prereq-again"'+(prereq.busy?' disabled':''),'nb-inlinebutton')}
    ` @@ -1328,7 +1328,7 @@ +out.machines.map(m=>`
    ${out.machines.length>1?`${esc(m.label)}`:''}
    `).join(''):''); const b=$('#nb-run'); if(b&&!b.hasAttribute('data-held'))b.disabled=!(out&&out.ready&&!prereq.busy); } - const say=(t,cls='')=>{const el=$('#nb-runstate');if(el){el.textContent=t;el.className='nb-note '+cls;}}; + const say=(t,cls='')=>{const el=$('#nb-runstate');if(el){el.textContent=t;if(cls==='nb-error')el.insertAdjacentHTML('afterbegin',' ');el.className='nb-note '+cls;}}; async function testHost(entry){ if(entry==='local')return; const out=$('#nb-hosttest'), st=root.querySelector(`[data-host-state="${CSS.escape(entry)}"]`); @@ -1337,10 +1337,10 @@ // only what can stop this recipe there: docker for a Harbor run, docker or podman for the standard's container backend (uv is installed when missing) const rec=r(),harbor=rec.harness==='harbor',needsEngine=harbor||(C.isStandard(rec)&&rec.backend==='container'); const engine=harbor?(j.docker?'docker':null):j.engine,engineOk=engine&&j[engine+'_ok']; - out.textContent=!j.ok?'✕ '+(j.error||('HTTP '+res.status)):needsEngine&&!engineOk?'✓ Connected · ✕ '+(engine?engine+' not usable by this user':(harbor?'docker':'docker or podman')+' missing')+': this run needs it':'✓ Connected'; + out.innerHTML=!j.ok?' '+esc(j.error||('HTTP '+res.status)):needsEngine&&!engineOk?' Connected · '+esc((engine?engine+' not usable by this user':(harbor?'docker':'docker or podman')+' missing')+': this run needs it'):' Connected'; if(st){st.textContent=j.ok?'connected':'unreachable';st.className='nb-state nb-hoststate '+(j.ok?'':'warn');} if(j.ok&&C.isStandard(r())&&optionNeeds(r()).host.length)hostReq(entry,'check'); // and what the chosen search needs of it - }catch(e){out.textContent='✕ '+e;} + }catch(e){out.innerHTML=' '+esc(e);} } async function startRun(){ // Each Run is a new job: the recipe's name plus the second, so a second press does not resume the first (Harbor refuses a job directory whose config differs and resumes one whose config matches). @@ -1356,9 +1356,9 @@ const b=$('#nb-run'); b.disabled=true; say('starting…'); try{ const res=await nulliusFetch('/run',{method:'POST',headers:{'Content-Type':'application/json','X-CSRF-Token':schema.csrf},body:JSON.stringify(body)}); - const j=await res.json(); if(!j.ok){say('✕ '+(j.error||('HTTP '+res.status)),'nb-error');b.disabled=false;return;} + const j=await res.json(); if(!j.ok){say((j.error||('HTTP '+res.status)),'nb-error');b.disabled=false;return;} location.href=j.open||'/runs?view=launch'; // the Runs page, by launch: this launch's runs - }catch(e){say('✕ '+e,'nb-error');b.disabled=false;} + }catch(e){say(e,'nb-error');b.disabled=false;} } // The button says it is reading until the answer's toast replaces it: a toast alone would be gone before a slow answer. async function refreshRegistry(){const b=$('#nb-refresh'),label=b.textContent;b.disabled=true;b.classList.add('nb-loading');b.setAttribute('aria-busy','true');b.textContent='Reading Harbor’s catalogue…';try{const response=await nulliusFetch('/new-run/registry');if(!response.ok)throw Error();const data=await response.json(),names=[...new Set([...schema.datasets.map(d=>d.registry),...schema.seenRegistry,...(data.names||[]),...(data.hub||[])])].filter(Boolean);$('#nb-registry').innerHTML=names.map(n=>``).join('');status(names.length+' catalogue references available. You can also enter one directly.');}catch{status('Catalogue refresh unavailable. Existing references and custom entry still work.');}finally{if(b.isConnected){b.disabled=false;b.classList.remove('nb-loading');b.removeAttribute('aria-busy');b.textContent=label;}}} diff --git a/app/static/catalogue/catalogue.css b/app/static/catalogue/catalogue.css index b357b2f90..ba7561575 100644 --- a/app/static/catalogue/catalogue.css +++ b/app/static/catalogue/catalogue.css @@ -381,8 +381,6 @@ a.std-need { font-size: .78rem; color: var(--text-dim); text-decoration: underli .kit-check-heading { cursor: pointer; list-style: none; } .kit-check-heading::-webkit-details-marker { display: none; } -.kit-check-heading::before { content: '›'; display: inline-block; transition: transform .15s; } -.kit-check[open] > .kit-check-heading::before, .kit-shared-source[open] > .kit-check-heading::before { transform: rotate(90deg); } .kit-check-source { margin-top: 16px; min-width: 0; } .kit-check-source h3, .kit-check-source h4 { margin: 12px 0 6px; font-size: 13px; text-transform: none; letter-spacing: normal; } .kit-check-source small { font-weight: normal; color: var(--text-dim); } diff --git a/app/static/compare/columns.js b/app/static/compare/columns.js index 71a1f1468..5898f92d3 100644 --- a/app/static/compare/columns.js +++ b/app/static/compare/columns.js @@ -16,6 +16,7 @@ window.NulliusCompare = { entry(node, r) { const span = (cls, text) => { const s = document.createElement('span'); s.setAttribute('class', cls); s.textContent = text; return s; }; const line = span('run-line', [r.agent, r.model].filter(Boolean).join(' · ')); + line.insertAdjacentHTML('afterbegin', ''); if (r.check) line.appendChild(span('chip-control', 'check')); if (r.shards > 1) line.appendChild(span('run-shards', `${r.shards} shards`)); node.textContent = ''; diff --git a/app/static/compare/comparison.css b/app/static/compare/comparison.css index a8f2a5595..a236f5b5d 100644 --- a/app/static/compare/comparison.css +++ b/app/static/compare/comparison.css @@ -35,7 +35,8 @@ .run-list [role="option"]:not([aria-disabled="true"]):hover, .run-list [aria-selected="true"] { background: var(--surface-2); } .run-list [aria-selected="true"] { box-shadow: inset 2px 0 0 var(--accent); } .run-list [aria-disabled="true"] { opacity: .45; cursor: default; } /* another column's run */ -.run-list [aria-checked="true"] .run-line::before { content: "✓ "; color: var(--accent); } /* this column's run */ +.run-check { display: none; } +.run-list [aria-checked="true"] .run-check { display: inline-block; color: var(--accent); } /* this column's run */ .run-sep { border-top: 1px solid var(--border-soft); margin: .25rem 0; } .run-sep.labelled { padding: .4rem .5rem .1rem; color: var(--text-faint); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; } /* a summary cell's difference from the baseline, in the row's unit */ @@ -147,8 +148,8 @@ .fig-head .menu legend { float: none; } /* a group of links: its name above them */ .fig-head .icon-btn { flex: none; margin: calc((var(--tool-h) - 26px) / 2) 0 0 auto; } /* centred on the first row */ .ic-letter { display: inline-grid; place-items: center; font: 600 .8rem/1 var(--sans); } /* a letter in an icon's place */ -.fig-head .tools-menu a::before { content: ""; flex: 0 0 1em; text-align: center; color: var(--accent); } /* every item keeps the check's slot, so the names align */ -.fig-head .tools-menu a[aria-current="true"]::before { content: "✓"; } /* the card's style or metric */ +.fig-head .tools-menu a .ic { flex: none; color: var(--accent); } /* every item keeps the check's slot, so the names align */ +.fig-head .tools-menu a:not([aria-current="true"]) .ic { visibility: hidden; } /* the card's style or metric */ .fig-note { margin: 0; font-size: .84rem; color: var(--text-dim); } /* the flag filters: one list of flagged tasks set aside in every column */ .compare-flags{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin:.6rem 0} diff --git a/app/static/onboarding.js b/app/static/onboarding.js index c5fae282e..0a03d81f4 100644 --- a/app/static/onboarding.js +++ b/app/static/onboarding.js @@ -40,8 +40,8 @@ ${sections.map((s, i) => { const subs = s.subs, done = sectionDone(s), next = subs.find(x => !isDone(x)), open = s === cur || location.pathname === new URL(s.url, location).pathname; return `
    - - ${open ? `` : ''} + + ${open ? `` : ''}
    `; }).join('')}
    Click a step: Nullius opens its page and points at what to do.
    @@ -92,7 +92,7 @@ const d = document.createElement('dialog'); d.className = 'onb-dialog'; d.setAttribute('aria-labelledby', 'onb-w-h'); - d.innerHTML = ` + d.innerHTML = `

    Welcome to Nullius. Want a guided start?

    A one-minute look at the main pages, then a checklist that takes you to a first result:

    diff --git a/app/static/runs/live-board.js b/app/static/runs/live-board.js index 4a3d30cba..afbd6d5f7 100644 --- a/app/static/runs/live-board.js +++ b/app/static/runs/live-board.js @@ -245,7 +245,7 @@ ${t.total_sec != null ? `${clock(t.total_sec)} in all` : '—'} ${has.steps ? stepsCell(t, false) : ''}${has.calls ? callsCell(t) : ''} ${has.tokens ? `${count(tok)}` : ''} - ${has.line ? `${line ? redacted(line) : '—'}` : ''}${href ? `Open →` : ''}`; + ${has.line ? `${line ? redacted(line) : '—'}` : ''}${href ? `Open ` : ''}`; }).join(''); const said = [busy ? (opts.showAll ? `All ${running.length} in flight` : `${rows.length} of ${running.length} in flight`) + ', nearest their limit first' : '', waits ? (opts.showAll ? `all ${queued.length} queued` : `the first ${queuedRows.length} of ${queued.length} queued`) : '', @@ -295,7 +295,7 @@ ${facts.length ? `
    ${facts.map(([k, v, f]) => `
    ${k}
    ${f(v)}
    `).join('')}
    ` : ''}
    events.jsonl, latest${events.length} in the tail
    ${events.length ? events.map(e => `
    ${hms(e.ts)}${esc(e.event)}${redacted(e.phase || e.outcome || e.activity || e.line || '')}
    `).join('') : '
    —
    '}
    - ${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 r.record %}{{ r.record.passed }}{% if r.older_kit %}newer kit: worth running again{% endif %} {%- else %}{{ r.state }}{% endif %} @@ -75,7 +75,7 @@

    Source

    {% 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 @@

    Give this recipe a name.

    -
    +
    diff --git a/app/templates/builder/recipes.html b/app/templates/builder/recipes.html index 5c09c6525..85ec9a04a 100644 --- a/app/templates/builder/recipes.html +++ b/app/templates/builder/recipes.html @@ -38,7 +38,7 @@ {%- endif %} {% endcall %} {% else %} -
    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 @@

    Nullius limitations

    {{ p.title }}

    {{ p.authors_short }}

    {{ p.venue }}

    -
    {% if p.url %}Read the paper ↗{% endif %}
    +
    {% if p.url %}Read the paper {% endif %}
    {% 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 @@ {% set n = loop.index %} @@ -154,7 +154,7 @@ {%- if card.axes|length == 1 %}{% else %}{% endif %}{{ axis.label }}
    @@ -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 @@

    Loading…

    - Open trials side by side → + Open trials side by side

    diff --git a/app/templates/compare/compare_task.html b/app/templates/compare/compare_task.html index 16a9aefd2..361639441 100644 --- a/app/templates/compare/compare_task.html +++ b/app/templates/compare/compare_task.html @@ -45,7 +45,7 @@

    {{ p.job.agent_label or p.job.job_id }}

    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 %}

    {{ p.selection.workspace_label }}

    @@ -269,7 +269,7 @@

    Tool calls

    {{ c.step_id }} {{ c.category }} {{ c.target or '—' }} - {% if c.failure %}× {{ c.failure }} + {% if c.failure %} {{ c.failure }} {%- else %}ok{% endif %} {% endfor %} diff --git a/app/templates/error.html b/app/templates/error.html index 13b391377..feee5d15e 100644 --- a/app/templates/error.html +++ b/app/templates/error.html @@ -4,5 +4,5 @@ {% block title %}{{ title }} — Nullius{% endblock %} {% block body %} {{ page_head(title) }} -

    ← Runs

    +

    Runs

    {% endblock %} diff --git a/app/templates/runs/_execution.html b/app/templates/runs/_execution.html index c4a424bd8..1d8e4380d 100644 --- a/app/templates/runs/_execution.html +++ b/app/templates/runs/_execution.html @@ -27,7 +27,7 @@ {% set sp = ex.stages() %}
      {% for st in sp.stages %} -
    1. {{ st.label }} +
    2. {{ 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 %}
    3. {% 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 %} {% endfor %} diff --git a/app/templates/runs/index.html b/app/templates/runs/index.html index 1b83ab331..1eebcba62 100644 --- a/app/templates/runs/index.html +++ b/app/templates/runs/index.html @@ -30,14 +30,14 @@ {%- if j and j.runner %} {{ what_ran(j) }}{% elif j and j.agent_version %} {{ j.agent_version }}{% endif %} {%- endif %} {%- if part == 'fold' %} - {{ r.shards|length }} shards{% if r.note %} · ⚠ {{ r.note }}{% endif %} + {{ r.shards|length }} shards{% if r.note %} · {{ r.note }}{% endif %} {%- else %} {{ r.job_id }}{% endif %}
    {% if part == 'fold' %}{% endif %} {%- endif %} {%- if kind == 'control' %} {{ r.state }} -
    - {%- if v %}{{ v.label }}{% else %}{{ 'must reject every task' if r.control == 'nop' else 'must pass every task' }}{% 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 %} - {% if part != 'fold' and r.state != 'not in this workspace' and not r.twice %}{{ 'Open to resume' if r.state == 'paused' else 'Open →' }}{% endif %} + {% if part != 'fold' and r.state != 'not in this workspace' and not r.twice %}{{ 'Open to resume' if r.state == 'paused' else 'Open' }}{% if r.state != 'paused' %} {% endif %}{% 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." %} - {{ v.label }} + {{ v.label|replace(' ✓', '')|replace(' ⚠', '') }}{% if v.label.endswith('✓') %} {% elif v.label.endswith('⚠') %} {% endif %} — — {% elif j.scored_only %} @@ -256,7 +256,7 @@

    {{ 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. #} - {%- if j.n_regressions %}⚠ {{ j.n_regressions }} + {%- if j.n_regressions %} {{ j.n_regressions }} {%- elif j.reports_regressions %}0 {%- else %}—{% endif -%} 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 %}
    {% if judgement and judgement.causes %} -
    Judge causeAll▾ +
    Judge causeAll
    {% for cause, n in judgement.causes %}{{ cause }}{{ n }}{% endfor %}
    {% endif %} {% if judgement and judgement.flags %} -
    FlagAll▾ +
    FlagAll
    {% for f, n in judgement.flags %}{{ f }}{{ n }}{% endfor %}
    @@ -508,7 +508,7 @@

    Trials

    {% if m %}{{ m.mean|secs }}{% else %}—{% endif %} {%- endfor %} - → + {%- endif %} {%- set jr = judgement.by_trial.get(t.trial_name) if judgement else none %} @@ -549,7 +549,7 @@

    Trials

    {%- if t.p2p_pass or t.p2p_fail -%} {{ t.p2p_pass }}/{{ t.p2p_fail }} - {%- if t.is_regression %} ⚠{% endif -%} + {%- if t.is_regression %} {% endif -%} {%- else %}—{% endif -%} {% endif %} {{ used|tokens(job.kind) }} @@ -557,7 +557,7 @@

    Trials

    {{ t.dur_env|secs }} {{ t.dur_agent|secs }} {{ t.dur_verifier|secs }} - {% if url %}→{% endif %} + {% if url %}{% endif %} {% 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 @@
    -
    No run yet?Build one
    +
    No run yet?Build one
    diff --git a/app/templates/runs/start.html b/app/templates/runs/start.html index bcac19148..b078704a2 100644 --- a/app/templates/runs/start.html +++ b/app/templates/runs/start.html @@ -14,13 +14,13 @@

    Build a run

    Choose a benchmark, an agent and a model. Follow the results here.

    - Open run builder + Open run builder

    Import results

    Bring in ATIF trajectories or OpenTelemetry exports.

    - Choose files or folder + Choose files or folder
    @@ -33,12 +33,12 @@

    Or open a workspace

    {% endfor %} - {% if workspaces|length > 6 %}All {{ workspaces|length }} workspaces →{% endif %} + {% if workspaces|length > 6 %}All {{ workspaces|length }} workspaces {% endif %} {% endif %} diff --git a/app/templates/settings/data_providers.html b/app/templates/settings/data_providers.html index 2e3654409..7b678bef8 100644 --- a/app/templates/settings/data_providers.html +++ b/app/templates/settings/data_providers.html @@ -1,7 +1,7 @@

    Data providers

    {% if writable %}{% endif %}
    - + {% macro logo(key) %}{% if key == 'huggingface' %}{% else %}{% endif %}{% endmacro %} {% if not writable %}
    Read-only from here. Settings are written from a browser on the application host only.
    @@ -108,7 +108,7 @@ {% macro provider_logo(key, title='Custom') %}{% if key == 'typesafe' %}{% elif key.startswith('custom') %}{% else %}{% endif %}{% endmacro %} - + {% 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 %}
    {% for r in j.cards %}
    -
    {{ r.label }}{% if r.warnings %} ⚠{% endif %}
    +
    {{ r.label }}{% if r.warnings %} {% endif %}
    {% if r.answer %}
    {{ r.headline }}{{ r.unit }} {{ pill(r) }}
    {% if r.type == 'score' %}{{ r.pill }}{% else %}{{ r.blurb }}{% endif %}
    @@ -50,7 +50,7 @@

    - {{ r.label }}{% if r.warnings %} ⚠{% endif %} + {{ r.label }}{% if r.warnings %} {% endif %} {% if r.answer %}{{ pill(r) }}{% else %}not judged{% 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 %} diff --git a/app/templates/traces/artifact.html b/app/templates/traces/artifact.html index b11418dcf..d7a2afd73 100644 --- a/app/templates/traces/artifact.html +++ b/app/templates/traces/artifact.html @@ -4,7 +4,7 @@ {% block crumb %}/ runs / {{ job.job_id }} / {{ trial.task_base }} / artifacts{% endblock %} {% block body %} {% set download = url_for('artifact_download', job_id=job.job_id, trial_name=trial.trial_name, key=artifact.key, workspace=request.args.get('workspace')) %} -

    ← Artifacts

    +

    Artifacts

    {% set sub %}{{ artifact.filename }} · source record · credential-shaped values redacted{% endset %} {{ page_head(artifact.label, sub=sub) }} {% if artifact.truncated %}

    This record exceeds the viewer’s 16 MiB limit. The first portion is available here; the original file is intact.

    {% endif %} diff --git a/app/templates/traces/trial.html b/app/templates/traces/trial.html index 9242d2228..643fa979a 100644 --- a/app/templates/traces/trial.html +++ b/app/templates/traces/trial.html @@ -163,8 +163,8 @@

    Tool calls

    Against the gold patch

      - {% for f in loc.hit %}
    • ✓ {{ f }}
    • {% endfor %} - {% for f in loc.missed %}
    • × {{ f }} — in the gold patch, never edited
    • {% endfor %} + {% for f in loc.hit %}
    • {{ f }}
    • {% endfor %} + {% for f in loc.missed %}
    • {{ f }} — in the gold patch, never edited
    • {% endfor %} {% for f in loc.extra %}
    • {{ f }} — edited, not in the gold patch
    • {% endfor %}

    The gold patch is a correct answer, not the only one.

    @@ -219,7 +219,7 @@

    {{ job.runner }}'s score gives the {% if fell_short %}
    {% if trial.is_regression %}
    -

    ⚠ This patch broke {{ trial.p2p_fail }} previously-passing test{{ '' if trial.p2p_fail == 1 else 's' }}

    +

    This patch broke {{ trial.p2p_fail }} previously-passing test{{ '' if trial.p2p_fail == 1 else 's' }}

    These passed before the patch was applied and fail after it — a regression, not just a missed fix.