Skip to content

Document what a successful renewal guarantees - #28

Merged
ekarulf merged 2 commits into
mainfrom
codex/issue-19
Dec 3, 2026
Merged

ekarulf merged 2 commits into
mainfrom
codex/issue-19

Conversation

@ekarulf

@ekarulf ekarulf commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Document when Renew returns and what that means for a live connection. The client installs the fresh PSK and requests a WireGuard handshake. Traffic in either direction can continue using existing keys during the transition, and receive keys may overlap.

The design, protocol, and API comments describe this boundary. The existing flow-continuity tests and assertions are preserved. The handshake assertion’s failure message now describes the timestamp it observes.

Refs #19.

ekarulf commented Nov 28, 2026

Copy link
Copy Markdown
Owner Author

Rework requested before merge.

The revised Renew contract is accurate. Please keep #19 open and add the remaining acceptance coverage before treating this draft as the fix. The test only changes its failure message and still observes LastHandshake. Add a test-only observation of which traffic-key generation is active for immediate post-renewal traffic and a delayed or lost handshake, and check old receive-key retirement and flow continuity. An independently scoped documentation correction could land earlier while #19 tracks the verification.

@ekarulf ekarulf changed the title Clarify renewal completion and the traffic-key recovery boundary Document what a successful renewal guarantees Dec 3, 2026
@ekarulf
ekarulf marked this pull request as ready for review December 3, 2026 08:18
@ekarulf
ekarulf merged commit 09c2ff1 into main Dec 3, 2026
7 checks passed
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