Skip to content

docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) - #177

Merged
gonzafg2 merged 6 commits into
mainfrom
docs/adr-0036-dalek-3x-coordinated-bump
Oct 11, 2026
Merged

gonzafg2 merged 6 commits into
mainfrom
docs/adr-0036-dalek-3x-coordinated-bump

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

ADR-0036 (Proposed) records the coordinated move of ed25519-dalek and x25519-dalek to 3.0.0, both on curve25519-dalek 5.0.0. It is the ADR subsidiary to RFC-0003 that the #109 comment of 2026-07-18 asked for when it closed Dependabot's lone x25519-dalek bump (#115).

It answers the four points that comment required:

  • API: ed25519-dalek 3 removes std. No first-party code change is needed; a scratch build passes check, clippy, tests and release build.
  • zeroize / static_secrets: both are kept. The x25519 secrets now erase on drop only, and the project never calls .zeroize() on them.
  • MSRV: 1.85, which is below the workspace's 1.92.
  • Maturity / audit:
    • No RustSec advisory affects either line.
    • The Verus formal-verification coverage applies to curve25519-dalek 4.1.3, not 5.0.
    • No public audit of 5.0/3.0 is known.

Value, stated plainly: it fixes no vulnerability. The gains are indirect:

The main cost is losing the Verus coverage, accepted knowingly by the project lead on 2026-10-11 and recorded in the ADR.

The ADR also records that the dalek crates are BSD-3-Clause: RFC-0003 says "Apache-2.0 or MIT". deny.toml allows BSD-3-Clause, so nothing was ever out of policy. The accepted RFC is not edited.

Merge order

  1. fix(deps): declare zeroize's alloc feature explicitly #175 — fix(deps): declares zeroize/alloc, which ed25519-dalek 3 stops supplying.
  2. This PR — ADR-0036, docs only, Proposed.
  3. The implementation PR, stacked on this branch: three manifest lines plus Cargo.lock, and it flips ADR-0036 to Accepted.

Refs #109

https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW

…ther (Proposed)

The coordinated bump the #109 comment of 2026-07-18 deferred, subsidiary
to RFC-0003. Evaluates the four points that comment asked for: API
(ed25519-dalek 3 drops std; no first-party code change needed), zeroize
and static_secrets (kept; x25519 secrets now erase on drop only), MSRV
(1.85, below the workspace's 1.92), and maturity/audit (no advisory on
either line; Verus coverage applies to curve25519-dalek 4.1.3, not 5.0;
no known public audit of 5.0/3.0).

States the value plainly: no vulnerability fixed; Cargo.lock 102 -> 88,
no duplicated crates in quantumssh-core, signature 3 aligned with
ADR-0035's ml-dsa. Records that the dalek crates are BSD-3-Clause
(RFC-0003 says Apache-2.0 or MIT; deny.toml allows BSD-3-Clause).

Refs #109

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

Copy link
Copy Markdown

PR Review: docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) (#177)

Decision: 🟢 Approved
Iteration: First review
Lenses applied: Design decision (docs/adr/0036) and threat-model/security design. The Rust and CI lenses do not apply — the diff is a single file under docs/adr/.

Executive summary

The PR adds one Proposed ADR recording a coordinated move of ed25519-dalek and x25519-dalek to 3.0.0 (both onto curve25519-dalek 5.0.0), as the subsidiary decision to RFC-0003 that the #109 comment requested. The document is honest about the trade, correctly routes itself through the dependency-layer lane that RFC-0007 §2 and RFC-0003 §"Operational dependencies" prescribe, and its observable claims hold up against this repository. The one real security cost — losing the Verus coverage that applied to curve25519-dalek 4.1.3 on the pre-auth KEX primitive — is documented and accepted knowingly; no hard rule or stated commitment requires formal verification of the classical primitive. No finding reached the reporting threshold.

New findings

Nothing reached the ≥ 80 threshold. Two non-blocking observations are recorded as suggestions.

💡 Suggestions (nice to have)

Notes on checks performed

  • Factual claims verified against the repo: Cargo.lock is 102 packages; cargo tree -d -p quantumssh-core yields exactly the six named duplicates; the current feature sets match the ADR's proposed lines; first-party code uses no rand_core/RngCore/OsRng; ed25519-dalek 2.2.0's std → alloc → zeroize/alloc chain exists and Zeroizing<Vec<u8>> is used; x25519-dalek 2.0.1 carries zeroize(drop) on StaticSecret/SharedSecret, and kex.rs never calls .zeroize() on them; deny.toml allows BSD-3-Clause; .github/dependabot.yml ignores major bumps of both dalek crates.
  • Threat-model review: the accepted Verus loss is not a rule breach — no repo document requires formal verification of the classical pre-auth primitive, and RFC-0006/0007/0009 confirm X25519 inside the accepted hybrid is not legacy. The zeroize posture (threat model §4.3) is preserved by drop-based erasure.
  • Commit b6ca0ab is a Conventional Commit with a DCO Signed-off-by, and its GitHub verification status is verified: true.
  • The 88-package and "duplicated crates → none" figures are forward projections for the implementation PR and are not observable in this docs-only diff; they are not reported as defects.

github run

…nes, present vs future controls)

