Skip to content

fix(catalogue): name a benchmark's host requirements by label, not key - #328

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/requirement-labels
Nov 25, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:fix/requirement-labels

Conversation

@harenome

@harenome harenome commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #293

What

  • Cards read "needs cuda_gpu"; the Where step "cuda_gpu cannot be provided in a container".
  • A host requirement can carry a label; an empty or non-string one is refused.
  • New labels: NVIDIA GPU, NVIDIA GPU with 12000 MiB, Sandbox runtime. OSWorld1 and OSWorld2 have theirs on main.
  • Cards, tooltips, the Where step, Review and generated benchmark pages show the label, else the key.
  • The import-standard skill lists label.

Before and after

Before After
01-before-locomo-card 01-after-locomo-card
02-before-where 02-after-where

Verified

  • The new tests fail on main (f23c69f): label check, cards, Where tile (Node), Review.
  • Backend 3056, routes 579. Docs and field contract: no drift.
  • Pages checked in Chromium at 1280 px, light theme: cards, Where, Review read the label; no page errors.

Risk

  • A user entry overriding these benchmarks keeps its host block; without a label, the key.
  • A user entry with an empty label is now refused.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5: code, tests

harenome added a commit that referenced this pull request Nov 23, 2026
…, or with Escape (#346)

Closes #345

## What

The search box of the table and card toolkit had no clear control of its
own: Chromium drew its native cancel button, in its own colour and
skipped by Tab.

- The controls macro writes a clear button inside the field, with the
sprite's `i-x` icon and `aria-label="Clear search"`. It is hidden while
the field is empty.
- A click on it, or Escape in a non-empty field, empties the field,
sends the same `input` event as typing, and leaves the focus in the
field. Escape used to clear the field without that event, so a page's
own listener did not hear it.
- The browser's own cancel button is hidden on the toolkit's search, so
one control shows in every browser.
- In the builder, the button's focus ring keeps style.css's 1 px offset,
so it stays inside the search box's own ring rather than running into
it.

Every page that uses the toolkit's search gets it with no change of its
own: Runs (All runs), Benchmarks, Agents, Capabilities, Kits, Workspaces
(cards and table), Launches and Recipes when they list something, and
the builder's Benchmark and Agent steps. The search boxes of Settings,
Settings' providers, Data providers, the host picker and Compare's run
menu are built apart from the toolkit and are unchanged.

## Touches

templates and static (`app/templates/_tables.html`,
`app/static/tables.js`, `app/static/style.css`,
`app/static/builder/command-builder.css`) · tests

## Before and after

| Before | After |
| --- | --- |
| <img width="2006" height="118" alt="01-before-runs"
src="https://github.com/user-attachments/assets/7983a89c-294e-4f3d-be5c-eba668c8b217"
/> | <img width="2006" height="118" alt="01-after-runs"
src="https://github.com/user-attachments/assets/afad3242-fb40-4008-aa2b-cf08248220b6"
/> |
| <img width="2006" height="208" alt="02-before-benchmarks"
src="https://github.com/user-attachments/assets/b9160e99-2093-416f-ad91-4ccc8bc7f79d"
/> | <img width="2006" height="208" alt="02-after-benchmarks"
src="https://github.com/user-attachments/assets/677b8a07-ad26-42cd-9da2-edbf762de62c"
/> |
| <img width="764" height="208" alt="03-before-agents-phone"
src="https://github.com/user-attachments/assets/0b91f160-a801-48f9-aa2d-a7498cab1386"
/> | <img width="764" height="208" alt="03-after-agents-phone"
src="https://github.com/user-attachments/assets/77c8094f-e139-4482-8bbe-6199db16536a"
/> |

1. Runs, All runs, light, 1280 px, a query typed. Before: Chromium's own
blue cross. After: the app's cross in the field.
2. Benchmarks, dark, 1280 px, the same.
3. Agents, light, 390 px, the same.

## Verified

A Playwright check in Chromium, an empty profile with one job tree, on
Runs (All runs), Benchmarks, Agents, Capabilities, Kits, Workspaces
(cards and table) and the builder's Benchmark step, light and dark, at
1280 and 390 px: 32 cases. In each, typing a word from the first item
narrows the list and shows the button inside the field; a click empties
the field, shows every row or card again, hides the button and leaves
the focus in the field; Escape does the same. No page errors.

- `app/ui_tests/test_tables.py`: the button under Node on the toolkit's
stand-in DOM: hidden at load, shown while typing, and a click or Escape
empties the field, shows every row, hides the button, keeps the focus
and is heard by a page's own `input` listener. Fails on upstream/main.
- `app/ui_tests/test_routes.py`: Runs, Benchmarks, Agents, Kits and
Workspaces render the button, hidden. Fails on upstream/main.
- In a rootless podman `python:3.12` container with Node:
  - `python3 app/tests/parallel.py`: 2779 tests in 170 modules, OK.
- `python3 app/tests/parallel.py app/ui_tests`: 624 tests in 64 modules,
OK.
- In the builder, light and dark: Tab from a field with text lands on
the button, whose ring sits inside the box's ring.
- Merges without conflict with #325, #326, #328, #329 and #330.

## Risk

- A page that empties the search itself and then filters through Clear
filters hides the button again; one that empties it without filtering
again would leave the button showing until the next keystroke. Runs is
the only page that empties it, and it filters again.
- Undone by a revert. Nothing on disk changes.
@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Nov 25, 2026
A host requirement can carry a label; every bundled one now has one.
The Benchmarks page cards, the builder's Where step, Review and the
generated benchmark pages read the label, and the key when there is none.
@harenome
harenome force-pushed the fix/requirement-labels branch from b45baec to 8583865 Compare November 25, 2026 13:27
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Nov 25, 2026
@harenome
harenome merged commit 15b063b into ThinkFlowLab:main Nov 25, 2026
4 checks passed
@harenome
harenome deleted the fix/requirement-labels branch November 25, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmark cards read "needs cuda_gpu", a requirement key instead of its name

1 participant