Skip to content

3.x.x: build, download and test against Qbit Core v1.0.1 instead of v1.0.0 - #876

Merged
kiwidream merged 1 commit into
3.x.xfrom
kiwidream/v101-pin-bootstrap-3xx
Nov 16, 2026
Merged

kiwidream merged 1 commit into
3.x.xfrom
kiwidream/v101-pin-bootstrap-3xx

Conversation

@kiwidream

@kiwidream kiwidream commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Open questions

None blocking. Read For operators below: an existing .env keeps v1.0.0.

For operators

This PR changes the checked-in defaults only. An operator's .env (or DEPLOY_ENV_FILE) is sourced after config/upstream.env by both scripts/prepare-qbit-source.sh and scripts/check-env.sh, and in Compose's --env-file order. README step 1 says cp .env.example .env, and .env.example has always carried QBIT_GIT_REF and QBIT_GIT_COMMIT.

So a deployment whose .env was copied before this PR keeps building v1.0.0, and make doctor reports it as verified, because its commit matches its own .env. To move such a deployment to v1.0.1, set this in its .env or deploy env file:

QBIT_GIT_REF=v1.0.1
QBIT_GIT_COMMIT=0439a7e5b37fb3f7e4ddfb735b68961445a882c8

Deployments that pass both values from the environment, as SwapLabs' own do, are unaffected by this PR. The next 3.x release notes should carry this upgrade step.

Change

This moves every pin that selects, downloads, builds or asserts Qbit Core from v1.0.0 (7ebcddb6) to v1.0.1 (0439a7e5). v1.0.1 is a maintenance release. It has no consensus change, needs no reindex, and keeps the same mainnet and testnet4 identity.

