Repository navigation
feat(runs): show what identifies a run and its mean over every planned task - #336
Conversation
5ba7978 to
1419972
Compare
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.
|
Please build the job page's header this way, in place of the block of facts under the title. It is the card row of #380, with this PR's facts inside the cards. Closed:
Opened (all three shown at once here; on the page, one at a time):
#380 builds the cards themselves, so the two PRs need to agree on which one lands first. The images are a mock-up with example data. |
…ery trial planned Two jobs can differ in an option that no page shows, and a job stopped early shows only the mean over the trials that ran. The reader now gives each standard job its identity from its config.json and result.json: the benchmark, its version and options; the agent, its version and options; the model and the provider; the serving providers pinned and who served; the limits and caps in force. A fact the job does not record is left out. Every string is redacted, and an option filed under a credential's name keeps its name alone. Token counts are not read as credentials. mean_score_planned gives each trial's score over every trial planned, an unscored one counting 0. The cache shape moves to 18: a job cached before is parsed again.
runs show prints the mean over the trials scored and the mean over every trial planned, and its JSON holds both and the run's identity. Every other field of the document is as before.
…every trial planned The job's page shows the run's facts under its title, named by the labels its definitions give, and the mean over every trial planned beside the mean score and in Run totals. The runs list shows the planned mean under the mean score. The comparison of whole runs adds a row for it; a comparison of matched tasks leaves it out, since a subset of a run has no planned count.
The job page's header is now a row of cards: runner, benchmark and dataset, agent and model, trials and duration. A block of facts under them listed apart what belongs to each card. Each fact now sits beneath the card it belongs to. The benchmark card opens its options; the agent card opens the agent's options, the provider, the serving providers requested and who answered with its call count; the trials card opens the limits and the resource constraints. A card with more to say has a chevron and opens on click or by keyboard, as a disclosure; the cards' disclosures share one name, and the browser keeps one of them open at a time. A card with nothing more stays as it was, and a fact not recorded has no row. The benchmark card takes its name from the benchmark's definition when the run recorded one. The cards are 52px high. On a narrow screen a card opens in the page's flow and pushes the cards below it down.
1419972 to
6e8c03d
Compare
|
Built as asked, on the card row from #380. Benchmark opens its options; Agent and model opens the agent's options, the provider, Requested and Answered by with its call count; Trials and Duration opens the limits and resource constraints. One opens at a time, by click or keyboard; a card with nothing more has no chevron. Every fact found a card. Two things to know: the 52px height changes #380's own card rule, Harbor jobs included, and browsers without |


Closes #335
What
Two jobs can differ in an option that no page shows, and a job stopped early shows only the mean over the trials that ran. The reader now gives each standard job its identity, from its
config.jsonandresult.json: the benchmark and the agent, with their versions and options; the model and the provider; the serving providers pinned and who served; the limits, caps and resource constraints. A fact the job does not record is left out. Every string is redacted, an option filed under a credential's name shows its name alone, and a token count is not read as a credential. It also givesmean_score_planned: each trial's score over every trial planned, an unscored one counting 0.The job's page shows the identity in the header's cards. A card with more to say has a chevron and opens beneath itself, by click or keyboard, one at a time: Benchmark its options; Agent and model the agent's options, the provider, "Requested" (the pin) and "Answered by" (who served, with its calls); Trials and Duration the concurrency, attempts, retries, turns, model calls and time limits. Escape or a click outside closes an open card. With no serving record, the provider stays alone. The planned mean stands beside the mean score, in Run totals, in the runs list and in a comparison of whole runs. A comparison of matched tasks leaves it out, since a subset of a run has no planned count.
runs showprints both means, and its JSON adds the identity.Touches
backend · routes · templates and static · docs and site
Before and after
For a standard job of four trials, one ended on an error: the header's cards closed and each one open (the trials card from another example job), the planned mean beside the mean score, and on Compare the row "Mean over planned".
main)Verified
mainpasses; the backend failstest_settingsalone (no.env.examplein the copy).runs show, the comparison's rows.field_contract.py --writeandcatalogue_docs.py --writechange nothing;git diff --checkis clean; the judge's own checks pass offline.Risk
The cache shape moves from 17 to 18. Every cached job is read again once. The job's page shows a run's options, redacted as its launch record is; a wrong rule there would show a value that should stay hidden. Revert the commits to undo.