INNER CODE UNIT · TypeScript
sharedBotTarget
agentconnect-md/agentconnect · packages/activation-policy/src/index.ts:520
const sharedBotTarget = (r: SharedBotRoute): SharedBotRouteTarget => ({
agentId: r.agentId,
daemonId: r.daemonId,
integrationId: r.integrationId
})
/**
* Arbitrate one inbound message against a shared bot's attributed routes
* (shared-bot-relay.md §10) — the relay's ladder, package-owned since the
* relay fold-in. It mirrors the daemon ladder (`routeRules`) but over
* ALREADY-ATTRIBUTED routes, and adapted for the multi-agent ambiguity (all
* agents answer as one bot user id) — the adaptations are DECLARED ladder
* structure, not drift:
*
* - channel ownership first (§10.1): a channel-scoped rule matching the
* message kind wins outright, with scoped keyword OUTRANKING scoped auto
* (slug disambiguation inside a multi-agent DM, §14.3) and no `dm` rung;
* - thread continuity from the caller's affinity map, membership- and