"""ARR-owned, platform-neutral remote processing orchestration."""

from arr_processing.callbacks import (
    AgentResultWriteback,
    AgentWritebackReceipt,
    DeliveryOutcomeResolver,
    SourceArtifactResolver,
)
from arr_processing.config import ResultVerificationConfig
from arr_processing.contracts import (
    ProcessingRequest,
    ProcessingResult,
    ResultArtifactHandle,
)
from arr_processing.errors import ProcessingError, ProcessingTransportError
from arr_processing.ledger import InMemoryProcessingLedger
from arr_processing.postgres import PostgresProcessingState, ProcessingDatabaseConfig
from arr_processing.registration import ProcessingOutputRegistrar, RegisteredDelivery, RemoteFilePort
from arr_processing.remote_files import PrefixRemoteFilePort
from arr_processing.runner import (
    ProcessingCompletion,
    ProcessingRunner,
    processing_dispatch_idempotency_key,
)
from arr_processing.signatures import SignedResultCodec, VerifiedSignedResult
from arr_processing.source_message import OssProcessingMessageBuilder
from arr_processing.runtime_writeback import (
    AgentRuntimeWritebackAdapter,
    FrozenAgentResult,
    RuntimeWritebackError,
)

__all__ = [
    "AgentResultWriteback",
    "AgentRuntimeWritebackAdapter",
    "AgentWritebackReceipt",
    "DeliveryOutcomeResolver",
    "InMemoryProcessingLedger",
    "FrozenAgentResult",
    "ProcessingCompletion",
    "ProcessingDatabaseConfig",
    "ProcessingError",
    "ProcessingRequest",
    "ProcessingResult",
    "ProcessingRunner",
    "PostgresProcessingState",
    "processing_dispatch_idempotency_key",
    "ProcessingOutputRegistrar",
    "OssProcessingMessageBuilder",
    "PrefixRemoteFilePort",
    "ProcessingTransportError",
    "ResultArtifactHandle",
    "RegisteredDelivery",
    "RemoteFilePort",
    "RuntimeWritebackError",
    "ResultVerificationConfig",
    "SignedResultCodec",
    "SourceArtifactResolver",
    "VerifiedSignedResult",
]
