feat: add lock milestones and task tracking to upload breadcrumbs
Add LOCK_ACQUIRING, LOCK_ACQUIRED, LOCK_RELEASED milestones to the
Milestones enum for tracking lock lifecycle events in breadcrumbs.
Add task_name and parent_task_id fields to BreadcrumbData so each
breadcrumb records which Celery task produced it and the parent task
in the chain. Update _call_upload_breadcrumb_task to accept and pass
these new fields.
No migration needed -- Milestones is only used within BreadcrumbData
(JSONField) and the new Pydantic fields default to None.
Co-authored-by: Cursor <cursoragent@cursor.com>
refactor: consolidate ReportType to shared.django_apps.reports.models
ReportType already existed in shared.django_apps.reports.models (used by
the API and some worker services). Remove the duplicate from
shared.django_apps.enums and point worker imports to the canonical
location, eliminating redundancy.
Co-authored-by: Cursor <cursoragent@cursor.com>