# host03 published ops/s re-bench protocol

**Purpose:** Produce a new row for `website/src/lib/config.ts` `BENCH` without changing `certifiedClaim` (stays **false** until a third party signs the run).

**Method anchor:** Same workload as the **2026-08-31** table — `compare-all.py` on the **cluster primary** (`SHOW CLUSTER` on `1584` → `role: primary`), **50 000** insert + **50 000** get, **8** TCP clients. Running on a **replica** skews SQL (forwarded) vs ISAM (local ack) and is refused unless `VELOCE_BENCH_IGNORE_ROLE=1`. Pipelined Veloce rows use **5-run medians** (`VELOCE_BENCH_PIPE_RUNS`, default 5), keys `row.bench.<i>` (not recno `k<i>`), and `FLUSH TESTDB` after the pipelined insert drain. ISAM pipe rows with sub-ms wall are rejected — see `SQL-TESTDB-PERF.md`. Latest labeled table in repo: **2026-11-03T22:48:53Z** on cluster **primary** (host03), kernel **2.74.33 embed-sku**, aspects **49/49** (HA still on; `VELOCE_BENCH_WG_HOST` set to the node outward IP, not loopback tachyon). certifiedClaim stays **false**.

## Preconditions

1. **Quiet host:** Pause SATCOMP/kissat/ollama and other CPU hogs (same note as frozen 2.73.13 run).
2. **Listener:** `velocedb-workgroup` at target `VELOCE_VERSION` on `localhost:2143` on the **primary** host.
3. **Peers:** Redis benchmark uses `VELOCE_BENCH_REDIS_HOST` / `VELOCE_BENCH_REDIS_PORT` (default `127.0.0.1:26379`).
4. **Engine dir:** `VELOCE_ENGINE_DIR=/opt/velocedb/workgroup/engine` if not running from a git checkout.
5. **ISAM host:** export `VELOCE_BENCH_WG_HOST` to the node’s outward IP (not `127.0.0.1`). Loopback `:1583` is often **tachyon-isam** (in-memory); SQL `:2143` and outward `:1583` hit the durable **node** testdb.

## Run

```bash
cd /opt/velocedb/workgroup/engine   # or your checkout engine path
python3 compare-all.py | tee /tmp/veloce-compare-$(date -u +%Y%m%dT%H%M%SZ).log
```

Report JSON default: `/tmp/veloce-compare-report.json`.

Public kit (anyone can replay; this is honesty, not a certificate):

- Protocol, `compare-all.py`, labeled JSON, kernel SHA-256: https://veloce.tuce.app/benchmarks/replay
- Submit the JSON (community list, certifiedClaim stays false):

```bash
curl -sS -X POST https://veloce.tuce.app/api/bench/submit \
  -H 'Content-Type: application/json' \
  --data-binary @/tmp/veloce-compare-report.json
```

## Record in repo (human step)

1. Copy medians into `BENCH.when`, `BENCH.host`, `BENCH.rows`, and `BENCH.rowsData` in `website/src/lib/config.ts`.
2. Add a sentence to `website/src/app/benchmarks/page.tsx` lede: train version, UTC timestamp, **not** a certification.
3. Do **not** set `certifiedClaim: true` in engine or site unless policy changes.
4. Internal SQL-relate benches (`oct-bench.mjs`, `limit-bench.mjs`, etc.) remain **stand-ins** until this protocol ships a labeled table.

## Honest gaps

- WAN GET-only INSERT stays **0** or **—** in public table unless measured.
- Aspects count (e.g. 43/44) must be re-run; do not copy from 2.73.13.
- host02 is **not** the published row unless explicitly labeled.
