INNER CODE UNIT · TypeScript
layer
agentconnect-md/agentconnect · packages/activation-policy/src/index.ts:216
const layer = cpInChannel ? kindCandidates.filter((r) => r.source === 'cp') : kindCandidates
// 4/5. kind precedence within the chosen layer (mention already handled).
for (const kind of KIND_ORDER) {
if (kind === 'mention') continue
const r = layer.find((x) => x.match.kind === kind)
if (r) return pickRule(r, kind)
}
return null
}
// ─── conversation-delivery selection and verified-agent edge gates ───
/**
* Does this conversation admit an activation for `agentId` at all?
*
* The per-channel trigger is an operator fence, not a routing preference: "Off means the
* agent does not respond in that channel at all. Not to an @-mention, not to a follow-up