babylon.engine.actions.mobilize

MOBILIZE verb resolver (verb-dispatch engine).

Public demonstration / strike (ActionType.PROTEST). Ports the spec-047 mobilize dynamics (solidarity-amplified turnout, heat generation, George-Floyd backfire) onto the uniform resolver signature, returning an ActionResult and writing ONLY round-trip-safe graph fields:

  • heat on a Territory / Organization target (a model field of both);

  • ideology.agitation on a SocialClass target via copy-modify-writeback of the nested ideology dict (top-level agitation does NOT round-trip).

Backfire emits EXCESSIVE_FORCE (the George-Floyd spark); the standard path emits ORGANIZATIONAL_ACTION. There is no MobilizeDefines, so the coefficients are module constants.

Functions

resolve_mobilize(action, org_attrs, graph, ...)

Resolve a player MOBILIZE action: turnout, heat, and backfire.

babylon.engine.actions.mobilize.resolve_mobilize(action, org_attrs, graph, services)[source]

Resolve a player MOBILIZE action: turnout, heat, and backfire.

Parameters:
  • action (Action) – The MOBILIZE action (action_type == ActionType.PROTEST).

  • org_attrs (dict[str, Any]) – Acting organization’s node attributes (unused).

  • graph (BabylonGraph) – World graph (mutated on the target node).

  • services (ServicesProtocol) – ServicesProtocol (unused; no MobilizeDefines exist yet).

Return type:

ActionResult

Returns:

ActionResult; success=False when the target node is absent.