Activity Ownership

ActivityOwnership determines which activity currently controls the character. For example, it prevents movement from continuing when a touch reaction takes over.

Ownership sequence

sequenceDiagram
  participant Loop as Autonomous Runtime Loop
  participant Session as CharacterSession
  participant View as Renderer / interaction
  Loop->>Session: accept autonomous action
  Session-->>View: action presentation becomes current
  View->>Session: touch arrives
  Session-->>Loop: prior owner is superseded/cancelled by lifecycle
  Session-->>View: touch reaction owns presentation
  View->>Session: reaction terminal
  Session-->>View: return to idle

If a target becomes invalid during an action, the lifecycle may transfer control to recovery. Ignore late completion from the interrupted action. When a touch occurs, the reaction is finite and its completion returns presentation to idle according to the current contract.

Responsibilities

Why overlap is prevented

Without single ownership, an autonomous visit could continue moving the Character while a touch reaction plays, or a late action terminal could overwrite Recovery. Ownership serializes the semantic transition and makes reset, cancellation, invalidation, and disposal outcomes observable. See Runtime Manual and Terminal Reference.