Skip to content

feat(standard): run tasks of an ended job again in it, and begin a planned run on a part - #354

Draft
pierreleca wants to merge 16 commits into
ThinkFlowLab:mainfrom
pierreleca:feat/run-again-and-in-parts
Draft

pierreleca wants to merge 16 commits into
ThinkFlowLab:mainfrom
pierreleca:feat/run-again-and-in-parts

Conversation

@pierreleca

@pierreleca pierreleca commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #353
Depends on #352.

What

Today a task is run again as a new job, and a first try and the full run are two jobs. In order:

  • Run again. nullius standard rerun JOB_DIR runs chosen tasks of an ended job again in it: --unit, --units, --unfinished (no result, cut off by the cap, or stopped), --next N or --set NAME. The new try takes the task's place; earlier ones stay under retried/. One spending cap covers the job: each part has what the parts before it left.
  • Begin on a part. run --start-with N|FILE|set:NAME|ids:A,B plans the whole and begins the part; its end names the command for the rest.
  • The job's page. It runs ticked tasks again where the job ran, here or on its host, and shows what is left of the cap, with Change to raise it. A job begun on a part shows its tasks not run, with Run the rest and Run a set; the live board marks them Queued or Not run.
  • The builder. Start with: all of it, or specific tasks ticked in the tasks list (--start-with ids:...).

The first two commits hold the record and the command line; the three after them hold the pages. The branch can be cut in two between them if the review prefers.

Touches

the standard · backend · execution · routes · templates and static · docs and site

Before and after

The pages to look at: a job's page for its ticks, the question, the cap line with Change and Run the rest; the live board for its Queued and Not run rows; the builder's Dataset step for Start with.

Before (the pull request this one depends on) After (this branch)
Job page
01-job-page-before

01-job-page-after
Live board
02-live-board-before

02-live-board-after
Builder dataset step
03-builder-dataset-step-before

03-builder-dataset-step-after
Run the rest question
04-run-the-rest-question-before

04-run-the-rest-question-after

Verified

  • Both suites on a plain copy, one module a process: backend 180 modules, 3,013 tests; routes 74 modules, 783 tests. Nothing fails that the task sets branch passes.
  • The cache shape moves from 19 to 20.
  • field_contract.py --write and catalogue_docs.py --write change nothing; git diff --check is clean; the judge's own checks pass offline.
  • With a scripted model and no key, on OSWorld1 at 044bc33: two tasks planned and one begun with --start-with 1; rerun --unfinished ran the other in the same job.

Risk

It moves trial folders inside a job (earlier tries into retried/) and rewrites its result.json from its trials, as merge does. Every cached job is read again once. Revert the commits to undo.

@pierreleca
pierreleca force-pushed the feat/run-again-and-in-parts branch from 0e789a5 to 25875d5 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/run-again-and-in-parts branch from 25875d5 to b677f51 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.
A failed task is run again today as a new job, apart from the job that
holds its first result, and an interrupted job cannot be finished.

`nullius standard rerun JOB_DIR` runs chosen tasks of an ended job
again in that job, with its settings: `--unit`, `--units`, or
`--unfinished` for the tasks an interrupted job has no result for. The
new try takes the task's place; the earlier one is kept under
`retried/` and stays readable, and a stopped try puts it back. The
job's record adds each re-run, and the trial's the try asked for. One
spending cap covers the whole job: each later part has what the parts
before it left. The live feed and the job parser read the tries; the
parser's cache shape is raised by one.
A first try on a few tasks and the full run after it are two jobs, and
the full result does not hold the first.

`run --start-with` plans what the run would run without it and begins
a part: the plan's first N units, a file of ids, a task set's tasks
(`set:NAME`) or ids named inline (`ids:A,B`). The feed queues every
planned trial; only the part's begin, each with all its attempts, and
the end says how many of the plan ran and the command for the rest.
`rerun --next N`, `--set NAME` or `--unfinished` runs more of it in the
same job. The job's config records the part, and `runs show` and the
parser read it with the number of tasks run.
… and run the rest of its plan

Running tasks again needs the command line and the machine the job
ran on, and nothing on the pages says that a job planned more than it
ran.

The job's page ticks tasks and runs them again in the job, on this
machine or on the host it ran on: the question asks a reason only for
a task that has a result and shows what is left of the job's one cap,
which Change raises for the next part; Run later lists each later
part. A job begun on a part shows the tasks of its plan not run, with
Run the rest and Run a set; the trial count, the rates and the runs
list say how much of the plan has run. The live board shows a part's
tasks not begun as Queued and the plan's others as Not run, and the
trial's tries name the ones run again by hand.
The builder can run all of a dataset or one of its task sets, and a
first try on a few tasks needs the command line.

The Dataset step asks Start with: all of it, or specific tasks ticked
in the tasks page's list, opened in a dialog over the plan's tasks
(the dataset's, or the set's it runs), with its search and categories.
The recipe's `start_with` runs as `--start-with ids:...`, here or on a
host; Review says what runs first and how many stay for later, and a
tick the plan no longer holds is dropped and said. A recipe that
starts with a number or a set is shown as it is. The listing's options
are bounded in length and depth.
The head of a job's page is a row of cards, and "N of M planned tasks
run" stood beside them as loose text. For a job begun on a part of its
plan it is now the value of the Trials cell, where a job run whole says
how many of its planned trials it holds.
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.
The branch below now holds main, where the job page's Trials and
Duration card opens on the run's limits. The part-run's Trials cell
and the duration of every run of the job stay inside that card. The
score's health list keeps main's planned mean beside the tasks run,
and the outcome menu keeps the Not run and No result entries beside
main's icon button.

Both sides moved the parser's cache shape to 19 for different fields.
It is 20 here.

The test of a job never run again looked for any Retries label; main's
Trials card now names the run's retries. It looks for the column.
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 rerun page keeps its
flags and one line a rule; the job page's section in results.md, the
part's rules in run.md and the rows this branch adds elsewhere keep a
sentence or a clause each.

This branch has not been deployed

No deployments
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 task cannot be run again in its job, nor a run begin on a part of its plan

1 participant