mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 22:41:40 +09:00
The canonical bytes an envelope signature covers were built by assigning payload keys onto a plain object. An own `__proto__` key set the prototype instead, so that key and its subtree dropped out of the signed bytes while still being stored and re-served as the origin's content. Merge also stored every top-level field of an incoming envelope, including fields the signature does not cover. - canonicalEnvelopeBytes refuses a payload containing a `__proto__` key, so verification fails and signing throws. - mergeEnvelopes stores only the signed fields plus signature and hops. - New test: agentbbs-federation-signed-coverage.test.ts (5 cases; all fail before, pass after). Claude-Session: https://claude.ai/code/session_01MfPHVJbk1daZwNMDkX4iAC Co-authored-by: Claude <noreply@anthropic.com>