"""Allowlisted public summary for ``hermes debug share`` (#46006). The public paste carries only values Hermes itself produces: versions, install kind, platform and toolset names, the KEY shape of config.yaml, and counts of warnings/errors by logger, exception class and HTTP status. Log lines and message text never take this path: subtractive redaction cannot recognise IPs, room IDs, display names or message bodies, so the public report is built from an allowlist instead. The full redacted logs go only to private storage (``--nous``). """ from __future__ import annotations import builtins import functools import importlib.util import logging import platform import re import sys from collections import Counter from pathlib import Path from typing import Any logger = logging.getLogger(__name__) # ``hermes_logging._LOG_FORMAT``: ``