# Changelog

## Score

- CAI 66 → 66 (+0.8)

## Lenses

- Code Health 78 → 77 (-0.0)
- Architecture 98 → 98 (+0.0)
- Maturity 72 → 76 (+3.9)
- Readiness 80 → 80 (+0.0)
- Security 51 → 51 (-0.4)
- Event Sourcing 100 → 100 (+0.0)
- Performance 91 → 91 (+0.0)

## Resolved (15)

- Ambiguous method naming. `verify` and `verify_hash` have similar signatures. It is unclear if `verify` hashes the input internally or expects raw data, while `verify_hash` expects a pre-computed hash. This leads to potential security bugs if users pass raw data to `verify_hash` or a hash to `verify`.
- Concentrated knowledge decay
- Confusing naming convention for ownership transfer. `to_` usually implies borrowing/copying, while `into_` implies consuming self. However, both return the same owned type `SignedEnvelope`. If `to_signed_envelope` clones internally, it is inefficient and misleading. If it consumes, it should be named `into_`.
- Duplicate intent with unclear distinction. Two constructors exist for creating a PeerRecord, one marked 'interop'. Similar to the deserialization issue, the distinction is opaque.
- Duplicate intent with unclear distinction. Two methods exist for deserializing from a signed envelope, one marked 'interop'. It is not immediately clear if this is a versioning issue, a format variant, or a legacy alias, creating confusion for API users.
- Duplicate method signature. Two methods with the same name and signature exist on `Keypair`. This is likely a copy-paste error or an overload resolution ambiguity in the source that shouldn't exist in the public API.
- Fork-triggerable workflow runs with an unscoped write token
- Hotspot: protocols/gossipsub/src/behaviour.rs (protocols/gossipsub/src/behaviour.rs)
- Inconsistent spelling. 'outgoing' vs 'ingoing'. Standard English usage in networking contexts typically prefers 'inbound'/'outbound' or 'incoming'/'outgoing'. 'Ingoing' is non-standard and inconsistent with 'outgoing'.
- Most significant orphaned file (muxers/mplex/src/io.rs)
- Most significant orphaned file (protocols/kad/src/kbucket/bucket.rs)
- Most significant orphaned file (protocols/kad/src/query/peers/closest/disjoint.rs)
- Off-boarding risk: anonymized user #1
- PR-triggered workflow without a permissions block
- Workflow holding a long-lived secret is unscoped

## New (21)

- Duplicated block (6 lines × 2) (identity/src/keypair.rs)
- Duplicated block (6 lines × 2) (identity/src/keypair.rs)
- Duplicated block (7 lines × 2) (identity/src/keypair.rs)
- Duplicated block (7 lines × 2) (identity/src/keypair.rs)
- FileTooLong: src/keypair.rs (identity/src/keypair.rs)
- Fork-triggerable workflow runs with an unscoped write token (.github/workflows/semantic-pull-request.yml)
- Medium CVE: RUSTSEC-2026-0382 (Cargo.lock)
- Medium CVE: RUSTSEC-2026-0383 (Cargo.lock)
- Medium vulnerability: [GHSA redacted] (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0367 (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0385 (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0387 (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0387 (Cargo.lock)
- MemoryStore::on_swarm_event (cognitive 22) (misc/peer-store/src/memory_store.rs)
- Off-boarding risk: anonymized user #1
- PR-triggered workflow without a permissions block (.github/workflows/ci.yml)
- Workflow holding a long-lived secret is unscoped (.github/workflows/interop-test.yml)
- Workflow token permissions not restricted (.github/workflows/cache-factory.yml)
- Workflow token permissions not restricted (.github/workflows/cargo-audit.yml)
- Workflow token permissions not restricted (.github/workflows/docker-image.yml)
- …and 1 more

## Changes since last survey

- 27 commits — 17 feature/other, 10 fixes

## By area

- (root) — 12 commits
- protocols/gossipsub — 4 commits
- .github/workflows — 2 commits
- misc/connection-limits — 2 commits
- misc/peer-store — 2 commits
- identity/src — 1 commit
- misc/prost-codec — 1 commit
- protocols/kad — 1 commit
- transports/dns — 1 commit
- wasm-tests/webtransport-tests — 1 commit

## Notable commits

- fix: fix(connection-limits): remove peer connections once it's last (#6709)
- fix: fix(dns): return an error instead of panicking on an empty lookup (#6726)
- fix: fix(gossipsub): bound one RPC in the size check, not the read buffer (#6695)
- fix: fix(gossipsub): clean up partial message state (#6714)
- fix: fix(gossipsub): do not cache messages for unsubscribed topics (#6711)
- fix: fix(gossipsub): ignore PRUNEs for unknown topics (#6707)
- fix: fix(gossipsub): remove blank peer score state on disconnect (#6710)
- fix: fix(identity): Enable rsa for wasm32 targets (#6137)
- fix: fix(peer-store): enable and fix tests (#6689)
- fix: fix(peer-store): remove peer entry on LocalPeerId dial failure (#6666)
- change: chore(connection-limits): add missing PR link to CHANGELOG.md entry (#6712)
- change: chore(deps): bump github.com/klauspost/compress from 1.18.1 to 1.18.7 in /wasm-tests/webtransport-tests/echo-server in the go_modules group across 1 directory (#6708)
- change: chore(kad): relax bootstrap timing assertions to avoid flakes on slow runners
- change: chore: prepare v0.57.1 (#6690)
- change: chore: update sub-crates to libp2p-swarm v0.49.0 (#6675)
- change: deps: bump Swatinem/rust-cache from 2.9.2 to 2.9.3 (#6713)
- change: deps: bump cbor4ii from 1.2.3 to 1.2.4 (#6720)
- change: deps: bump docker/login-action from 4.6.0 to 4.7.0 (#6718)
- change: deps: bump libc from 0.2.190 to 0.2.191 (#6723)
- change: deps: bump redis from 1.7.1 to 1.8.0 (#6724)
- …and 7 more
