mud_server.db.axis_repo

Axis registry and character state snapshot repository operations.

Functions

seed_axis_registry(*, world_id, axes_payload, ...)

Insert or update axis and axis-value rows from policy payloads.

apply_entity_state_to_character(*, character_id, ...)

Apply entity-state labels as score deltas through the event ledger.

get_character_axis_state(character_id)

Return axis score + snapshot payload for one character.

Module Contents

mud_server.db.axis_repo.seed_axis_registry(*, world_id, axes_payload, thresholds_payload)[source]

Insert or update axis and axis-value rows from policy payloads.

mud_server.db.axis_repo.apply_entity_state_to_character(*, character_id, world_id, entity_state, seed=None, event_type_name='entity_profile_seeded')[source]

Apply entity-state labels as score deltas through the event ledger.

mud_server.db.axis_repo.get_character_axis_state(character_id)[source]

Return axis score + snapshot payload for one character.