Skip to content

3.x.x: production-window matrix (L3) on the version bump, release-candidate, v* tags and weekly (#550) - #608

Merged
RobertClarke merged 4 commits into
3.x.xfrom
Anatolie/550-l3-matrix
Oct 6, 2026
Merged

RobertClarke merged 4 commits into
3.x.xfrom
Anatolie/550-l3-matrix

Conversation

@Anatolie

@Anatolie Anatolie commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Refs #550 (S5 of #487). Restacked onto 3.x.x after #564 landed.

This does not close #550. Two of its three acceptance criteria can only be shown by running the workflow: a dispatch reproducing #447's matrix, and a tag dry run. The third, "the reduced weekly run completes on its schedule", can be shown only after this file reaches main (the default branch, where schedules run) and a week has passed.

What this adds

  • Three 3.x.x: Record the D1 production-window load matrix (200k/400k/500k) that #271 could not run #473 cells as presets, every flag as 3.x.x: Record the D1 production-window load matrix (200k/400k/500k) that #271 could not run #473 ran them on a1937054:
  • crates/qbit-prism-load/presets/suites.toml (qbit.prism.load-suites.v1): named suites, kept apart from each preset's schedule, so a preset can be nightly and in L3 at once. Each suite has repeats (one job each) and an optional runner.
  • qbit-prism-load-compare --collate: one build × N presets rendered into 3.x.x: Record the D1 production-window load matrix (200k/400k/500k) that #271 could not run #473's document tables.
    • Per D1 phase, a row per preset: sessions, window, frontends, replication and plan, then 3.x.x: reusable release benchmark: A/B driver, D1 comparison summarizer and reference host (#511) #564's compare::row cells under COLUMNS.
    • Every run is held to its preset's gates and to qbit-prism-load-gate's own exit.
    • A run counts only when:
      • its artifact is present;
      • its report names the plan's commit;
      • it ran the checked-in preset byte for byte (SHA-256);
      • it was built from a clean tree.
    • A missing or foreign run is listed and fails the suite; it is never dropped (EP-OBSERVABILITY).
    • It writes qbit.prism.l3-verdict.v1: complete when every run reached its gate, passed when every one passed it.
  • .github/workflows/prism-load-l3.yml: the nightly's guard, plan, build-once and run-matrix pattern, reusing prism-load-run.sh, then a collate job. Triggers:
    • a pull_request into 3.x.x or main that changes VERSION, same-repository only, checked in the changes job (a trigger-level paths filter would also gate the label event);
    • labeled with release-candidate;
    • push: tags: ['v*'];
    • workflow_dispatch (suite, ref, tag_dry_run);
    • weekly (Monday 06:13 UTC) for l3-reduced on 3.x.x.
    • Concurrency is per PR and label (a new push cancels the older push's run; an unrelated label cancels nothing) and per tag. Every job has a timeout-minutes and the matrix runs at most 8 jobs at once. It is not a required check. The only permissions are contents: read, plus actions: read and pull-requests: read where needed; there is no contents: write.
  • scripts/prism_l3_promote.py (+ tests): the tag decision.
    • The plan job records git rev-parse HEAD^{tree}.
    • The collate job uploads prism-l3-verdict-<tree>.
    • A tag, or a tag_dry_run dispatch, promotes the newest finished same-repository pull_request run of l3-full whose verdict is complete for that tree: it re-uploads that run's tables and verdict, links the run, and carries its verdict. Otherwise the full suite runs.
    • A failed lookup means a rerun, never a promotion.
  • scripts/check_e2e_scenarios.py: a suites evidence key, the lane is the suite's own, and a scenario that cites suites may cite only presets those suites run. Lane L3 and l3-production-window-matrix now have runs = true.
  • Docs:

Decision for review

The brief says the tag promotes the newest successful PR run. I implemented "finished and complete": every planned run reached its gate, whether it passed or failed. The promoted verdict is carried, so a tag promoting a run that failed a gate fails too. The reason: several #473 cells miss their own strict gates by one or two refused shares at 1 or 2 frontends async. With "successful", the tag would almost never promote, and would rerun a tree that will measure the same. If you want strict success instead, it is a one-line change in verdict_rejection.

Verification (local, this branch)

  • cargo test --locked -p qbit-prism-load: all pass, including the new tests/collate.rs (7 tests), and realism.rs validates the three new presets through the harness's own entry checks. cargo clippy -p qbit-prism-load --all-targets -D warnings and cargo fmt are clean.
  • qbit-prism-load-compare --validate-preset passes on all three new presets. --collate was run end to end on a synthetic l3-reduced plan with one missing artifact and one failed gate. The tables came out as expected and it exited 1.
  • python3 -m unittest tests.test_prism_l3_promote tests.test_prism_load_matrix tests.test_check_e2e_scenarios tests.test_prism_load_ab: all pass. python3 scripts/check_e2e_scenarios.py passes. actionlint .github/workflows/prism-load-l3.yml is clean.
  • The collate step's failed-build branch was run locally against a fake plan.
  • Not done: no workflow run of any kind (no dispatch, no tag, no Blacksmith job). The first dispatch of l3-full and a tag_dry_run on a matching and a non-matching tree are left to the coordinator.

Since the handover (#626)

🤖 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 30, 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:25:25.010821Z ca5a774 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.

@kiwidream

Copy link
Copy Markdown
Member

Heads-up: #644 (#548, CTV fanout settlement in qbit-prism-load) merged into 3.x.x as 3f1fba6b. Every checked-in preset must now pin --ctv-settlement, otherwise check_complete (realism.rs / preset.rs) fails after a rebase, without a textual conflict. The new presets in this stack need the key: dense-cadence-400k-*-async ×2, throughput-400k-window-2fe-async-3-blocks, and session-point-5000/10000. Use false, except #555's 10,000-recipient point, which can now set true to build fanout. Every preset's sha256 changed with #644, so each L2 trend series restarts once.

🤖 Generated with Claude Code

@RobertClarke

Copy link
Copy Markdown
Member

Taking this over per #626. After #564 lands, I'll do the following, then review and merge:

🤖 Generated with Claude Code

@RobertClarke
RobertClarke force-pushed the Anatolie/550-l3-matrix branch from b55301b to 6f5ca08 Compare October 6, 2026 02:40
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 changed the base branch from Anatolie/511-release-bench to 3.x.x October 6, 2026 03:21
Anatolie and others added 4 commits October 5, 2026 23:21
…name the L3 suites (#550)

Three presets from #473's run table, every flag as it ran them on
a193705: throughput-400k-window-2fe-async-3-blocks (--scheduled-blocks 3)
and dense-cadence-400k-window-{1,2}fe-async (--cadence dense
--scheduled-blocks 15). The 20k dense attempt, which exited 6, is not a
preset.

presets/suites.toml names suites apart from each preset's schedule, so a
preset can be nightly and in L3 at once: l3-full is #447's matrix, every
#473 cell three times, and l3-reduced is 400k at 1, 2 and 4 frontends,
async, once. Both take the 32 vCPU class until #542 picks one.
prism_load_matrix.py plans a suite as suite:<name>, one job per repeat,
and reads the file only for a suite selection, so a broken suite never
stops the nightly's plan.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…summarizer (#550)

qbit-prism-load-compare --collate reads the plan job's plan.json and each
run job's artifact and prints, per D1 phase, a row per preset: #473's
configuration columns (sessions, window, frontends, replication, plan)
and compare::row's cells, so a cell reads the same as in the A/B table.
Every run is held to its preset's own gates.

A run counts only when its artifact is there, its report names the plan's
commit, it ran the checked-in preset byte for byte and was built clean. A
planned run with no artifact or another build's report is listed and
fails the suite, never dropped. The verdict (qbit.prism.l3-verdict.v1)
says whether every run reached its gate and whether every one passed it;
a tag's promotion reads it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ase-candidate label, a v* tag and weekly (#550)

.github/workflows/prism-load-l3.yml copies the nightly's plan, build-once
and run-matrix pattern and its runner script, then collates the suite.
l3-full runs on a pull request into 3.x.x or main that changes VERSION
(checked by the changes job, since a trigger-level paths filter would
also swallow the label event), when a maintainer applies
release-candidate, on a v* tag and on dispatch; l3-reduced runs weekly on
3.x.x.

A tag promotes the newest finished same-repository pull request run of
l3-full whose verdict is complete for the tagged tree
(scripts/prism_l3_promote.py), carrying its tables and verdict, and runs
the suite otherwise; a failed lookup is a rerun. Dispatch with
tag_dry_run does the same without a tag. Per-PR, per-label and per-tag
concurrency, a timeout on every job, never a required check.

check_e2e_scenarios.py reads suites as evidence of the lane they name;
lane L3 and l3-production-window-matrix now run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… 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 force-pushed the Anatolie/550-l3-matrix branch from 6f5ca08 to ca5a774 Compare October 6, 2026 03:22
@RobertClarke
RobertClarke merged commit 42d60a6 into 3.x.x Oct 6, 2026
40 checks passed
@RobertClarke
RobertClarke deleted the Anatolie/550-l3-matrix branch October 6, 2026 03:40
RobertClarke added a commit that referenced this pull request Oct 6, 2026
Set VERSION and [workspace.package].version to 3.0.0-rc.1, the first
release candidate of 3.0.0. Cargo.lock and the fuzz crate's own lock move
only their workspace-member entries; no third-party dependency changes.

doc/release-notes-3.0.0-rc.1.md describes the candidate:
- what it is: the tree #291's go/no-go evaluates, not a production
  release, run with both submission holds for a rehearsal;
- the highlights since 2.0.x;
- the upgrade contract: D5, confirmed-only block counts, the retired
  settings, migrations through 024, the qbit 1.0.0 pin;
- how a candidate is verified: CI and L3 on the version-bump PR, the
  tag promoting L3 on a tree match (#608), the nightly set dispatched by
  hand, and the evidence bundle on the tag's pre-release (#557);
- the issues and #291 criteria still open when it was cut.

The development-line notes name 3.0.0-rc.1 as the tree's identity, and
they and the 3.0.0 notes link to the candidate's notes. The text was
reviewed twice and checked against #284 (U3).

L3 run 37417900875 (l3-full, 33 runs) measured this tree and passed
every run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RobertClarke pushed a commit that referenced this pull request Oct 6, 2026
…reduced L3 (#555) (#614)

Refs #555 (S17 of #487), part a. The weekly l3-reduced suite now also
runs #555's session points and #521's mainnet shapes, nine jobs a week
on the 32 vCPU class:
- session-point-5000- and session-point-10000-sessions-400k-2fe-async:
  throughput-400k-window-2fe-async at 5,000 and 10,000 sessions, with
  admission at sessions per frontend + 16. A test holds them to differ
  in exactly those two flags. They are capacity-envelope points, not
  D1 verdicts: they gate reconciliation and steady_state shortfall.
  Refused and unanswered shares are reported, not gated.
- mainnet-shape-{130,650,2600}-addresses and
  rental-churn-bursts-and-storms.

The manifest marks session-points and mainnet-shapes-reduced-l3 as
running. The 50,000-recipient trigger is written down in the README:
the 10,000-recipient point costing more than 25% more per recipient
than the 1,000-recipient run. That point still has no preset;
since #548 (#644) it can be written with --ctv-settlement on.

Taken over per #626 and restacked onto 3.x.x after #608. Both presets
pin --ctv-settlement false and --faults null.
docs/prism-e2e-load-ci.md gets #626's l3-reduced row, cost and
capacity-envelope paragraph.

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.

3 participants