Skip to content →
Build a worldActors
GitHub
Build a world

Actors

Profiles with roles, care context, temperament, relationships, movement, and memory.

Profile model

An actor is a durable profile, not a disposable request fixture. The profile carries identity, contact preferences, work and care context, affiliations, relationships, position, movement, temperament, and mutable state.

FieldMeaning
IdentityName, age, pronouns, email, phone, language, and occupation
ContextAffiliations, relationships, care, work, and public visibility
BehaviorPreferred channel, reply pace, clarity, trust, and health literacy
World stateCurrent location, movement leg, stress, relationship status, and pending decisions

Roles and capabilities

Actors can participate in more than one part of the world. archetype is the primary identity; roles and capabilities describe what the actor can do.

RoleTypical behavior
patientRequests care, books appointments, and receives messages
caregiverActs on behalf of related profiles
clinicianResponds to care and reviews clinical context
practice-staffManages practice queues and operational work
lab-workerProcesses samples and lab-related work
public-figureAdds sensitivity and public context
external-agentRepresents another system or outside party

Temperament and state

Temperament influences how an actor communicates and responds. Mutable state records what the world has done to them.

  • replyPace and clarity shape message behavior.
  • trust and healthLiteracy are normalized from 0 to 1.
  • stress rises while work waits or side effects fail.
  • relationshipStatus moves from active to at-risk to lost.
  • waitingOnDecisionIds prevents one actor from generating overlapping unresolved work.

Movement

Movement is a formal start → current → end leg. Each tick can progress that leg based on pace, mode, and upcoming appointments. Actors may be stationary or moving and can transition between home, wandering, errands, travel to the practice, and waiting.