Repository navigation
feat(standard): show a running task's steps of its limit and score a task cut at a limit - #340
Open
pierreleca wants to merge 13 commits into
Open
pierreleca wants to merge 13 commits into
pierreleca wants to merge 13 commits into
Conversation
This was referenced Nov 24, 2026
Closed
pierreleca
force-pushed
the
feat/step-progress-scored-cuts
branch
from
November 24, 2026 11:11
9c79a43 to
fb2ed39
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.
… file While a task runs through the computer port, nothing outside the bridge knows how many steps it has taken of its budget, nor what ended the loop. Given a path, the bridge now keeps a small progress file there: the steps taken, the budget, what ended the loop (done, fail, steps, or turn when the agent's turn ended first) and the calls waiting at the desktop. It is rewritten whole through a part file at each change, and a write that fails leaves the task as it is. OSWorld1's runner and the computer kit's driver give the bridge a path inside the trial and name it in setup's reply as progress. Their score's detail says the last count: steps, steps_limit and ended.
… live feed The live feed of a standard run says a unit's phase and, at its end, its totals; while the unit runs it says nothing of how far its agent is. A setup may now name a progress file inside the trial (progress), as the computer port's drivers do. One thread of the run reads, every 5 seconds, each running unit's progress file and the lines its relay added to the record of its agent's calls. When a value changed it sends trial.progress: the steps and their limit, the model calls answered and the run's cap on them, the tokens and the cost. A unit's last counts go out before its end. A progress file is read only inside the trial, without following a link, up to 4 KB; one that is missing, half written or unreadable gives nothing and is no error. The board's fold keeps the three new counts beside the step and leaves them out of a snapshot whose feed never sent one.
…alls The board's table gave a running trial's step as a bare number, and its time as "of —" or "of no limit" for a phase with no limit. Where the feed gives a step limit, the Steps cell now reads "N of LIMIT steps" with a bar while the trial runs; a Model calls column appears once a trial reports calls, with the run's cap when it has one. The drawer says the same, and a phase with no limit shows its time alone. A feed without these counts draws as before. A long task name now wraps in its cell instead of being cut: the wider row keeps to the table's box.
…ts limit A trial's page called the items of the agent's session its steps. On a benchmark that counts steps itself, such as OSWorld through the computer port, that number is not the steps the benchmark counted against its limit. Where the score's detail gives both steps and steps_limit as whole numbers, Steps now reads "N of LIMIT" from them, and the session's items keep a card of their own under that name. Any other trial shows Steps as before.
OSWorld scores a task at its step limit as the desktop then stands, and Nullius gave no score to a unit that the agent's time or the run's cap on model calls cut short. A benchmark whose loop can be ended from outside may now name the cuts it scores in limits.scored_cuts: time, the agent's time running out; calls, the cap refusing the agent's next model call; end, the agent's turn going on 60 seconds after the progress file says the benchmark's own loop ended. At such a cut the agent's turn is cancelled as at a timeout, and the unit goes on to its score. Its result records the cut as standard.cut. A time run out while the provider refused the agent's last call, and a unit where nothing moved, no call was answered and no step was counted, stay errors as before; so does every cut a benchmark does not declare. The run's record says what ended the agent's work (ended_by): the cut, else the benchmark's own end from its score's detail. The score is read inside the trial without following a link, up to 1 MB. runs show prints it, and the parse's cache shape moves on by one.
A trial scored after a cut reads like any other on the pages: nothing says whether its agent ended its own turn, the benchmark's loop ended it, or the agent's time or the cap on model calls cut it. The trial's page and its row in the job's table now name that end beside the outcome: Agent, Done, Fail, Step limit, Time limit, Call cap or Task end. A trial that says none of them shows nothing more.
…lls or after its end OSWorld scores a task that reaches its step limit as the desktop then stands. Through the computer port, a task whose agent ran out of its 2 hours, or whose run's cap of model calls refused the next call, got no score, and an agent that went on talking after the task ended held its unit until the timeout. OSWorld1 now declares all three cuts as scored, at both of its versions. Its good-to-know says so, and its limitation no longer counts the agent's turn among the phases that leave a task with no score. The generated page follows.
A driver's score may name what ended its loop in its detail, and the pages showed only the ends they have labels for. A benchmark whose loop ends another way (its launcher stopping the trial, say) left the job's and the trial's pages silent about it, or showing the end of the turn that came after. Any other text of detail.ended now reads as the benchmark wrote it, in the same place as the known ends, before a turn cut after the benchmark's end. The value is redacted before the parse keeps it, since a workspace caches it. It is kept whole: past 40 characters the pages show a short form, with the whole text in its tooltip.
pierreleca
force-pushed
the
feat/step-progress-scored-cuts
branch
from
November 24, 2026 13:55
fb2ed39 to
c0abb4a
Compare
…ored-cuts OSWorld1's good-to-know keeps main's cut of the computer port's line; this branch's line on scored cuts and its words on the agent's time stay. The supported page follows the entry. The score row of the standard keeps main's words on the detail and adds the steps, their limit and what ended the loop after them. The parser keeps main's detail reader beside what ended the work, and the trial's page passes both the steps of the limit and main's detail. 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 end of the work.
…its failure analysis A trial that fell short lists its score's detail on its Failure analysis tab, without the numbers its head already shows. The head now also shows the benchmark's steps of their limit and what ended the work; the tab repeated them as Steps, Steps limit and Ended.
…nce each The rows this branch added told how the pages draw each value and retold the runner's code. Each now says what the field or the cut is. The section on a unit cut at a limit keeps two sentences and its three cuts, and OSWorld1's entry one sentence. The row on a run with no cap of calls goes: it said nothing this branch changes.
…r's score reader The trial's page opened its score file whole and followed links to read the steps and their limit. The parser now reads a score's detail bounded, without links, and redacted; the page reads the two numbers from it.
…elds The job document's test rebuilds each trial's fields from the parsed job, with the labels the reader adds. This branch adds `ended_label` to them; the test now adds it too.
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 #339
What
While a task runs through the computer port, no page says how far it is. A task cut by the agent's time or the cap on model calls gets no score. OSWorld scores a task at its step limit.
progress) and give the last count in the score's detail.trial.progresson a change. The board shows "N of LIMIT steps" and Model calls; the trial's page, Steps as "N of LIMIT".limits.scored_cuts:time,calls, andend(the turn going on 60 seconds after the benchmark's loop ended). The turn is then cancelled as at a timeout and the unit scored; the result recordsstandard.cut. A time run out under refused calls, and a unit where nothing moved, stay errors. OSWorld1 declares all three.nullius runs showname what ended the agent's work, a driver's own word redacted and shortened past 40 characters. A trial's Failure analysis leaves out the steps and the end its head shows.Touches
the standard · backend · routes · templates and static · catalogue · docs and site
Before and after
The pages: the job's page while a task runs (steps of the limit, model calls); the trial's page (Steps "2 of 60", "Done"); the job's page of a task cut by its time ("Time limit").
main)Verified
main: 2,907 and 694 tests against 2,872 and 688; no module fails that passes onmain.git diff --checkis clean; the judge's own checks pass offline.main, one OSWorld1 task (osworld1@044bc33, scripted model):trial.progresscame as it ran (steps 0, 1, 2 of 60). The board data, the job's table and the trial's page say 2 of 60 steps, 2 calls and "Done".--timeout agent=30and a scripted model that never ends: cut after 3 steps and scored,standard.cutistime, both pages say "Time limit".Risk
For OSWorld1 alone, a cut task now gets a score and counts in the job's mean. Both drivers change with no new version; earlier proofs stay accepted. A missing or unreadable progress file gives no count and no error. Cached jobs are parsed again once. Revert to undo.