Skip to content

feat(runs): show what identifies a run and its mean over every planned task - #336

Merged
aitianshi merged 8 commits into
ThinkFlowLab:mainfrom
pierreleca:feat/job-run-facts
Nov 24, 2026
Merged

aitianshi merged 8 commits into
ThinkFlowLab:mainfrom
pierreleca:feat/job-run-facts

Conversation

@pierreleca

@pierreleca pierreleca commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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.json and result.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 gives mean_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 show prints 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".

Before (main) After (this branch)
Job page
01-job-page-before

01-job-page-after
Compare whole runs
02-compare-whole-runs-before

02-compare-whole-runs-after
Job page benchmark card
03-job-page-benchmark-card-before

03-job-page-benchmark-card-after
Job page agent card
04-job-page-agent-card-before

04-job-page-agent-card-after
Job page trials card
05-job-page-trials-card-before

05-job-page-trials-card-after

Verified

  • Both suites on a plain copy, one module a process: backend 170 modules, 2,833 tests; routes 68 modules, 666 tests. Nothing fails that main passes; the backend fails test_settings alone (no .env.example in the copy).
  • New tests: the identity as a run writes it, its redaction, the planned mean, each card's rows with a fact recorded and without, runs show, the comparison's rows.
  • In a headless browser at 1280 and 390 px: every card 52px high, each opens by click, Enter and Space and closes the open one, no chevron on a card with nothing more.
  • Escape and a click outside close an open card in a headless browser at 1280 and 390 px, on a job with trials and one with none; Escape keeps the trials filter. With main merged in: backend 173 modules, 2,872 tests; routes 68 modules, 672 tests; all pass.
  • field_contract.py --write and catalogue_docs.py --write change nothing; git diff --check is 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.

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.
@aitianshi

Copy link
Copy Markdown
Collaborator

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:

Run header: one row of Runner, Benchmark and Dataset, Agent and model, Trials and Duration cards, all the same height

Opened (all three shown at once here; on the page, one at a time):

The same row with the details of the Benchmark, Agent and Trials cards open beneath them
  • One compact row of cards, all the same height (52px in the mock-up). It wraps on a narrow screen.
  • A card with more to say has a chevron and opens its details on click or by keyboard. Opening one closes the others. A card with nothing more has no chevron.
  • Benchmark opens the benchmark's options.
  • Agent and model opens the agent's options (reasoning, max tokens), the provider, and the serving providers: "Requested" is what was pinned, "Answered by" is who answered, with its call count.
  • Trials and Duration opens the limits: time limits, turns, model calls, attempts, retries, units at a time, and resource constraints.
  • A fact that is not recorded is left out. With no serving record, "Requested" and "Answered by" go and the provider stays.

#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.
@pierreleca

Copy link
Copy Markdown
Contributor Author

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 <details name> let several cards stay open.

@aitianshi
aitianshi merged commit 673d52d into ThinkFlowLab:main Nov 24, 2026
2 checks passed
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 job's page does not say what identifies its run, and a job stopped early shows the mean of what ran

2 participants