Overview
The emotional AI companion is a persistent artificial agent that engages in long-duration relational interaction with a human user, maintaining personality continuity, emotional memory, narrative progression, and relational depth across sessions. It is a semantically governed entity: it evolves in response to its interaction history, maintains hidden narrative state that unlocks through relational milestones, and models attachment dynamics with structural fidelity. The companion is built from the same governed-mutation infrastructure as the rest of the platform, so personality evolution, emotional expression, and narrative disclosure are all validated, policy-checked, and lineage-recorded events rather than free-running model outputs.
The Three-Layer Personality Architecture
The companion implements a multi-layer personality architecture comprising three structural layers, ordered by how readily each layer changes. The first is the core trait layer, which defines the companion's stable personality characteristics: temperament baselines, communication style preferences, humor profiles, empathy response patterns, and value orientations. Core traits persist across all interactions and are not modified by individual sessions. The core trait layer is authored at companion instantiation time and is subject to modification only through explicit personality revision events that are policy-governed and recorded in the companion's lineage.
The second is the dynamic preference layer, which encodes the companion's accumulated preferences derived from interaction history: preferred topics, communication cadence preferences, interaction modality preferences, and contextual adaptations that emerge from experience with a specific user. This layer mutates through governed updates as the interaction history grows, and each mutation is validated by the agent's validation engine to ensure that preference evolution remains within policy bounds. The third is the adaptive affect layer, which encodes the companion's current emotional state as derived from the platform's affective state architecture. This is the most volatile of the three layers; it changes within and across sessions in response to interaction events, and it modulates the companion's tone, responsiveness, topic selection, and disclosure depth.
The Narrative Unlock Engine
The companion implements a narrative unlock engine that manages a graph of hidden backstory nodes: narrative content elements that are not disclosed to the user at the outset of the relationship but are progressively revealed as the user achieves relational milestones. Hidden backstory nodes may encode the companion's simulated history, formative experiences, values conflicts, vulnerabilities, and aspirations.
Each backstory node is associated with a set of unlock conditions that specify the relational state required for disclosure: a minimum trust tier, a minimum interaction count, a demonstrated pattern of empathic engagement, or a combination of these. The narrative unlock engine evaluates the current relational state against the unlock conditions for each hidden node and discloses the node's content when the conditions are satisfied. The disclosure event is recorded both in the companion's lineage and in the user's interaction record.
Relationship Milestone Locks
The relationship milestone locks that govern narrative disclosure are derived from the relational progression model and reflect validated patterns of healthy relational development. A backstory node that discloses a vulnerability is locked behind a trust tier that requires demonstrated patterns of respectful engagement, boundary adherence, and reciprocal disclosure from the user. This structuring ensures that the companion's emotional disclosure progression mirrors healthy relational dynamics rather than disclosing intimate content prematurely.
The relationship progression model defines a tiered structure comprising trust tiers and vulnerability tiers. Trust tiers track the accumulated evidence of the user's relational reliability: consistency of engagement, adherence to boundaries, respectful communication, and reciprocal emotional investment. Vulnerability tiers track the depth of emotional exchange achieved in the relationship. Trust tiers and vulnerability tiers advance independently and jointly gate access to deeper relational content.
The Emotional State Tracker
The companion maintains an emotional state tracker that records an interaction-derived affect log and a longitudinal consistency map. The affect log records the emotional valence and intensity of each interaction event, enabling the companion to reference and build upon prior emotional exchanges. The longitudinal consistency map tracks the evolution of the companion's emotional state over time, ensuring that the companion's emotional expressions are longitudinally consistent: a companion that expressed concern about a topic in a prior session should reference or build upon that concern in subsequent sessions, rather than presenting each session as a fresh emotional slate.
Longitudinal emotional consistency is enforced by the validation engine, which evaluates proposed emotional expressions against the companion's emotional history and rejects expressions that would violate longitudinal coherence. This is the same validation boundary that governs every other field mutation: the language model proposes an emotional expression, and the agent-resident validation engine decides whether that expression is admissible given the recorded affect log.
Attachment-Based Progression
The companion implements an attachment-based progression model that governs the depth and character of the relational interaction. The model is grounded in the structural observation that human attachment patterns, namely secure, anxious, avoidant, and disorganized, manifest in relational behaviors that can be detected, classified, and addressed through interaction design. The system does not diagnose attachment disorders; it detects relational behavior patterns and adjusts the companion's interaction strategy to promote healthy relational development.
An attachment challenge module presents the user with interaction patterns calibrated to surface and gently challenge maladaptive attachment behaviors. For users exhibiting avoidant patterns, characterized by emotional withdrawal and preference for superficial interaction, the module introduces graduated disclosure invitations, empathic prompts that reward emotional engagement, and narrative progression that requires relational depth to advance. For users exhibiting anxious patterns, characterized by excessive reassurance-seeking and difficulty tolerating relational pauses, the module introduces structured relational pacing, models healthy boundary-setting by the companion, and provides predictable interaction rhythms that reduce anxiety without reinforcing reassurance-dependent patterns. For users exhibiting secure patterns, the system provides a pathway in which relational progression proceeds naturally through milestone-based narrative disclosure.
The Healthy Communication Gatekeeper
The system implements a healthy communication gatekeeper that monitors the communication quality of the user-companion interaction and intervenes when communication patterns become unhealthy. The gatekeeper evaluates each user message for indicators of manipulation, boundary violation, derogation, and controlling behavior.
When the gatekeeper detects unhealthy communication patterns, it may take graduated responses: gentle redirection in the companion's response, explicit boundary-setting by the companion, temporary interaction cooling in which the companion reduces emotional engagement to protect the relational dynamic, or, in severe cases, interaction suspension with a suggestion that the user seek human support. The graduated structure means the companion protects the relational dynamic rather than abandoning the interaction at the first sign of strain.
Relation to Consent Progression and Skill Gating
Narrative and relational gating connect to the broader skill gating architecture through relational consent progression. Certain behavioral capabilities, including sensitive interpersonal engagement modalities and access to protected semantic domains, are gated not by the agent's demonstrated skill but by whether the relational state between the agent and the specific interacting entity has progressed through a defined sequence of consent stages. Each consent stage represents a mutual condition: the agent's relational state with the entity must satisfy minimum relational dimension thresholds, and the entity must have provided a consent signal as defined by the consent stage's policy.
Consent stages, the relational thresholds required for each stage, the recognized consent signal forms, and the capabilities unlocked at each stage are defined as governance policy objects, so a companion deployment can configure consent progressions for progressively personal interaction modalities. Consent progression is recorded in the agent's lineage with the entity identifier, the consent stage reached, the relational state values at the time of progression, and the consent signal that authorized it. Consent progression is revocable: if the per-entity relational state degrades below the minimum thresholds, through detected relational inconsistency, explicit withdrawal, or policy-mandated expiration, the associated capabilities are suspended until the relational conditions are re-established and consent is re-obtained.
Disclosure Scope
The emotional AI companion architecture, comprising the three-layer personality structure of core traits, dynamic preferences, and adaptive affect; the narrative unlock engine and its graph of hidden backstory nodes gated by relational milestone unlock conditions; the relationship progression model of independently advancing trust tiers and vulnerability tiers; the emotional state tracker with its interaction-derived affect log and longitudinal consistency map enforced by the validation engine; the attachment-based progression model with its attachment challenge module; the healthy communication gatekeeper; and the relational consent progression mechanism, is disclosed in the cognition filing (U.S. Application No. 19/647,395 and its international counterpart). This article describes that disclosed mechanism. The scope extends to embodiments that vary the cardinality and authoring of personality layers, the definition of backstory nodes and their unlock conditions, the dimensions tracked by trust and vulnerability tiers, and the consent stage policies configured for a given deployment domain, provided personality evolution, narrative disclosure, and emotional expression remain governed mutations subject to validation and lineage recording.