Skip to content

3.x.x: version 3.0.0-rc.7 and its release notes (#557) - #772

Closed
RobertClarke wants to merge 1 commit into
3.x.xfrom
RobertClarke/rc7-version-bump
Closed

RobertClarke wants to merge 1 commit into
3.x.xfrom
RobertClarke/rc7-version-bump

Conversation

@RobertClarke

@RobertClarke RobertClarke commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Version 3.0.0-rc.7 and its release notes, in rc.6's bump pattern (#756).

  • Versions: VERSION and [workspace.package].version are 3.0.0-rc.7. Both Cargo.lock files move only their workspace-member entries: five in the root, three in crates/qbit-prism-server/fuzz.
  • New notes: doc/release-notes-3.0.0-rc.7.md.
  • Updated notes: doc/release-notes-3.0.0.md and doc/release-notes-3.x.x-development-line.md name rc.7 and link all seven candidates' notes.
  • Guide: docs/prism-rust-migration.md says, where it lets frontends admit traffic before import-audits finishes, that from rc.7 an import beside them holds SETTLEMENT_LOCK only for each row's guard read and commit, under its two bounds. It adds that an earlier candidate's import there needs 3.x.x: import-audits holds SETTLEMENT_LOCK while writing a large canonical audit body (≥90 s for ~112 MB), stalling template refresh and settlement #765's guard.

What rc.7 is (rc.6 plus two PRs)

PR Change
#760 12f1ae8e #759: every node RPC client (the frontends', the public API's and the load harness's) keeps an idle connection for at most 20 s, below qbitd's 30 s idle close. Keep qbitd's -rpcservertimeout, and any proxy's idle timeout, above 20 s.
#770 4c134913 #765: import-audits sends and stores each legacy audit before it takes SETTLEMENT_LOCK, and holds the lock only for the write guard and the commit. Each phase is bounded by two new settings, PRISM_IMPORT_AUDITS_WRITE_TIMEOUT_MS and PRISM_IMPORT_AUDITS_LOCK_TIMEOUT_MS. It stops on SIGTERM or SIGINT and prints one stderr line per row. Import path only.

No migrate: this candidate requires the same migrations (2–26) as rc.6, declares the same capabilities and builds the same configuration fingerprint. REQUIRED_SCHEMA_VERSIONS and migrations/ are unchanged since v3.0.0-rc.6, and so are the evidence and admission-gate scripts. An upgrade from rc.6 replaces the binary.

The two new settings are accepted by rc.7 binaries only. rc.6's run and check-config refuse an unknown PRISM_* name in production mode. So pass them only to an rc.7 import-audits run, and remove them before rolling back to rc.6.

The notes cover:

Checks

Release plan

🤖 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.

Set VERSION and [workspace.package].version to 3.0.0-rc.7: rc.6 plus
#770 (#765: import-audits sends and stores each legacy audit before it
takes SETTLEMENT_LOCK, holds the lock only for the write guard and the
commit, bounds each phase with two new settings, stops on SIGTERM or
SIGINT and prints one stderr line per row) and #760 (#759: every node RPC
client keeps an idle connection for at most 20 s, below qbitd's 30 s idle
close). Both Cargo.lock files move only their workspace-member entries.

doc/release-notes-3.0.0-rc.7.md covers:
- the changes: #770's per-row order, its two bounds,
  PRISM_IMPORT_AUDITS_WRITE_TIMEOUT_MS and
  PRISM_IMPORT_AUDITS_LOCK_TIMEOUT_MS, its failure, stop and stderr
  output, and its measurement (a 112.2 MB body: rc.6's order held the
  lock 3.145 s, this candidate 13 ms; with the send slowed, 14.9 s against
  16 ms); and #760's 20 s bound, with the rule to keep qbitd's
  -rpcservertimeout and any proxy's idle timeout above it;
- upgrading: rc.7 adds no migration, capability or evidence script, so an
  upgrade from rc.6 replaces the binary, one frontend at a time if wanted.
  Its two settings are accepted by rc.7 binaries only, since rc.6's run
  and check-config refuse an unknown PRISM_* name in production mode, so
  a rollback to rc.6 removes them first;
- the same evidence set as rc.6's;
- the known issues: rc.6's, with #765 and #759 fixed, and #771 (the sqlx
  0.8.6 TLS lost-wakeup backport for the serving binary), #762, #757 and
  #758 open since rc.6.

