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
| Request | Handled in | Payload | Refusal reasons |
|---|---|---|---|
CreateAgent | barrier | origin (category: birth, immigration, initial); sex (category: female, male); link_type (text) | mother_dead, mother_outside_domain, no_free_id |
ChangeResidence | barrier | unit (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
| Event | Payload | Meaning |
|---|---|---|
AgentCreated | sex (category: female, male) | An agent was created; journaled after every owner initialized its state. Ego: the child; other: the mother. |
CreateAgentRefused | reason (category: mother_dead, mother_outside_domain, no_free_id) | A CreateAgent request was refused. Ego: the mother. |
ChangeResidenceRefused | reason (category: agent_dead, agent_outside_domain, reason_not_allowed, unknown_unit, dwelling_unavailable, no_change) | A ChangeResidence request was refused. Ego: the agent. |
ChangeResidenceForwarded | reason (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. |
EventVoided | voided_seq (float64, unit one) | An event was not delivered because an agent it names died earlier in the same delivery. |
PolicyActivated | policy (float64, unit one) | A scenario policy started to apply at this step. |
PolicyEnded | policy (float64, unit one) | A scenario policy stopped applying at this step. |
ResidenceChanged | from_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.