GuardedJsonList

Source:

Local role: Guarded list wrapper used in mutable fields of ModelObject.

Big-picture role: Extends authority-safe mutation behavior to list operations in objects managed by World.

Inheritance:

  • list[Any]

Parameters and fields:

  • initial: List[Any] | None
  • mutation_guard: MutationGuard

Methods:

  • set_mutation_guard(...)
  • guarded mutators: append, extend, insert, pop, remove, reverse, sort, __setitem__, __delitem__, __iadd__
  • __deepcopy__(...)

See also:

Ometeotl

A Python library to build complex multi-agent simulations, wargames, and AI-driven strategies