Repository navigation
3.x.x: run the 2.x.x migration lifecycle weekly on a real node: migrate, mine, reconcile, isolated-restore rollback (#545) - #565
Conversation
…te, mine, reconcile, isolated-restore rollback (#545) #487 S20. A 2.x.x ledger built from the frozen schema_2x release SQL and scaled up (60,000 ledger rows with rejects, 250 Zipf-weighted recipients, 36 found blocks with signed audit bundles in all three historical body layouts, chained carry-forward rows, drained candidates) goes through docs/prism-rust-migration.md#recovery-and-rollback, the one-way migration with isolated-restore reconciliation #287 settled: - the drained source's evidence and a pg_dump backup; - an isolated restore that reconciles exactly before any native ACK; - migrate and import-audits, with evidence unchanged and every historical artifact served byte for byte from PostgreSQL; - both native servers mining their own blocks on the real regtest node over the migrated history: 2.x.x rows untouched, share sequence and publication order continued, the carry chain replayed across the cutover, native audits verified against the node's coinbase, self-check complete; - the post-ACK boundary: the runbook's tail query is exactly the native shares, the isolated restore still equals the source and holds none of them, and the legacy revert refuses the native schema. The legacy pool blocks are real blocks on the regtest chain, mature under the tip, because the native observer checks the latest mature block against the node and a missing one is a fatal state. The scenario is an #[ignore] live_regtest test listed in the new test/prism-weekly-gated-tests.txt. prism-load-nightly.yml gains a Sunday schedule and a live-weekly job that runs that list and proves it executed with check_gate_manifest.py; the weekly schedule runs only that job, and dispatch can add it with `weekly`. Fixture gains open_with_inputs and server_command so the scenario can take PostgreSQL's tools through the gate and run operator subcommands with a frontend's settings. Refs #545, #487 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f4bd89d977
ℹ️ 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".
…io (#545) 60,000 rows over 36 blocks left 24 unwritten: the first LEGACY_SHARES % LEGACY_BLOCKS blocks now take one more row, and the seed refuses a count other than LEGACY_SHARES. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e25dd461f
ℹ️ 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".
…he lifecycle scenario (#545) Runbook step 4 runs the forward migration and the audit import against the isolated restore. A second restore of the same backup now takes them and must reconcile exactly with the source and serve every artifact, before the cutover runs the same commands on the source. The first restore stays the pre-migration database the rollback checks read. Fixture::tool takes the database it runs against. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…from 3.x.x (#565, #561) (#583) * main: sync the PRISM load-harness nightly workflow from 3.x.x (#565) Schedules run from the default branch's copy of this workflow, so #565's weekly 2.x.x migration-lifecycle schedule (Sunday 03:43 UTC) and its schedule-specific job conditions only fire once main carries them. The file is copied byte for byte from 3.x.x; jobs still build and test the `ref` input (3.x.x by default). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * main: copy the PRISM load-harness runner probe workflow from 3.x.x (#561) GitHub dispatches a workflow only when its file is on the default branch, so #561's dispatch-only runner probe can't run until main carries it, and #541's runs are blocked on that. The file is copied byte for byte from 3.x.x at e961113; every job that uses a repository file checks out the `ref` input (3.x.x by default) first. Refs #589 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: Anatolie <[email protected]>
Closes #545 (#487 S20), except the manifest criterion (see below).
What
A weekly real-node scenario that takes a scaled 2.x.x ledger through the whole of
docs/prism-rust-migration.md#recovery-and-rollback, the one-way migration with isolated-restore reconciliation #287 settled.Seed. Built from the frozen
schema_2xrelease SQL, scaled up from the 3 rowsmigration_rollbackuses:The legacy pool blocks are real blocks on the regtest chain and are mature under the tip. The native observer checks the latest mature block against the node, and a block the node lacks is a fatal state.
Runbook steps, in order:
scripts/prism-recovery-evidence.{sql,py}) and apg_dumpbackup.qbit-prism-server migrateandimport-audits. Evidence is unchanged, both completeness counts are 0, and after the source files are deleted every artifact is still served byte for byte, with its ETag, from PostgreSQL.qbit_carry_forward_integrity_report()is clean across the cutover, and native carry rows build on 2.x.x balances;self-checkreports complete history.Where it runs
migration_lifecycle_tests::weekly_2x_ledger_migrates_mines_reconciles_and_restores_in_isolation, an#[ignore]test inlive_regtest. The per-PR job does not run it.test/prism-weekly-gated-tests.txtlists it.prism-load-nightly.ymlgains:43 3 * * 0);live-weeklyjob on an 8 vCPU runner with a 60 min timeout, which runs that list and proves it executed withcheck_gate_manifest.py;weeklyinput forworkflow_dispatch.live-weekly. The nightly jobs now key on the nightly cron.Fixturegainsopen_with_inputs, so the scenario can also takePRISM_TEST_PG_BIN_DIRthrough the gate, andserver_command, so operator subcommands run with a frontend's settings. Existing callers behave the same.Verification (local: pinned qbitd 1.0.0, PostgreSQL 16.15)
check_gate_manifest.py --expected test/prism-weekly-gated-tests.txt: all 1 expected test executed.live_regtest(non-ignored): 56 passed, 3 ignored.cargo fmt --check,cargo clippy -p qbit-prism-server --all-targets -D warningsandactionlintpass, as do thetest_docs_lab_prism_referencesandtest_check_gate_manifestunit tests.Open items
main. Like main: run the PRISM load-harness nightly from the default branch (#521) #538,prism-load-nightly.ymlonmainhas to be updated to match this file before the Sunday cron fires; until thenworkflow_dispatchwithweekly: trueruns the scenario. That mirror is a separate PR intomain.test/prism-weekly-gated-tests.txt. The acceptance criterion stays open until then.docs/prism-ledger-ops.md, "negative balances remain visible debt"), caused by regtest's dense block cadence. The integrity report is clean, and the test does not assert on it.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.