Skip to content

feat(standard): list a dataset's tasks, keep named task sets and run one with --set - #352

Merged
aitianshi merged 45 commits into
ThinkFlowLab:mainfrom
pierreleca:feat/task-sets-and-pages
Nov 27, 2026
Merged

aitianshi merged 45 commits into
ThinkFlowLab:mainfrom
pierreleca:feat/task-sets-and-pages

Conversation

@pierreleca

@pierreleca pierreleca commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #351

What

  • Before: no listing without a run; no named lists.
  • standard units: a dataset's tasks by search and category, its driver given to: driver secrets.
  • describe: each task's text and category (five benchmarks); driver.list_command: no driver environment.
  • set: named, frozen lists of a dataset's tasks; --sample N draws at random.
  • run --set NAME, here or on a host; jobs record it.
  • Tasks the run's version lacks: refused first.
  • subset_of: a list's parent (OSWorld1's cuts, GAIA's levels).
  • Pages: list, tick, draw, save tasks; a set's page; a job's Save as task set.

Before and after

A benchmark's sets, a dataset's tasks, a dataset not yet listed, the builder's "Which tasks?" and a job's set.

Before (main) After (this branch)
Benchmark page
01-benchmark-page-before

01-benchmark-page-after
Dataset tasks
02-dataset-tasks-before

02-dataset-tasks-after
Builder dataset step
03-builder-dataset-step-before

03-builder-dataset-step-after
Job page save as task set
04-job-page-save-as-task-set-before

04-job-page-save-as-task-set-after
Dataset with no list
05-dataset-with-no-list-before

05-dataset-with-no-list-after

In rows 1, 2 and 5 main has no such page: "Before" shows the place on main where the new part now sits.

Verified

  • Backend 3,144 tests, routes 765: nothing fails that main passes.
  • Listing driver's secrets: in no log, error or cache.
  • 1280, 390 px: no sideways scroll or page error.
  • Generated files, git diff --check, offline judge: clean.
  • OSWorld1 044bc33, scripted model: a --set run.
  • Not run on real data: GAIA's, Open Telco's listings.

Risk

  • New: a user catalogue folder, a listing cache.
  • Cache shape 22: cached jobs reread once.
  • No shared form fits; your call:
    • Tasks page search, pager: server pages of 100.
    • Its save message, in place.
    • Save as task set's popover, the paste box: own frames.
    • Pick at random's count: shared input, small button's height.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5
  • Codex, gpt-6-astra
  • Claude Code, Fable 5.2

@pierreleca
pierreleca force-pushed the feat/task-sets-and-pages branch from c696018 to 2e05244 Compare November 24, 2026 11:21
aitianshi added a commit that referenced this pull request Nov 24, 2026
Closes #379

## What

Before a live feed exists, a run now opens on Logs. Launch stages and
log output live there; the first usable feed switches to Live within the
same document, without reloading. Explicit tab choices are respected.
Restarted stages drop stale timing/detail, terminal executions settle
stage state, and unknown unit totals use an indeterminate bar.

The full-run overview shows identity cards with Runner first, then
Benchmark/Dataset, Agent/Model, and Trials/Duration. Task and All
attempts pages keep their own status and metrics without repeating run
identity.

Task overview cards put timing and Tool calls on the left and Model
usage on the right, stacking on narrow screens. Model usage combines a
compact token bar with Prompt growth when multiple calls were recorded.
Its labels and segments are input, cache, output; input means uncached
input, as its tooltip explains. Cache hit is plain text. Saved trial
totals provide a fallback when trajectory accounting is absent, and
missing usage is stated explicitly.

## Touches

backend · routes · templates and static · tests · field guide

No equivalent open or closed issue/PR was found in the repository or
private fork. Related open work: #336 (run facts), #338 (trial details),
#340 (task step progress). These have shared-file overlap, but implement
separate behavior. After merging main, pairwise merge checks are clean
for #332, #336, #338, #340, #342 and #344. Unmerged #352 and #354 still
require coordination in app/templates/runs/job.html and app/web/runs.py;
their features are not included here.

## Before and after

Task overview: the earlier real-run capture and the approved final
layout from that same saved run. Run identity is now kept on the
full-run overview.

| Before | After |
| --- | --- |
| <img width="430" alt="Earlier task overview with separate growth and
tool sections"
src="https://raw.githubusercontent.com/ThinkFlowLab/nullius/feat/run-logs-tab/app/ui_tests/evidence/run-logs/task-after.png">
| <img width="430" alt="Timing and Tool calls on the left, combined
Model usage on the right"
src="https://raw.githubusercontent.com/ThinkFlowLab/nullius/feat/run-logs-tab/app/ui_tests/evidence/run-logs/model-usage-after.png">
|

Full-run identity cards and Live/Results/Logs:

<img width="860" alt="Full-run overview with Runner first and benchmark,
dataset, agent, model, count and duration cards"
src="https://raw.githubusercontent.com/ThinkFlowLab/nullius/feat/run-logs-tab/app/ui_tests/evidence/run-logs/run-overview-after.png">

## Verified

- Backend suite: 2,856 tests in 173 modules passed after merging current
main outside the socket-restricted sandbox.
- Route suite: 660 tests in 68 modules passed after merging current
main.
- Focused progress and execution tests: 83 passed.
- Browser checks: desktop light/dark and narrow layout; automatic Logs →
Live retains the document and `performance.timeOrigin`; tab selection
and task metrics checked.
- Real τ³-bench Airline task using `meta/muse-spark-1.3-contributor`:
reward 1.0, 55.54 seconds agent time, 22 steps. Recorded uninterrupted
from cold setup through Logs → Live, Results and the task page. The
simulator and judge used `openai/gpt-4.1` because the configured dated
default alias was unavailable. The earlier refused attempt was not
counted as this successful run.
- Field-guide checks: 2 passed. Usage regression cases cover one call,
multiple calls, final metrics, trial totals, unreadable trajectories,
missing usage and output-only records.
- `git diff --check` passed.

## Risk

Feed readiness and polling changes could leave a preparing page on the
wrong tab; explicit choices must not be overridden. A terminal execution
now settles a remaining stage even if its final stage event was absent,
but does not manufacture a duration or unit count. Runs without launch
records have no Logs tab. The overview derives the benchmark from the
catalogue or a single recorded task source. The token summary preserves
existing trajectory cache accounting; partial per-call records can still
describe only the recorded subset. Revert to undo; no storage migration.
Nothing lists a dataset's tasks without running it: a user who wants a
few tasks has to read the upstream's files to find their ids.

