Skip to content

systemeval: drive the adapters' server connections; remove the System trait - #271

Merged
GordonYuanyc merged 1 commit into
mainfrom
systemeval/drive-the-adapters
Nov 25, 2026
Merged

GordonYuanyc merged 1 commit into
mainfrom
systemeval/drive-the-adapters

Conversation

@GordonYuanyc

@GordonYuanyc GordonYuanyc commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Step 6c of #267 (decision D11). Stacked on #270: merge #270, then change this PR's base to main.

What changes

  • systemeval::servers::Server is an enum of the two servers systemeval can drive: ASAPQuery-backend and VictoriaMetrics. Each goes through its adapter's own connection:

    • AsapqueryBackendConnection: the watermark (make_visible) and /api/v1/status/asap;
    • VictoriaMetricsConnection: force_flush.

    Each system's protocol is written once, in its adapter (system-bench: ASAPQuery-backend adapter and VictoriaMetrics without a plan #270). systemeval keeps its own batching, pacing and write statistics; its command line and output are unchanged.

  • Removed: systemeval's System trait and systemeval/system/. No new trait replaces it.

Not as planned

The change list said systemeval would call the adapters' install / ingest / evaluate. It uses their connections instead. Going through the arms would lose --speed pacing, --batch-samples / --flush-ms batching and the per-request write statistics. It would also change the requests: VictoriaMetrics' arm deletes series at install and at drop, and adds nocache=1. D11 keeps systemeval's output as it is.

Checked

  • Output unchanged. The old systemeval (origin/main) and the new one ran on a 10-minute cut of uc4_canary.json (252,630 samples) against the same fake server, for both systems, with a trailing slash on the URL:

    • the output JSON is identical, timing fields aside;
    • the requests are identical: method, path, body SHA-256 and headers.

    An independent review reproduced this with --speed, smaller batches and busy (429) answers as well.

  • cargo fmt --check; cargo clippy -p system-bench -p aqpbm-cli --all-targets --all-features -- -D warnings. Tests pass apart from the known Linux-only one.

Differences:

  • systemeval's HTTP client now has the connections' timeouts: 5 s to connect and 600 s per request; before, it had none. In the archived phase 3 runs the slowest query took 0.03 s.
  • A failed VictoriaMetrics flush now includes the server's answer in its error message.

🤖 Generated with Claude Code

@GordonYuanyc
GordonYuanyc force-pushed the system-bench/end-to-end-adapters branch from ae58ceb to 0c6ab19 Compare November 25, 2026 09:31
@GordonYuanyc
GordonYuanyc force-pushed the systemeval/drive-the-adapters branch from 7fea694 to a0f53a9 Compare November 25, 2026 09:53
… trait

Step 6c of #267 (decision D11: systemeval stays until the harness closes
its gaps), stacked on 6b:

- systemeval::servers::Server is the two servers systemeval can drive:
  ASAPQuery-backend and VictoriaMetrics, each through its adapter's own
  connection (AsapqueryBackendConnection: watermark and status;
  VictoriaMetricsConnection: force_flush). Each system's protocol is
  written once, in its adapter; systemeval keeps its own batching, pacing
  and write statistics.
- systemeval's System trait and systemeval/system/ are gone.
- Checked: the old and the new systemeval, run on a 10-minute cut of
  uc4_canary.json against the same fake server for both systems, write
  the same output (timing fields aside) and send the same requests
  (method, path, body hash, headers).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GordonYuanyc
GordonYuanyc force-pushed the systemeval/drive-the-adapters branch from a0f53a9 to 0483f00 Compare November 25, 2026 10:03
@GordonYuanyc
GordonYuanyc changed the base branch from system-bench/end-to-end-adapters to main November 25, 2026 10:03
@GordonYuanyc
GordonYuanyc merged commit 09de1ca into main Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant