Skip to content

symfonic.devtools.archgate.baseline

baseline

Independent pins for the 2026-08-21 architecture-debt baseline.

PinnedBaseline dataclass

PinnedBaseline(exc_2026_001: int = 428, exc_2026_004: int = 1, layer_mapping_total: int = 429, all_rule_total: int = 522, modules_scanned: int = 789, measured_commit: str = '5eff9360f159688d4adb2614e5b5f617a521bfd5', content_digests: Mapping[str, str] = (lambda: MappingProxyType({'archcheck.toml': 'sha256:e73bb76e6277bfced9c85a307dfcdb481a726443e3a733be0272a0e4b660575f', 'dry-exception-registry.toml': 'sha256:d902f43756af81400d8764edf30237fab0f18ff04415bd81457bba7c42bb47b5', 'exception-registry.toml': 'sha256:fd6c41a31fe9003ba63311a49a8595cc7fdd9f4cfa0c0221c3b5d6685cfd5dbf'}))(), exc_2026_001_per_package: Mapping[str, int] = (lambda: MappingProxyType({'symfonic.agent': 128, 'symfonic.cli': 9, 'symfonic.core': 169, 'symfonic.diagnostics': 25, 'symfonic.infra': 3, 'symfonic.knowledge': 5, 'symfonic.memory': 62, 'symfonic.observability': 13, 'symfonic.tools': 14}))())

Counts measured independently before the inventory emitter existed.

as_totals

as_totals() -> dict[str, object]

Return the stable JSON representation used by tests and emitter.

Source code in src/symfonic/devtools/archgate/baseline.py
def as_totals(self) -> dict[str, object]:
    """Return the stable JSON representation used by tests and emitter."""
    return {
        "all_rule_total": self.all_rule_total,
        "layer_mapping_total": self.layer_mapping_total,
        "modules_scanned_at_baseline_intersection": self.modules_scanned,
        "per_exception": {
            "EXC-2026-001": self.exc_2026_001,
            "EXC-2026-004": self.exc_2026_004,
        },
    }