Plan: the toolchain and every dependency at its latest release (#3604)
Status: Done (2026-12-03) — every unit, T1 to Z with T4b, T5 and T6, landed through the merge train; the holds and the deferred issues are on #3604
Closes: #3604 (by unit Z, #3628)
Issues: #3604 (parent) · T1 #3605 · T2 #3606 · T3 #3607 · T4 #3608 · M1 #3609 · M2 #3610 · M3 #3611 · M4 #3612 · M5 #3613 · M6 #3614 · M7 #3615 · M8 #3616 · M9 #3617 · M10 #3618 · M11 #3619 · M12 #3620 · M13 #3621 · M14 #3622 · M15 #3623 · J1 #3624 · I1 #3625 · I2 #3626 · I3 #3627 · Z #3628 · relates to #3411 (B6), #2923 (the strum hold), #2934, #3443, #3629
Branches: chore/deps-{unit}, for example chore/deps-t1-toolchain
This is a Design + Scope plan. GitLab owns tracking, each unit issue carries the implementer brief, and the plan freezes when T1 starts.
Problem
The agency standard is the latest stable release, with a commented reason for any pin below it (standards:coding-conventions, Dependency Management). A scan on 2026-12-01 found canopy behind it on every surface.
| Surface | Now | Latest stable |
|---|---|---|
Rust toolchain |
1.99.0 ( |
1.100.1. Upstream's 1.99.1 already fixed a miscompiled |
Direct crate dependencies (109) |
34 current, 37 with a compatible newer release, 38 a major version behind |
see the M units |
|
337 packages have a compatible newer release |
|
CI and build tools |
cargo-nextest 0.9.140 (0.9.133 in one CI job), cargo-deny 0.20.2, cargo-machete 0.9.2, cargo-llvm-cov 0.8.7, dioxus-cli 0.7.9 |
0.9.152, 0.22.2, 0.10.1, 0.9.2, 0.7.10 |
JavaScript |
Playwright 1.64.1, TypeScript 5.7.3, |
1.65.2, 7.0.2, 26, 0.6.1 |
Devstack images |
Kanidm 1.11.2, Keycloak 26.8.1, Zitadel v4.19.4, Garage v2.4.1, Grafana 13.2.4, Prometheus v3.15.0, PostgreSQL 18, RabbitMQ 4.3 |
1.12.2, 26.8.2, v4.21.0, v2.6.0, 13.3.2, v3.16.0, 19, 4.4 |
The evidence is on the parent issue (#3604): one row per direct dependency that is behind (requirement, resolved version, latest), and budget B6 after each of the 337 lockfile updates applied alone.
Maintainer direction, 2026-12-01: "we are pre 1.0, this is the time to resolve stuff like this. I need a really good reason to ship anything but the latest."
Decisions (approving this plan confirms them)
-
Latest stable everywhere. A pre-release is not "latest": dioxus 0.8 alpha, redis 2.0 rc and unreleased upstream branches are out.
-
A hold needs one of three reasons.
-
The latest release does not resolve or compile against another dependency that is itself at its latest and that canopy needs, and no change in canopy's own code fixes it.
-
An external tool demands an exact match. The
wasm-bindgencrate must equal thewasm-bindgenCLI, whichdxchecks. -
The latest release has a defect or an advisory that breaks canopy's use. The MR cites the upstream issue.
A hold is a commented pin in
Cargo.tomlnaming the blocker (the form thestrumpin has today) and a row on the parent issue. These are not reasons: a second copy of a crate in the tree, code changes being needed, behaviour changing. -
-
B6's lock may rise. Where a third-party crate still requires the older major, moving canopy to the latest installs a second copy and budget B6 goes up. Each raise follows
coding-conventions.adoc, Quality-budgets gate: the MR and the lock note name the packages and the crate holding each. This supersedes, for B6, the earlier ruling that its lock does not rise (#3411). Thestrumhold (#2923) is lifted. -
Pin, then bump. Some dependencies produce bytes canopy stores, signs, hashes or compares: ciphertext, passcode hashes, signatures, canonical JSON, rule outputs, TOML written back. For those, a test pinning today's bytes is the unit's first commit and passes on the old version. The bump is the next commit. If the bytes change, the pinned values change in that commit and the MR says so: the change is seen and chosen. A changed stored format is not a reason to hold (
coding-conventions.adoc#pre-1-0-no-compatibility). -
Upstream defaults are adopted. Each behaviour change that is not a compile error is listed in the MR and the CHANGELOG. Where canopy sets the behaviour explicitly today, it keeps doing so.
-
Scaffolding a bump makes dead is deleted in that unit.
canopy-zen-exactexists to correct zen-engine 0.55's number serialization; the unit that moves zen-engine deletes it if 2.x serializes the same values. -
One unit is one issue and one MR, stacked in the order below, each landing through the merge train.
Every unit's procedure
-
Look up the latest stable release of what the unit moves. The versions in this plan are the 2026-12-01 scan; a newer one is taken.
-
Read the upstream changelog between the two versions. List in the MR the breaking changes fixed and the behaviour changes adopted.
-
Where decision 4 applies, land the pinning test first.
-
Move the version where it is pinned (
[workspace.dependencies], a Dockerfile, apackage.json), delete the comment of a lifted hold, and update the lockfile. -
Fix what fails in canopy's code. A failing test is a finding about the bump; no test is weakened, skipped or deleted to pass.
-
Re-check each
deny.tomladvisory ignore that names a crate the unit moved, and delete an ignore whose advisory no longer applies. -
Run
cargo xtask quality-budgets --write-lockand write the lock note; a B6 raise follows decision 3. -
Add the CHANGELOG entry and update the doc pages the unit's row names.
-
Before the push:
cargo xtask test --unitand every command of the.lintsjob in.gitlab-ci.yml. The merge-train car runs the whole battery.
A unit that finds a hold records it (decision 2) and moves everything else it covers.
Units
Order: T1 → T2 → T3 → T4 → M1 … M15 → J1 → I1 → I2 → I3 → Z.
Toolchain and tools
| Unit | Moves | Known changes and proof beyond the battery |
|---|---|---|
T1 |
Rust 1.100.1: |
Three commits: the pins, then |
T2 |
cargo-nextest (four places: |
Each download keeps its sha256 check. |
T3 |
The portal's wasm toolchain together: |
|
T4 |
Every other compatible lockfile update ( |
No manifest changes. Measured: all of them together take B6 from 154 to 160; ten single updates account for the rise. |
Crate majors
| Unit | Moves | Known changes and proof beyond the battery |
|---|---|---|
M1 |
|
Type aliases became newtypes, outputs are |
M2 |
|
|
M3 |
|
|
M4 |
|
|
M5 |
|
No upstream changelog; its commits say duplicate object keys now error and a number-formatting fix landed. Pinned first: the RFC 8785 vectors, and the canonical bytes of one signed determination and one audit-chain payload. |
M6 |
|
Feature |
M7 |
The five OpenTelemetry crates 0.33, |
They require reqwest 0.13. M7 joins M6 in one MR if canopy hands its own |
M8 |
|
Requires reqwest 0.13 and quick-xml 0.41: the two quick-xml advisory ignores in |
M9 |
|
|
M10 |
|
|
M11 |
|
zen-engine and biblatex keep 0.27, so B6 rises by two. No enum in canopy uses |
M12 |
|
|
M13 |
|
Eight upstream security fixes. |
M14 |
|
askama makes a duplicated block an error. |
M15 |
|
|
JavaScript, images, close
| Unit | Moves | Proof beyond the battery |
|---|---|---|
J1 |
|
The e2e lane; |
I1 |
The identity providers: Kanidm (its release tarball and image tag), Keycloak, Zitadel and its login image. |
The conformance suites behind the |
I2 |
PostgreSQL 19, RabbitMQ 4.4, Garage. Docs: |
The integration, fault and e2e lanes. |
I3 |
Grafana, Prometheus. |
The devstack comes up with both healthy. |
Z |
Nothing new: |
A table on the parent issue: every direct dependency at its latest or its hold, B6's final count with the holder of each remaining duplicate (also posted on #3411), and the |
Risks
| Risk | Mode | Mitigation |
|---|---|---|
A canonical-JSON, hash or signature library changes its output bytes, so stored chains and signatures stop verifying. |
silent |
Decision 4: the bytes are pinned before the bump (M1, M4, M5). |
The rules engine gives a different answer for the same decision file and facts. |
silent |
M10's four proofs; a changed output is examined before merge, one by one. |
Ciphertext or a passcode hash written before M2 is not read after it. |
fail-closed |
Old-version vectors are pinned first and must decrypt and verify. |
A JWT validation default loosens. |
fail-open |
M4 builds every |
An |
fail-open |
M9's rule: static SQL where possible, a stated reason at each remaining site, and the full list in the MR for review. No site is added that was not a |
A client's trust rule changes when its builder moves to reqwest 0.13's API: the upstream client given anchors starts trusting the system store as well. |
fail-open |
M6's three pinned tests state each rule, the refusal included. They pass before the bump and must pass after. |
A client with no bundle loses the bundled webpki roots and trusts the system CA bundle alone. |
fail-closed |
A container without a CA bundle fails its first outbound call; the e2e lane makes those calls from the shipped images. |
A third-party devstack build that denies warnings fails on the new compiler. |
fail-closed |
T1 caps lints for the Kanidm build, and the car builds that image. |
Two rustls crypto providers are enabled and the first TLS handshake panics, in any binary. |
fail-closed |
M6 leaves one provider in the feature graph, or installs one at every seam where canopy builds a TLS client. The three trust tests make real handshakes in test binaries, which run no bootstrap. |
|
silent |
M12 moves every such site, found by search, and the pack and configuration load tests read real files. |
Rust 1.100 changes the fallback type of a diverging expression, so a generic call can infer a different type. |
silent |
T1 is its own MR, so the whole battery runs on the toolchain change alone. |
Cargo's new build-directory layout breaks an |
fail-closed |
The step fails in T1's pipeline; the fix is in T1. |
A B6 raise hides a duplicate that canopy could have avoided. |
silent |
Each raise names the package and its third-party holder; Z re-measures and lists what remains. |
A hold is forgotten. |
silent |
A hold is a commented pin and a parent-issue row, and Z's table lists every one. |
A configuration repository's fixtures fail under zen-engine 2.x after canopy merges. |
fail-closed |
M10 (d) runs each repository's pack check against the branch before merge. |
PostgreSQL 19 changes planner or catalog behaviour a query relies on. |
fail-closed |
I2 runs every migration and the integration and e2e lanes on 19; a wrong result with no error would be caught only where a test asserts values, so I2 is its own MR. |
"Latest" moves while the work is in flight. |
silent |
Each unit looks up the release at its start, and Z re-runs the scan. |
Tests
-
Contract (bytes on the wire or at rest). Added before their bump: SHA-256 and HMAC known answers and an audit-chain hash (M1); AEAD ciphertexts, a PHC hash and a derived key (M2); a signed token and five refused tokens (M4); RFC 8785 vectors and two canonical payloads (M5); the bytes of a format-preserving TOML edit (M12); the three trust-rule tests (M6).
-
Regression (the case that would have caught it). The first seeded ids and names (M3); the differential rule replay and
cargo xtask rules check(M10); every migration from an empty database (M9, I2); the e2e lane for the portal toolchain (T3, J1). -
Concurrency. No unit fixes a race.
parking_lot0.13 changes fairness, and the battery's existing concurrency and fault lanes run on M15's car. -
Property. The existing property tests of parsers and serializers run unchanged on every car; none is edited to pass.
Delivery
-
Doc pages.
developer-guide.adoc(the stack table) andlocal-dev.adocin every unit that changes a version they state; the pages each unit's row names. -
CHANGELOG. One entry per unit under
== Unreleased, stating the versions and each adopted behaviour change. -
The plan is committed to
docs/modules/ROOT/pages/plans/with a nav entry indocs/modules/ROOT/nav.adocat approval, before T1. -
The close. Unit Z's MR closes the parent issue and posts the final table.
Out of scope
-
Replacing
chrono(#3443) or typst's transitive dependencies; their advisory ignores stay until upstream moves. -
The configuration repositories' own dependencies, and
design/canopy-web/uploads/, an uploaded snapshot that is not built. -
Budget B3b (#3408) resumes after this chain, on its tip.
-
Noticed and filed as #3629: the workspace enables no
tls-*feature ofsqlx, so no canopy service can negotiate TLS to PostgreSQL itself.
Errata
-
Erratum (2026-12-02), T1: there is no
cargo fmtcommit. The rustfmt that ships with 1.100.1 reformats nothing in the tree. -
Erratum (2026-12-02), T4:
httpstays at 1.4.0 in T4.http1.6.0 shrinks axum'sResponsefrom 128 bytes to 80, which makesBoxedResponse(295 lines in 68 files) dead scaffolding under decision 6. A unit T4b (#3630) follows T4 directly, moveshttpand deletes it, apart from the 380-package lockfile change. -
Erratum (2026-12-02), T4: T4 changes canopy's code as well as the lockfile. rust_decimal 1.42 made
FromStrread scientific notation, so the readers of an amount a person types call the library's plain-digit parser, in a commit before the lockfile moves. -
Erratum (2026-12-02), M13:
wit-componentmoves to 0.264.0, the latest, not 0.263. wasmtime 51.0.0 keeps the 0.263 line of five crates, so B6 rises by five (decision 3). The two fixture extension modules, which are outside the workspace and were not in the scan, movewit-bindgenfrom 0.57.1 to 0.63.0 and are rebuilt. -
Erratum (2026-12-02), M13: the eight security fixes the table names for wasmtime 51 are in 50.0.2 and later, which the lockfile already held. M13 brings no new one.
-
Erratum (2026-12-02), M14: one upstream default is not adopted (decision 5).
infer0.22 calls bytes a PDF when%PDFis anywhere in the first 1,024 bytes; canopy-store keeps the header at byte 0, since the wider match would pass an HTML page or a script as a PDF upload. A test pins it before the bump. -
Erratum (2026-12-03), T5 and T6: two units run after I3 and before Z. Unit Z's re-scan found pins behind their latest that the 2026-12-01 scan did not read: k6 in xtask's source, the configuration repository template's Python image, and the docs jobs' diagram renderer and npm packages. T5 (#3641) moves k6, the Python image, the Mermaid renderer and
asciidoctor-kroki, which is held on its 0.18 line because 2.0.0 needs Asciidoctor.js 4 and Antora loads 2.2 (decision 2, first reason). T6 (#3642) moves the docs UI and the slide deck's converter, which change the built site.