A driver may now answer `describe` (each task's title, text and
categories, read from the dataset's files alone) and name a light
command for a listing (`driver.list_command`), which starts with
Python's standard library and never prepares the driver's environment.
`nullius standard units` lists a dataset's tasks from a cache under the
user's cache folder, searched by text and counted by category.
OSWorld1, LongMemEval and LoCoMo declare both.
… --set

A user who runs the same few tasks again keeps their ids in a file of
their own, and the job does not say which group of tasks it ran.

A task set is a named, frozen list of one dataset's tasks in the user
catalogue (`sets/<benchmark>/NAME.json`), with the version of the
benchmark it was made at. `set create` makes one from a file of ids or
from what a listing matches (`--search`, `--category`); `list`, `show`,
`rename`, `delete` and `import` manage them. `run --set NAME` runs a
set's tasks: its dataset is the run's, a task the version lacks is
refused before any unit, and `config.json` records the set. A host
that runs a recipe receives the sets it names. The job parser reads
the set; its cache shape is raised by one.
OSWorld1 declares four lists, three of them cut from the first. The
pages count them as four datasets, though a run of a cut is a run of
some tasks of the whole.

A dataset may name the list it is cut from in `subset_of`: optional,
one level, a list cut from none that holds every unit of this one.
OSWorld1 declares its three cuts of All tasks at both versions. A run
still names the list it runs. The benchmark's page data holds the
field, for the pages to draw.
…one in the builder

A task set can only be made and chosen on the command line, and a
benchmark's lists cut from another show as datasets of their own.

A dataset's tasks page lists its tasks with search and categories,
ticks them and saves them as a task set under a free name; a set's
page renames or deletes it. The benchmark's page lists its task sets,
the benchmark's own cuts first. The builder's Dataset step asks Which
tasks?: all of the dataset or one of its sets, the recipe's `task_sets`
run as `--set NAME`, here or on a host. A benchmark whose lists name
the one they are cut from shows one dataset and its cuts as its own
sets. A job's page saves the tasks of a job as a set. The number of
tasks says it runs all of them when empty and takes that many at most.
…on hover

In the list of a dataset's tasks, a click on a row opened it to show
the task's whole text in place. A person who meets the list wants to
choose the task they click, and an opened row takes room the list needs.

A click anywhere on a row now ticks or unticks it, as its box does. The
box, a link or a button inside a row keeps its own action, and a drag
that selects words in the row ticks nothing. The row stays one line,
its text cut to the width. Its whole text is the row's tooltip, and
while the row's box has the keyboard's focus the whole text shows in
place, since a tooltip shows on hover alone. The tasks page and a new
task set share the list and change together.
…t on focus

In a list of tasks that cannot be changed here, a row's box is disabled
and cannot take the keyboard's focus. The rule that shows a task's whole
text in place on focus could then never apply, and the keyboard reached
no row of the list.

Where its box is disabled, the row's text takes the focus, and the same
rule shows the whole text. The test of the rows now reads the box from
the generated row: an enabled checkbox where the list can be changed,
a disabled one and a text that takes the focus where it cannot.
@pierreleca
pierreleca force-pushed the feat/task-sets-and-pages branch from 2e05244 to a7b8bfd Compare November 24, 2026 13:56
The head of a job's page is a row of cards, and the task set the job
ran stood beside them as loose text. It is now a cell of the Benchmark
and Dataset card, labelled Task set, its value the set's name linked to
its page as before. A job of no set shows no such cell.
The job page's Benchmark and Dataset card is now a card that opens on the
run's options. The Task set cell stays the card's last cell, inside it.
The builder's Limits row keeps main's words, and runs.py keeps main's
identity names beside the task set routes.

Main and this branch each moved the parser's cache shape to 18 for a
different field. It is 19 here: a cache main wrote has no task set.

The header of the run facts tests ended at the page head's end, which
now holds the Save as task set disclosure. It ends before the actions.
The docs are terse: a row says what a thing is in one clause, and a
page keeps its commands and one line a rule. The task set page drops
its tables of detail and of what each page draws; the rows this branch
adds elsewhere keep one clause each, and the builder's Limits row is
main's again.
Main's AGENTS.md no longer lists modules: the two lines this branch
added there for the task set and unit listing modules go with it.

The standard's driver ops table keeps the describe row before main's
setup row, which now names the progress file.

Main added the Limits step's test module too: its program and click
helpers stay as main wrote them, and this branch's two tests of the
number of tasks follow its own.

Main moved the parser's cache shape to 19 for the steps of a running
task; this branch had moved it to 19 for the task set. It is 20 here,
since a cache main wrote has no task set.

A run's recorded standard settings now include the kept model calls:
the test of a run without a set expects them.
Main changed its instructions and templates alone: no file of this
branch is touched, and nothing conflicted.
The pages' rule asks new CSS to place things alone: no font, size or
weight of its own. The task set parts now take the shared forms.

- Quieter and smaller text: .muted and .small, in place of sizes and
  colours of their own.
- The groups' titles on a benchmark's Task sets: h3, unstyled.
- The New task set menu: the tables' menu, .menu and .tools-menu.
- Name and description fields: text inputs in the shared input form.
- The builder's link to a dataset's tasks: .btn, ghost and small.

The same parts, words and places.
A benchmark's Task sets, a dataset's tasks page and saving, renaming or
deleting a set each have a command: the table of pages names them.
@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Nov 25, 2026
@aitianshi

Copy link
Copy Markdown
Collaborator

Making a task set on GAIA and Open Telco: what got in the way

Read at 02a2ffa; the pages were tried by hand.

Blocking

1. No list, so no set, on 8 of 11 benchmarks

  • benchmark_tasks_prepare only starts light listings: LoCoMo, LongMemEval, OSWorld1.
  • "Run the dataset once, then reload" cannot work: a run never writes the listing cache.
  • "List it with the units command" fails for GAIA unless its data are cached: the listing's driver gets no HF_TOKEN.

Suggested:

  • A List questions button in the notice. A click starts the full listing in the existing thread. Not "Download": it also installs the driver's environment.
  • In units.py, give the driver its saved to: driver secrets, as a run does, so nullius standard units works too. This changes the "no licence and no key" rule.
  • Token missing: say so before installing anything, with a link to Settings → Data providers.
  • Until there is a list, hide search. Say what to do in one line: "List the questions to choose from, or paste their ids."

Choosing tasks

2. GAIA and Open Telco list ids alone
Neither driver has a describe. Give each question its text and its category (GAIA: level).

3. GAIA's levels look like separate datasets
All levels already holds the 165 questions of the three. Give the levels subset_of: gaia-validation, so New task set opens All levels.

4. N tasks at random
Today: --limit takes the first ones; any others are ticked or pasted by hand. Suggested: "Pick N at random" on the tasks page, set create --sample N --seed S as its command, the seed in the set's note.

Layout

5. New task set menu: names and counts wrap, and it repeats the buttons beside it (16 on Open Telco). Drop it and keep the buttons.

6. Save form: the inputs are 48 px high, the button 42 px.

.tasks-field input { flex: none; height: 42px; box-sizing: border-box; }

7. Paste ids: opening it moves "0 chosen", Show selected and Clear to the middle of the box, as .tasks-sel centers its items. Open the box on its own line below the row. Hide Show selected and Clear until something is chosen.

8. Empty space: hide .tasks-count and .tasks-msg while they are empty.

Not for this PR: one named set over several datasets (10 tasks of each Open Telco test). A set holds one dataset; a group of sets, one job and one score per dataset, could be its own issue.

Only a benchmark with a light listing command could be listed from the
page; on the others the page said to run the dataset once, which never
writes the listing, and the units command failed on gated data because
the listing's driver got no token.

- A listing's driver gets the benchmark's saved licences marked
  to: driver, as a run's driver does; the command takes a data
  provider's variable from the environment first, as a headless run.
- A licence the dataset's environment needs and none holds refuses the
  listing before anything is fetched or installed; the page links to
  where it is set.
- A listing that needs the driver's own environment starts on a click,
  List tasks (the benchmark's noun), in the thread that prepares the
  light ones; the notice says what it fetches and installs.
- The search shows once there is a list; until then one line says to
  list the tasks or paste their ids.
…l lists

The menu repeated the buttons beside it, one per dataset (16 on Open
Telco), and its names and counts wrapped. Each dataset's button opens
its tasks already; New task set stays for a benchmark with one list to
cut from.
The shared text input grew to 48 px in the form's column of a label and
its field, beside a 42 px button. The fields keep their natural size,
42 px high.
Opened inside the row, the box made it as tall as itself, and the row
centres its items: the count, Show selected and Clear moved to the
middle of the box. The box now opens on its own line below the row.

Show selected and Clear show once a task is chosen; with nothing chosen
they had nothing to act on.
…mpty

Empty, the count line and the save form's message still took their
margins, and the message its line's height: a gap above the table and
under the form.
All levels already holds the 165 questions of the three. Drawn as four
datasets, the levels read as other data; as cuts of All levels they
show as GAIA's own task sets, the builder offers them under All levels,
and New task set opens All levels.
… listings

Neither driver answered describe: their tasks pages listed ids alone,
and a search read the ids.

- GAIA: each question's text, and its level as its category, from the
  metadata its units come from.
- Open Telco: each sample's question, and as its category the value of
  each filter its task takes (TeleQnA's subject, ORANBench's
  difficulty, 6G-Bench's task), from the sample's metadata.
With the save form in view, the save bar is made invisible but keeps
its place. On a dataset with no list yet and nothing chosen, that left
an empty band of about 60 px under the chosen tasks' row. The bar now
shows once a task is chosen, as Show selected and Clear do.
In the benchmark page's own task sets, a version such as
desktop-env-v1.0.3 and the date broke onto two lines. Both cells now
take the shared nowrap class. On a phone the version column is left
out, as the tasks list leaves out its categories, and the cells take
the tasks list's narrower padding: the table fits a 390 px screen
without scrolling.
@github-actions github-actions Bot added merge conflict Conflicts with its base: merge or rebase it and removed needs review Tests pass, no conflict, no verdict on its latest commit labels Nov 25, 2026
Main now counts a dataset in the benchmark's unit whoever runs it, and
writes its last six records through the shared writer. Two files met
this branch's parts.

- recipe.py: the Review's Dataset row names the benchmark's noun for a
  dataset and for a task set alike, since a set counts the dataset's
  tasks.
- command-builder.js: the Dataset step keeps this branch's nested lists
  and Which tasks?, and its cards, the task sets and the cuts all count
  in the benchmark's unit, as main's cards do.
The Dataset step's drawing test cuts the page script from the standard
form to the bounds section, and the step now calls the task set and
nested list helpers. They move, unchanged, into that range, and the
page tests that cut them end at the same place.
…ed writer

Main now writes every record whole through ondisk.write_whole. A task
set's file and a dataset's cached listing were still written beside and
renamed by hand; they take the shared writer too, owner-only as before.
Main now gives every job an identity of its own and moved the parser's
cache shape twice for it. Two files met this branch's parts.

- parse.py: a Job keeps main's uid and its source beside this branch's
  task set, and the cache shape takes the next number after main's.
- docs/standard.md: the merge row says main's uuid of the merged job
  and this branch's refusal of shards that ran other task sets.
Main now writes standard.uuid into every job's config.json. The test
that lists the keys a run without a task set records names it too.
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Nov 26, 2026
@pierreleca

Copy link
Copy Markdown
Contributor Author

All eight are in 6ff9dfee.

  1. A list for every benchmark. A dataset with no list shows "List the questions to choose from, or paste their ids." and a List questions button. The button starts the full listing and says that it installs the driver's environment. The listing's driver now gets its saved to: driver secrets, from the page and from nullius standard units. A missing token is refused before anything is installed, with a link to Settings → Data providers. The search stays hidden until a list exists, and "Run the dataset once" is gone. Since the driver now holds secrets, their values are cut from the listing's log, errors and cache.
  2. GAIA and Open Telco have a describe: each question's text, with its level (GAIA) or its subject (Open Telco).
  3. GAIA's levels are subset_of: gaia-validation; New task set opens All levels.
  4. N at random: set create --sample N [--seed S], and Pick at random on the tasks page through the same code. The seed is kept in the set's note.
  5. to 8. Layout, as you wrote it: the menu is gone, the fields are 42 px, the paste box opens on its own line, Show selected and Clear show only once something is chosen, and the empty lines are hidden.

All eleven benchmarks can now be listed; GAIA needs its token.

Not checked on real data: GAIA's listing with a real token, the two new describe (tested on made-up rows), and a full listing of the other benchmarks.

One set over several datasets: agreed, not in this pull request.

@github-actions github-actions Bot added merge conflict Conflicts with its base: merge or rebase it and removed needs review Tests pass, no conflict, no verdict on its latest commit labels Nov 26, 2026
Main's builder now asks before deleting a saved recipe or starting over
an edited one. Its two new helpers met this branch's task set helpers
in the builder core's exports.

- command-builder-core.js: the exports keep this branch's task set
  helpers and main's atDefaults and deleteAsk.
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Nov 26, 2026
- New task set opens the tasks page; a Dataset select switches the list in place, ticks kept per dataset, saved as one set (parts per dataset, one hash); run --set NAME --dataset D runs a part, the builder runs each
- Task sets section counts the user's sets alone; the dataset cuts stay datasets
- Tasks page: save form on top, choosing row grouped, Show 10/25/100/All, an All pill, a spinner while listing, licences re-read when Settings closes, the header the same for every dataset
- describe gives titles, texts and named categories for GSM8K, HumanEval, SWE-bench Verified, Terminal-Bench, tau3-bench, GAIA, LongMemEval, Open Telco and OSWorld1; units.categories names them on the page and in nullius standard units
@github-actions github-actions Bot added merge conflict Conflicts with its base: merge or rebase it and removed needs review Tests pass, no conflict, no verdict on its latest commit labels Nov 26, 2026
… other points

- A listing's driver gets HF_ENDPOINT, as a run's does
- Two lists cut from one list (GAIA's levels) in one recipe: the builder keeps the first, compile refuses them
- The tasks page: a seed beside Pick at random, refusals in the page's words, no line on starting the driver
- tau3-bench's persona None is named No persona
- The background listing's error is written under its lock; an unused variable gone; the GAIA driver test restores its rows
# Conflicts:
#	app/static/builder/command-builder-core.js
#	app/static/builder/command-builder.js
#	app/static/catalogue/catalogue.css
#	docs/builder.md
@aitianshi

Copy link
Copy Markdown
Collaborator

Updated description, for the commits added on top (f5cb9d5, 0212f59, merge of main c3ad533). Closes #351.

What

  • Before: a set held one dataset; New task set needed a menu; GAIA's levels showed as 3 "task sets".
  • Sets of several datasets: parts {dataset: ids}, one hash. set create --dataset D --units FILE repeated; run --set NAME --dataset D runs one part; the builder chooses every part, a job each. A job records the whole set; set import from it rebuilds it.
  • Tasks page: New task set opens it; a Dataset select switches the list in place, ticks kept per dataset; Chosen pills; Save on top; Show 10/25/100/All; an All pill; a seed for Pick at random; a spinner while listing; Settings closing re-reads a licence.
  • Task sets section: the user's sets alone.
  • describe for GSM8K, HumanEval, SWE-bench Verified, Terminal-Bench, τ³-bench; better titles and filters for GAIA, LongMemEval, Open Telco. units.categories names a filter's values ("App: LibreOffice Calc"), on the page and in standard units.
  • Fixes: listings use the Hugging Face mirror; two lists of one family (GAIA levels) in a recipe refused.

Before and after

Screenshots to add in the browser: the tasks page with Chosen pills, a mixed set's page, the Task sets table.

Verified

  • Backend 3,221, routes 791.
  • Real, gpt-4o-mini, set of TeleQnA Lite 3 + TeleMath Lite 2: CLI (2/3, 0/2, 0.0014 USD) and the app's Review → Run (same scores, 2 jobs, 0.0014 USD).
  • 1280 and 390 px: no reload on a dataset switch, no sideways scroll, no page error.
  • Not checked: Full datasets of Open Telco; OSWorld2 (texts gated).

Risk

  • Set file: a mixed set has datasets and parts; one-dataset sets are unchanged.
  • A changed definition makes its listing again.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: review, fixes, mixed sets, real runs.
  • Claude Code subagents, Opus 5.5: describe for the benchmarks, data survey, code review.

@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Nov 27, 2026
@aitianshi
aitianshi merged commit bedda78 into ThinkFlowLab:main Nov 27, 2026
3 checks passed
@github-actions github-actions Bot removed the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A dataset's tasks cannot be listed, nor a group of them kept and run by name

2 participants