Skip to content

src/dazzle_back/runtime/transition_effects.py

Generated: 2026-03-30T04:38:48.619949+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Transition side-effect runner for entity state machines.

Fires create/update effects declared in on_transition: blocks when an entity's status field changes. Reuses SideEffectExecutor for execution. A ContextVar cascade depth limit prevents infinite loops.

Key Exports

  • TransitionEffectRunner
  • on_entity_updated

Dependencies

Imports

  • logging
  • contextvars.ContextVar
  • typing.Any
  • dazzle.core.ir.process.StepEffect
  • side_effect_executor.EffectContext
  • side_effect_executor.SideEffectExecutor

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_transition_effects.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.