ZZZ Digital Lab

Back to n8n workflow hardening

evidence/replay.json

{
  "synthetic": true,
  "scope": "Offline contract replay; not n8n runtime",
  "success": {
    "accepted": 2,
    "duplicates": 0,
    "attempts": 2,
    "waitsMs": [],
    "deadLetters": 0,
    "status": "complete",
    "incidents": []
  },
  "duplicate": {
    "accepted": 0,
    "duplicates": 2,
    "attempts": 2,
    "waitsMs": [],
    "deadLetters": 0,
    "status": "complete",
    "incidents": []
  },
  "transient": {
    "accepted": 1,
    "duplicates": 0,
    "attempts": 3,
    "waitsMs": [
      1000,
      1000
    ],
    "deadLetters": 0,
    "status": "complete",
    "incidents": []
  },
  "permanent": {
    "accepted": 0,
    "duplicates": 0,
    "attempts": 3,
    "waitsMs": [
      1000,
      1000
    ],
    "deadLetters": 1,
    "status": "delivery-failed",
    "incidents": [
      {
        "synthetic": true,
        "incident_key": "incident:SYN-EXEC-1",
        "workflow_id": "SYNTHETIC_MAIN_WORKFLOW_ID",
        "reason": "WORKFLOW_FAILED",
        "action": "Inspect local execution and dead-letter store"
      }
    ]
  },
  "recovery": {
    "accepted": 1,
    "duplicates": 0,
    "attempts": 1,
    "waitsMs": [],
    "deadLetters": 0,
    "status": "complete",
    "incidents": []
  },
  "retainedDeadLetters": [
    {
      "synthetic": true,
      "dead_letter_key": "dlq:lead-event:v1:form:EV001",
      "idempotencyKey": "lead-event:v1:form:EV001",
      "payload": {
        "event_id": "EV001",
        "source": "form",
        "customer_ref": "SYN-C001",
        "amount_minor": 2500,
        "currency": "USD"
      },
      "status": "awaiting_review",
      "reason": "DELIVERY_RETRIES_EXHAUSTED",
      "execution_id": "SYN-EXEC-1"
    }
  ]
}