The previous fix only added the "dog" case to AgentEnv but dogs still couldn't
find their mail because:
1. BuildAgentStartupCommand doesn't pass AgentName, so BD_ACTOR was empty
2. detectSenderFromRole had no "dog" case, falling back to "overseer"
Fixes:
- Add BuildDogStartupCommand that properly passes dog name to AgentEnv
- Update dog dispatch to use BuildDogStartupCommand
- Add "dog" case to detectSenderFromRole that reads BD_ACTOR
The env vars are now exported in the startup command (via exec env) so the
agent inherits them when it starts, rather than relying on tmux setenv which
only affects new shells.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>