You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(recovery): retain peer key generations across lost-device recovery #203
Stability audit finding F04 / P2 (2026-09-27). Priority is an audit recommendation, not a claim of a production incident.
Recovery approval omits the peer key generation and peer_commit registers the current certificate with generation 0.
In an isolated paired-device fixture, a peer had already rotated to generation 1. Recovering the other device yielded recoveredTrackedGeneration=0, then the peer's valid generation 2 proposal failed with rotation_generation_conflict.
What you expected
Preserve the cryptographically verified peer generation through recovery approval and commit, without weakening verification or silently breaking the public wire compatibility contract.
Environment
Baseline: published session-peer v1.0.1, commit 55168c3bea5a49e81916fdead57d3634def6b1d6.
Reproduction: isolated source/tag fixtures; no live message/ACK tests or production mutation.
Audit environments: macOS arm64, Python 3.14.7; Control tests use Node 22.14.0. Linux evidence is explicitly identified above where applicable.
Discovery output: not applicable to this fixture; no real session identifiers or credentials are included.
Recover peers at generation 0, 1, and multiple rotations; verify each subsequent legitimate rotation succeeds.
Test idempotent commit/recovery lookup and reject inconsistent or unauthenticated generation metadata.
Document compatibility behavior for existing recovery messages.
Scope and limitations
Follow-up to #118's recovery implementation; no production key recovery or rotation was performed.
Target: v1.0.2 stability work. This issue does not authorize a release or operating-service changes. Offline reproduction establishes the failure mechanism, not attribution of historical #161 incidents.
Checked
Searched existing issues for duplicates.
Removed credentials, conversation contents, private paths and real device/session identifiers.
Used isolated fixtures without weakening inbound permissions.
Activity