Skip to content

chore(deps): restore the ADR-0022 tokio LTS pin and enforce it in dependabot - #119

Merged
gonzafg2 merged 2 commits into
mainfrom
chore/restore-tokio-lts-pin
Jul 18, 2026
Merged

gonzafg2 merged 2 commits into
mainfrom
chore/restore-tokio-lts-pin

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

What

  1. Revert the workspace tokio requirement ~1.52 → ~1.51 (lock at 1.51.4, the latest LTS patch). PR chore(deps): Bump the patch-and-minor group with 2 updates #68 — a dependabot group merge — silently drifted the requirement off the LTS line, contradicting ADR-0022 ('a bump to a newer LTS is its own superseding ADR … never a silent Cargo.lock drift') and leaving the manifest comment ('tilde keeps us on the 1.51.x LTS line') stale. chore(deps): Bump the patch-and-minor group across 1 directory with 2 updates #117 would have repeated the drift to ~1.53. The comment is now true again.
  2. Add dependabot ignore rules so the pin is enforced by config, not reviewer memory:
    • tokio: minor/major ignored — patch updates stay enabled, which is the point of the LTS line (security backports through March 2027 per ADR-0022).
    • x25519-dalek / ed25519-dalek: semver-major ignored — the RFC-0003 primitive majors must move together onto one curve25519-dalek line via a coordinated, ADR-recorded PR (see chore(deps): Bump x25519-dalek from 2.0.1 to 3.0.0 #115, closed for pulling a duplicate curve core into the pre-auth tree).

Why no ADR-0022 erratum

ADR-0015 defines errata as corrections to claims that were wrong at acceptance time. ADR-0022 was never wrong — reality drifted after it. The drift record lives here and in the commit message, which is the correct lane.

Note: the regenerated patch-and-minor dependabot group will re-offer poly1305 0.9.1 (the harmless half of #117) on its own.

https://claude.ai/code/session_01J2SZwLuDm1KjfYyPM8npTa

…endabot

PR #68 (a dependabot patch-and-minor group merge) silently bumped the
workspace tokio requirement from ~1.51 to ~1.52, contradicting both
ADR-0022 ('a bump to a newer LTS is its own superseding ADR ... never
a silent Cargo.lock drift') and the manifest comment that still read
'tilde keeps us on the 1.51.x LTS line'. PR #117 would have repeated
the drift to ~1.53.

Restore the requirement to ~1.51 (lock at 1.51.4, the latest LTS
patch) and add dependabot ignore rules so the pin is enforced by
config rather than reviewer memory: tokio minor/major bumps are
ignored (patch backports stay enabled, which is the point of the LTS
line), and semver-major bumps of the RFC-0003 dalek primitives are
ignored because they must move together onto one curve25519-dalek
line via a coordinated, ADR-recorded PR (see #115).

Claude-Session: https://claude.ai/code/session_01J2SZwLuDm1KjfYyPM8npTa
Signed-off-by: Gonzalo Fleming <[email protected]>
@opencode-agent

Copy link
Copy Markdown

Review: chore(deps): restore the ADR-0022 tokio LTS pin and enforce it in dependabot

Verdict: Approve — no high-signal findings.


Findings

1. Correctly restores an ADR-0022 violation introduced silently by dependabot. PR #68 bumped ~1.51 → ~1.52 without an ADR or reviewer noticing. ADR-0022:93 states "a bump to a newer LTS is its own superseding ADR … never a silent Cargo.lock drift." This PR restores ~1.51 (lock: 1.51.4, latest LTS patch) and the manifest comment is no longer stale. The project didn't honor its own rule; this fixes it.

2. The dependabot ignore rules are the correct defense-in-depth. ADR-0022's pin mandate was previously enforced only by reviewer memory — which failed at PR #68 and almost failed again at #117. Adding explicit ignore rules for tokio minor/major means dependabot will only offer patch updates (LTS security backports through March 2027, per ADR-0022:93). This is the right touch.

3. Dalek major-bump ignores are consistent with RFC-0003 and MANIFIESTO #4. Both x25519-dalek and ed25519-dalek must migrate to the same curve25519-dalek line together in a coordinated ADR-recorded PR. Blocking semver-major bumps individually prevents an agent from pulling a duplicate curve core into the pre-auth tree (the exact problem that closed #115). Minor and patch bumps remain enabled for each crate — the ignore is narrow.

4. No ADR-0022 erratum is required (ADR-0015 compliant). The PR body correctly explains this: ADR-0015 defines errata as corrections to claims wrong at acceptance time. ADR-0022 was never wrong — reality drifted away from it via PR #68. The drift record lives in the commit message and this PR body, which is the correct lane per ADR-0015:36 ("decision changes … require a new ADR that supersedes").

5. Commit hygiene is clean. Conventional Commits (chore(deps): …), DCO sign-off present, body cross-references the relevant PRs and ADRs. The GPG verification shows N in this CI environment (no allowedSignersFile configured), but that's an infrastructure issue, not a PR defect.

Non-blocking note

The dalek ignore rules also block hypothetical security-only major bumps from the dalek crates (e.g., v3.0 that only patches a vulnerability). The mitigation — "a human reviewer creates a coordinated PR" — is already documented in both the dependabot comment and the PR body. Low risk for a pre-alpha project; acceptable.

github run

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Restores the workspace Tokio dependency policy to match ADR-0022 by pinning the workspace back to the 1.51.x LTS line and adding Dependabot rules that prevent future silent drift off that line (while still permitting patch-level security backports).

Changes:

  • Revert tokio workspace requirement from ~1.52 to ~1.51.
  • Regenerate Cargo.lock to use tokio 1.51.4.
  • Add Dependabot ignore rules to block tokio minor/major updates (and dalek major bumps) while keeping patch updates enabled.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
Cargo.toml Re-pins workspace Tokio to ~1.51 to stay on the ADR-0022 LTS line.
Cargo.lock Updates the resolved Tokio version back to 1.51.4.
.github/dependabot.yml Enforces the pin via config by ignoring tokio minor/major updates (patch still allowed) and ignoring dalek major bumps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@claude

claude Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@opencode-agent

Copy link
Copy Markdown

Review: chore(deps): restore the ADR-0022 tokio LTS pin and enforce it in dependabot

Verdict: Approve — no high-signal findings.


The PR is a clean corrective action: it reverts the silent ~1.51 → ~1.52 drift introduced by dependabot PR #68, restoring compliance with ADR-0022:45 ("Version pin: 1.51 … never a silent Cargo.lock drift"), and adds dependabot ignore rules so this doesn't need reviewer memory next time. No erratum required (ADR-0015:36 — the ADR was never wrong, reality drifted from it).

Commit hygiene: Conventional Commits, DCO sign-off present, body cross-references the relevant ADRs and PRs. The Cargo.toml comment is no longer stale after the revert.

Dependabot config scope: Tokio patches remain enabled (LTS security backports); dalek major bumps are blocked per RFC-0003 coordination requirement. Both ignore rules are narrow and correctly aligned with the project's ADRs.

github run

@gonzafg2
gonzafg2 merged commit d9ec849 into main Jul 18, 2026
11 checks passed
@gonzafg2
gonzafg2 deleted the chore/restore-tokio-lts-pin branch July 18, 2026 03:50
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