A distributed workflow needs a localized repair without weakening observability or rollback safety. The affected area is API transaction.
Repair the API transaction background jobs implementation so it schedules the highest-priority jobs that fit and defers the remainder deterministically.
Evidence
- Affected surface: Full-stack backend focus / API transaction.
- Observed failure family: schedule constrained jobs.
- Scope policy: tenantId must equal tenant-primary.