The development-line notes name 3.0.0-rc.7, and they and the 3.0.0 notes
link all seven candidates' notes.

docs/prism-rust-migration.md says that from rc.7 an import beside
serving frontends holds SETTLEMENT_LOCK only for each row's guard read
and commit, under its two bounds, and that an earlier candidate's import
there needs #765's guard.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 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-10T18:46:11.633384Z b7b6923 PR opened
ℹ️ 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.

@RobertClarke

Copy link
Copy Markdown
Member Author

COORDINATOR DECISION NEEDED: should one failed L3 cell on #772 be rerun before the tag?

L3 l3-full run 38076987274 is still running. It measures refs/pull/772/merge (commit bd89b156, tree 72cb86f8). At 19:20Z, 20 cells had passed, 1 had failed and 15 were still to run. I'll post the DELEGATE REPORT when it finishes.

The failed cell: throughput-400k-window-2fe-async-3-blocks-r1 (job 114286427662).

  • One gate failed: steady_state: valid shares refused | 1 | <= 0.
  • The rest of the cell passed: the harness exited 0, reconciliation was exact, no shares were lost, steady-state ACK p99 was 1.6 ms, and the burst phase met its target.
  • r2 and r3 of the same cell passed in this run. All three reps passed on rc.5 (run 37725394775) and on rc.6 (run 37768281661).

What the refusal was: #716's open race, not an rc.7 change.

Why it matters for the tag: scripts/prism_l3_promote.py:10-19 also promotes a complete run that failed a gate, "and the tag run then fails with it". If this run stays as it is, the v3.0.0-rc.7 L3 promotion run fails too.

Options

Either way I won't push or rerun anything.

@RobertClarke

Copy link
Copy Markdown
Member Author

COORDINATOR DECISION: A.

@RobertClarke

Copy link
Copy Markdown
Member Author

DELEGATE REPORT: rc.7 bump PR #772. CI is green and Codex is clean. L3 attempt 1 is complete: 32 of 33 cells passed, and the one failure is #716's race. It's ready for your rerun (decision A).

PR #772, head b7b692321a60dc929e21fadac88a2037dc786e2c (tree 72cb86f8), on 3.x.x tip 4c134913, which hasn't moved since I opened the PR. One commit, the same 8 files as #756.

Versions: VERSION and [workspace.package].version are 3.0.0-rc.7. Both Cargo.lock files move only their member entries (5 + 3). check_version_skew.py passes.

No migration: REQUIRED_SCHEMA_VERSIONS is still 2..26, and nothing under migrations/ has changed since v3.0.0-rc.6. Capabilities, the configuration fingerprint, and the evidence and gate scripts are unchanged as well.

CI: run 38076987355 succeeded, 20/20 jobs. That includes the four PostgreSQL shards, "Prove every Rust PRISM gated test executed" and "Lint, compile, and test". The nightly gate, run 38076987284, passed.

L3 l3-full: run 38076987274, attempt 1, completed at 19:38:29Z: complete, 32 of 33 cells passed their gates. All 33 reached their gate, and the verdict reads complete: true, passed: false. collate failed as designed, at its step "Fail unless every planned run passed its gate".

Codex: reviewed b7b6923 ("PR opened"). It finished at 18:46:11Z with no findings and reacted 👍 at 18:46:14Z. There are no threads.

Review before opening:

  • An independent read-only fact-check of the notes raised 10 points. One was a real error: rc.6's server-side store was capped by the session statement_timeout; only the send was unbounded. I applied all 10.
  • /code-review medium found no P1 and four wording P2s; I applied all four.
  • The docs-references tests (147), the settings check and a link-and-anchor check pass.

