Skip to content

DO NOT MERGE without coordinator GO: 3.x.x: version 3.1.0-rc.1 and its release notes - #774

Merged
RobertClarke merged 5 commits into
3.x.xfrom
RobertClarke/v3.1.0-rc.1
Oct 20, 2026
Merged

RobertClarke merged 5 commits into
3.x.xfrom
RobertClarke/v3.1.0-rc.1

Conversation

@RobertClarke

@RobertClarke RobertClarke commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Version 3.1.0-rc.1 and its release notes, the first 3.1.0 candidate (3.0.0-rc.7 was skipped; #772 stays unmerged).

The links in the notes are absolute at blob/v3.1.0-rc.1/, so they resolve on the release page once the tag exists.

Before pushing, a read-only agent checked every claim (setting names, defaults and ranges, migration behaviour, rc.6's behaviour at 81c592c3, link targets and anchors) against the code, and the findings were fixed. A local /code-review medium was run as well. #773 (rc.6 serving through 027, 028 and 031, tests only) merges first; once it does, 3.x.x is merged forward here and #773 is added to the notes. The label run-dual-writer-e2e runs the full dual-writer matrix on this PR.

🤖 Generated with Claude Code

VERSION, the workspace version and both lockfiles move to 3.1.0-rc.1.
The fuzz lockfile also picks up hyper and hyper-util, which #769 added to
the server without refreshing it. The 3.0.0 and development-line notes
point at the new candidate; its own notes follow in this pull request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke RobertClarke added the run-dual-writer-e2e Run the 3.1 dual-writer scenario matrix on this PR (prism-load-nightly.yml) label Oct 19, 2026
The notes cover everything since v3.0.0-rc.6: #770's import-audits fix
(#765) and #760's idle-connection bound (#759), which would have shipped as
rc.7, and the 3.1 dual writer (#766, #768, #767, #769, #763), off by
default. They describe the new settings, migrations 027, 028 and 031 (029
and 030 reserved), the upgrade from rc.6 with the migrate run while rc.6
serves, the rollbacks, and the dual writer's known limits. The migration
guide's import-audits paragraph names this candidate in place of the
skipped rc.7.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke
RobertClarke marked this pull request as ready for review October 19, 2026 21:04
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 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-19T22:39:55.535897Z 67b3a09 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.

@RobertClarke RobertClarke added run-dual-writer-e2e Run the 3.1 dual-writer scenario matrix on this PR (prism-load-nightly.yml) and removed run-dual-writer-e2e Run the 3.1 dual-writer scenario matrix on this PR (prism-load-nightly.yml) labels Oct 19, 2026

@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: 2df1b1082e

ℹ️ 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 doc/release-notes-3.1.0-rc.1.md Outdated
Comment on lines +306 to +310
- **From the dual writer to one writer:** stay on this candidate. Start the
single writer with `PRISM_DUAL_WRITER` off and
`PRISM_DUAL_WRITER_DOWNGRADE=1`; without it the start refuses a database
whose carry-owner journal holds rows, because a second payer of carried
balances would pay them twice. Only the deliberate rollback sets it. The

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Stop the peer before bypassing the single-writer guard

If this rollback is followed while the other dual-writer frontend is still running, PRISM_DUAL_WRITER_DOWNGRADE=1 merely bypasses refuse_single_writer_on_dual_ledger; it does not fence or stop the carry owner. The new single writer can therefore pay carried balances while the peer continues paying them, exactly the double-payment condition the guard normally prevents. Require draining traffic, synchronizing the peer tail, and stopping both dual-writer frontends before starting the selected database in single-writer mode.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 67b3a09. The rollback to one writer is now ordered. Carry ownership moves to the kept node first, and the transfer's chain scan proves every pool block is landed there. The retired node is drained: no unfinished candidate, no zero-fee fanout it is still sponsoring. Then every frontend on its database is stopped and disabled. The kept node's peer sync pulls the retired node's tail, and only then does every kept frontend restart as a single writer with PRISM_DUAL_WRITER_DOWNGRADE=1. The notes now say the flag fences nothing.

Comment thread doc/release-notes-3.1.0-rc.1.md Outdated
Comment on lines +311 to +314
database stays personalised, so declare the peer's tail lost
(`qbit_prism_node_lineage.peer_tail_lost_at`) or `share-archive plan`
waits for a peer that no longer syncs
([the peer sync](https://github.com/Qbit-Org/qbit-mining-bootstrap/blob/v3.1.0-rc.1/docs/prism-ledger-ops.md#the-peer-sync)).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve the peer tail before declaring it lost

When the retired peer has accepted rows that have not yet synced, declaring peer_tail_lost_at lets archive planning proceed as though those rows will never arrive. If that peer is later restored or dual-writer mode is resumed, its rows can target a partition that has already left and peer sync then stops until the partition is restored; accepted history may also be omitted from the chosen single-writer database. The linked operations guide explicitly says never to make this declaration for a peer that may return, so the rollback must first verify complete synchronization and limit the declaration to permanently abandoned peer state.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 67b3a09. peer_tail_lost_at is now step 5. It comes after the kept node has pulled the retired node's tail: peer reachable, no refusal, failures not rising, lag_rows 0 on all four streams, and an empty conflicts table, all checked after the stop. It is declared only for a peer that never comes back with its own database. A return to the dual writer rebuilds the retired node from the kept one, and then clears the flag on the kept node.

…he peer first

Codex on #774: DOWNGRADE fences nothing, so the peer must be stopped, and its
tail pulled, before the single-writer start; declare the tail lost only for a
peer that never returns with its own database.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RobertClarke RobertClarke added run-dual-writer-e2e Run the 3.1 dual-writer scenario matrix on this PR (prism-load-nightly.yml) and removed run-dual-writer-e2e Run the 3.1 dual-writer scenario matrix on this PR (prism-load-nightly.yml) labels Oct 19, 2026
@RobertClarke

Copy link
Copy Markdown
Member Author

CI on 67b3a09: one infrastructure failure, unrelated to the change.

  • Rust PRISM dual-writer scenarios (fast lane), job 118346748367 in CI run 39336365553, hung in its rust-toolchain step. rustup logged "downloading 5 components" at 22:38:39Z, and the job sat there until its 45-minute timeout cancelled it at 23:23:51Z. No crate was built and no test ran.
  • Lint, compile, and test, the summary job, failed only because of that cancelled job.
  • The commit changes doc/release-notes-3.1.0-rc.1.md only.
  • The fast lane's tests are a subset of the dual-writer matrix (test/prism-dual-writer-gated-tests.txt ⊂ test/prism-dual-writer-nightly-gated-tests.txt). The matrix ran on this head's merge ref, by the run-dual-writer-e2e label: job 118355966624, test result: ok. 26 passed; 0 failed.
  • Every other check on this head passed (59 success, 32 skipped).

A rerun of the failed jobs (gh run rerun --failed 39336365553) clears it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-dual-writer-e2e Run the 3.1 dual-writer scenario matrix on this PR (prism-load-nightly.yml)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant