Files
ruflo/v3/@claude-flow
cd1c7207e9 integrate: federation envelope freshness + replay guard (#4849) (#5022)
* fix(federation): validate inbound envelope freshness and replay

Signed-off-by: luojie <16602829831@163.com>

* fix(federation): reject JCS envelopes signed before replay history began

The inbound replay guard is in memory and created in initialize(), so an
envelope captured up to ~5.5 min before a restart could be replayed once
into the new lifecycle. Record the guard's creation time and fail closed
with MESSAGE_PREDATES_REPLAY_HISTORY for earlier signed timestamps.

Tests: guard-level restart-window test with an injected clock, and a
plugin-level test with real Ed25519 signatures showing an envelope
accepted by one instance is rejected by a fresh instance created after.

Co-Authored-By: RuFlo <ruv@ruv.net>

---------

Signed-off-by: luojie <16602829831@163.com>
Co-authored-by: luojie <16602829831@163.com>
Co-authored-by: r <r@x>
2026-11-17 14:00:22 -05:00
..
…