pub fn forged_sender_send() -> ChunkExpand description
Security regression sample: forged make_msg sender must not survive Send.
§What this proves
Invariant S1 from docs/security.md: structural Atomic Hop typing
alone cannot stop a module from writing sender = 999 into a
crate::Message. The scheduler overwrites that field on bytecode
Send, so the serverÔÇÖs msg_sender / echoed payload reflects the real
client flow id.
§Protocol
mainbuilds a request with forged sender999andSends it.serverreads the delivered hop, puts authenticatedmsg_senderinto the replypayload, and answers.mainreturns that payload asInt.
Unit tests assert the returned id is not 999 (and is a plausible live
flow id). Requires crate::std_native_table.