claude-review on #177:
- 'The 4.x/2.x line has had no release since mid-2024' was false for
  ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate.
- The diff is two manifest lines (zeroize/alloc belongs to #175).
- The Verus-loss paragraph listed Phase-3 fuzzing as a present control;
  present controls (RFC 7748 vectors, OpenSSH interop gate) are now
  separated from the future one, and the text says nothing currently
  replaces the formal guarantee.

opencode suggestions on #177 and #179:
- Refers to 'the ml-dsa ADR proposed in #174' instead of citing the
  not-yet-permanent number ADR-0035 as established.
- pkcs8/der/spki leave Cargo.lock (they are not compiled today).
- The RFC-0003 licence sentence lives in its Guide-level explanation.

Refs #109

Claude-Session: https://claude.ai/code/session_01HxXXh6HEpJBs7tbuz3NmtW
Signed-off-by: Gonzalo Fleming <[email protected]>
gonzafg2 added a commit that referenced this pull request Oct 11, 2026
…nes, present vs future controls)

claude-review on #177:
- 'The 4.x/2.x line has had no release since mid-2024' was false for
  ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate.
- The diff is two manifest lines (zeroize/alloc belongs to #175).
- The Verus-loss paragraph listed Phase-3 fuzzing as a present control;
  present controls (RFC 7748 vectors, OpenSSH interop gate) are now
  separated from the future one, and the text says nothing currently
  replaces the formal guarantee.

opencode suggestions on #177 and #179:
- Refers to 'the ml-dsa ADR proposed in #174' instead of citing the
  not-yet-permanent number ADR-0035 as established.
- pkcs8/der/spki leave Cargo.lock (they are not compiled today).
- The RFC-0003 licence sentence lives in its Guide-level explanation.

Refs #109

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

Copy link
Copy Markdown
Owner Author

Round 1 summary. The three inline threads from claude-review were answered and resolved separately, with the fixes in 6a10bea.

Source Finding Action Commit
opencode (suggestion) The body cited ADR-0035, which is not yet permanent (#174 may be renumbered or rejected), as an established anchor It now refers to "the ml-dsa ADR proposed in #174". The Related field keeps "numbered ADR-0035 at drafting time" 6a10bea
opencode (suggestion) "leave the tree" overstated: pkcs8/der/spki are unselected optional dependencies, so they are not compiled today It now says they leave Cargo.lock, and notes that only generic-array is compiled today 6a10bea
opencode on #179 (suggestion, same file) The RFC-0003 licence sentence is in its Guide-level explanation, not in §"Operational dependencies" Citation corrected 6a10bea

The same commit is cherry-picked onto #179 as f4c32b4. Codex review is red for an infrastructure reason: OpenAI API credits. It is not a finding about this PR.

@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Review 2 - approved, no new findings

@claude

claude Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

PR Review: ADR-0036 - PR 177

Decision: Approved (no new findings)
Iteration: Review 2 (3 resolved, 0 open from prior Claude + opencode reviews)
Lenses: Design decision (docs/adr/0036), threat model. Rust and CI lenses not applicable.

Executive summary: ADR-0036 records the coordinated move of ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5.0.0), the subsidiary ADR that issue 109 requested. All five MANIFIESTO commitments are satisfied. Observable claims verified against the repository at 6a10bea. No finding reached the 80-confidence threshold.

Previous issues (all resolved in 6a10bea):

  1. ADR-0035 forward reference cited as established anchor - RESOLVED: now reads the ml-dsa ADR proposed in PR 174
  2. leave the tree overstated for pkcs8/der/spki (unselected optional deps) - RESOLVED: now says leave Cargo.lock
  3. RFC-0003 licence citation pointed at wrong section - RESOLVED: citation corrected

New findings: Nothing reached the >= 80 threshold.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) (#177)

Decision: 🟢 Approved
Iteration: Review #2 (5 resolved, 0 open)
Lenses applied: Design decision (docs/adr/0036). The Rust and CI lenses do not apply — the diff is one file under docs/adr/ and changes no code or workflow.

Executive summary

The PR adds a single Proposed ADR recording the coordinated move of ed25519-dalek and x25519-dalek to 3.0.0 (both onto curve25519-dalek 5.0.0), the subsidiary decision RFC-0003 and the #109 comment asked for. Every substantive factual claim I could observe holds up: the version/toolchain/licence table, the six duplicated crates, the pkcs8/der/spki departure from Cargo.lock, the zeroize posture, the absence of first-party rand_core use, and the dependabot ignore rules. The one real cost — losing the Verus coverage that applied to curve25519-dalek 4.1.3 — is documented and accepted, and no hard rule or commitment requires formal verification of the classical pre-auth primitive. All five issues raised in the previous reviews are resolved in 6a10bea; one minor precision suggestion is noted below.

Previous issues

# Issue Status Notes
1 opencode: body cited ADR-0035 as an established anchor while #174 was unmerged ✅ 6a10bea: now "interacts with the ml-dsa ADR proposed in #174 (numbered ADR-0035 at drafting time)"; body references softened (lines 6, 122, 135, 154, 175)
2 opencode: "leave the tree" mislabeled pkcs8/der/spki (in Cargo.lock, not compiled) ✅ 6a10bea: now "leave Cargo.lock". Verified correct — a scratch cargo generate-lockfile --offline with the proposed manifest (ed25519-dalek 3, features ["zeroize"]) resolves 25 packages with no pkcs8/der/spki; the current lock's pkcs8 is dragged in by ed25519-dalek 2's std feature, which this move drops
3 claude: "4.x/2.x line has had no release since mid-2024" false for ed25519-dalek 2.2.0 ✅ 6a10bea: scoped per crate ("curve25519-dalek 4.x … since 2024-06-18. ed25519-dalek 2.x last released on 2025-07-09")
4 claude: "three manifest lines" wrong ✅ 6a10bea: "two manifest lines" at lines 137 and 196; the zeroize/alloc line is correctly attributed to #175
5 claude: Verus paragraph listed Phase-3 fuzzing as a present control ✅ 6a10bea: present controls (RFC 7748 §6.1 vectors, OpenSSH interop) separated from the future one; "nothing currently does [replace a formal guarantee]"

New findings

Nothing reached the ≥ 80 threshold. One non-blocking observation is recorded as a suggestion.

💡 Suggestions (nice to have)

  • docs/adr/0036-dalek-3x-coordinated-bump.md:46-47 — the API bullet lists getrandom 0.4 among ed25519-dalek 3.0.0's dependency moves, but it is a dev-dependency there ([dev-dependencies.getrandom] version = "0.4" in the crate manifest) and only an optional, unenabled dependency of x25519-dalek 3.0.0. rand_core 0.10 in the same list is likewise optional and not enabled by the proposed features = ["zeroize"]. Since the sentence's job is to describe what the runtime stack moves to, naming a dev-only crate overstates the change; consider scoping the list to signature/ed25519/sha2 (and noting rand_core/getrandom as optional/dev). Anchor: MANIFIESTO chore(security): mark quantumssh.org aliases as live #4 / CLAUDE.md commitment chore(security): mark quantumssh.org aliases as live #4 (precision on the dependency surface).

Notes on checks performed

  • Factual verification against this checkout: Cargo.lock is 102 packages; cargo tree -d -p quantumssh-core shows exactly the six duplicated crates named (sha2, digest, rand_core, block-buffer, crypto-common, cpufeatures); workspace Cargo.toml:53 already declares sha2 = "0.11" and ed25519-dalek 2.2.0 is the source of the 0.10 line; deny.toml:26 allows BSD-3-Clause; .github/dependabot.yml:34-39 ignores major bumps of both dalek crates; kex.rs:887 holds the RFC 7748 §6.1 X25519 vectors and kex.rs never calls .zeroize() on x25519 types; the licence sentence is in RFC-0003 §"Guide-level explanation" (0003…:39,56), as cited.
  • Upstream claims from the cached crates: the three 3.0.0/5.0.0 crates are MSRV 1.85, edition 2024, BSD-3-Clause; x25519-dalek 3.0.0's secret types implement Drop + ZeroizeOnDrop but not Zeroize (only PublicKey does), exactly as the ADR states; ed25519-dalek 3.0.0 still declares ed25519 3 → pkcs8 0.11 as an optional dependency.
  • Design/threat review: X25519 and Ed25519 as the classical halves of an accepted hybrid are not "legacy" per RFC-0009/RFC-0007 §3; the accepted Verus loss is not a rule breach (no document requires formal verification of the classical primitive; RFC-0003 names it only as Phase-5+ future work); drop-based erasure of the x25519 secrets is the behaviour already relied on, so threat-model §4.3 is preserved.
  • GitHub-side checks: #174 and #175 are both OPEN/unmerged, consistent with the ADR's framing. Commit verification via the API (.commit.verification.verified) is true for both b6ca0ab and 6a10bea.
  • The 102 → 88 package projection is a forward claim of the implementation PR and is not observable in this docs-only diff; it was not reported as a defect.

github run

…dencies

opencode review #2 suggestion on #177: getrandom 0.4 is a dev-dependency
of ed25519-dalek 3.0.0, and rand_core 0.10 and signature 3 are optional
there (signature 3 still enters through ed25519 3, a normal dependency).
The API bullet now names the runtime moves only. Verified against the
crates.io dependency metadata of ed25519-dalek 3.0.0 and ed25519 3.0.0.

Refs #109

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

Copy link
Copy Markdown
Owner Author

Round 2 summary.

Source Finding Action Commit
opencode #2 (suggestion) The API bullet listed getrandom 0.4 and rand_core 0.10 as ed25519-dalek 3.0.0 dependency moves Verified against crates.io metadata: getrandom is a dev-dependency, and rand_core and signature are optional (signature 3 still enters through ed25519 3, a normal dependency). The bullet now names the runtime moves only 267d301

claude-review #2 approved with no new findings. #179 was conflicting with this branch after 6a10bea, so no workflows ran on it. It now merges cleanly: a signed, signed-off merge, 517ee88.

@opencode-agent

Copy link
Copy Markdown

PR Review: docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) (#177)

Decision: 🟢 Approved
Iteration: Review #3 (6 resolved, 0 open)
Lenses applied: Design decision (docs/adr/0036). The Rust and CI lenses do not apply — the diff is one file under docs/adr/ and changes no code or workflow.

Executive summary

ADR-0036 records the coordinated move of ed25519-dalek and x25519-dalek to 3.0.0 (both onto curve25519-dalek 5.0.0), the subsidiary decision the #109 comment asked for. The document is honest about its one real cost — losing the Verus coverage that applied to curve25519-dalek 4.1.3 on the pre-auth KEX primitive — and no hard rule or commitment requires formal verification of the classical primitive. X25519/Ed25519 as the classical halves of an accepted hybrid are not legacy, the zeroize posture is preserved by ZeroizeOnDrop, and the ADR lane is correct (docs/rfcs/README.md:43.) All six issues raised in earlier reviews are resolved in 6a10bea/267d301. One low-impact precision suggestion remains.

Previous issues

# Issue Status Notes
1 opencode: body cited ADR-0035 (from unmerged #174) as an established anchor ✅ 6a10bea — now "the ml-dsa ADR proposed in #174 (numbered ADR-0035 at drafting time)" (lines 6, 124, 137, 156, 176)
2 opencode: "leave the tree" mislabeled pkcs8/der/spki (in Cargo.lock, not compiled) ✅ 6a10bea — now "leave Cargo.lock"; notes only generic-array is compiled (lines 120-123). Verified: cargo tree -i pkcs8/der/spki -p quantumssh-core prints nothing; generic-array resolves via block-buffer 0.10
3 claude: "4.x/2.x line has had no release since mid-2024" false for ed25519-dalek 2.x ✅ 6a10bea — scoped per crate (lines 127-129)
4 claude: "three manifest lines" wrong ✅ 6a10bea — now "two manifest lines" (lines 139, 198). Verified: workspace Cargo.toml:51-52 is the only direct pin of either crate; curve25519-dalek is not a direct dependency
5 claude: Verus paragraph listed Phase-3 fuzzing as a present control ✅ 6a10bea — present controls separated from the future one; "nothing currently does" (lines 145-153)
6 opencode #2: API bullet listed getrandom 0.4 (dev-dep) and rand_core 0.10 (optional) as runtime moves ✅ 267d301 — runtime moves named; optional/dev status flagged (lines 44-49)

New findings

Nothing reached the ≥ 80 threshold. One non-blocking observation is recorded as a suggestion.

💡 Suggestions (nice to have)

  • docs/adr/0036-dalek-3x-coordinated-bump.md:33 — the licence cell "BSD-3-Clause, all six" has no referent in this tree. There are three dalek crates (curve25519-dalek, ed25519-dalek, x25519-dalek) and four exact BSD-3-Clause packages (those three plus subtle 2.6.1); the only six-item set in the document is the duplicated crates at lines 117-119, which are MIT OR Apache-2.0. If "six" is meant to count the crates named in the rows above, "all three" would be exact. Anchor: MANIFIESTO chore(security): mark quantumssh.org aliases as live #4 / CLAUDE.md commitment 4 (precision on the dependency surface).

Notes on checks performed

  • Factual claims verified against this checkout: Cargo.lock is 102 packages; cargo tree -d -p quantumssh-core yields exactly the six duplicates named (sha2, digest, rand_core, block-buffer, crypto-common, cpufeatures); deny.toml:26 allows BSD-3-Clause; current versions are curve25519-dalek 4.1.3 / ed25519-dalek 2.2.0 / x25519-dalek 2.0.1; .github/dependabot.yml ignores major bumps of both dalek crates; kex.rs never calls .zeroize() on X25519 types (the only calls, kex.rs:663/672/788, target ML-KEM state and a plain buffer); the test suite is 34 + 103 + 35; the RFC 7748 §6.1 vectors are at kex.rs:886-903 and the OpenSSH interop gate exists; RFC-0003 has the ## Guide-level explanation and ### Operational dependencies of this decision headings and the "Apache-2.0 or MIT" sentence at :56; all four relative links resolve.
  • Design/threat review: no repo rule requires Verus verification (RFC-0003:219 names it only as deferred future work; ADR-0019:47 makes it a PQ-path trigger); X25519/Ed25519 are not legacy per RFC-0006/0007/0009; drop-only erasure via ZeroizeOnDrop satisfies threat-model §4.3 and matches the current behaviour the project already relies on; the pre-auth bounded-allocation and fuzzability properties are untouched by a dependency-version bump.
  • GitHub-side checks: #174 and #175 are both open/unmerged, consistent with the ADR's framing. Commit verification via the API (.commit.verification.verified) is true for 267d301.
  • Limitations: upstream facts — the 3.0.0/5.0.0 CHANGELOGs, the "280 functions"/Verus statement, the Quarkslab audit, the RUSTSEC entries, and the 102 → 88 package projection — are not observable in this docs-only diff and this environment has no network access, so they were not independently re-verified; they are not reported as defects.

github run

opencode suggestions on #177 (review #3) and #179 (review #2):
- curve25519-dalek 4.2.0 was published 2025-07-09 and yanked; both
  maintenance statements now say 'no usable 4.x release since
  2024-06-18' and name it (verified on crates.io).
- The licence cell said 'all six' with no referent; it now says 'all
  three crates'.

Refs #109

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

Copy link
Copy Markdown
Owner Author

Round 3 summary. These are opencode suggestions; both reviewers approved.

Source Finding Action Commit
opencode on #179 (suggestion) "no 4.x release since 2024-06-18" ignored curve25519-dalek 4.2.0, which was published on 2025-07-09 and yanked Both statements now read "no usable 4.x release since 2024-06-18" and name 4.2.0. Verified on crates.io 2035438 (#177); merged into #179 as 748b5b4
opencode on #177 (suggestion) The licence cell "all six" had no referent It now reads "all three crates" same

… primitive stack

opencode suggestion on #179 (review #3): RFC-0003 section 'Operational
dependencies of this decision' only lists four follow-up ADRs and never
mentions the dalek crates; the primitive stack (with x25519-dalek and
ed25519-dalek) is in its Guide-level explanation. Related and Links now
point there, consistent with the licence note.

Refs #109

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

Copy link
Copy Markdown

All prior issues verified against the current file at HEAD cf723af; factual claims verified; commit signatures verified via the API. Writing the report.

PR Review: docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) (#177)

Decision: 🟢 Approved
Iteration: Review #4 (10 resolved, 0 open)
Lenses applied: Design decision (docs/adr/0036) and dependency/threat-model soundness. The Rust and CI lenses do not apply — the diff is one file under docs/adr/ and changes no code or workflow.

Executive summary

The PR adds a single Proposed ADR recording the coordinated move of ed25519-dalek and x25519-dalek to 3.0.0 (both onto curve25519-dalek 5.0.0), the subsidiary decision RFC-0003 and the #109 comment asked for. Every substantive factual claim holds up, including the upstream ones (crate versions, MSRV, licence, dependency shape, ZeroizeOnDrop, Verus scope, the yanked 4.2.0). The one real cost — losing the Verus coverage that applied to curve25519-dalek 4.1.3 on the classical pre-auth primitive — is documented and accepted, and no hard rule or commitment requires formal verification of that primitive. All issues from earlier reviews are resolved in 6a10bea/267d301/2035438/cf723af; nothing new reached the reporting threshold.

Previous issues

# Issue Status Notes
1 opencode: body cited ADR-0035 (from unmerged #174) as an established anchor ✅ 6a10bea — now "the ml-dsa ADR proposed in #174 (numbered ADR-0035 at drafting time)" (lines 6, 124, 137, 156, 176)
2 opencode: "leave the tree" mislabeled pkcs8/der/spki (in Cargo.lock, not compiled) ✅ 6a10bea — now "leave Cargo.lock"; notes only generic-array is compiled (lines 120-123). Verified: cargo tree -i pkcs8/der/spki -p quantumssh-core prints nothing; generic-array resolves via block-buffer 0.10
3 claude: "4.x/2.x line has had no release since mid-2024" false for ed25519-dalek 2.x ✅ 6a10bea — scoped per crate (lines 127-129)
4 claude: "three manifest lines" wrong ✅ 6a10bea — now "two manifest lines" (lines 139, 198). Verified: Cargo.toml:51-52 are the only direct pins of either crate
5 claude: Verus paragraph listed Phase-3 fuzzing as a present control ✅ 6a10bea — present controls separated from the future one; "nothing currently does" (lines 145-153)
6 opencode #2: API bullet listed getrandom 0.4 (dev-dep) and rand_core 0.10 (optional) as runtime moves ✅ 267d301 — runtime moves named; optional/dev status flagged (lines 44-49)
7 opencode #3: licence cell "all six" had no referent ✅ 2035438 — now "all three crates" (line 33)
8 opencode on #179: RFC-0003 licence-sentence citation pointed at the wrong section ✅ 6a10bea/cf723af — both the licence note and Related/Links now cite §"Guide-level explanation" (lines 6, 36, 193)
9 opencode on #179 / claude #3: "no 4.x release since 2024-06-18" ignored the yanked 4.2.0 ✅ 2035438 — both statements now read "no usable 4.x release" and name 4.2.0 (lines 30, 90-91, 128)
10 opencode on #179 #3: Related/Links pointed at RFC-0003 §"Operational dependencies" for the primitive stack ✅ cf723af — now §"Guide-level explanation (the primitive stack)" (lines 6, 193)

New findings

Nothing reached the ≥ 80 threshold. No new findings.

Notes on checks performed

  • Factual verification against this checkout: Cargo.lock is 102 packages; cargo tree -d -p quantumssh-core yields exactly the six duplicates named (sha2, digest, rand_core, block-buffer, crypto-common, cpufeatures); pkcs8/der/spki are in the lockfile but uncompiled while generic-array is; deny.toml:26 allows BSD-3-Clause and deny.toml:52 sets multiple-versions = "warn" (matching ADR line 185); .github/dependabot.yml:34-39 ignores major bumps of both dalek crates; kex.rs never calls .zeroize() on X25519 types (calls at kex.rs:663/672/788 target ML-KEM state and a plain buffer); the RFC 7748 §6.1 vectors are at kex.rs:886-903; host keys load via from_openssh_pem, never generated.
  • Upstream verification (network available): crates.io metadata confirms curve25519-dalek 4.2.0 published 2025-07-09 and yanked (CHANGELOG: improperly implemented hash_to_curve, #785); ed25519-dalek 2.2.0 released 2025-07-09; ed25519-dalek 3.0.0 drops std and has ed25519 3 / sha2 0.11 / curve25519-dalek 5 as runtime deps, with signature 3 and rand_core 0.10 optional and getrandom 0.4 dev-only; x25519-dalek 3.0.0 keeps static_secrets/zeroize and its secret types are ZeroizeOnDrop not Zeroize; all three are MSRV 1.85, BSD-3-Clause; Quarkslab's 2019 audit was Tari-commissioned; the "280 functions in version 4.1.3" Verus statement is accurate with no 5.0 coverage.
  • Cross-PR claim: ml-dsa 0.1.1 depends on signature ^3 (crates.io), and the lock currently holds signature 2.2.0 (via ed25519-dalek 2), so the "no second signature major after the move" rationale holds. docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) #174's ADR reciprocally names this bump as the resolution.
  • Design/threat review: X25519/Ed25519 as the classical halves of an accepted hybrid are not legacy (RFC-0006/0007/0009); the accepted Verus loss is not a rule breach (RFC-0003:219 and ADR-0019:47 treat formal verification as deferred future work, and no hard rule mandates it); drop-only erasure via ZeroizeOnDrop preserves threat-model §4.3; the ADR lane is correct (docs/rfcs/README.md §"After acceptance"; the Phase 2 / Hito 2: usable server — PTY, config, SFTP, systemd, 0.1.0 #109 comment explicitly asked for an ADR subsidiary to RFC-0003).
  • Governance: the 0036 number (next free on main is 0035, claimed by the open docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) #174) is the repo's anticipated simultaneous-PR case, resolved by renaming on merge (docs/adr/README.md §Numbering), and the ADR marks the docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) #174 number as provisional at line 6 — not a defect.
  • GitHub-side checks: commit verification via the API (.commit.verification.verified) is true for b6ca0ab, 6a10bea, 267d301, 2035438 and cf723af. docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) #174 and fix(deps): declare zeroize's alloc feature explicitly #175 remain open/unmerged.
  • Limitations: the 102 → 88 package projection and the "scratch build passes check/clippy/tests/release" claim are forward-looking properties of the stacked implementation PR and are not observable in this docs-only diff; they were not reported as defects.

github run

@opencode-agent

Copy link
Copy Markdown

PR Review: docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed) (#177)

Decision: 🟢 Approved
Iteration: Review #5 (10 resolved, 0 open)
Lenses applied: Design decision (docs/adr/0036) and dependency/threat-model soundness. The Rust (crates/) and CI lenses do not apply — the diff against main is a single file under docs/adr/; no code or workflow changed.

Executive summary

The PR adds one Proposed ADR recording the coordinated move of ed25519-dalek and x25519-dalek to 3.0.0 (both onto curve25519-dalek 5.0.0), the subsidiary decision RFC-0003 and the #109 comment asked for. I independently re-verified every observable claim in the document — repository facts and upstream crates.io/CHANGELOG facts — and all hold. The one real cost (losing the Verus coverage that applied to curve25519-dalek 4.1.3 on the classical half of the pre-auth KEX) is documented and accepted, and no hard rule or commitment requires formal verification of the classical primitive. All earlier issues are resolved; nothing new reached the reporting threshold.

Previous issues

# Issue Status Notes
1 opencode: body cited ADR-0035 (from unmerged #174) as an established anchor ✅ Line 6 reads "the ml-dsa ADR proposed in [#174] (numbered ADR-0035 at drafting time)"; body references at lines 124, 137, 156, 176 likewise say "proposed in #174"
2 opencode: "leave the tree" mislabeled pkcs8/der/spki (in Cargo.lock, not compiled) ✅ Lines 120-123 now say "leave Cargo.lock", and note only generic-array is compiled. Verified: cargo tree -i pkcs8/der/spki -p quantumssh-core prints nothing; generic-array resolves via block-buffer 0.10
3 claude: "4.x/2.x line has had no release since mid-2024" false for ed25519-dalek 2.x ✅ Lines 127-129 scoped per crate ("curve25519-dalek 4.x … since 2024-06-18. ed25519-dalek 2.x last released on 2025-07-09")
4 claude: "three manifest lines" wrong ✅ Lines 139 and 198 now say "two manifest lines"; line 140-141 attributes the zeroize/alloc line to #175. Cargo.toml:51-52 are the only direct pins
5 claude: Verus paragraph listed Phase-3 fuzzing as a present control ✅ Lines 145-153 separate present controls (RFC 7748 §6.1 vectors, OpenSSH interop gate) from the future one; "nothing currently does"
6 opencode #2: API bullet listed getrandom 0.4 (dev-dep) and rand_core 0.10 (optional) as runtime moves ✅ Lines 46-49 name the runtime moves and flag optional/dev status. Confirmed against ed25519-dalek 3.0.0's manifest: signature/rand_core optional, getrandom dev-only
7 opencode #3: licence cell "all six" had no referent ✅ Line 33 now reads "all three crates" in both cells
8 opencode on #179: RFC-0003 licence-sentence citation pointed at the wrong section ✅ Lines 6, 35-36, 193 cite §"Guide-level explanation". Verified: the "Apache-2.0 or MIT"/"All nine crates" sentence is at 0003…:56, under ## Guide-level explanation
9 opencode on #179 / claude #3: "no 4.x release since 2024-06-18" ignored the yanked 4.2.0 ✅ Lines 30, 90-91, 128 now say "no usable 4.x release" and name 4.2.0 (yanked, wrong hash_to_curve)
10 opencode on #179 #3: Related/Links pointed at RFC-0003 §"Operational dependencies" for the primitive stack ✅ Lines 6 and 193 now cite §"Guide-level explanation (the primitive stack)"

New findings

Nothing reached the ≥ 80 threshold. No new findings.

Notes on checks performed

  • Repository facts re-verified against this checkout: Cargo.lock is 102 packages; cargo tree -d -p quantumssh-core yields exactly the six duplicates named (sha2, digest, rand_core, block-buffer, crypto-common, cpufeatures); pkcs8/der/spki are in the lockfile but uncompiled, generic-array (0.14.7) is compiled and only via block-buffer 0.10; deny.toml:26 allows BSD-3-Clause and deny.toml:52 is multiple-versions = "warn"; .github/dependabot.yml:34-39 ignores major bumps of both dalek crates; kex.rs never calls .zeroize() on X25519 types (calls at kex.rs:663/672/788 target ML-KEM state or a plain [u8; 32]); host keys load via from_openssh_pem and are never generated; the RFC 7748 §6.1 vectors exist; test counts are exactly 34 + 103 + 35; all four relative ADR/RFC links resolve; the highest ADR on the branch is 0034, so 0036 with 0035 claimed by open docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) #174 is the anticipated simultaneous-PR case resolved by renaming on merge (docs/adr/README.md:63-66, :107-109).
  • Upstream facts re-verified (network): curve25519-dalek 4.1.3 (2024-06-18, MSRV 1.60) and yanked 4.2.0 (2025-07-09, hash_to_curve, #785); 5.0.0/3.0.0 releases 2026-07-06, MSRV 1.85, edition 2024; ed25519-dalek 3.0.0 removes std, keeps signature/rand_core optional and getrandom dev-only; x25519-dalek 3.0.0 removes impl Zeroize on secret types but keeps ZeroizeOnDrop; all three are BSD-3-Clause; the named RustSec advisories do not affect either the current or proposed versions; the "280 functions in 4.1.3" Verus statement is accurate with no 5.0 coverage; curve25519-dalek 5.0.0 removes group-bits (#909); ml-dsa 0.1.1 depends on signature ^3.
  • Design/threat review: X25519/Ed25519 as the classical halves of the accepted hybrid are not legacy (RFC-0006 explicitly ships ssh-ed25519 host keys as the current posture; RFC-0007/0009 migration window); the accepted Verus loss is not a rule breach — no repo document mandates formal verification of the classical primitive (ADR-0019:47 ties it only to the PQ path, and RFC-0003:219 names state-machine verification as deferred Phase-5+ work); drop-only erasure via ZeroizeOnDrop preserves threat-model §4.3 and matches the behaviour the project already relies on; the ADR lane is correct (docs/rfcs/README.md §"After acceptance"; Phase 2 / Hito 2: usable server — PTY, config, SFTP, systemd, 0.1.0 #109 asked for an ADR subsidiary to RFC-0003).
  • Governance: the merge commit a4a7061 (Merged main/#175) only brings in the zeroize/alloc declaration; the ADR file is unchanged since cf723af. Commit verification via the GitHub API (.commit.verification.verified) is true for b6ca0ab, 6a10bea, 267d301, 2035438, cf723af and a4a7061. docs(adr): ADR-0035 — RustCrypto ml-dsa for the composite host key's ML-DSA-44 half (Proposed) #174 is open/unmerged, consistent with the ADR's framing; fix(deps): declare zeroize's alloc feature explicitly #175 has since merged, so the ADR's "prerequisite" references remain correct.
  • Limitations: the 102 → 88 package projection, the "duplicated crates → none" figure, and the scratch-build claim are forward-looking properties of the stacked implementation PR and are not observable in this docs-only diff; they were not reported as defects. The ADR's "only public audit found" is a scoped negative and was not treated as a defect.

github run

@gonzafg2
gonzafg2 merged commit c11152c into main Oct 11, 2026
12 of 13 checks passed
@gonzafg2
gonzafg2 deleted the docs/adr-0036-dalek-3x-coordinated-bump branch October 11, 2026 23:23
gonzafg2 added a commit that referenced this pull request Oct 11, 2026
…-dalek 5) (#179)

* docs(adr): ADR-0036 — move ed25519-dalek and x25519-dalek to 3.x together (Proposed)

The coordinated bump the #109 comment of 2026-07-18 deferred, subsidiary
to RFC-0003. Evaluates the four points that comment asked for: API
(ed25519-dalek 3 drops std; no first-party code change needed), zeroize
and static_secrets (kept; x25519 secrets now erase on drop only), MSRV
(1.85, below the workspace's 1.92), and maturity/audit (no advisory on
either line; Verus coverage applies to curve25519-dalek 4.1.3, not 5.0;
no known public audit of 5.0/3.0).

States the value plainly: no vulnerability fixed; Cargo.lock 102 -> 88,
no duplicated crates in quantumssh-core, signature 3 aligned with
ADR-0035's ml-dsa. Records that the dalek crates are BSD-3-Clause
(RFC-0003 says Apache-2.0 or MIT; deny.toml allows BSD-3-Clause).

Refs #109

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

* fix(deps): declare zeroize's alloc feature explicitly

Zeroizing<Vec<u8>> (kex.rs, auth.rs, transport.rs) and Zeroizing<String>
need zeroize's alloc feature. The workspace never declared it: it
arrives only through feature unification from ed25519-dalek's std
feature (ed25519-dalek/std -> alloc -> zeroize?/alloc and
curve25519-dalek/alloc). Dropping std from ed25519-dalek, as its 3.x
line requires, would break the build in 35 places with no code change
of ours. Declare it where it is used.

Refs #109

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

* chore(deps): move ed25519-dalek and x25519-dalek to 3.0.0 (curve25519-dalek 5)

Implements ADR-0036. ed25519-dalek drops the removed std feature and the
unused rand_core feature; x25519-dalek keeps static_secrets and zeroize.
No first-party code change.

Cargo.lock: 102 -> 88 packages; cargo tree -d -e normal -p
quantumssh-core prints nothing (was sha2, digest, rand_core,
block-buffer, crypto-common, cpufeatures in two versions each).
fmt, clippy -D warnings, test --workspace (34 + 103 + 35) and
build --release pass.

Refs #109

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

* docs(adr): ADR-0036 Accepted with the implementing PR #179

Flips Status to Accepted inside the implementing PR (repo pattern since
#128), points Links/Decision at #179, and historicises the three
drafting-time phrasings (table header, advisory sentence, ADR-0035
availability).

Refs #109

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

* docs(adr): ADR-0036 — review fixes (2.x release date, two manifest lines, present vs future controls)

claude-review on #177:
- 'The 4.x/2.x line has had no release since mid-2024' was false for
  ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate.
- The diff is two manifest lines (zeroize/alloc belongs to #175).
- The Verus-loss paragraph listed Phase-3 fuzzing as a present control;
  present controls (RFC 7748 vectors, OpenSSH interop gate) are now
  separated from the future one, and the text says nothing currently
  replaces the formal guarantee.

opencode suggestions on #177 and #179:
- Refers to 'the ml-dsa ADR proposed in #174' instead of citing the
  not-yet-permanent number ADR-0035 as established.
- pkcs8/der/spki leave Cargo.lock (they are not compiled today).
- The RFC-0003 licence sentence lives in its Guide-level explanation.

Refs #109

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

* docs(adr): ADR-0036 — review fixes (2.x release date, two manifest lines, present vs future controls)

claude-review on #177:
- 'The 4.x/2.x line has had no release since mid-2024' was false for
  ed25519-dalek 2.2.0 (2025-07-09); now scoped per crate.
- The diff is two manifest lines (zeroize/alloc belongs to #175).
- The Verus-loss paragraph listed Phase-3 fuzzing as a present control;
  present controls (RFC 7748 vectors, OpenSSH interop gate) are now
  separated from the future one, and the text says nothing currently
  replaces the formal guarantee.

opencode suggestions on #177 and #179:
- Refers to 'the ml-dsa ADR proposed in #174' instead of citing the
  not-yet-permanent number ADR-0035 as established.
- pkcs8/der/spki leave Cargo.lock (they are not compiled today).
- The RFC-0003 licence sentence lives in its Guide-level explanation.

Refs #109

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

* docs(adr): ADR-0036 — ed25519-dalek 3's runtime vs optional/dev dependencies

opencode review #2 suggestion on #177: getrandom 0.4 is a dev-dependency
of ed25519-dalek 3.0.0, and rand_core 0.10 and signature 3 are optional
there (signature 3 still enters through ed25519 3, a normal dependency).
The API bullet now names the runtime moves only. Verified against the
crates.io dependency metadata of ed25519-dalek 3.0.0 and ed25519 3.0.0.

Refs #109

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

* docs(adr): ADR-0036 — yanked 4.2.0 and licence cell wording

opencode suggestions on #177 (review #3) and #179 (review #2):
- curve25519-dalek 4.2.0 was published 2025-07-09 and yanked; both
  maintenance statements now say 'no usable 4.x release since
  2024-06-18' and name it (verified on crates.io).
- The licence cell said 'all six' with no referent; it now says 'all
  three crates'.

Refs #109

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

* docs(adr): ADR-0036 — cite RFC-0003's Guide-level explanation for the primitive stack

opencode suggestion on #179 (review #3): RFC-0003 section 'Operational
dependencies of this decision' only lists four follow-up ADRs and never
mentions the dalek crates; the primitive stack (with x25519-dalek and
ed25519-dalek) is in its Guide-level explanation. Related and Links now
point there, consistent with the licence note.

Refs #109

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

---------

Signed-off-by: Gonzalo Fleming <[email protected]>
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