from app.domain.models import DocumentMetadata

async def route_document(meta: DocumentMetadata) -> str:
    """Very simple routing stub.
    In reality, this would query a routing rules table or service.
    """
    if meta.docType.upper() == "NOTICE":
        return f"{meta.authorityId}-NoticeTeam"
    return f"{meta.authorityId}-DefaultTeam"
