Problem
Currently sender_context only contains sender information. When multiple agents share the same backend (e.g. two Kiro-based 法師), there is no way for the receiving agent to definitively know its own identity from the message alone.
Proposal
Add a receiver_id field to the openab.sender.v1 schema:
{
"schema": "openab.sender.v1",
"sender_id": "845835116920307722",
"sender_name": "pahud.hsieh",
"receiver_id": "1490365068863606784",
"channel": "discord",
...
}
Benefits
- Explicit identity — agent knows who it is without inferring from backend type
- Multi-agent support — enables multiple agents on the same backend to coexist
- Routing — enables message dispatch when one runtime hosts multiple agents
Implementation
The Discord bot message handler should inject receiver_id with the bot's Discord UID when constructing the sender_context payload.
Related
Discussed in Discord thread 1503209514185527477.
Problem
Currently
sender_contextonly contains sender information. When multiple agents share the same backend (e.g. two Kiro-based 法師), there is no way for the receiving agent to definitively know its own identity from the message alone.Proposal
Add a
receiver_idfield to theopenab.sender.v1schema:{ "schema": "openab.sender.v1", "sender_id": "845835116920307722", "sender_name": "pahud.hsieh", "receiver_id": "1490365068863606784", "channel": "discord", ... }Benefits
Implementation
The Discord bot message handler should inject
receiver_idwith the bot's Discord UID when constructing the sender_context payload.Related
Discussed in Discord thread 1503209514185527477.