Covers the page, one branch and Enter, and what goes wrong, with the real
scheduler and routing underneath: the first test is made from what the page
filled in, a pass starts the next test with its own settings, anything else
ends the run, and a first test that cannot be made leaves no pipeline behind.
The engines of the config are swapped for one the tests know, so they do not
depend on what a server has set up. The page is read the way a browser reads
it, because the site minifies its pages.
The shared test client now sends X-Forwarded-Proto: https, like the proxy in
front of the site. With SECURE_SSL_REDIRECT on, as in OpenSite/settings.py,
every plain-http request of the test client is otherwise answered with a
redirect to https, and no page test can pass.
The button now opens a page that asks for the dev branch and nothing else,
like Create Test does. The engine, repository, default network, time control,
options, bounds and base branch come from the same presets Create Test uses,
and the default plan is STC, then LTC if it passes. Presets, the base branch,
a name and the engine are there for whoever wants them, under More options.
Enter creates the pipeline and starts it. If the first test cannot be made
(a branch that does not exist, Github down) the pipeline is not left behind,
and the page comes back with the branch still typed in. Save without running
is the other button.
The flow editor stays as it was, and is one click away from the list and from
the new page, for retries, branching on a failure, tunes and datagen.
A pure module that turns an engine, a preset and a dev branch into every
setting a Test step needs: the repository and default network, the default
preset, then the chosen one, with both_ going to dev and base alike. With it
a pipeline only has to be told the dev branch, as a single test does.
What no preset can fill in is reported instead of guessed. Includes the unit
tests, which run without Django.
live.js already polled /tune/<id>, but patching the page in place would have
wiped the chart, reordered the parameter rows under their listeners, dropped
pinned lines and closed any fold the reader had opened.
- live.js: leave the chart, the parameter list and its empty notice alone, keep
the 'open' attribute of folds, and fire a 'live:patched' event with the fresh
page after every patch.
- spsa_chart.js: on that event, hand the new history to the existing chart
(pinned lines and the inspected point stay), or build it if the first results
have just arrived.
- spsa_panel.js: on that event, refresh the numbers, bars and limit markers of
each row in place, and re-sort when sorted by movement without jumping the
scroll position.
- Results by Machine is a fold on Tune pages, closed by default, like the other
secondary sections.
- .card has no padding of its own, so the content of the Tuning progress panel
ran up to the border. It now keeps 16px clear on both sides and at the bottom.
- The Actions card ended on the Modify button with 4px below it; it now has 16px.
The list used to grow with the number of parameters and pushed the results
table far down the page. It now scrolls inside the panel, with the filter and
sort bar staying in view, and jumps back to the top when the order or filter
changes.
The progress summary, the movement chart and a scrollable parameter list now
share one panel. Settings, Actions, Parameter details and Contributors are
single-line folds, closed by default, so the page fits on roughly one screen.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TyAt5S5MAwLBY2idan1SwU
Record every SPSA parameter value as results arrive (media/spsa_history/<id>.json,
same idea as the LLR history). The Tune page plots how far each parameter has
moved from its start, as a share of its allowed range. Hovering or pinning a
parameter name follows its line. The page is now a main column (progress,
history, results, details) plus a side column (actions, settings), and the
settings and parameter details start collapsed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TyAt5S5MAwLBY2idan1SwU
Each parameter gets a range track (min to max) with its start tick, current
value and the drift between them. The panel header shows iteration progress.
Parameters can be filtered by name and sorted by how far they moved. The old
table stays below as "Parameter details".
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TyAt5S5MAwLBY2idan1SwU