Skip to content

3.x.x: reusable release benchmark: A/B driver, D1 comparison summarizer and reference host (#511) - #564

Merged
RobertClarke merged 30 commits into
3.x.xfrom
Anatolie/511-release-bench
Oct 6, 2026
Merged

RobertClarke merged 30 commits into
3.x.xfrom
Anatolie/511-release-bench

Conversation

@Anatolie

@Anatolie Anatolie commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Part of #511 (S4 of #487). Targets 3.x.x, so it will not close the issue automatically.

Three commits: the summarizer, the driver, the docs.

What was already on 3.x.x

#536 landed the checked-in presets and the rule that every result flag must be pinned, with the test that fails when a preset leaves one to a harness default (tests/realism.rs); #559 renamed them (d1-20k is now throughput-20k-window-1fe, d1-473-400k-fe1-async is throughput-400k-window-1fe-async). This PR adds what #511 still lacked.

What this adds

  • qbit-prism-load-compare, the summarizer.
    • Output: one table per D1 phase with a row per build, the preset's own gates per build, a run table with the host load around each run, and the flush-class line.
    • The D1 rule, over every repeat: exit 0, shortfall == 0, no valid share refused, no submit unanswered, ACK p99 within the limit.
    • The preset's own gates on every run, through gate::evaluate (reconciliation, durability, tip-delivery and churn budgets).
    • The pinned workload. Every counted run must have driven what the preset pins, as the harness's own parser and planner derive it: topology, the payout window (solved and measured in the database), the frontends' server settings, the realism, churn, node and dense-cadence settings, external tips, scheduled blocks, reconnects, memory floor, ACK limit and forecast, and each planned phase's rate, length (within 5%), artifact membership and database delay. A build whose harness predates a flag is exempt only where the driver dropped that flag as legacy.
    • Verdict: PASS or FAIL for the candidate, a regression flagged when the base passes and the candidate does not. A series with no base run in the medians fails. A report naming another build's revision is refused, never pooled; a figure a report doesn't carry fails rather than counting as zero. Exit 0 pass, 1 fail, 2 bad inputs.
    • --validate-preset runs the preset loader and the harness's own entry checks, for the driver's preflight.
  • scripts/prism_load_ab.py, the A/B driver.
    • Each ref is built in release mode in its own clean worktree; each run uses that build's own harness and server.
    • Isolation: a per-series lock and the host's benchmark lock, held from the first build to the comparison; a 60 s cooldown and a load gate (1-minute load under 3) before each run; repeats alternate which build goes first.
    • Host record: load and MemAvailable every 10 s, process snapshots, pg_test_fsync before and after the series.
    • Cleanup: the driver is a child subreaper, and on every exit path (Ctrl-C, SIGTERM, SIGHUP, a run ceiling of 2,400 s) it stops everything left below it, including the servers and PostgreSQL that leave the harness's process group with setsid(), before either lock is released.
    • --resume continues an interrupted series only on the same host with the same settings; --dry-run resolves both command lines; the preset is validated in full before any build.
  • Older builds run exactly the preset's workload. A build whose harness predates a pinned flag runs without it only when crates/qbit-prism-load/legacy-flags.json shows it ran that value anyway (for example --stratum-max-pending-initial-jobs, formerly ceil(sessions/frontends)+16, or --node fake). Otherwise the pair is refused before anything runs. So --base 5d0042f6 --candidate <commit> --preset throughput-20k-window-1fe reproduces 3.x.x: The 2,000 shares/s burst ceiling is about a fifth lower on a1937054 than on 5d0042f6, same host #479 STEP 1 in one command.
  • docs/prism-release-benchmark.md: the reference host (3.x.x: The 2,000 shares/s burst ceiling is about a fifth lower on a1937054 than on 5d0042f6, same host #479 STEP 1's Linux VM, fdatasync 288 µs per 8 kB write) and the release preset pair. The release-checklist line is in docs/mainnet-deployment.md under Release Inputs.

Verification

  • cargo test --locked -p qbit-prism-load: all pass, including tests/compare.rs (33) and tests/legacy_flags.rs (3); clippy with -D warnings and fmt clean.
  • The per-PR smoke test (tests/load_smoke.rs, run against PostgreSQL in CI) asserts that a real report reads exactly as the comparator expects: every pinned setting, topology field, server setting and planned phase.
  • python3 -m unittest tests.test_prism_load_ab: 47 pass with the matrix tests. They cover resolution against 5d0042f6's exact flag list, the refusals, the load gate, resume rules, preset preflight, and real-process tests of the cleanup (Ctrl-C, SIGTERM, a setsid descendant that ignores SIGTERM, an interrupted build).
  • A real --dry-run with release builds of 5d0042f6 and 3.x.x resolved both command lines as expected.
  • Not done: a full timed series; the host this was written on has no PostgreSQL.

Open points

Since the handover (#626)

  • Merged the current 3.x.x (c95febb3). Only the crate README conflicted.
  • 3.x.x: settle load runs through CTV fanout with --ctv-settlement, and count each landed block's direct, fanout and carried recipients (#548) #644 pinned --ctv-settlement: false in every preset, and 5d0042f6's harness has no such flag. legacy-flags.json now records that builds before 3.x.x: CTV fanout settlement in qbit-prism-load (#487 S9) #548 (3f1fba6b) ran with CTV settlement off, so the release presets still resolve against 5d0042f6.
  • Codex's three last findings are fixed (8201ffa3):
    • A pinned count is a count of distinct entries. That covers the external tips and churn tips (by tip) and the landed own blocks (accepted submissions, by block_hash).
    • The harness reports the distinct count its start-up gate read (client.sessions_holding_work_at_start), and the comparator holds --sessions to it. Reconnects and rentals inflate client.connects, so it is only the fallback for older builds.
    • Every planned phase must report completed: true.
  • Local runs:
    • all of cargo test -p qbit-prism-load --locked, with the gated binaries against PostgreSQL 16 (load_smoke, real_node with the pinned qbitd, soak_sampling and the rest);
    • the Python driver, matrix and manifest tests (79);
    • clippy -D warnings and fmt, clean.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T03:05:33.470656Z 2e17c65 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1910e1489

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Anatolie added a commit that referenced this pull request Sep 28, 2026
…moves the clusters, and require both flush readings (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2dc675ba7f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 28, 2026
… a series short of its repeats (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 692b14ad16

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 28, 2026
…d keep every isolation setting fixed on resume (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3317eb2980

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 28, 2026
…st facts held on resume, and a missing pg_test_fsync as bad input (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d7abb581d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…omparison, and startup failures exit 2 (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dc5519f02d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…g target rates, and anchor CARGO_TARGET_DIR where cargo ran (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f23b18373f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…nted run that leaves out a D1 phase (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 887be94234

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…ermination signals across the harness spawn (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ede25ae6b0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…e lock, and compare phase lengths as part of the workload (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a810757a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…ock each series directory (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e88e89f857

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…n held while it does (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1999302f8f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…, as the driver's subreaped descendants, and hold every run to the pinned ACK p99 limit (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6a6887b587

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
…d, and refuse a series without a child subreaper (#511)

Addresses review on #564.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a1ef170afa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Anatolie added a commit that referenced this pull request Sep 29, 2026
… wait out descendants that outlive SIGKILL (#511)

Addresses review on #564. legacy-flags.json gains report_fields, the
side-report fields added after 5d0042f with the commit that added each
(mem_available_unread_checks at 8c3e0ac, #514). The driver records in
the manifest which of them each build's history predates, and the
comparator requires the count in every phase of every other build, so a
newer candidate that drops it fails rather than passing on its readings
alone. The driver's descendant sweep no longer gives up ten seconds after
SIGKILL: it keeps killing and waiting, locks held, until nothing is left
below it, and says what it is waiting for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd446edd71

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
…p a series whose flush probe fails (#511)

Addresses review on #564. Every churn close of a connected session is a
storm drop, owed a reconnect, or a rental's departure, owed none; a
stormed rental that departs before reconnecting departs while
disconnected and closes nothing more. So a counted run's completed
reconnects must cover its abrupt_closes less its departures, exactly,
instead of its drops less every departure, which let unrelated
departures stand in for stormed sessions that never came back. A
pg_test_fsync probe that fails or prints no one-write fdatasync figure
now stops the series as bad input, with its output kept.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2bfc425541

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
…e checking the bits after it (#511)

Addresses review on #564. Every external tip a counted fake-node run
measured (time_to_usable_work.tips), every churn tip
(churn.tip_delivery.tips) and every own block the node accepted
(node.submissions) must appear among node.tip_changes, so a report that
keeps only the bootstrap tip no longer passes the served-bits check on
that one entry. The smoke test asserts a real report covers its driven
tips.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5f9d5554ce

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
…ing it (#511)

Addresses review on #564. The tip-coverage check took every external tip,
churn tip and accepted own block's hash and skipped a record without one,
so a candidate reporting its pinned number of tip entries without their
hashes emptied the check. Every such record must now carry its hash, and
one without is a gap that fails like a tip with no tip change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efb133a28a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/prism_load_ab.py Resolved
Addresses review on #564. A preset with an external --database-url
commits on the database host's storage, which the driver's
pg_test_fsync on this host's disk does not measure, so the comparison
now says no flush class applies instead of placing the series inside or
outside the reference class on an unrelated disk. The readings are still
printed as host facts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 146f601a04

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
@RobertClarke

Copy link
Copy Markdown
Member

Taking this over per #626.

  • Merged the current 3.x.x in. Only the crate README conflicted: two adjacent test paragraphs, both kept.
  • Fixing Codex's three open findings on 146f601a:
    • P1: distinct tip hashes;
    • P2: distinct initial sessions;
    • P2: planned phases reported incomplete.

Then a squash-merge once CI is green and threads are resolved. #608 and #614 restack after this lands.

🤖 Generated with Claude Code

…count to the distinct sessions holding work, refuse a phase reported incomplete, and let a build older than #548 run with CTV settlement off (#511)

Addresses Codex's three open findings on 146f601, and the merge of
3.x.x.

A pinned count is now a count of distinct entries. The external tips
(`time_to_usable_work.tips`, by `tip`), the churn tips delivered
(`churn.tip_delivery.tips`, by `tip`) and the own blocks landed
(accepted `node.submissions`, by `block_hash`) each count an entry once,
by its name. A list padded with one tip repeated to the pinned length
fails, as does an entry that names nothing. Genuine reports list
distinct entries: each tip is a new block, and a node answers a block it
already holds as a duplicate, never accepted again.

The harness now reports the distinct count its start-up gate read,
`client.sessions_holding_work_at_start`. The comparator holds every run
that reports it to the pinned `--sessions`. `client.connects` counts
reconnects and rentals too, so 1,988 sessions and the D1 plan's 12
reconnects reached 2,000. It stands in only for a harness older than
the count, and tests/load_smoke.rs pins the count so a newer harness
cannot drop it unnoticed.

A planned phase must report `completed: true` (every harness since #271
does). A phase an abort cut in its last 5% was within the length
tolerance, and a run whose exit code missed the abort still counted.

#644 pinned `--ctv-settlement: false` in every preset, and 5d0042f's
harness has no such flag. legacy-flags.json now records that builds
before #548 (3f1fba6) launched every frontend with CTV settlement off,
so the release presets still resolve against 5d0042f.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke

Copy link
Copy Markdown
Member

Codex's three open findings on 146f601a are fixed in 8201ffa3, which also merges the current 3.x.x. My token can't reply on review threads or resolve them, so here is one reply per thread.

P1 distinct tip hashes

Fixed in 8201ffa. A pinned count is now a count of distinct entries:

  • PINNED_REPORT_COUNTS carries each list's naming key, and pinned_count_mismatch requires the pinned number of entries, each naming a distinct tip.
  • The same rule applies to the churn tips delivered (churn.tip_delivery.tips, by tip) and to the landed own blocks (accepted node.submissions, by block_hash).
  • A list padded with one tip repeated fails ("reports 3 entries at /time_to_usable_work/tips naming 1 distinct tip…"), and so does an entry that names nothing.

Genuine reports always list distinct entries. Each tip is a new block. A node answers a block it already holds as duplicate, so it is never accepted twice. 5d0042f6's entries carry tip and block_hash. The new tests are one_tip_listed_as_many_as_pinned_counts_once, a duplicate-block case in the scheduled-blocks test, and a repeated churn tip in the churn test. load_smoke now also asserts distinct tips on a real report.

P2 distinct initial sessions

Fixed in 8201ffa:

  • Harness. It now reports the distinct count its start-up gate read before the first phase, client.sessions_holding_work_at_start (Collected::sessions_holding_work, per session, not per connection event).
  • Comparator. It holds every run that reports the count to the pinned --sessions. The D1 plan's case, 1,988 sessions plus its 12 reconnects making 2,000 connections, now fails: "held work on 1988 distinct sessions when its load began".
  • Older builds. client.connects stands in only for a harness older than the count, such as 5d0042f6, whose reports carry nothing better.
  • Tests. tests/load_smoke.rs pins the count to the preset's sessions on every PR, so a newer harness cannot drop it unnoticed. The comparator test is fewer_sessions_holding_work_than_pinned_fails_whatever_the_reconnects.

P2 incomplete phases

Fixed in 8201ffa. off_plan now requires every planned phase to report completed: true before its length is compared. A phase an abort cut in its last 5% fails ("reports steady_state as completed false, so it ran only part of the planned phase"), and so does a phase that omits the field. Every harness since #271, 5d0042f6 included, writes completed per phase. The test is a_phase_an_abort_cut_short_fails_though_its_length_is_within_tolerance.

Also in 8201ffa3: #644 pinned --ctv-settlement: false in every preset, and 5d0042f6's harness has no such flag. legacy-flags.json now records that builds before #548 (3f1fba6b) ran with CTV settlement off, so the release presets still resolve against 5d0042f6. Without it, test_every_checked_in_d1_preset_runs_on_5d0042f6 failed after the merge.

Local runs: the qbit-prism-load tests pass, including compare (50) and gated load_smoke against PostgreSQL 16. python3 -m unittest tests.test_prism_load_ab tests.test_prism_load_matrix tests.test_check_e2e_scenarios passes (79). clippy -D warnings and fmt are clean.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8201ffa322

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
RobertClarke added a commit that referenced this pull request Oct 6, 2026
… preset flags, and document L3 in the lanes page (#550)

#608 was stacked on an earlier #564. Since then #564's
`compare::Build` gained `predates_report_fields`. A collation
summarizes one build, the plan's commit, which predates no report field,
so the list is empty.

3.x.x added two result flags every checked-in preset must pin:
`--ctv-settlement` (#644) and `--faults` (#623). The three new presets
pin `false` and `null`, as the presets they derive from do, so each
differs from its source only in `--cadence` and `--scheduled-blocks`
(and the dense 1-frontend cell in its runner and schedule).

docs/prism-e2e-load-ci.md did not exist on #608's base. It now has
#626's L3 section: the lane table's row, the suites and triggers, what
L3 proves and does not, the dispatch commands and the evidence rows.
One correction to the draft: dispatch, like the weekly schedule, needs
the workflow file on `main`, so the status says L3 runs on pull
requests and tags until the file is mirrored there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8201ffa322

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread scripts/prism_load_ab.py Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
…pletion, and name an unnamed churn tip (#511)

/code-review high of 8201ffa found two places where its own checks
read differently from the counts beside them.

The scheduled-block count counts each block once, but the timing check
zipped every accepted submission against the slots. A block accepted
twice could fill one slot while another block landed after the phase.
It could also push a real landing out of its slot. Each block is now
placed once, at its first acceptance.

The completion check held only the phases the preset plans. A phase the
runs report only for information is pooled the same way, so it is now
held to `completed: true` too.

A churn tip delivered without its hash now reads as that, not as a
missing count. load_smoke holds the external tips with the comparator's
own distinct_named, so the two cannot drift. The release benchmark's
doc paragraph is rewrapped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke

Copy link
Copy Markdown
Member

Codex's five findings on 8201ffa3 are deferred to #700 under the fix-forward rule. My token can't reply on review threads, so here is one reply per thread.

These all concern a newer candidate harness that regressed in a particular way. #564 has been through about 105 rounds of this kind. Three of the five (the P1, the external-database probes, the fault-phase length) cannot occur on the release preset pair: throughput-20k-window-1fe and throughput-400k-window-1fe-async pin --frontends 1, --database-url null and --faults null.

Fixed in 2e17c655, from my own /code-review high of 8201ffa3:

  • The timing check now places each landed block once, at its first acceptance, as the count does.
  • Every reported phase, not only the planned ones, must be completed.
  • A churn tip without its hash now reads as that.
  • load_smoke uses the comparator's own distinct_named.

compare (50), load_smoke, churn and harness pass locally; clippy and fmt are clean.

🤖 Generated with Claude Code

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2e17c655eb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/qbit-prism-load/src/compare.rs Resolved
Comment thread crates/qbit-prism-load/src/compare.rs Resolved
@RobertClarke

Copy link
Copy Markdown
Member

Codex's two findings on 2e17c655 are deferred to #700, under the coordinator's rule for comparator findings about a hypothetical regressed candidate harness. My token can't reply on review threads, so here is one reply per thread.

🤖 Generated with Claude Code

@RobertClarke
RobertClarke merged commit 8d6087a into 3.x.x Oct 6, 2026
34 checks passed
RobertClarke added a commit that referenced this pull request Oct 6, 2026
… preset flags, and document L3 in the lanes page (#550)

#608 was stacked on an earlier #564. Since then #564's
`compare::Build` gained `predates_report_fields`. A collation
summarizes one build, the plan's commit, which predates no report field,
so the list is empty.

3.x.x added two result flags every checked-in preset must pin:
`--ctv-settlement` (#644) and `--faults` (#623). The three new presets
pin `false` and `null`, as the presets they derive from do, so each
differs from its source only in `--cadence` and `--scheduled-blocks`
(and the dense 1-frontend cell in its runner and schedule).

docs/prism-e2e-load-ci.md did not exist on #608's base. It now has
#626's L3 section: the lane table's row, the suites and triggers, what
L3 proves and does not, the dispatch commands and the evidence rows.
One correction to the draft: dispatch, like the weekly schedule, needs
the workflow file on `main`, so the status says L3 runs on pull
requests and tags until the file is mirrored there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke
RobertClarke deleted the Anatolie/511-release-bench branch October 6, 2026 03:22
RobertClarke pushed a commit that referenced this pull request Oct 6, 2026
…didate, v* tags and weekly (#550) (#608)

Refs #550 (S5 of #487). prism-load-l3.yml runs #447's
production-window matrix as checked-in suites
(crates/qbit-prism-load/presets/suites.toml):
- l3-full: 11 cells x 3 repeats on the 32 vCPU class. It runs on a
  same-repository PR that changes VERSION, on the release-candidate
  label, on a v* tag and on dispatch.
- l3-reduced: 400k at 1, 2 and 4 frontends, weekly on 3.x.x.

#473's found-block and dense-cadence cells become presets.
qbit-prism-load-compare --collate renders one build's suite into #473's
tables with #511's summarizer. It writes a complete/passed verdict, and
lists any missing, foreign or edited run as failing the suite rather
than dropping it. A tag promotes the newest finished same-repository
PR run of l3-full whose verdict is complete for the tagged tree
(scripts/prism_l3_promote.py), and carries that verdict; otherwise it
runs the suite. check_e2e_scenarios.py gains a suites evidence key
beside 3.x.x's lane_checks.

Taken over per #626 and restacked onto 3.x.x after #564. The new
presets pin --ctv-settlement false and --faults null, as every preset
must since #644 and #623. collate fills #564's predates_report_fields.
docs/prism-e2e-load-ci.md gets #626's L3 section, which notes that
dispatch and the weekly run need the file on main. Spend: once this is
on 3.x.x, a v* tag or a VERSION-changing PR starts l3-full (about
$42); the coordinator accepted that for the release-candidate bump.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants