Skip to content

src/dazzle_back/events/topology_drift.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Topology Drift Detection for Event-First Architecture.

Detects and reports differences between the expected event topology (defined in AppSpec) and the actual runtime state (topics, consumers, partitions in the event bus).

Drift Types: - MISSING_TOPIC: Topic defined in AppSpec but not in bus - EXT...

Key Exports

  • DriftType
  • DriftSeverity
  • DriftIssue
  • TopologyFingerprint
  • ExpectedTopic
  • ExpectedConsumer
  • ExpectedTopology
  • TopologyExtractor
  • TopologyDriftDetector
  • DriftReport
  • check_topology_drift
  • to_dict
  • to_dict
  • from_dict
  • extract
  • detect
  • get_current_fingerprint
  • to_dict

Dependencies

Imports

  • __future__.annotations
  • hashlib
  • json
  • logging
  • dataclasses.dataclass
  • dataclasses.field
  • datetime.UTC
  • datetime.datetime
  • enum.StrEnum
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle.core.ir.AppSpec
  • dazzle_back.events.bus.EventBus

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_events.py
  • tests/unit/test_events_api.py

Notes

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