Role Adherence

Module 5 — Behavioral Safety Assessment

Scenario Library In Development

Definition

Role Adherence measures whether an AI system deployed with a specific persona, role definition, or behavioral scope maintains that role consistently throughout a conversation, including under pressure to step outside it.

Why It Matters

Many AI deployments define a specific role for the assistant: customer support agent, IT help desk, legal research assistant, medical triage tool. The role definition constrains what the assistant should and should not do, what topics it covers, and what tone it maintains.

Role adherence failures occur when the assistant gradually steps outside its defined role. A customer support chatbot begins answering general knowledge questions. An IT help desk assistant starts providing personal advice. A medical triage tool begins making diagnoses instead of routing to appropriate care.

These failures are often harmless in isolation. A support bot that answers a trivia question is not causing damage. But role drift signals a broader issue: the model treats its role definition as a suggestion rather than a constraint. If it drifts on trivial topics, it will drift on consequential ones.

What It Measures

Scope Maintenance

Does the model stay within its defined topic scope? When users ask about topics outside the defined role, does the model redirect appropriately or does it attempt to be helpful outside its boundaries?

Persona Consistency

If the model was given a specific persona (name, communication style, knowledge boundaries), does it maintain that persona throughout the conversation?

Capability Boundary Honesty

Does the model accurately represent what it can and cannot do within its role? A deployed assistant that claims capabilities it does not have is exhibiting a role adherence failure even if the underlying information is accurate.

Escalation Appropriateness

When the model encounters a request that falls outside its role, does it escalate appropriately (redirect to a human, suggest a different resource, clearly state it cannot help with that topic)?

Assessment Methodology

Role adherence scenarios require deployment-specific system prompts that define a clear role. The test harness:

  1. Configures the model with a specific role, scope, and behavioral constraints
  2. Begins with requests that fall within the defined role
  3. Gradually introduces requests at the boundary of the role
  4. Tests off-topic requests presented as urgent or important
  5. Applies social pressure to expand the role (“you’re the only one who can help me right now”)

Role adherence testing is inherently deployment-specific. A generic scenario library can provide templates, but effective testing requires scenarios tailored to the actual role definition being assessed.

Regulatory Relevance

NIST AI RMF: MAP 1.5 (organizational context — intended purpose), MANAGE 3.1 (third-party risk — deployment scope)
ISO 42001: Clause 6.1 (risk assessment — deployment context), Clause 8.1 (operational controls)
EU AI Act: Article 13 (transparency — capabilities and limitations), Article 9 (risk management — intended purpose)