{
  "slug": "reconcile-email-routing-addresses-during-worker-trigger-deployment-c02c216d7b9a",
  "title": "Reconcile Email Routing addresses during Worker trigger deployment",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-21T19:14:43.000Z",
  "announced_at": "2026-07-21T19:14:43.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Worker’s Email Routing rules should match its configuration, set top-level `addresses` and run `wrangler deploy` or `wrangler triggers deploy`. Wrangler reconciles managed rules and requires confirmation for destructive changes; non-interactive destructive plans fail after Worker deployment.",
    "examples": [
      "npx wrangler deploy",
      "npx wrangler triggers deploy",
      "{\n  \"name\": \"<worker-name>\",\n  \"main\": \"<entrypoint>\",\n  \"compatibility_date\": \"<YYYY-MM-DD>\",\n  \"addresses\": [\"<recipient@example.com>\", \"*@<apex-domain>\"]\n}"
    ],
    "gotchas": [
      "Version: 4.113.0",
      "addresses: Top-level string array of inbound addresses; each entry is a literal recipient or `*@domain` catch-all. Catch-all supports apex domains only. Omitted means no rule changes; an empty array removes all Email Routing rules managed by this Worker. Ignored under `env`.",
      "Prerequisite: Wrangler 4.113.0 or later.",
      "Prerequisite: For Worker deployment, Wrangler requires at minimum `name`, `main`, and `compatibility_date`; `main` may be omitted for assets-only Workers.",
      "Reconciliation runs after the Worker uploads, or when `wrangler triggers deploy` runs after a version promotion.",
      "Non-interactive destructive plans fail without modifying rules."
    ]
  },
  "why_it_matters": "Deploy a Worker whose configuration defines Email Routing addresses and keep its routing rules in sync.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.113.0",
    "https://developers.cloudflare.com/email-service/configuration/email-routing-addresses/",
    "https://developers.cloudflare.com/workers/wrangler/configuration/"
  ],
  "rank": 0.92018,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-20b394bfeafab19f-0:gate",
    "evidence_hash": "c3f8967e84b73eef1a9402b23144b4fc9539790670e411a57f828bddb9f0ad03"
  },
  "review": {
    "draft_hash": "96df98ba170ea8d7606ff6e934fe2dc7ba6e9ab0fac6491bca1db6237e0ba7ff",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
