Repository navigation
feat(standard): run tasks of an ended job again in it, and start a planned run with some of its tasks - #354
Open
pierreleca wants to merge 91 commits into
Open
pierreleca wants to merge 91 commits into
pierreleca wants to merge 91 commits into
Conversation
pierreleca
force-pushed
the
feat/run-again-and-in-parts
branch
from
November 24, 2026 11:21
0e789a5 to
25875d5
Compare
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
force-pushed
the
feat/run-again-and-in-parts
branch
from
November 24, 2026 13:56
25875d5 to
b677f51
Compare
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.
pierreleca
force-pushed
the
feat/run-again-and-in-parts
branch
from
November 24, 2026 14:22
b677f51 to
1940a96
Compare
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.
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's AGENTS.md no longer lists modules: the line this branch added there for the rerun module goes with it. The job page's trial table takes main's outcome cell and its stop column; the task name cell keeps this branch's tick and running badge, and the tries column still follows show_tries. The live board keeps main's steps and model call cells beside this branch's queued rows, and a planned trial outside the part running still reads Not run in its detail. The builder keeps main's runnerOutKey beside this branch's drop of start tasks. The run keeps both its by-hand tries and main's kept model calls; the live feed's docstring and the field guide keep both sides' lines. The parser's cache shape was 20 on both sides for different fields: it is 21 here, since a cache the task sets branch wrote has no reruns.
Main now draws every trial's outcome as its number, its square and its outcome in words, and no longer styles the pill this branch used for a task not run or with no result: those rows lost their mark. They take the same cell now, with a dash for the number, and the pill's rules go.
Main's live board now draws its steps as a column of its own, aligned left. A queued row drew its empty steps cell as a plain number cell, aligned right under that heading: it takes the steps column's class.
Main changed its instructions and templates alone: no file of this branch is touched, and nothing conflicted.
The branch below now holds main's latest instructions and templates. Nothing 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.
…s it Written whole, the job's result.json is a new file: a result the run left at 0600 under umask 077 came back 0644 from a rerun under umask 022, where the in-place write had kept 0600. The rerun now gives write_whole the permission bits of the result it replaces, read with stat.S_IMODE, and the umask's for none. The nearby case on linked records sets the result to 0600 under umask 022 and checks that it stays so.
… bound The case on --exchanges off showed the recorded choice reaching a rerun, not the recorded bound: forwarding the 256 MB default in its place left it green. A job run with a bound of 1 MB now has a task that calls the model run again with one call past that size, and its line says cut.
…fter it a later run The main branch uses "part" for a dataset's share of a task set and for a step of a launch. This feature used the same word for a third thing: the tasks a planned run starts with, and each run that continues it in the same job. Three meanings of one word made the code hard to read. The helpers that read a run's start become start_of_plan and start_record, the board's snapshot names the trials of the run under way this_run, and the comments and the test names say "start" and "later run". The three test modules are named after start_with. Main's own uses of "part" stay as they are. The flags, the stored fields and the words a person reads do not change here.
… and in the docs The words a person reads used "part" for the tasks a planned run starts with and for each run that continues the job, beside main's two uses of the word: a dataset's share of a task set and a step of a launch. A job is now "started on some of its plan", its spending cap holds from "the job's next run", and a task first run after the start is a "first run, in a later run of the job". The same words go into the flags' help, the refusals, the run output, the field guide and the run and rerun pages. The heading on run.md is now "Plan the whole, start with some of it", and the links to its anchor follow. The tests that read these words follow too.
…-parts Main now shows a run on a job only when the run's folder for that job is the job's own folder, and drops the lookup by name alone that this branch's run-again and cap routes and the live board's later start still call. The merge itself has no conflict; those callers move to main's lookup in the next commit.
Main now finds the run a job's page shows by the job's own folder and drops the lookup by name alone. The run-again and cap routes and the live board's later start still called that lookup and failed. They now take main's, the job page's own: a job of that name in another folder has no run there and is offered nothing. The offer's own check of the folder is that lookup's rule and goes.
…rted on some of its plan In the interface font, "N of M planned tasks run" made the Trials and Duration card wrap onto a second line of the job page's header at 1280 px. The runs list already words it "N of M tasks run", and the cell's tip still says the job was planned on the whole.
…-parts Main now keeps the keyboard on a choice that redraws its builder step, by a helper around the step's redraw. Its line for the dataset family choices sits next to this branch's dataset toggle, which also drops a start choice with its dataset: the conflict keeps both, the toggle with that call and main's family lines as main has them.
… step redraws The step's redraw now puts the keyboard back on the control drawn in the focused one's place, told by its data attributes. The Specific tasks tile and the Change button above it had the same one, and the Change button came first: closing the task dialog with tasks ticked moved the keyboard from the tile to that button. The tile now names its dataset as the All of it tile does, and the redraw finds it.
… redraw case The case's stand-in step kept a removed button as the active element, so a redraw that left the focus on a button no longer drawn still gave that button's name and passed. Drawn again, the stand-in now moves the focus to the body from a button it removes, as a page does and as the builder's own redraw case does: a helper that leaves the keyboard on a removed button now fails the case.
pierreleca
marked this pull request as ready for review
November 27, 2026 15:18
…-parts Main now lets each model's reasoning be chosen on the builder's Model step and given with --reasoning, and records it with the job. Four files conflict, each where this branch's start choice sits next to a reasoning line of main's: the Review step's model and scope rows, the job record's settings, the choices a new benchmark clears, the builder's exports and the redraw after the server's check. Each keeps main's reasoning lines as main has them and this branch's lines beside them.
A rerun built its runner without the reasoning the job recorded: a job run with --reasoning had its tasks run again, and the later runs of a job started on some of its plan, at the model's own level. The rerun now takes it from the job's record, as it takes the serving providers. The new case runs a pinned job with a level, runs one of its tasks again and finds the same pin and level on every call of the rerun.
…-parts Main now stops a run when the agent's first call overflows the model's context window in three units in a row, as it does for a wrong key, and says that cause in the run's stop line. One file conflicts: run.py, where this branch moved the run's closing lines out of the units' loop into run(). The loop keeps this branch's return of its results, and the moved stop line takes main's wording with this branch's count of the units the run began with. Main's new argument of note_refusal merged cleanly into the unit's end, which a run started on some of its tasks and a task run again both go through.
…ther shape A run records its reasoning as a level for each model. A config.json edited by hand to hold another shape, a plain level for instance, made a re-run end in a traceback when the run was built from it. The re-run now refuses such a job in plain words before any trial moves, as it refuses a merge of shards that differed. An absent or empty reasoning still means none.
…-parts Main now runs a judge beside LoCoMo's F1 when a judge model is named, counts LoCoMo by conversation, opens the server to other machines over an HTTP API, and is released as v0.3.0. Two files conflict. In parse.py both sides bumped the cached shape, this branch to 23 for its re-runs and start choice, main to 24 for the judge's second score: the merge takes 25, as a cache written by either side lacks the other's fields. On the job page both sides added a row after the planned mean: main's second score and this branch's count of the tasks run. Both rows stay, the scores first.
The spending cap's "not run" line listed the units the first run's cap left never begun, and kept listing them after later runs of the job had run some of them. Once a later run has run, the line names the planned tasks that still have no try, the figure the outcome filter gives. A job never run again lists the first run's units as before, and the job's record is unchanged. The new case runs one of those tasks in a later run and finds the line naming only the task left.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #353
What
nullius standard rerun JOB_DIR: an ended job's tasks run again in it, by--unit,--units,--unfinished,--next Nor--set NAME.retried/.run --start-with N|FILE|set:NAME|ids:A,Bplans the whole, starts with some of it and names the command for the rest.rerun --max-usdsets it there.Before and after
A job's ticks, question and tasks not run, the live board's rows, the builder's Start with.
main)Verified
mainpasses.git diff --checkclean, offline judge checks pass.044bc33:--start-with 1of two tasks;rerun --unfinishedran the other in that job.Risk
result.jsonis rewritten from its trials, as bymerge.Agents