Skip to content

solutions_backend.classification.digests

Canonical digests and deterministic identities for classification operations.

Functions

classification_id

classification_id(intake: ClassificationIntake) -> UUID

Derive a stable caller-visible run identity from source, payload, and config.

context_digest

context_digest(context: ClassificationContextSnapshot) -> str

Hash the exact bounded context crossing the Backend/Agents boundary.

intake_digest

intake_digest(intake: ClassificationIntake) -> str

Hash normalized intake while replacing private image bytes with their digest.

workflow_id

workflow_id(classification_id: UUID, attempt_number: int, context_digest: str) -> UUID

Derive one stable workflow thread identity per durable context attempt.