Browse Source

docs: dashboard bench window (params, node, live log, cancel, reopen)

Alexander Korolev 9 hours ago
parent
commit
ecb1eec8ff
2 changed files with 11 additions and 3 deletions
  1. 6 3
      AGENTS.md
  2. 5 0
      specs/tech-architecture/web-dashboard.md

+ 6 - 3
AGENTS.md

@@ -153,9 +153,12 @@ the action bar sits *above* the toml link): **▶ serve / ⏹ stop** (POST
 CLI uses; the state cell flips when the fleet probe sees the change), **▤ logs**
 (shown only while running — attaches the dashboard's `/api/logs` stream for a
 node hosting the recipe's container, node picker + live tail rendered inline),
-and **⚡ bench** (POST `/api/bench` — the standard seed-42 hardmode
-quality bench as a tracked job; the report + run package land in the shared
-recipe repo and re-appear in the table via the live stream). Standing state is
+and **⚡ bench** (opens the bench window: choose recipe, cluster, target node,
+run host (`ssh_host`, e.g. `pluto.lan`), label, seed, concurrency, parallel,
+timeout, tokenizer, perf-only/depth/no-think; parameters persist in localStorage;
+the window polls `GET /api/bench/log`, can `POST /api/bench/cancel`, and a closed
+window is reopened from the dock chip/`+ → bench…`). The report + run package
+land in the shared recipe repo and re-appear in the table via the live stream. Standing state is
 **fleet-aware**: a recipe the live probe sees running but the local ledger
 knows nothing about (the add-on machine has no `.lock` — they are
 gitignored and never ship with the synced repo) renders green

+ 5 - 0
specs/tech-architecture/web-dashboard.md

@@ -171,6 +171,11 @@ UI outgrows ~2–3k lines.)
     the panel would only duplicate it.
   - `raw {kind: config|recipe:name|effective}` — verbatim content, monospace,
     copy button, JSON pretty for `effective`.
+  - `bench` — parameter dialog (recipe/cluster/target node/run host/label/seed/
+    concurrency/parallel/timeout/tokenizer/perf-only/depth/no-think), persisted
+    in localStorage; live harness log polled from `/api/bench/log`; `⏹ cancel`
+    sets the job flag (`/api/bench/cancel`); closing leaves a dock chip and
+    `+ → bench…` reopens it.
 - **Window manager** (vanilla, `ui.html`): absolute windows, drag by
   titlebar, corner resize, `▢` **maximize** (fills the window layer minus
   the dock strip; a second click restores the exact previous geometry),