"""Metadata-only routing adapter (split-payload model)."""
from __future__ import annotations

from dvd.domain.models import DocumentMetadata


async def route_document(meta: DocumentMetadata) -> str:
    """Route using plaintext metadata only — never inspect encrypted payload."""
    if meta.doc_type.upper() == "NOTICE":
        return f"{meta.authority_id}-NoticeTeam"
    return f"{meta.authority_id}-DefaultTeam"