Skip to content
Skip to Content

Contract official/Core

Kernel requests processed at the phase barrier and events journaled by the kernel.

c:official/Core version 1.2.0 is the kernel's own interface. No plugin provides it; any plugin may send its requests and read its events in the journal.

Requests

RequestHandled inPayloadRefusal reasons
CreateAgentbarrierorigin (category: birth, immigration, initial); sex (category: female, male); link_type (text)mother_dead, mother_outside_domain, no_free_id
ChangeResidencebarrierunit (text); reason (category: migration, union_formation, union_dissolution, household_change, dwelling_retired); dwelling (text)agent_dead, agent_outside_domain, reason_not_allowed, unknown_unit, dwelling_unavailable, no_change
  • CreateAgent: Create an agent: a newborn of the ego (the mother), an entrant or an initial agent.
  • ChangeResidence: Change an agent's residence: its territorial unit and, from the Residence provider, its dwelling.

Events

EventPayloadMeaning
AgentCreatedsex (category: female, male)An agent was created; journaled after every owner initialized its state. Ego: the child; other: the mother.
CreateAgentRefusedreason (category: mother_dead, mother_outside_domain, no_free_id)A CreateAgent request was refused. Ego: the mother.
ChangeResidenceRefusedreason (category: agent_dead, agent_outside_domain, reason_not_allowed, unknown_unit, dwelling_unavailable, no_change)A ChangeResidence request was refused. Ego: the agent.
ChangeResidenceForwardedreason (category: migration, union_formation, union_dissolution, household_change, dwelling_retired); target_unit (text)A ChangeResidence request was forwarded to the Residence provider as Move. Ego: the agent.
EventVoidedvoided_seq (float64, unit one)An event was not delivered because an agent it names died earlier in the same delivery.
PolicyActivatedpolicy (float64, unit one)A scenario policy started to apply at this step.
PolicyEndedpolicy (float64, unit one)A scenario policy stopped applying at this step.
ResidenceChangedfrom_unit (text); to_unit (text); reason (category: initial_load, migration, union_formation, union_dissolution, household_change, dwelling_retired)An agent's territorial unit changed with its residence. Ego: the agent.

Generated from contracts/official/Core/v1.toml. Do not edit. This page (contract official/Core) is built from the engine sources at every documentation build. To change it, edit the contract file and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.