File Old New
config/upstream.env, config/upstream.env.example, .env.example QBIT_GIT_REF=v1.0.0, QBIT_GIT_COMMIT=7ebcddb622d6e639041f005a189b048ec2a221fe QBIT_GIT_REF=v1.0.1, QBIT_GIT_COMMIT=0439a7e5b37fb3f7e4ddfb735b68961445a882c8
.github/workflows/ci.yml (qbit-runtime-image) QBIT_CI_COMMIT: 7ebcddb6… QBIT_CI_COMMIT: 0439a7e5…
.github/scripts/install-prism-qbit.sh version=1.0.0, asset_id=478569140, sha256=ae121af0…29b5 version=1.0.1, asset_id=744951958, sha256=5f3ce43c3525328f4f0cdcc898516e274a16e170e4ed91ccf648bbb1094f6cb6
tests/test_prepare_qbit_source.py, tests/test_install_prism_qbit.py assert the v1.0.0 values assert the v1.0.1 values. The "inline download must not come back" guard now refuses any Qbit-Org/qbit/releases/download/ URL in the native job. Before, it named v1.0.0 literally. Checking only the new version would have let the old inline download return unnoticed. I mutation-checked it: re-inserting a v1.0.0 curl into that job trips it.
docs/prism-e2e-load-ci.md qbit-1.0.0/bin/qbitd (the path the installer prints) qbit-1.0.1/bin/qbitd
crates/qbit-prism-dual-sim/README.md export QBITD_BIN="$HOME/.prism-qbit/qbit-1.0.0/bin/qbitd" the same path under qbit-1.0.1/ (Codex's finding on 184527af)

Things that follow the pin with no edit:

  • Every prism-qbit-v1-… CI cache key hashes install-prism-qbit.sh.
  • The L6 lane's qbit source cache key hashes config/upstream.env*.

So the old tarball and the old clone are not restored.

How each value was verified

  • Tag and commit. gh api repos/Qbit-Org/qbit/git/ref/tags/v1.0.1 gives tag object a5dc57ae00eefcff453db0a335497b9a83be4ba0. git/tags/a5dc57ae… peels to commit 0439a7e5b37fb3f7e4ddfb735b68961445a882c8, and GitHub reports the tag signature as verified: true. git ls-remote agrees for both tags, and v1.0.0 still peels to 7ebcddb6….
  • Archive digest. I downloaded the release's SHA256SUMS and SHA256SUMS.asc and checked the signatures in an isolated GNUPGHOME against qbit's release key policy, contrib/keys/operator-keys/keys.json at 0439a7e5:
    • The policy's SHA-256 is f04ae262…, which matches approvals/qbit-release-keys-mainnet-000002/policy.SHA256. The policy file and certificate tree have the same git blob/tree ids at v1.0.0, so the policy is unchanged since the last pin.
    • gpg --verify reports GOODSIG and VALIDSIG for operator-01 (289EA3EC…), operator-02 (1B95A7AA…) and operator-03 (05A14A41…). That is 3 of 3, which meets the mainnet release_signature_quorum of 3.
    • In the signed SHA256SUMS, qbit-1.0.1-x86_64-linux-gnu.tar.gz is 5f3ce43c…f6cb6. GitHub's asset digest for asset 744951958 matches.
    • The aarch64 and both darwin digests also match the values I was given. This repository pins only the x86_64 one.
  • What the archive contains. install-prism-qbit.sh really fetched and verified v1.0.1 (below). The extracted qbitd -version prints qbit daemon version v1.0.1. A regtest node reports getnetworkinfo version 10001, subversion /qbit:1.0.1/. A mainnet node started with -connect=0 reports genesis 0000000000004d60aa5d46013991d0a0e2995d89ee98e53068ae196d763e79f2, unchanged.

Pin tracing (EP-CONFIG)

  • scripts/prepare-qbit-source.sh reads .env.example, then config/upstream.env, then .env/DEPLOY_ENV_FILE, then the environment. I ran it in a scratch root holding this branch's script and env files, with the default QBIT_PROVIDER=git, QBIT_CHAIN=mainnet, QBIT_PRODUCTION=1 and no environment pin. It cloned qbit, checked out the tag v1.0.1 commit (clean), and staged generated/qbit-src with .qbit-source-commit = 0439a7e5…. The files its rsync excludes (build*/, depends/) are the same set at both tags.
  • scripts/check-env.sh: I drove it with the repository's own production-gate fixtures (fake docker), with QBIT_CHAIN=mainnet and the staged real tree, and let QBIT_GIT_COMMIT come from the checked-in config/upstream.env.
    • It printed qbit source checkout verified at 0439a7e5… and ref=v1.0.1.
    • The old v1.0.0 commit given against the same tree is refused (does not match QBIT_GIT_COMMIT).
    • Neither script needed a change.
  • Compose and the Makefile do not read QBIT_GIT_*. They build from the staged qbit-src context. Compose's env-file order differs from prepare-qbit-source.sh (the L6 lane puts .env.example after config/upstream.env). That cannot matter here because test_checked_in_upstream_default_pins_qbit_v1_mainnet_release requires all three files to agree.
  • docker/qbit/Dockerfile: in qbit, the v1.0.0 → v1.0.1 diff changes only CLIENT_VERSION_BUILD in the top-level CMakeLists.txt. src/CMakeLists.txt and cmake/ are unchanged. All the -D options the Dockerfile passes are still declared. The bitcoind/bitcoin-cli targets and the qbitd/qbit-cli install components are still there. lab/auxpow copies test/functional, and test/functional/test_framework is unchanged.
  • Derived values: no genesis constant, expected version string or image tag in this repository depends on the pin. The runtime smoke only checks for qbit daemon version.

v1.0.1 behaviour and the real-node tests (EP-COMPAT)

No test expectation changed. I checked each behaviour change in the release notes against what this repository does with a real node:

  • -fallbackfee default: every real-node launch passes -fallbackfee explicitly, so the new default does not apply. That covers live_regtest.rs, live_ctv_cpfp.rs, dual-sim chain.rs, the load harness qbitd.rs, compose.yaml, config/qbit/qbit.conf and the test/*.sh scripts.
  • The fee-only send entry in gettransaction details: in qbit it is added only when listSent is empty, the fee is positive and AllInputsMine (src/wallet/rpc/transactions.cpp). The CPFP child whose details broadcaster.rs reads spends the P2A anchor, which is not a wallet input. It also pays a getnewaddress receive address, so it already had a real send entry. Its details are therefore unchanged. Nothing here calls listtransactions or listsinceblock.
  • Mining paths: src/rpc/mining.cpp (getblocktemplate, submitblock), pow.cpp, chainparams and consensus/ are unchanged between the tags. The submitSolution change is IPC-only, and the image builds with -DENABLE_IPC=OFF. So the qbit-prism-load constant "measured on qbit 1.0.0" (MIN_DIFFICULTY_GAP_SECONDS) still holds.
  • P2MR standardness rules: they affect only spends that copy or hash stack elements longer than 520 bytes. Nothing here builds such a spend.
  • Load reports: they record qbitd_subversion and the binary hash for information only. Nothing compares them across versions.

CI's real-node jobs (prism-native-postgres shards with the live regtest, CTV and CPFP tests, plus prism-dual-writer) run against the v1.0.1 binary on this PR. They are the check of this analysis.

Tests

Run locally on this branch:

  • GIT_CONFIG_GLOBAL=/dev/null python3 -m unittest -v tests.test_prepare_qbit_source tests.test_install_prism_qbit: 16 tests, OK.
  • I also ran every tests/*.py that reads a touched file (25 modules, 567 tests). On the first run, tests.test_check_version_skew (4) and tests.test_qbit_image_runtime_smoke (setUpClass) failed only because cargo was not on this host's agent PATH. Rerun with cargo on PATH: 23 tests, OK. Everything else passed.
  • The CI lint steps git ls-files -z '*.sh' | xargs -0 -n 1 bash -n and touch .env; git ls-files '*.sh' | xargs shellcheck -x (ShellCheck 0.11.0) both exit 0.
  • bash .github/scripts/install-prism-qbit.sh <scratch> with a scratch PRISM_QBIT_CACHE_DIR:
    • It fetched qbit-1.0.1-x86_64-linux-gnu.tar.gz from the release route, verified 5f3ce43c…, and installed qbit-1.0.1/bin/qbitd.
    • A second run used the verified cached copy.
    • With GITHUB_ENV set it wrote QBITD_BIN=…/qbit-1.0.1/bin/qbitd.
    • The asset API route for id 744951958 (Accept: application/octet-stream) returns bytes with the same digest.

Not run here, left to CI:

  • Needs Docker (this host has no Docker daemon): the real qbitd image build and smoke (qbit-runtime-image), the Compose and image builds, and the L6 shipped-image lane (nightly).
  • Needs a Rust workspace build plus PostgreSQL: the PRISM native, dual-sim and real-node tests. I did not run these here because the host is low on disk.

Not changed

  • Release notes of published releases, and other historical records. Examples: doc/release-notes-3.0.0-rc.1.md ("tested against qbit 1.0.0") and the dated baseline in docs/prism-prepared-window-reference-plan.md.
  • doc/release-notes-3.x.x-development-line.md has no unreleased section; release notes are written when a version is cut. The next 3.x release notes should say that the bootstrap's default qbit pin moved to v1.0.1.
  • Everything under crates/, including the README line above and the "measured on qbit 1.0.0" comments.
  • NiceHash/1.0.0 (a Stratum fixture) and version: 1.0.0 in the public dashboard OpenAPI file are unrelated to qbit.

Follow-ups (not done here, out of scope)

  1. The release notes for the next 3.x release should note the default pin move and the .env upgrade step above.
  2. Nothing ties the copies of the pin together.
    • The installer's version, QBIT_GIT_REF, QBIT_GIT_COMMIT and QBIT_CI_COMMIT are hand-copied.
    • No test checks that the installer's version matches the ref, or that QBIT_CI_COMMIT matches QBIT_GIT_COMMIT.
    • prepare-qbit-source.sh never checks that QBIT_GIT_COMMIT is the commit QBIT_GIT_REF names. A ref of v1.0.1 with a stale commit stages the stale commit, and doctor prints both.
    • A cross-file consistency test, and a ref-to-commit check, would catch a half-done future bump.
  3. tests/test_prepare_qbit_source.py's make_checkout commits without -c commit.gpgsign=false. On a host with global signing, it errors unless run with GIT_CONFIG_GLOBAL=/dev/null, as CI does. This predates this PR.

🤖 Generated with Claude Code

@blacksmith-sh

This comment has been minimized.

@kiwidream

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T20:28:59.140785Z 6f66dc1 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

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 184527af9a

ℹ️ 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".

@kiwidream kiwidream closed this Nov 16, 2026
@kiwidream kiwidream reopened this Nov 16, 2026
@kiwidream
kiwidream marked this pull request as ready for review November 16, 2026 18:08

@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: 184527af9a

ℹ️ 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 .github/scripts/install-prism-qbit.sh Resolved

@qbit-reviewer qbit-reviewer 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.

Findings without an inline location

1. [low] Dual-sim README still exports QBITD_BIN under qbit-1.0.0 after the installer bump

crates/qbit-prism-dual-sim/README.md:379

The installer now has version=1.0.1, so it extracts and prints ⁠${destination}/qbit-1.0.1/bin/qbitd (.github/scripts/install-prism-qbit.sh:25,103-104,112). The dual-sim 'Running it' runbook runs that installer at crates/qbit-prism-dual-sim/README.md:377, but line 379 still exports QBITD_BIN="⁠$HOME/.prism-qbit/qbit-1.0.0/bin/qbitd". On a fresh machine that path does not exist, so the ignored scenarios cannot start qbitd. On a machine with an earlier install, the scenarios quietly run against v1.0.0 instead of the pinned v1.0.1. The PR fixed the same instruction in docs/prism-e2e-load-ci.md:728 but not this copy. The PR description lists this line as a follow-up.

export QBITD_BIN="$HOME/.prism-qbit/qbit-1.0.1/bin/qbitd"

Reviewed by Claude Opus 5.5. Red team: deepseek-v4.1-flash-abliterated, checked by Claude Opus 5.5 (nothing it found held up).

…1.0.0

## Open questions

None blocking. Read **For operators** below: an existing `.env` keeps v1.0.0.

## For operators

This PR changes the checked-in defaults only. An operator's `.env` (or `DEPLOY_ENV_FILE`) is sourced after `config/upstream.env` by both `scripts/prepare-qbit-source.sh` and `scripts/check-env.sh`, and in Compose's `--env-file` order. README step 1 says `cp .env.example .env`, and `.env.example` has always carried `QBIT_GIT_REF` and `QBIT_GIT_COMMIT`.

So a deployment whose `.env` was copied before this PR keeps building **v1.0.0**, and `make doctor` reports it as verified, because its commit matches its own `.env`. To move such a deployment to v1.0.1, set this in its `.env` or deploy env file:

```
QBIT_GIT_REF=v1.0.1
QBIT_GIT_COMMIT=0439a7e5b37fb3f7e4ddfb735b68961445a882c8
```

Deployments that pass both values from the environment, as SwapLabs' own do, are unaffected by this PR. The next 3.x release notes should carry this upgrade step.

## Change

This moves every pin that selects, downloads, builds or asserts Qbit Core from **v1.0.0** (`7ebcddb6`) to **v1.0.1** (`0439a7e5`). v1.0.1 is a maintenance release. It has no consensus change, needs no reindex, and keeps the same mainnet and testnet4 identity.

| File | Old | New |
|---|---|---|
| `config/upstream.env`, `config/upstream.env.example`, `.env.example` | `QBIT_GIT_REF=v1.0.0`, `QBIT_GIT_COMMIT=7ebcddb622d6e639041f005a189b048ec2a221fe` | `QBIT_GIT_REF=v1.0.1`, `QBIT_GIT_COMMIT=0439a7e5b37fb3f7e4ddfb735b68961445a882c8` |
| `.github/workflows/ci.yml` (`qbit-runtime-image`) | `QBIT_CI_COMMIT: 7ebcddb6…` | `QBIT_CI_COMMIT: 0439a7e5…` |
| `.github/scripts/install-prism-qbit.sh` | `version=1.0.0`, `asset_id=478569140`, `sha256=ae121af0…29b5` | `version=1.0.1`, `asset_id=744951958`, `sha256=5f3ce43c3525328f4f0cdcc898516e274a16e170e4ed91ccf648bbb1094f6cb6` |
| `tests/test_prepare_qbit_source.py`, `tests/test_install_prism_qbit.py` | assert the v1.0.0 values | assert the v1.0.1 values. The "inline download must not come back" guard now refuses any `Qbit-Org/qbit/releases/download/` URL in the native job. Before, it named `v1.0.0` literally. Checking only the new version would have let the old inline download return unnoticed. I mutation-checked it: re-inserting a v1.0.0 curl into that job trips it. |
| `docs/prism-e2e-load-ci.md` | `qbit-1.0.0/bin/qbitd` (the path the installer prints) | `qbit-1.0.1/bin/qbitd` |
| `crates/qbit-prism-dual-sim/README.md` | `export QBITD_BIN="$HOME/.prism-qbit/qbit-1.0.0/bin/qbitd"` | the same path under `qbit-1.0.1/` (Codex's finding on `184527af`) |

Things that follow the pin with no edit:
- Every `prism-qbit-v1-…` CI cache key hashes `install-prism-qbit.sh`.
- The L6 lane's qbit source cache key hashes `config/upstream.env*`.

So the old tarball and the old clone are not restored.

## How each value was verified

- **Tag and commit.** `gh api repos/Qbit-Org/qbit/git/ref/tags/v1.0.1` gives tag object `a5dc57ae00eefcff453db0a335497b9a83be4ba0`. `git/tags/a5dc57ae…` peels to commit `0439a7e5b37fb3f7e4ddfb735b68961445a882c8`, and GitHub reports the tag signature as `verified: true`. `git ls-remote` agrees for both tags, and v1.0.0 still peels to `7ebcddb6…`.
- **Archive digest.** I downloaded the release's `SHA256SUMS` and `SHA256SUMS.asc` and checked the signatures in an isolated GNUPGHOME against qbit's release key policy, `contrib/keys/operator-keys/keys.json` at `0439a7e5`:
  - The policy's SHA-256 is `f04ae262…`, which matches `approvals/qbit-release-keys-mainnet-000002/policy.SHA256`. The policy file and certificate tree have the same git blob/tree ids at v1.0.0, so the policy is unchanged since the last pin.
  - `gpg --verify` reports `GOODSIG` and `VALIDSIG` for operator-01 (`289EA3EC…`), operator-02 (`1B95A7AA…`) and operator-03 (`05A14A41…`). That is 3 of 3, which meets the mainnet `release_signature_quorum` of 3.
  - In the signed `SHA256SUMS`, `qbit-1.0.1-x86_64-linux-gnu.tar.gz` is `5f3ce43c…f6cb6`. GitHub's asset digest for asset `744951958` matches.
  - The aarch64 and both darwin digests also match the values I was given. This repository pins only the x86_64 one.
- **What the archive contains.** `install-prism-qbit.sh` really fetched and verified v1.0.1 (below). The extracted `qbitd -version` prints `qbit daemon version v1.0.1`. A regtest node reports `getnetworkinfo` `version` 10001, `subversion` `/qbit:1.0.1/`. A mainnet node started with `-connect=0` reports genesis `0000000000004d60aa5d46013991d0a0e2995d89ee98e53068ae196d763e79f2`, unchanged.

## Pin tracing (EP-CONFIG)

- **`scripts/prepare-qbit-source.sh`** reads `.env.example`, then `config/upstream.env`, then `.env`/`DEPLOY_ENV_FILE`, then the environment. I ran it in a scratch root holding this branch's script and env files, with the default `QBIT_PROVIDER=git`, `QBIT_CHAIN=mainnet`, `QBIT_PRODUCTION=1` and no environment pin. It cloned qbit, checked out the tag `v1.0.1` commit (clean), and staged `generated/qbit-src` with `.qbit-source-commit` = `0439a7e5…`. The files its rsync excludes (`build*/`, `depends/`) are the same set at both tags.
- **`scripts/check-env.sh`**: I drove it with the repository's own production-gate fixtures (fake docker), with `QBIT_CHAIN=mainnet` and the staged real tree, and let `QBIT_GIT_COMMIT` come from the checked-in `config/upstream.env`.
  - It printed `qbit source checkout verified at 0439a7e5…` and `ref=v1.0.1`.
  - The old v1.0.0 commit given against the same tree is refused (`does not match QBIT_GIT_COMMIT`).
  - Neither script needed a change.
- **Compose and the Makefile** do not read `QBIT_GIT_*`. They build from the staged `qbit-src` context. Compose's env-file order differs from `prepare-qbit-source.sh` (the L6 lane puts `.env.example` after `config/upstream.env`). That cannot matter here because `test_checked_in_upstream_default_pins_qbit_v1_mainnet_release` requires all three files to agree.
- **`docker/qbit/Dockerfile`**: in qbit, the v1.0.0 → v1.0.1 diff changes only `CLIENT_VERSION_BUILD` in the top-level `CMakeLists.txt`. `src/CMakeLists.txt` and `cmake/` are unchanged. All the `-D` options the Dockerfile passes are still declared. The `bitcoind`/`bitcoin-cli` targets and the `qbitd`/`qbit-cli` install components are still there. `lab/auxpow` copies `test/functional`, and `test/functional/test_framework` is unchanged.
- **Derived values**: no genesis constant, expected version string or image tag in this repository depends on the pin. The runtime smoke only checks for `qbit daemon version`.

## v1.0.1 behaviour and the real-node tests (EP-COMPAT)

No test expectation changed. I checked each behaviour change in the release notes against what this repository does with a real node:
- **`-fallbackfee` default:** every real-node launch passes `-fallbackfee` explicitly, so the new default does not apply. That covers `live_regtest.rs`, `live_ctv_cpfp.rs`, dual-sim `chain.rs`, the load harness `qbitd.rs`, `compose.yaml`, `config/qbit/qbit.conf` and the `test/*.sh` scripts.
- **The fee-only `send` entry in `gettransaction` details:** in qbit it is added only when `listSent` is empty, the fee is positive and `AllInputsMine` (`src/wallet/rpc/transactions.cpp`). The CPFP child whose `details` `broadcaster.rs` reads spends the P2A anchor, which is not a wallet input. It also pays a `getnewaddress` receive address, so it already had a real `send` entry. Its `details` are therefore unchanged. Nothing here calls `listtransactions` or `listsinceblock`.
- **Mining paths:** `src/rpc/mining.cpp` (`getblocktemplate`, `submitblock`), `pow.cpp`, chainparams and `consensus/` are unchanged between the tags. The `submitSolution` change is IPC-only, and the image builds with `-DENABLE_IPC=OFF`. So the `qbit-prism-load` constant "measured on qbit 1.0.0" (`MIN_DIFFICULTY_GAP_SECONDS`) still holds.
- **P2MR standardness rules:** they affect only spends that copy or hash stack elements longer than 520 bytes. Nothing here builds such a spend.
- **Load reports:** they record `qbitd_subversion` and the binary hash for information only. Nothing compares them across versions.

CI's real-node jobs (`prism-native-postgres` shards with the live regtest, CTV and CPFP tests, plus `prism-dual-writer`) run against the v1.0.1 binary on this PR. They are the check of this analysis.

## Tests

Run locally on this branch:
- `GIT_CONFIG_GLOBAL=/dev/null python3 -m unittest -v tests.test_prepare_qbit_source tests.test_install_prism_qbit`: 16 tests, OK.
- I also ran every `tests/*.py` that reads a touched file (25 modules, 567 tests). On the first run, `tests.test_check_version_skew` (4) and `tests.test_qbit_image_runtime_smoke` (setUpClass) failed only because `cargo` was not on this host's agent PATH. Rerun with `cargo` on PATH: 23 tests, OK. Everything else passed.
- The CI lint steps `git ls-files -z '*.sh' | xargs -0 -n 1 bash -n` and `touch .env; git ls-files '*.sh' | xargs shellcheck -x` (ShellCheck 0.11.0) both exit 0.
- `bash .github/scripts/install-prism-qbit.sh <scratch>` with a scratch `PRISM_QBIT_CACHE_DIR`:
  - It fetched `qbit-1.0.1-x86_64-linux-gnu.tar.gz` from the release route, verified `5f3ce43c…`, and installed `qbit-1.0.1/bin/qbitd`.
  - A second run used the verified cached copy.
  - With `GITHUB_ENV` set it wrote `QBITD_BIN=…/qbit-1.0.1/bin/qbitd`.
  - The asset API route for id `744951958` (`Accept: application/octet-stream`) returns bytes with the same digest.

Not run here, left to CI:
- **Needs Docker** (this host has no Docker daemon): the real qbitd image build and smoke (`qbit-runtime-image`), the Compose and image builds, and the L6 shipped-image lane (nightly).
- **Needs a Rust workspace build plus PostgreSQL:** the PRISM native, dual-sim and real-node tests. I did not run these here because the host is low on disk.

## Not changed

- Release notes of published releases, and other historical records. Examples: `doc/release-notes-3.0.0-rc.1.md` ("tested against qbit 1.0.0") and the dated baseline in `docs/prism-prepared-window-reference-plan.md`.
- `doc/release-notes-3.x.x-development-line.md` has no unreleased section; release notes are written when a version is cut. The next 3.x release notes should say that the bootstrap's default qbit pin moved to v1.0.1.
- Everything under `crates/`, including the README line above and the "measured on qbit 1.0.0" comments.
- `NiceHash/1.0.0` (a Stratum fixture) and `version: 1.0.0` in the public dashboard OpenAPI file are unrelated to qbit.

## Follow-ups (not done here, out of scope)

1. **The release notes for the next 3.x release** should note the default pin move and the `.env` upgrade step above.
2. **Nothing ties the copies of the pin together.**
   - The installer's `version`, `QBIT_GIT_REF`, `QBIT_GIT_COMMIT` and `QBIT_CI_COMMIT` are hand-copied.
   - No test checks that the installer's version matches the ref, or that `QBIT_CI_COMMIT` matches `QBIT_GIT_COMMIT`.
   - `prepare-qbit-source.sh` never checks that `QBIT_GIT_COMMIT` is the commit `QBIT_GIT_REF` names. A ref of `v1.0.1` with a stale commit stages the stale commit, and doctor prints both.
   - A cross-file consistency test, and a ref-to-commit check, would catch a half-done future bump.
3. **`tests/test_prepare_qbit_source.py`'s `make_checkout`** commits without `-c commit.gpgsign=false`. On a host with global signing, it errors unless run with `GIT_CONFIG_GLOBAL=/dev/null`, as CI does. This predates this PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Squashed commits:
184527a 3.x.x: build, download and test against Qbit Core v1.0.1 instead of v1.0.0
10c18c4 3.x.x: point the dual-sim runbook at the v1.0.1 install path

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kiwidream
kiwidream force-pushed the kiwidream/v101-pin-bootstrap-3xx branch from 10c18c4 to 6f66dc1 Compare November 16, 2026 20:27

@qbit-reviewer qbit-reviewer 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.

Approved: a complete review with no bugs found.

No bugs or security points found.

Not posted: 1 nit. Reviews post bugs and security points only; the rest stay in Sixth Man's ledger.

Reviewed by Claude Opus 5.5. Red team (deepseek-v4.1-flash-abliterated): found nothing.

@kiwidream
kiwidream merged commit af44806 into 3.x.x Nov 16, 2026
46 checks passed
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.

1 participant