Mark the rotation primitives periphery:ignore

The dead-code scan correctly flagged both new types as unused, which they
intentionally are: they exist to be reviewed and argued with before the
protocol change they belong to can ship.

Annotated in place rather than added to .periphery.baseline.json so the
reason sits next to the code and disappears with it, following the
existing convention in MessageRouter. Both notes say to delete the
annotation once the mesh starts using the type.

`periphery scan --strict` locally: no unused code detected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
jack
2026-07-26 20:08:01 +02:00
co-authored by Claude Opus 5
parent 10f1e5c8b7
commit 5db8d5afb9
2 changed files with 7 additions and 0 deletions
@@ -37,6 +37,9 @@ import Foundation
/// `docs/PEER-ID-ROTATION.md`. /// `docs/PEER-ID-ROTATION.md`.
/// ///
/// Not emitted or consumed by the shipping mesh yet. /// Not emitted or consumed by the shipping mesh yet.
// periphery:ignore - intentionally unreferenced by production code; nothing
// emits or consumes this type yet, and BLEService parses it only to ignore it.
// Delete this annotation when the mesh starts using it.
public struct AnnounceV2Packet: Equatable, Sendable { public struct AnnounceV2Packet: Equatable, Sendable {
/// Rotation epoch this announce was built for. Carried explicitly so a /// Rotation epoch this announce was built for. Carried explicitly so a
/// receiver matches against a stated epoch instead of guessing. /// receiver matches against a stated epoch instead of guessing.
@@ -32,6 +32,10 @@ private import CryptoKit
/// Recognition tags come from the X25519 shared secret between two static /// Recognition tags come from the X25519 shared secret between two static
/// keys, so exactly two parties can compute a given tag and an observer can /// keys, so exactly two parties can compute a given tag and an observer can
/// compute none of them. /// compute none of them.
// periphery:ignore - intentionally unreferenced by production code. These are
// the reviewable primitives for a protocol change that cannot ship until both
// platforms agree on it; wiring them into the transport is the next step, not
// this one. Delete this annotation when the mesh starts using them.
public enum PeerIDRotation { public enum PeerIDRotation {
// MARK: - Parameters // MARK: - Parameters