From d13dda703645bac7993f79aae02b68b64d325b5f Mon Sep 17 00:00:00 2001 From: Bogdan Szabo Date: Tue, 17 Nov 2026 17:11:29 +0100 Subject: [PATCH] Simplify README and restyle site with the Lore v2 theme Co-Authored-By: Claude Opus 5.5 --- README.md | 244 +++++++++++++++++------------------ site/css/site.css | 292 ++++++++++++++++++++++-------------------- site/diff.html | 3 + site/downloads.html | 3 + site/index.html | 3 + site/js/chrome.js | 2 +- site/js/diff.js | 2 +- site/js/index.js | 2 +- site/js/lib.js | 7 +- site/js/lore.js | 2 +- site/js/results.js | 2 +- site/js/static.js | 2 +- site/js/stations.js | 2 +- site/js/tradeoff.js | 2 +- site/lore.html | 3 + site/methodology.html | 3 + site/results.html | 3 + site/stations.html | 3 + site/tradeoff.html | 3 + 19 files changed, 304 insertions(+), 279 deletions(-) diff --git a/README.md b/README.md index 566652019..3f05b8826 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,16 @@ # loop-bench -Replays the agent stations of Lore's implementation loop (`dod`, `tdd-round`, `repair-build`) on tickets the loop already merged, and measures each harness, model, prompt and context mode on them: did the loop reach a green build, how many rounds, what it cost, how long it took, and how close the result is to the pull request that was merged. +loop-bench replays the agent stations of Lore's implementation loop (`dod`, `tdd-round`, `repair-build`) on tickets the loop already merged. For each harness, model, prompt and context mode, it measures whether the loop reached a green build, how many rounds it took, what it cost, how long it ran, and how close the result is to the merged pull request. -Each run starts from the merged pull request's first parent, as if the ticket were still open. Agents run as bare `claude`, `gemini` and `codex` CLIs under a scratch HOME that holds credentials and Lore's skill and hook bundle, and nothing else from your machine. +Each run starts from the merged pull request's first parent, as if the ticket were still open. Agents run as bare `claude`, `gemini` and `codex` CLIs under a scratch HOME that holds only credentials and Lore's skill and hook bundle. -Each cell tests one station on its own: the model under test does that station's work, and the loop ends when the routing would hand over to a different station. A codex `dod` cell never starts Claude or Gemini. [What a cell runs](#what-a-cell-runs) has the details. +- [Quick start](#quick-start) +- [How a cell works](#how-a-cell-works) +- [Before the first run](#before-the-first-run) +- [Running cells](#running-cells) +- [Results and scores](#results-and-scores) +- [Adding more](#adding-more) +- [Known differences from production](#known-differences-from-production) ## Quick start @@ -19,81 +25,72 @@ npm run bench -- analyze npm run bench -- report > docs/halengine-results.md ``` -`run` skips a cell whose `loop.json` already exists, so an interrupted batch resumes where it stopped. `--force` reruns it. +`run` skips a cell whose `loop.json` already exists, so rerunning an interrupted batch resumes it. `--force` reruns a cell. -## What a cell runs +## How a cell works -A cell is one ticket, one varied station, one model, one context and one repeat. Only the varied station is under test, so the loop ends as soon as the routing would move to another station: +A cell is one ticket, one varied station, one model, one context and one repeat. Only the varied station runs under the model being tested. The loop ends as soon as the routing would hand over to another station, so a codex `dod` cell never starts Claude or Gemini. | Varied station | Starts from | Runs | Ends when | |---|---|---|---| -| `dod` | the ticket's base commit | the dod station | the dod visit finishes (`station_done`), or it fails twice (`retry_budget`), or it scopes the ticket out (`dod_scoped_out`) | -| `tdd-round` | the ticket's reference dod, `artifacts///dod` | tdd-round, then local CI, repeated | CI is green (`green`), 12 rounds are used (`round_budget`), or CI stays red on the same commit, which would hand over to repair-build (`station_done`) | -| `repair-build` | the ticket's reference red commit, `artifacts///red` | repair-build, then local CI | CI is green (`green`), or CI is red and the loop would hand over to tdd-round (`station_done`) | +| `dod` | the ticket's base commit | the dod station | it finishes (`station_done`), fails twice (`retry_budget`), or scopes the ticket out (`dod_scoped_out`) | +| `tdd-round` | the reference dod, `artifacts///dod` | tdd-round, then local CI, repeated | CI is green (`green`), 12 rounds are used (`round_budget`), or CI stays red on the same commit (`station_done`) | +| `repair-build` | the reference red commit, `artifacts///red` | repair-build, then local CI | CI is green (`green`), or red and would go back to tdd-round (`station_done`) | The `baseline` and `whole_loop` modes vary nothing and run the full loop with the production model at every station. -Two consequences: +This has two effects. A cell only needs the login of the harness it varies. And cells for different models are comparable, because they all start from the same commit and stop at the same point. -- **A cell needs only the login of the harness it varies.** A codex cell needs `codex login` and nothing from Claude or Gemini. Scoring is separate and needs the judge's login (Gemini on Vertex by default). -- **Cells for different models are comparable.** They all start from the same commit and stop at the same point, whatever the other stations would have done. +`tdd-round` and `repair-build` cells need a reference branch first. Cut one with `make-artifact --ticket --kind dod|red --from-cell `. If it is missing, `run` fails and prints the command to run. -The `tdd-round` and `repair-build` cells need their reference artifact first (`make-artifact`, below). `run` fails with the exact command when one is missing. +Step by step, a run: -## Collecting data +1. Clones the subject into a bare `origin.git` whose `main` is the base commit, plus a working clone on `loop-bench/`. Pushes and fetches stay local; nothing reaches GitHub. +2. Builds the prompt from `prompts//.md`. `baseline.md` is the production prompt copied verbatim from lore. +3. Runs the CLI with the station's deadline and environment, and reads the `LORE_NODE_RESULT` line, tokens and cost from its stream. +4. Between rounds, runs the subject's CI on the pushed head and writes `round-brief.md` the way Lore's await-ci step does. +5. Routes the next visit as `implementation-loop.yaml` does: at most 12 rounds, 2 repairs and one retry per station. -### Before the first run +## Before the first run -- **Node 22 or newer**, and `npm install` here. -- **A local clone of the subject** at `subject.mirror_dir` in `experiments/halengine.yaml`. Every run clones from it, so no network is needed once it holds the ticket commits. -- **The CLIs you will vary, logged in on this machine.** A station runs under a scratch HOME that gets only these credentials copied in: +- **Node 22 or newer**, and `npm install` in this folder. +- **A local clone of the subject** at `subject.mirror_dir` in `experiments/halengine.yaml`. Every run clones from it, so no network is needed once it has the ticket commits. +- **A login for each harness you vary.** Skip the rows you don't use: | Harness | Needs | Copied from | |---|---|---| | `claude` | `claude` logged in | `~/.claude/.credentials.json` | - | `codex` | `codex login` done; the bench runs its own pinned codex, not yours | `~/.codex/auth.json` | - | `gemini` | Vertex AI access: `gcloud auth application-default login`, and the `gemini:` project and location in the experiment file | `~/.config/gcloud/application_default_credentials.json` | + | `codex` | `codex login`; the bench runs its own pinned codex | `~/.codex/auth.json` | + | `gemini` | `gcloud auth application-default login`, plus the `gemini:` project and location in the experiment file | `~/.config/gcloud/application_default_credentials.json` | -- **Only the harness of the model you are running.** Skip the rows you do not use. `smoke` checks one harness. -- **For scoring:** the judge's login, Gemini on Vertex unless `judge` in the experiment file says otherwise. -- **For the `lore-mcp` context only:** the Lore API URL and token, as `LORE_API_URL` and `LORE_INGEST_TOKEN` in the environment, or `lore.api-url` and `lore.ingest-token` in git config, plus the `lore_mcp` block in the experiment file. -- **Run outside your home folder.** Runs work under `/var/tmp/loop-bench/runs`, because Claude Code loads `.claude/CLAUDE.md` from every ancestor of its working directory and a run under `~/` would read your personal instructions. `run` refuses to start when an instruction file sits above that folder. Set `LOOP_BENCH_RUNS` to use another folder. +- **For scoring:** the judge's login, which is Gemini on Vertex unless `judge` in the experiment file says otherwise. +- **For the `lore-mcp` context:** `LORE_API_URL` and `LORE_INGEST_TOKEN` in the environment (or `lore.api-url` and `lore.ingest-token` in git config), and the `lore_mcp` block in the experiment file. +- **A runs folder outside your home.** Runs go to `/var/tmp/loop-bench/runs` because Claude Code reads `.claude/CLAUDE.md` from every parent folder, and a run under `~/` would pick up your personal instructions. `run` refuses to start if it finds one. Set `LOOP_BENCH_RUNS` to use another folder. -### The steps +Run `smoke` once per harness before a batch, so a missing login fails in seconds rather than halfway through. -```sh -npm run bench -- prepare # once: install dependencies for each ticket's base commit -npm run bench -- smoke --harness claude --model claude-sonnet-5-5 # one tiny run: auth, stream parsing, cost -npm run bench -- plan --ticket 93 --station dod # list the loops a run would start -npm run bench -- run --ticket 93 --station dod --replicates 1 -npm run bench -- score # dod check and judge scores for the loops that finished -npm run bench -- score --missing # judge only the loops that have no judge score yet -npm run bench -- analyze # transcript metrics per station visit -npm run bench -- report # rewrite results//REPORT.md -npm run site # rewrite site/data from the same records -``` - -Run `smoke` once per harness before a batch, so a missing login fails in seconds instead of in the middle of a run. +## Running cells -`run` scores the dod check when a cell finishes and leaves the judge to a later `score --missing` (or `score --batch submit|status|collect` for one Vertex batch job), so a judge outage never blocks collection. A cell shows `judge later` until then. - -### The commands +### Commands | Command | What it does | |---|---| -| `plan [filters]` | Lists the cells a `run` with the same filters would cover, finished ones included. Costs nothing. | +| `plan [filters]` | Lists the cells a `run` with the same filters would cover. Costs nothing. | | `prepare` | Installs dependencies once per ticket base commit. | -| `smoke --harness --model ` | One tiny run: login, stream parsing, cost. | -| `run [filters]` | Runs the cells that have no `loop.json` yet and scores their dod check. | +| `smoke --harness --model ` | One tiny run to check login, stream parsing and cost. | +| `run [filters]` | Runs cells that have no `loop.json` yet and scores their dod check. | | `make-artifact --ticket --kind dod\|red --from-cell ` | Cuts the reference branch that `tdd-round` (`dod`) or `repair-build` (`red`) cells start from. | -| `score [filters]` | Recomputes the dod check and the judge on finished cells. | -| `score --missing [--shard i/n]` | Judges only the cells without a judge score, found on disk. | -| `truncate [--ticket ] [--apply]` | Cuts finished cells where a cell now ends (see below). Dry run without `--apply`. | +| `score [filters]` | Recomputes the dod check and judge score on finished cells. | +| `score --missing [--shard i/n]` | Judges only the cells without a judge score. | +| `score --batch submit\|status\|collect` | Judges many cells as one Vertex batch job (see [Scores](#scores)). | +| `truncate [--ticket ] [--apply]` | Cuts old cells that ran past their station. Dry run without `--apply`. | | `analyze`, `report`, `site`, `site-deps`, `propose` | Analysis, report and website. | -Filters: `--ticket`, `--station`, `--agent `, `--context`, `--prompt`, `--replicates`, `--limit`. +Filters: `--ticket`, `--station`, `--agent `, `--context`, `--prompt`, `--replicates`, `--limit`. `--station` and `--agent` take comma-separated lists. + +Without `--context` and `--replicates`, a command runs every context in the experiment file with five repeats each. Run `plan` with the same flags first to see what it will start. -### Examples, one per harness +### Examples ```sh # Claude: dod written by Sonnet 5.5, without Lore @@ -105,25 +102,19 @@ npm run bench -- run --ticket 93 --station dod --agent codex/gpt-6-luna --contex # Gemini: the production baseline for the whole loop on ticket 94 npm run bench -- run --ticket 94 --station baseline --context none --replicates 1 -# Claude with the Lore MCP server, three models in one go +# Claude with the Lore MCP server, two models in one go npm run bench -- run --ticket 93 --station dod --agent claude/claude-opus-5-5,claude/claude-haiku-5-5 --context lore-mcp --replicates 1 ``` -`--station` and `--agent` take comma-separated lists. The other filters are `--context`, `--prompt `, `--replicates ` and `--limit `. Without `--context` and `--replicates` a command starts every context in the experiment file and five repeats of each cell, so run `plan` with the same flags first to see exactly which cells it would start. - -### Running many at once +### Batches ```sh npm run bench -- run --ticket 93 --station dod --parallel 6 --per-harness 3 ``` -`--parallel` is how many loops run at a time. `--per-harness` caps agent runs per CLI across all loops, which is what keeps one provider's rate limit from sinking the batch. Cells are started breadth-first, so an interrupted batch has covered every model once before it repeats any. - -A cell whose `loop.json` exists is skipped, so rerunning the same command resumes. `--force` reruns it, and `--keep-run` keeps the run's working folder under `/var/tmp` for inspection. A run never writes over a cell folder: whatever an earlier run left there, a cut-short loop or a forced cell, moves to `artifacts/replaced//` first, so nothing paid for is deleted. +`--parallel` sets how many loops run at once. `--per-harness` caps concurrent runs per CLI, which keeps one provider's rate limit from sinking the batch. Cells start breadth-first, so an interrupted batch has covered every model once before it repeats any. -#### One model at a time, cheapest first - -To collect one harness without touching the others, run its models one after another with the same flags. This is what a Codex pass looks like, cheapest list price first: +To collect one harness at a time, cheapest first (prices are in `src/core/pricing.ts`): ```sh for model in gpt-6-luna gpt-5.6-luna gpt-6.1-sol gpt-6-sol gpt-5.6-terra gpt-5.6-sol gpt-6-astra; do @@ -131,52 +122,30 @@ for model in gpt-6-luna gpt-5.6-luna gpt-6.1-sol gpt-6-sol gpt-5.6-terra gpt-5.6 done ``` -Prices are in `src/core/pricing.ts`. Run the loop in a terminal, `tmux` or a background task: a batch of 60 or more cells takes hours. Add `--context lore-mcp` or `lore-utopia` in a second pass, once `none` is complete, because each context multiplies the cell count. - -#### When a batch stops by itself +A batch of 60 or more cells takes hours, so run it in `tmux` or a background task. Do `--context none` first; each extra context multiplies the cell count. -A batch stops, and leaves the current cell unrun, when a station fails for a reason that is not the model's: an expired login, for example. The log says `stopping: on / hit an infrastructure error; see /stderr.log`. Read that file, fix the cause (usually `claude`, `codex login` or `gcloud auth application-default login`), run `smoke` for that harness, then rerun the same command: finished cells are skipped. +Other flags: -To tell whether a batch is still alive, use `pgrep -f "cli[.]ts run"`. The brackets keep the command from matching itself. +- `--keep-run` keeps the run's working folder under `/var/tmp` for inspection. +- `--exclude claude[,gemini]` ends a loop before any step assigned to those CLIs. It only matters for `baseline` and `whole_loop` runs. -`run ... --exclude claude[,gemini]` ends a loop before any step assigned to those CLIs. Cells that vary one station already stop at the station boundary, so this only matters for `baseline` and `whole_loop` runs. +A run never overwrites a cell folder. Anything already there moves to `artifacts/replaced//` first. -### Publishing the results +### When a batch stops -The website rebuilds itself: the **Publish website** workflow runs on every push to `main` that touches `results/`, `site/`, `src/` or `experiments/`. It clones the subject repository, installs the prettier each ticket pins (`site-deps`), runs `site` and deploys the result to GitHub Pages, so a results commit is enough. **CI** runs the typecheck and tests. -`npm run site` does the same locally and writes `site/data/`, which you can commit as a fallback. Locally it uses the prettier in the dependency cache; `npm run bench -- site-deps` installs the missing ones. +A batch stops when a station fails for a reason that is not the model's, such as an expired login. The log says: -## Adding more - -Everything is set in `experiments/halengine.yaml`; add it there, then `plan` to check the cells before you `run` them. - -- **A ticket.** Add an entry under `tickets` with the issue number, a `ticket_file`, the merged `reference_pr`, its `merge_sha` and the `base_sha` (the merge's first parent). Run `prepare` so its dependencies are installed. -- **A model.** Add `{ harness, model }` under the station in `variants`. Add `effort: low|medium|high|xhigh|max` to pin the reasoning effort; without it the CLI's own default is used and the report says so. Add the model's price to `src/core/pricing.ts`, or its cost shows as unknown. -- **A prompt variant.** Copy `prompts//baseline.md` to `prompts//.md`, edit it, and list `` under `prompt_variants.`. -- **A station or a whole-loop run.** Stations are `dod`, `tdd-round` and `repair-build`; `whole_loop` lists agent combinations to run end to end. -- **A context.** `context_modes` takes `none`, `lore-mcp` and `lore-utopia`. -- **More repeats.** Raise `replicates`. Reports show spread once a cell has more than one run. -- **A different subject repository.** Point `subject` at it and replace `ci_checks` with the CI steps a round can turn red. `format_pattern` names the paths the diffs page formats with the subject's prettier before it compares two branches. -- **A different judge.** Change `judge`. Keep it fixed across a dataset, because a judge that changes mid-run changes the scores. - -## What a run does - -1. Clones the subject into a bare `origin.git` whose `main` is the ticket's base commit, and a working clone on `loop-bench/` beside `ticket.md`. The prompts' `git push origin HEAD` and `git fetch origin main` work offline against it, and nothing reaches GitHub. -2. Builds the station prompt from `prompts//.md`. `baseline.md` is the production prompt copied verbatim from lore; only `{ticket_path}` and the pod's `/workspace` paths are filled in. -3. Runs the CLI with the station's deadline and environment (`LORE_ACCEPTANCE_DOD` on tdd-round) and reads the `LORE_NODE_RESULT` line, tokens and cost from its stream. -4. Between rounds, runs the subject's CI commands on the pushed head and writes `round-brief.md` exactly as Lore's await-ci wait does. -5. Routes the next visit as `implementation-loop.yaml` does: 12 rounds, 2 repairs and one retry per station at most. A cell that varies one station ends where that routing would hand over to another station (`station_done`), as [What a cell runs](#what-a-cell-runs) describes. `baseline` and `whole_loop` cells follow the routing to the end. +``` +stopping: on / hit an infrastructure error; see /stderr.log +``` -## The matrix +Read that file, fix the login (`claude`, `codex login` or `gcloud auth application-default login`), run `smoke` for that harness, and rerun the same command. Finished cells are skipped. -`experiments/halengine.yaml` names the subject, the tickets, the production baseline per station and what to vary. One factor changes at a time: +To check whether a batch is still running: `pgrep -f "cli[.]ts run"`. -- **Model variants**: each station is run with every listed model, on its own: the loop stops where it would hand over to another station, so the other stations' models never run. A varied `tdd-round` or `repair-build` starts from a fixed reference branch, so its comparison does not depend on how dod went. Make one with `make-artifact --kind dod|red --from-cell `. -- **Prompt variants**: hand-written files beside `baseline.md`, run on the baseline model. -- **Context modes**: `none`, or `lore-mcp`, the Lore MCP server over stdio as `install.sh` registers it. Its API URL and token come from the environment or from git config (`lore.api-url`, `lore.ingest-token`). -- **Replicates**: every cell runs five times by default, so the report can show spread. +## Results and scores -## Where results land +### Where results land ``` results////-//rep-/ @@ -191,54 +160,77 @@ results////-//rep-< results//results.jsonl every record, the report's input ``` -Two cells compare with `diff -r`. +Compare two cells with `diff -r`. -`loop.json` has an `end_reason`: `green`, `station_done`, `round_budget`, `repair_budget`, `retry_budget`, `dod_scoped_out` or `excluded_harness`. "Reached green" in the report is only meaningful for `tdd-round` and `repair-build` cells, because a `dod` cell never runs CI. +`loop.json` has an `end_reason`: `green`, `station_done`, `round_budget`, `repair_budget`, `retry_budget`, `dod_scoped_out` or `excluded_harness`. "Reached green" only means something for `tdd-round` and `repair-build` cells, because a `dod` cell never runs CI. -### Cutting cells that ran past their station +### Scores -Cells collected before the stop-at-the-station rule kept running into the next stations. `truncate` brings them in line without rerunning anything. Each visit keeps its own cost, time, tokens and commit, so the command replays the routing over the recorded visits, keeps the ones up to the cut, and rebuilds `loop.json`, the branch bundle, `diff.patch` and `dod.md` at that commit. +| Score | What it measures | +|---|---| +| dod check | The agent's acceptance tests fail on the base commit and pass with the merged production code. Deterministic. | +| Structural | Lines and files changed, and how much the file set overlaps the merged pull request's. | +| Judge | A fixed model (`judge` in the experiment file) rates correctness, completeness and closeness to the merged pull request from 1 to 5. | -```sh -npm run bench -- truncate # dry run: one line per cell it would cut -npm run bench -- truncate --ticket 95 --apply # cut one ticket first -npm run bench -- truncate --apply # cut them all -npm run bench -- score # recompute the dod check; the judge follows with score --missing -``` +`run` scores the dod check right away and leaves the judge for later, so a judge outage never blocks collection. Such a cell shows `judge later` until you run `score --missing`. -Everything it replaces moves to `artifacts/replaced//-before-cut/`: the old `loop.json`, bundle, patch, dod and score files, and the dropped station visits. The dropped visits stay in `results.jsonl`, so the per-station tables still count them. A cut cell has no dod check or judge score until it is scored again. Running `truncate` twice changes nothing the second time. +With a Gemini judge you can judge many cells as one Vertex batch job. Add a bucket to the experiment file (and a `location` if batch prediction isn't served from the Gemini one): -## Scores +```yaml +judge: { harness: gemini, model: gemini-4-argon, batch: { gcs_prefix: gs://your-bucket/loop-bench-judge } } +``` -- **dod check**: the agent's acceptance tests must fail on the base commit and pass once the merged pull request's production code is applied. It is deterministic. -- **Structural**: lines and files changed, and the overlap of the file set with the merged pull request's. -- **Judge**: a fixed model (`judge` in the experiment file) scores correctness, completeness against the issue and closeness to the merged pull request from 1 to 5. `run` does not call it: a finished loop gets its dod check right away and its judge score later, from `score --missing` or `score --batch`. +```sh +npm run bench -- score --batch submit # one request per prompt, for every cell without a judge score +npm run bench -- score --batch status # state of each open job +npm run bench -- score --batch collect # writes judge.json, loop.json and results.jsonl +``` -### Judging in a batch +Open jobs are tracked in `results//judge-batches.json`. Cells whose answer didn't parse are sent again on the next `submit`. -With a gemini judge, many loops can be judged as one Vertex batch job instead of one CLI call after another. Add a bucket folder to the experiment file (and a `location` if batch prediction is not served from the gemini one): +### Old cells that ran past their station -```yaml -judge: { harness: gemini, model: gemini-4-argon, batch: { gcs_prefix: gs://your-bucket/loop-bench-judge } } -``` +Cells collected before the stop-at-the-station rule kept running into later stations. `truncate` replays the routing over the recorded visits and rebuilds `loop.json`, the bundle, `diff.patch` and `dod.md` at the cut, without rerunning anything. ```sh -npm run bench -- score --batch submit # one request per distinct prompt, for every loop without a judge score -npm run bench -- score --batch status # the state of each open job -npm run bench -- score --batch collect # writes judge.json, loop.json and results.jsonl for each answered cell +npm run bench -- truncate # dry run +npm run bench -- truncate --ticket 95 --apply # one ticket +npm run bench -- truncate --apply # all +npm run bench -- score # then score --missing for the judge ``` -It needs `gcloud` logged in (`gcloud auth application-default login`). Open jobs are tracked in `results//judge-batches.json`. Cells whose answer did not parse stay without a judge score, and the next `submit` sends them again. The prompt and the scoring are the same as for the CLI judge. +Replaced files move to `artifacts/replaced//-before-cut/`. Dropped visits stay in `results.jsonl`. Running it twice changes nothing the second time. -## Improving the prompts +### Improving the prompts -`analyze` writes `analysis.json` beside every visit: tool calls by kind, guard refusals, reinstalls and builds, test runs, repeated reads, Lore tool calls and the first edit. `propose --station ` hands the worst visits and the station prompt to the judge model and writes suggested edits to `proposals/`. A person turns a proposal into `prompts//.md`, lists it under `prompt_variants`, and runs it again. Nothing edits `baseline.md`; `scripts/sync-prompts.ts ` refreshes it from lore and records the commit in `prompts/LORE_SHA`. +`analyze` writes `analysis.json` for every visit: tool calls by kind, guard refusals, builds, test runs, repeated reads, Lore tool calls and the first edit. `propose --station ` gives the worst visits and the station prompt to the judge model and writes suggested edits to `proposals/`. A person turns a proposal into `prompts//.md` and lists it under `prompt_variants`. Nothing edits `baseline.md`; `scripts/sync-prompts.ts ` refreshes it from lore and records the commit in `prompts/LORE_SHA`. + +### Publishing + +The **Publish website** workflow runs on every push to `main` that touches `results/`, `site/`, `src/` or `experiments/`. It installs the prettier each ticket pins, runs `site`, and deploys to GitHub Pages, so committing results is enough. **CI** runs the typecheck and tests. + +Locally, `npm run site` writes `site/data/` and `npm run serve` serves it on port 8080. `npm run bench -- site-deps` installs any missing prettier versions. + +## Adding more + +Everything lives in `experiments/halengine.yaml`. Edit it, then run `plan` to check the cells. + +| To add | Do this | +|---|---| +| A ticket | Add an entry under `tickets` with the issue number, `ticket_file`, `reference_pr`, `merge_sha` and `base_sha` (the merge's first parent). Run `prepare`. | +| A model | Add `{ harness, model }` under the station in `variants`. Optionally add `effort: low\|medium\|high\|xhigh\|max`. Add its price to `src/core/pricing.ts` or cost shows as unknown. | +| A prompt variant | Copy `prompts//baseline.md` to `prompts//.md`, edit it, and list `` under `prompt_variants.`. | +| A whole-loop run | List agent combinations under `whole_loop`. | +| A context | `context_modes` takes `none`, `lore-mcp` and `lore-utopia`. | +| More repeats | Raise `replicates`. Reports show spread once a cell has more than one run. | +| Another subject repo | Point `subject` at it and replace `ci_checks`. `format_pattern` names the paths the diffs page formats before comparing. | +| Another judge | Change `judge`, and keep it fixed across a dataset. | ## Known differences from production -- The pod's `/workspace` paths are rewritten to the run directory, and the header above the prompt approximates the floor's. +- The pod's `/workspace` paths are rewritten to the run directory, and the prompt header only approximates the floor's. - Local CI is one Node version on one machine, not GitHub's runners. -- The pods pin codex 0.142.5, which the gpt-5.6 and gpt-6 models refuse, so the bench runs its own pinned codex 0.163.0. -- Codex has no hook bundle, so the Lore guard does not stop it from running the full suite. -- In the `lore-mcp` arm the Lore memory holds episodes from the real runs on these tickets, so it can surface the actual solution. -- OpenAI prices in `src/core/pricing.ts` must be checked against the published list before a write-up. +- The pods pin codex 0.142.5, which the gpt-5.6 and gpt-6 models refuse, so the bench runs codex 0.163.0. +- Codex has no hook bundle, so the Lore guard can't stop it from running the full suite. +- In the `lore-mcp` arm, Lore memory holds episodes from the real runs on these tickets, so it can surface the actual solution. +- OpenAI prices in `src/core/pricing.ts` need checking against the published list before a write-up. diff --git a/site/css/site.css b/site/css/site.css index fcdc64ef5..c071435b8 100644 --- a/site/css/site.css +++ b/site/css/site.css @@ -1,29 +1,56 @@ -/* Base taken from bias-research's site.css: theme, nav, panels, tables, stat tiles, footer. */ +/* Lore v2 (re:cinq brand): IBM Plex Sans + JetBrains Mono, pill controls, rounded cards, navy and electric blue. */ :root { - --bg: #0b0d10; - --panel: #13171c; - --border: #252b34; - --text: #c5c8cc; - --dim: #a1a6ad; - --accent: #6fae72; - --warn: #c89764; - --alert: #b85b5b; - --radius: 4px; + --bg: #03072e; + --panel: #080d45; + --hover: #111866; + --border: rgba(201, 205, 251, 0.12); + --border-hover: rgba(201, 205, 251, 0.24); + --text: #ffffff; + --dim: #9aa1b5; + --accent: #8a93ff; + --accent-hover: #b4baff; + --primary: #2a3cff; + --heading: #ffffff; + --heading-gradient: linear-gradient(96deg, #ffffff 12%, #c9cdfb 56%, #8a93ff 96%); + --pill-bg: rgba(138, 147, 255, 0.16); + --pill-fg: #e6e8fd; + --focus-ring: rgba(138, 147, 255, 0.5); + --success: #8fe0ae; + --warn: #f6c76a; + --alert: #f49393; + --shadow: 0 2px 6px rgba(0, 0, 0, 0.3); + --radius: 12px; + --radius-sm: 8px; + --radius-lg: 20px; + --radius-pill: 999px; + --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1); --px: 3px; --gap: 1px; --stride: 4px; - --mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", "Fira Code", Menlo, Consolas, monospace; + --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; } :root[data-theme="light"] { - --bg: #e9e4d6; - --panel: #f1ecdd; - --border: #bcb3a0; - --text: #26221a; - --dim: #50493a; - --accent: #4a6b3a; - --warn: #8a5a1f; - --alert: #8a3032; + --bg: #ffffff; + --panel: #ffffff; + --hover: #f1f2fe; + --border: #e5e7ee; + --border-hover: #cbcfdb; + --text: #000000; + --dim: #6b7385; + --accent: #0014eb; + --accent-hover: #2a3cff; + --primary: #010967; + --heading: #010967; + --heading-gradient: linear-gradient(96deg, #000000 12%, #010967 56%, #0014eb 96%); + --pill-bg: #e6e8fd; + --pill-fg: #010967; + --focus-ring: rgba(0, 20, 235, 0.35); + --success: #1d6b40; + --warn: #7a4f00; + --alert: #a12c2c; + --shadow: 0 2px 6px rgba(0, 5, 60, 0.06), 0 1px 2px rgba(0, 5, 60, 0.04); } * { box-sizing: border-box; } @@ -33,49 +60,51 @@ html, body { padding: 0; background: var(--bg); color: var(--text); - font-family: var(--mono); - font-size: 14px; - line-height: 1.5; + font-family: var(--sans); + font-size: 15px; + line-height: 1.55; } -a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); } -a:hover { background: var(--border); } -a:focus { outline: 2px solid var(--accent); outline-offset: 1px; } +a { color: var(--accent); text-decoration: none; transition: color var(--transition); } +a:hover { color: var(--accent-hover); text-decoration: underline; } +a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); } button { - font-family: var(--mono); + font-family: var(--sans); font-size: 13px; - background: var(--panel); - color: var(--text); - border: 1px solid var(--border); - border-radius: var(--radius); - padding: 4px 8px; + font-weight: 500; + background: var(--pill-bg); + color: var(--pill-fg); + border: 1px solid transparent; + border-radius: var(--radius-pill); + padding: 6px 14px; cursor: pointer; - transition: background-color 80ms ease, border-color 80ms ease; + transition: background-color var(--transition), border-color var(--transition), color var(--transition); } -button:hover { background: var(--border); } -button:focus { outline: 2px solid var(--accent); outline-offset: 1px; } +button:hover { background: var(--hover); border-color: var(--border-hover); } select, input[type="text"] { - font-family: var(--mono); + font-family: var(--sans); font-size: 13px; - background: var(--bg); + background: var(--panel); color: var(--text); border: 1px solid var(--border); - border-radius: var(--radius); - padding: 4px 8px; + border-radius: var(--radius-pill); + padding: 6px 12px; + transition: border-color var(--transition); } hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; } /* layout */ -.container { max-width: 1280px; margin: 0 auto; padding: 0 16px 32px; } +.container { max-width: 1280px; margin: 0 auto; padding: 0 16px 48px; } /* status banner */ .status { border-bottom: 1px solid var(--border); background: var(--panel); padding: 6px 16px; + font-family: var(--mono); font-size: 12px; color: var(--dim); display: flex; @@ -103,64 +132,55 @@ hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; } nav.top { border-bottom: 1px solid var(--border); background: var(--bg); - padding: 10px 16px; + padding: 12px 16px; display: flex; align-items: center; - gap: 16px; + gap: 4px; flex-wrap: wrap; } nav.top .brand { - font-weight: bold; - text-transform: uppercase; - letter-spacing: 0.1em; - color: var(--text); - border-bottom: none; -} -nav.top a { border-bottom: none; color: var(--dim); } -nav.top a:hover { color: var(--accent); background: transparent; } -nav.top a.active { color: var(--accent); } + font-weight: 700; + font-size: 16px; + color: var(--heading); + margin-right: 8px; +} +nav.top a { color: var(--dim); font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: var(--radius-pill); transition: background-color var(--transition), color var(--transition); } +nav.top a:hover { color: var(--text); background: var(--hover); text-decoration: none; } +nav.top a.active { color: var(--pill-fg); background: var(--pill-bg); } +nav.top a.brand:hover, nav.top a.brand.active { background: transparent; color: var(--heading); } nav.top .spacer { flex: 1; } -/* page header banner (box-drawing) */ -.header-box { - font-family: var(--mono); - white-space: pre; - color: var(--dim); - margin: 24px 0 8px; - font-size: 13px; - line-height: 1.2; -} -.header-box .title { color: var(--text); } h1, h2, h3, h4 { - font-family: var(--mono); - font-weight: bold; - text-transform: uppercase; - letter-spacing: 0.08em; - margin: 24px 0 8px; -} -h1 { font-size: 18px; } -h2 { font-size: 16px; color: var(--text); } -h3 { font-size: 14px; color: var(--dim); } -h4 { font-size: 13px; color: var(--dim); } + font-family: var(--sans); + font-weight: 600; + color: var(--heading); + letter-spacing: -0.01em; + margin: 28px 0 10px; +} +h1 { + font-size: 28px; + font-weight: 700; + background: var(--heading-gradient); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} +h2 { font-size: 20px; } +h3 { font-size: 16px; } +h4 { font-size: 14px; color: var(--dim); } p { margin: 8px 0; } -.rule { - font-family: var(--mono); - color: var(--border); - margin: 12px 0; - white-space: pre; - user-select: none; -} /* panel */ .panel { background: var(--panel); border: 1px solid var(--border); - border-radius: var(--radius); - padding: 12px 14px; - margin: 12px 0; + border-radius: var(--radius-lg); + box-shadow: var(--shadow); + padding: 18px 20px; + margin: 16px 0; } .panel .panel-head { display: flex; @@ -169,13 +189,12 @@ p { margin: 8px 0; } border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 10px; - font-size: 12px; + font-size: 13px; + font-weight: 600; color: var(--dim); - text-transform: uppercase; - letter-spacing: 0.08em; } .panel .panel-head .controls { display: flex; gap: 6px; } -.panel .panel-head button { font-size: 11px; padding: 2px 6px; color: var(--dim); } +.panel .panel-head button { font-size: 12px; padding: 3px 10px; } /* grid */ .grid { display: grid; gap: 16px; } @@ -194,8 +213,7 @@ p { margin: 8px 0; } color: var(--dim); padding: 8px 12px; border-top: 1px solid var(--border); - background: var(--bg); - border-radius: 0 0 var(--radius) var(--radius); + background: transparent; flex-wrap: wrap; } .legend-item { @@ -228,9 +246,10 @@ p { margin: 8px 0; } position: fixed; pointer-events: none; background: var(--panel); - border: 1px solid var(--accent); - border-radius: var(--radius); - padding: 6px 8px; + border: 1px solid var(--border-hover); + border-radius: var(--radius-sm); + box-shadow: var(--shadow); + padding: 8px 10px; font-size: 12px; color: var(--text); z-index: 10; @@ -242,31 +261,28 @@ p { margin: 8px 0; } table.data { width: 100%; border-collapse: collapse; - font-size: 12px; + font-size: 13px; } +table.data td.num, table.data td code { font-family: var(--mono); font-size: 12px; } table.data th, table.data td { border-bottom: 1px solid var(--border); - padding: 4px 8px; + padding: 6px 8px; text-align: left; } -table.data thead { - background: var(--bg); -} table.data th { - color: var(--accent); - text-transform: uppercase; - letter-spacing: 0.05em; - font-weight: bold; - border-bottom: 1px solid var(--accent); - padding: 6px 8px; + color: var(--dim); + font-size: 12px; + font-weight: 600; + border-bottom: 1px solid var(--border-hover); + padding: 8px; } -table.data tbody tr:hover { background: rgba(111, 174, 114, 0.05); } +table.data tbody tr:hover { background: var(--hover); } table.data tbody tr.row-hi { - background: rgba(111, 174, 114, 0.18); + background: color-mix(in srgb, var(--accent) 18%, transparent); outline: 1px solid var(--accent); } table.data tbody tr.row-sel { - background: rgba(111, 174, 114, 0.28); + background: color-mix(in srgb, var(--accent) 28%, transparent); outline: 2px solid var(--accent); } table.data tbody tr.row-sel td:first-child { @@ -300,14 +316,15 @@ table.data th.num { text-align: right; font-variant-numeric: tabular-nums; } /* code blocks */ pre, code { font-family: var(--mono); - background: var(--bg); + font-size: 0.9em; + background: var(--hover); color: var(--text); border: 1px solid var(--border); - border-radius: var(--radius); - padding: 1px 4px; + border-radius: var(--radius-sm); + padding: 1px 5px; } pre { - padding: 10px 12px; + padding: 12px 14px; white-space: pre-wrap; overflow-x: auto; } @@ -322,19 +339,20 @@ pre { .stat { background: var(--panel); border: 1px solid var(--border); - border-radius: var(--radius); - padding: 10px 14px; + border-radius: var(--radius-lg); + box-shadow: var(--shadow); + padding: 16px 20px; } .stat .label { - font-size: 11px; + font-size: 13px; + font-weight: 500; color: var(--dim); - text-transform: uppercase; - letter-spacing: 0.05em; } .stat .value { - font-size: 22px; - font-weight: bold; - color: var(--text); + font-family: var(--mono); + font-size: 26px; + font-weight: 600; + color: var(--heading); margin-top: 4px; } .stat .sub { font-size: 11px; color: var(--dim); margin-top: 2px; } @@ -353,10 +371,10 @@ pre { height: 12px; background: var(--bg); border: 1px solid var(--border); - border-radius: var(--radius); + border-radius: var(--radius-pill); overflow: hidden; } -.progress-fill { height: 100%; background: var(--accent); } +.progress-fill { height: 100%; background: var(--accent); border-radius: var(--radius-pill); } .progress-count { text-align: right; font-variant-numeric: tabular-nums; } .progress-split { grid-column: 2 / 4; font-size: 11px; } @media (max-width: 600px) { @@ -367,7 +385,7 @@ pre { } /* counterfactual cards */ -.card .label { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; } +.card .label { font-size: 13px; font-weight: 500; color: var(--dim); } .card ul { margin: 4px 0; padding-left: 16px; } .card li { margin: 2px 0; font-size: 12px; } @@ -390,7 +408,7 @@ footer.bottom { } .footer-id { color: var(--text); - letter-spacing: 0.04em; + font-weight: 500; } .footer-meta { color: var(--dim); @@ -402,16 +420,12 @@ footer.bottom { footer.bottom a { color: var(--dim); text-decoration: none; - border-bottom: 1px dotted transparent; -} -footer.bottom a:hover { - color: var(--accent); - border-bottom-color: var(--accent); } +footer.bottom a:hover { color: var(--accent); } /* ---- loop-bench additions ------------------------------------------------ */ -:root { --claude: #c89764; --codex: #6fa3d6; --gemini: #b48ad6; --glm: #6dc28a; } -:root[data-theme="light"] { --claude: #8a5a1f; --codex: #2f6493; --gemini: #6d3f94; --glm: #2a7a4b; } +:root { --claude: #f6c76a; --codex: #7fd3e2; --gemini: #c28eec; --glm: #8fe0ae; } +:root[data-theme="light"] { --claude: #d99a1e; --codex: #2a9bb0; --gemini: #8e2ee0; --glm: #2f9e5f; } .filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; font-size: 12px; } .filters label { display: flex; gap: 6px; align-items: center; color: var(--dim); } @@ -430,11 +444,11 @@ table.data td.nowrap { white-space: nowrap; } .harness-codex { background: var(--codex); border-radius: 50%; } .harness-glm { background: var(--glm); clip-path: polygon(50% 0, 100% 100%, 0 100%); } .harness-gemini { background: var(--gemini); transform: rotate(45deg) scale(0.85); } -.lore-tag { font-size: 10px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 4px; color: var(--dim); } -.lore-tag.on { border-color: var(--accent); color: var(--accent); } -.note { border-left: 3px solid var(--warn); padding: 4px 10px; color: var(--dim); font-size: 12px; margin: 8px 0; } -.compare-bar { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--accent); padding: 8px 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; z-index: 5; } -svg.plot { width: 100%; height: auto; display: block; font-family: var(--mono); } +.lore-tag { font-size: 11px; font-weight: 500; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 1px 8px; color: var(--dim); } +.lore-tag.on { background: var(--pill-bg); border-color: transparent; color: var(--pill-fg); } +.note { border-left: 3px solid var(--warn); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--hover); padding: 8px 12px; color: var(--dim); font-size: 12px; margin: 8px 0; } +.compare-bar { position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--border-hover); box-shadow: var(--shadow); padding: 10px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; z-index: 5; } +svg.plot { width: 100%; height: auto; display: block; font-family: var(--sans); } svg.plot .axis { stroke: var(--border); } svg.plot .grid-line { stroke: var(--border); opacity: 0.35; } svg.plot text { fill: var(--dim); font-size: 10px; } @@ -448,7 +462,7 @@ svg.plot .slope { stroke-width: 1.5; fill: none; opacity: 0.8; } .conclusions li { margin: 6px 0; } .conclusions strong { color: var(--text); } @media (max-width: 600px) { - .header-box { font-size: 10px; } + h1 { font-size: 22px; } nav.top { gap: 10px; } } @@ -459,14 +473,14 @@ table.data tbody tr.clickable { cursor: pointer; } .diff-side { min-width: 0; } .diff-side-head { font-size: 12px; margin-bottom: 6px; color: var(--dim); } .diff-side-head strong { color: var(--text); } -.code-view { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; line-height: 1.5; max-height: 75vh; overflow-y: auto; } +.code-view { font-family: var(--mono); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-size: 12px; line-height: 1.5; max-height: 75vh; overflow-y: auto; } .code-row { display: grid; grid-template-columns: 3.5em 3.5em 1.5em minmax(0, 1fr); } .code-row .ln { color: var(--dim); opacity: 0.6; text-align: right; padding-right: 8px; user-select: none; border-right: 1px solid var(--border); } .code-row .sign { text-align: center; color: var(--dim); user-select: none; } .code-row .code { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 8px; min-height: 1.5em; } -.code-row.add { background: rgba(111, 174, 114, 0.14); } -.code-row.add .sign { color: var(--accent); } -.code-row.del { background: rgba(184, 91, 91, 0.16); } +.code-row.add { background: color-mix(in srgb, var(--success) 14%, transparent); } +.code-row.add .sign { color: var(--success); } +.code-row.del { background: color-mix(in srgb, var(--alert) 16%, transparent); } .code-row.del .sign { color: var(--alert); } .code-hunk { color: var(--dim); background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2px 8px; white-space: pre-wrap; overflow-wrap: anywhere; } /* syntax colours from the theme tokens, so dark and light both work */ @@ -494,7 +508,7 @@ table.matrix td.cell-col { white-space: normal; min-width: 180px; } table.matrix td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; color: var(--dim); text-transform: uppercase; } } /* delta bar, from bias-research: a dot on a track centred on zero */ -.delta-bar { position: relative; height: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); min-width: 90px; } +.delta-bar { position: relative; height: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); min-width: 90px; } .delta-bar .tick { position: absolute; top: 0; height: 100%; width: 1px; background: var(--dim); opacity: 0.5; } .delta-bar .tick.center { background: var(--text); width: 2px; opacity: 0.9; margin-left: -1px; } .delta-bar .marker { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; box-sizing: border-box; background: currentColor; } @@ -504,14 +518,14 @@ table.matrix td.cell-col { white-space: normal; min-width: 180px; } .delta-bar-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); margin-top: 2px; } /* lore slopes: one large chart; hovering a model fades the rest */ -.filters button.active { border-color: var(--accent); color: var(--accent); } +.filters button.active { background: var(--primary); color: #ffffff; } svg.slopes text.slope-label { font-size: 12px; fill: var(--text); } svg.slopes .slope { stroke-width: 2; } svg.slopes .leader { stroke: var(--border); } svg.slopes tspan.delta-pos { fill: var(--accent); } svg.slopes tspan.delta-neg { fill: var(--alert); } svg.slopes tspan.delta-zero { fill: var(--dim); } -svg.slopes g.model { transition: opacity 80ms ease; } +svg.slopes g.model { transition: opacity var(--transition); } svg.slopes:hover g.model { opacity: 0.15; } svg.slopes:hover g.model:hover { opacity: 1; } .slope-wrap { overflow-x: auto; } diff --git a/site/diff.html b/site/diff.html index 82c9b4134..eb184fe80 100644 --- a/site/diff.html +++ b/site/diff.html @@ -5,6 +5,9 @@ Files And Diffs + + + diff --git a/site/downloads.html b/site/downloads.html index 6aab5ed27..cca89c205 100644 --- a/site/downloads.html +++ b/site/downloads.html @@ -5,6 +5,9 @@ Loop Bench Downloads + + + diff --git a/site/index.html b/site/index.html index 1d703fa5f..7d40fea62 100644 --- a/site/index.html +++ b/site/index.html @@ -5,6 +5,9 @@ Loop Bench + + + diff --git a/site/js/chrome.js b/site/js/chrome.js index 74b0692d7..5a82f0642 100644 --- a/site/js/chrome.js +++ b/site/js/chrome.js @@ -21,7 +21,7 @@ function storeTheme(theme) { } const currentTheme = () => document.documentElement.dataset.theme || 'dark'; -const themeLabel = () => (currentTheme() === 'dark' ? '[light]' : '[dark]'); +const themeLabel = () => (currentTheme() === 'dark' ? 'Light' : 'Dark'); function renderNav() { const here = location.pathname.split('/').pop() || 'index.html'; diff --git a/site/js/diff.js b/site/js/diff.js index 15e3db9ae..2fcb1dd7d 100644 --- a/site/js/diff.js +++ b/site/js/diff.js @@ -4,7 +4,7 @@ import { cellName, el, header, isDone, loadBench, mount, panel, readHash, two, u import { isTestPath, parsePatch } from './patch.js'; const bench = await mountChrome(loadBench); -document.getElementById('header').append(header('FILES & DIFFS')); +document.getElementById('header').append(header('Files and diffs')); const app = document.getElementById('app'); /** Every branch a side can show: each replicate of each finished cell, then each ticket's merged pull request. */ diff --git a/site/js/index.js b/site/js/index.js index 8c5d0033d..e7374294a 100644 --- a/site/js/index.js +++ b/site/js/index.js @@ -6,7 +6,7 @@ import { mdToHtml } from './markdown.js'; const FRONT_METRICS = ['green', 'rounds', 'cost', 'time', 'correct', 'complete', 'close'].map((key) => METRICS.find((m) => m.key === key)); const bench = await mountChrome(loadBench); -document.getElementById('header').append(header('WHICH MODEL RUNS EACH STATION BEST')); +document.getElementById('header').append(header('Which model runs each station best')); const app = document.getElementById('app'); const done = bench.cells.filter(isDone); diff --git a/site/js/lib.js b/site/js/lib.js index e8ad87a25..481470611 100644 --- a/site/js/lib.js +++ b/site/js/lib.js @@ -42,12 +42,7 @@ export function panel(title, ...children) { return box; } -export function header(title) { - const inner = Math.max(title.length + 4, 32); - const node = el('div', { class: 'header-box' }); - node.append('╔' + '═'.repeat(inner) + '╗\n║ ', el('span', { class: 'title' }, title), ' '.repeat(inner - 2 - title.length) + '║\n╚' + '═'.repeat(inner) + '╝'); - return node; -} +export const header = (title) => el('h1', { class: 'page-title' }, title); export const money = (v) => (v == null ? '–' : `$${v.toFixed(2)}`); export const minutes = (v) => (v == null ? '–' : `${v.toFixed(1)} min`); diff --git a/site/js/lore.js b/site/js/lore.js index 7721ba0d4..838f432b2 100644 --- a/site/js/lore.js +++ b/site/js/lore.js @@ -12,7 +12,7 @@ const LABEL_LINE = 14; const ALL = 'all'; const bench = await mountChrome(loadBench); -document.getElementById('header').append(header('KNOWLEDGE BASE: NONE VS LORE VS UTOPIA')); +document.getElementById('header').append(header('Knowledge base: none vs Lore vs Utopia')); const app = document.getElementById('app'); const byId = new Map(bench.cells.map((cell) => [cell.id, cell])); const stations = unique(bench.lorePairs.map((pair) => pair.station)); diff --git a/site/js/results.js b/site/js/results.js index 88be79b0d..f70523766 100644 --- a/site/js/results.js +++ b/site/js/results.js @@ -42,7 +42,7 @@ const COLUMNS = [ ]; const bench = await mountChrome(loadBench); -document.getElementById('header').append(header('RESULTS MATRIX')); +document.getElementById('header').append(header('Results matrix')); const app = document.getElementById('app'); const state = { sort: 'cost', dir: 'asc', ...readHash() }; const selected = () => (state.sel ? state.sel.split(',') : []); diff --git a/site/js/static.js b/site/js/static.js index 6a11c4165..64fff11c8 100644 --- a/site/js/static.js +++ b/site/js/static.js @@ -3,4 +3,4 @@ import { mountChrome } from './chrome.js'; import { header, loadBench } from './lib.js'; await mountChrome(loadBench); -document.getElementById('header').append(header(document.title.toUpperCase())); +document.getElementById('header').append(header(document.title)); diff --git a/site/js/stations.js b/site/js/stations.js index 0f30834eb..eab9e8597 100644 --- a/site/js/stations.js +++ b/site/js/stations.js @@ -3,7 +3,7 @@ import { mountChrome } from './chrome.js'; import { el, harnessMark, markOf, header, loadBench, loreTag, minutes, money, panel, spreadNode, unique, whole, mount } from './lib.js'; const bench = await mountChrome(loadBench); -document.getElementById('header').append(header('STATION VISITS')); +document.getElementById('header').append(header('Station visits')); const app = document.getElementById('app'); function stationTable(rows) { diff --git a/site/js/tradeoff.js b/site/js/tradeoff.js index 454cbb76f..35cced327 100644 --- a/site/js/tradeoff.js +++ b/site/js/tradeoff.js @@ -12,7 +12,7 @@ const X_AXES = { }; const bench = await mountChrome(loadBench); -document.getElementById('header').append(header('COST VS QUALITY')); +document.getElementById('header').append(header('Cost vs quality')); const app = document.getElementById('app'); const state = { x: 'cost', ...readHash() }; diff --git a/site/lore.html b/site/lore.html index 85b570de1..9da0d7aa3 100644 --- a/site/lore.html +++ b/site/lore.html @@ -5,6 +5,9 @@ Lore On Versus Off + + + diff --git a/site/methodology.html b/site/methodology.html index 9a6ba80bf..8b1182830 100644 --- a/site/methodology.html +++ b/site/methodology.html @@ -5,6 +5,9 @@ Loop Bench Methodology + + + diff --git a/site/results.html b/site/results.html index 562b02309..e79c1a102 100644 --- a/site/results.html +++ b/site/results.html @@ -5,6 +5,9 @@ Loop Bench Results + + + diff --git a/site/stations.html b/site/stations.html index 9bae10fae..e527cc6d5 100644 --- a/site/stations.html +++ b/site/stations.html @@ -5,6 +5,9 @@ Station Visits + + + diff --git a/site/tradeoff.html b/site/tradeoff.html index 644eb3b52..19bf110d1 100644 --- a/site/tradeoff.html +++ b/site/tradeoff.html @@ -5,6 +5,9 @@ Cost Versus Quality + + +