Files
J 6b3bc35ef5 Merge origin/main into PR #5150; renumber attribution migrations 167-173 → 184-190 (MUL-4525)
Sync with latest main and resolve the migration prefix collision that kept
backend CI red: main added 167-183 (resource labels, webhook delivery, chat
drafts) while this branch owned 167-173 (attribution + admission). Renumber this
branch's seven migrations to 184-190 so every prefix is unique.

Conflicts resolved:
- server/internal/service/autopilot.go: union of main's webhook-delivery durability
  (AdmitAutopilotWebhookDelivery / DispatchAutopilotForWebhookDelivery,
  webhookDeliveryID threading, dispatchAutopilot→dispatchAutopilotRun split) with
  this branch's admission surface (actorUserID + typed dispatch.ReasonCode through
  dispatchAutopilot / dispatchAutopilotRun / shouldSkipDispatch / handleDispatchSkip,
  DispatchAutopilotManual). recordSkippedRun now takes both webhookDeliveryID and reason.
- packages/core/api/client.test.ts: kept both sides' new cancelTaskById test cases.

sqlc regenerated. Migrations apply cleanly on a fresh DB through 190 and are
idempotent; migration lint + full internal/handler, internal/service,
internal/attribution, cmd/server suites green; core+views typecheck and affected
vitest green.

Co-authored-by: multica-agent <github@multica.ai>
2026-07-15 02:59:43 +08:00
..