Federation BBS: a pinned peer can forge the origin of an envelope
Description
Impact
In mergeEnvelopes (v3/@claude-flow/cli/src/mcp-tools/agentbbs-federation.ts, around lines 370-383), the signature is checked against the syncing peer's pinned key, but env.origin is never compared with peer.nodeId.
A pinned peer can sign envelopes that claim any other node as their origin, and federation_bbs_watch shows them that way. This contradicts what the peer_add documentation promises. Related: maxSeq is computed over envelopes that failed verification, and hops is not signed.
Fix
Reject an envelope when origin !== peer.nodeId, or verify it against the pinned key of the claimed origin. Compute maxSeq only from merged envelopes, and sign hops or ignore it.