For the merge, after the rerun passes: squash with --match-head-commit b7b692321a60dc929e21fadac88a2037dc786e2c and the subject 3.x.x: version 3.0.0-rc.7 and its release notes (#557) (#772). After the merge I'll check over HTTP that the tip of 3.x.x is the squash commit, that its tree is 72cb86f8 and that its parent is 4c134913.

On "[coordinator] GO tag rc.7":

  • B3 (me): the annotated tag v3.0.0-rc.7 on the squash commit, with a message in rc.6's shape, then the tag push, which makes L3 promote this run on the tree match. Then gh release create v3.0.0-rc.7 --verify-tag --title v3.0.0-rc.7 --prerelease --latest=false. Its body is the notes minus the H1, with the 8 repository links rewritten to blob/v3.0.0-rc.7/; I checked every target, and the in-page #upgrading anchor stays as it did in rc.5 and rc.6.
  • B4 (yours, "(C)" in the kit): my token gets HTTP 403 on a workflow dispatch. I probed with a ref that doesn't exist, so nothing ran. After the tag push, run:
    gh workflow run ci.yml -R Qbit-Org/qbit-mining-bootstrap --ref v3.0.0-rc.7
    gh workflow run prism-load-nightly.yml -R Qbit-Org/qbit-mining-bootstrap --ref v3.0.0-rc.7 \
      -f preset=short-plan-fake-node,short-plan-real-node,soak-smoke,faults-short-real-node,faults-failover-fake-node \
      -f ref=v3.0.0-rc.7 -f live=false -f weekly=true
    
    The batch takes about 90 min because of the live weekly job. While it runs or waits, don't dispatch any other nightly-group run: a newer dispatch cancels a pending one.
  • B5 (me): the 3.x.x: Release-candidate evidence bundle linked from #291 (#487 S21) #557 bundle, built from rc.6's config and scripts. It adds attempt 1's failed cell and collated set, and a named exception citing 3.x.x: a share under a tip-change lease is refused 'commit gate closed' when the authority try_read meets a writer, which can drop a valid share's credit and fires PrismShareAppendFailures #716, so the first attempt's failure is on record.

Release date: the notes say 2026-10-10. If the tag lands on the 11th UTC, that date is a day early. It's cosmetic, and fixing it needs a push and a new L3 run, so it's your call.

I'll wait for "[coordinator] GO tag rc.7".

RobertClarke added a commit that referenced this pull request Oct 19, 2026
…028 and 031, and p0 is never rewritten

The 3.0 -> 3.1 cutover can run 3.1's migrate against A's database before
its window, while the 3.0 pair serves on 3.0.0-rc.7. Two gated dual-sim
tests hold that to what the cutover relies on, in the fast lane and the
nightly matrix:

- R1: the 3.0 pair on rc.7 under load (database made by rc.7's migrate,
  every start with PRISM_POSTGRES_INIT_SCHEMA=0). 3.1's migrate runs once
  with A's frontend environment while a reader holds a snapshot, so 031's
  CREATE INDEX CONCURRENTLY is caught part-way. 027 and 028 commit with no
  share refused and none waiting the 5 s lock timeout, appends continue, a
  block lands, A restarts and serves with 31 unrecorded and the index
  invalid, then 31 is recorded, the index is valid on the writer and the
  standby, B restarts at 31, a last block lands, and the checker's
  invariants hold.
- p0: on a populated ledger with an appender under the frontends' lock
  timeout, p0 and its TOAST table keep relfilenode, relfrozenxid and
  relminmxid and their vacuum and analyze counters, the statement log holds
  no VACUUM, ANALYZE, CLUSTER or REINDEX, and p0's only index build is
  CREATE INDEX CONCURRENTLY (qbit-tools #1345).

A by-hand measurement runs the second at millions of rows. The gate gains
PRISM_TEST_RC7_SERVER_BIN, and the prism-rc7-server action builds the
pinned rc.7 commit (#772's head b7b6923) once per pin.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RobertClarke added a commit that referenced this pull request Oct 19, 2026
… 031, and p0 is never rewritten (#773)

* 3.1 pre-migrate: rc.7 keeps serving while 3.1's migrate applies 027, 028 and 031, and p0 is never rewritten

The 3.0 -> 3.1 cutover can run 3.1's migrate against A's database before
its window, while the 3.0 pair serves on 3.0.0-rc.7. Two gated dual-sim
tests hold that to what the cutover relies on, in the fast lane and the
nightly matrix:

- R1: the 3.0 pair on rc.7 under load (database made by rc.7's migrate,
  every start with PRISM_POSTGRES_INIT_SCHEMA=0). 3.1's migrate runs once
  with A's frontend environment while a reader holds a snapshot, so 031's
  CREATE INDEX CONCURRENTLY is caught part-way. 027 and 028 commit with no
  share refused and none waiting the 5 s lock timeout, appends continue, a
  block lands, A restarts and serves with 31 unrecorded and the index
  invalid, then 31 is recorded, the index is valid on the writer and the
  standby, B restarts at 31, a last block lands, and the checker's
  invariants hold.
- p0: on a populated ledger with an appender under the frontends' lock
  timeout, p0 and its TOAST table keep relfilenode, relfrozenxid and
  relminmxid and their vacuum and analyze counters, the statement log holds
  no VACUUM, ANALYZE, CLUSTER or REINDEX, and p0's only index build is
  CREATE INDEX CONCURRENTLY (qbit-tools #1345).

A by-hand measurement runs the second at millions of rows. The gate gains
PRISM_TEST_RC7_SERVER_BIN, and the prism-rc7-server action builds the
pinned rc.7 commit (#772's head b7b6923) once per pin.

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

* 3.1 pre-migrate tests: catch every index build on p0, and anchor R1's restarts

From a local review of #773:
- An index build on p0 is any CREATE INDEX on it, named or not, or on the
  ledger without ONLY (which recurses into every partition); the scratch
  apply's statements, under the migrator's rolled-back savepoint, are left
  out, and maintenance commands are counted everywhere.
- p0's TOAST table's vacuum and analyze counters are compared too
  (pg_stat_all_tables), and log timestamps are compared by date and time,
  so a run across midnight measures right.
- The seed is refused unless every row stays in p0.
- R1's restarts wait for the balancer to mark the node down before starting
  it, require a graceful stop, and count shares from when the balancer had
  the node up again; the one-off migrate and the appender are aborted, and
  the migrate killed, when a step fails first.

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

* 3.1 pre-migrate tests: the pair serves rc.6, not rc.7

rc.7 was skipped: the pair serves v3.0.0-rc.6 (81c592c) until the 3.1
repin, so the pre-migrate runs beside rc.6 frontends, and R1 and the p0
test run rc.6 (PRISM_TEST_RC6_SERVER_BIN, the prism-rc6-server action at the
v3.0.0-rc.6 commit). rc.6's start gate, require_schema_version, its
NATIVE_CAPABILITIES and its connect-time capability checks are identical to
rc.7's (4c13491), as are the migration files.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
kiwidream added a commit that referenced this pull request Oct 22, 2026
* 3.0.x: version 3.0.0 and its release notes (#557)

3.0.0 is 3.0.0-rc.6 plus #770 (#765) and #760 (#759), the two fixes
#772 prepared as 3.0.0-rc.7, which was never tagged. The 3.0.x branch
starts at #770's merge, 4c13491, before 3.x.x took the 3.1 dual writer.

- VERSION, [workspace.package].version and the workspace-member entries
  of both Cargo.lock files move to 3.0.0.
- doc/release-notes-3.0.0.md becomes the 3.0.0 notes: #772's rc.7 notes
  as the changes since rc.6, then the D5 recovery contract it held.
- The development-line note and the migration guide name 3.0.0.

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

* 3.0.x: update rustls, rustls-webpki and webpki-roots for six RustSec advisories

cargo deny fails on rc.6's lockfile with RUSTSEC-2026-0346, -0347, -0348
and -0349 (rustls < 0.23.46), RUSTSEC-2026-0382 (rustls-webpki
< 0.103.16) and RUSTSEC-2026-0381 (webpki-roots < 1.0.10). Move each to
its first fixed patch release with cargo update --precise, in the root
and fuzz lockfiles, as #354 did for RUSTSEC-2026-0285. No other
dependency changes.

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

* 3.0.x: describe 3.0.0 as this line's production release

The development-line note's status, not-done and upgrade sections, and
the README banner, said no production release of the Rust server
existed. With the coordinator's go-ahead for 3.0.0 they now point to
3.0.0 on 3.0.x and its notes, and say 3.x.x continues as 3.1. The 3.0.0
notes list the TLS dependency update.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kiwidream

Copy link
Copy Markdown
Member

Closing as superseded. rc.7 was never tagged: its two fixes, #770 (#765) and #760 (#759), shipped in 3.0.0 through #776 (merged into 3.0.x as aabe470), whose release notes carry this PR's rc.7 notes as the changes since rc.6. 3.x.x has since moved to 3.1.0-rc.1 (#774).

@kiwidream kiwidream closed this Oct 22, 2026
@RobertClarke
RobertClarke deleted the RobertClarke/rc7-version-bump branch November 3, 2026 20:48
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