ZZZ Digital Lab

Back to n8n workflow hardening

evidence/tests.json

{
  "synthetic": true,
  "scope": "Static export policy plus actual embedded Code execution with an in-memory receiver; no n8n runtime",
  "passed": 29,
  "failed": 0,
  "results": [
    {
      "name": "before: linter exposes all five requested defect families",
      "status": "PASS"
    },
    {
      "name": "before: same-batch duplicate event is emitted twice",
      "status": "PASS"
    },
    {
      "name": "after: main and error exports have zero static policy findings",
      "status": "PASS"
    },
    {
      "name": "after: exports are inactive and all service URLs use .invalid placeholders",
      "status": "PASS"
    },
    {
      "name": "after: embedded Code node sources match reviewed source files",
      "status": "PASS"
    },
    {
      "name": "after: bounded preparation deduplicates within one envelope",
      "status": "PASS"
    },
    {
      "name": "after: oversized and empty batches fail before downstream delivery",
      "status": "PASS"
    },
    {
      "name": "after: multiple envelopes are refused rather than silently ignored",
      "status": "PASS"
    },
    {
      "name": "after: invalid identifiers, currency and fractional amounts fail schema checks",
      "status": "PASS"
    },
    {
      "name": "after: identity is stable across replay and unaffected by field ordering",
      "status": "PASS"
    },
    {
      "name": "after: reused key with conflicting payload fails instead of hiding an update",
      "status": "PASS"
    },
    {
      "name": "after: receiver atomically suppresses duplicate processing across executions",
      "status": "PASS"
    },
    {
      "name": "after: transient failure uses export retry cap and fixed backoff",
      "status": "PASS"
    },
    {
      "name": "after: lost acknowledgement after receiver commit does not duplicate a record",
      "status": "PASS"
    },
    {
      "name": "after: permanent failure stops at cap and creates a dead-letter plus incident",
      "status": "PASS"
    },
    {
      "name": "after: failed dead-letter persistence raises an explicit incident outcome",
      "status": "PASS"
    },
    {
      "name": "after: recovery replay accepts once and preserves the review record",
      "status": "PASS"
    },
    {
      "name": "after: conflicting cross-execution payload becomes a visible failure",
      "status": "PASS"
    },
    {
      "name": "after: item linking retains the correct event for multiple dead letters",
      "status": "PASS"
    },
    {
      "name": "after: incident summary omits raw payload, stack and error message",
      "status": "PASS"
    },
    {
      "name": "after: trigger-error incident works without execution ID",
      "status": "PASS"
    },
    {
      "name": "linter: removed retry, backoff and timeout controls are detected",
      "status": "PASS"
    },
    {
      "name": "linter: missing credential reference and inline marker are detected without disclosure",
      "status": "PASS"
    },
    {
      "name": "linter: removed or unknown error workflow is detected",
      "status": "PASS"
    },
    {
      "name": "linter: a newly introduced graph back-edge is detected",
      "status": "PASS"
    },
    {
      "name": "linter: disconnected dead-letter branch and lost item-linking are detected",
      "status": "PASS"
    },
    {
      "name": "linter: removing idempotency and bounded input guards is detected",
      "status": "PASS"
    },
    {
      "name": "linter: broken edges, obvious Code loops and unsafe webhook config are detected",
      "status": "PASS"
    },
    {
      "name": "linter CLI: baseline fails, hardened set passes, invalid JSON returns input error",
      "status": "PASS"
    }
  ]
}