<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jamil Fayad</title>
    <description>The latest articles on DEV Community by Jamil Fayad (@jamil_fayad).</description>
    <link>https://dev.to/jamil_fayad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4179340%2F9e7f4016-8e46-47a2-8960-8a02d23552a5.jpeg</url>
      <title>DEV Community: Jamil Fayad</title>
      <link>https://dev.to/jamil_fayad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jamil_fayad"/>
    <language>en</language>
    <item>
      <title>A review checklist for n8n workflows before you release them</title>
      <dc:creator>Jamil Fayad</dc:creator>
      <pubDate>Wed, 18 Nov 2026 19:47:46 +0000</pubDate>
      <link>https://dev.to/jamil_fayad/a-review-checklist-for-n8n-workflows-before-you-release-them-4p8</link>
      <guid>https://dev.to/jamil_fayad/a-review-checklist-for-n8n-workflows-before-you-release-them-4p8</guid>
      <description>&lt;p&gt;Before you hand an n8n workflow to a client or switch it on, it is easy to check that it runs and still miss the cases that hurt later. This is a checklist I put together, with what each step is meant to catch. It is a review aid, not a guarantee that a workflow is safe.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Keep the original and name the target environment
&lt;/h2&gt;

&lt;p&gt;Save an untouched export. Note the n8n version, node versions, destination accounts and who can approve changes, so every edit can be compared with the original and restored.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Review credentials and external actions
&lt;/h2&gt;

&lt;p&gt;Check credential references, HTTP headers and what each node is allowed to do. Sanitise a separate copy before sharing it. Credential names, URLs, pinned data and notes may reveal information even when there is no obvious API key. Messages, bookings and record changes should have explicit approval rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://jamilfayad.com/insights/sanitize-n8n-workflow-json.html" rel="noopener noreferrer"&gt;Steps for sanitising an exported n8n workflow JSON&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Validate missing and unexpected input
&lt;/h2&gt;

&lt;p&gt;List required fields and test missing values and malformed data. Decide what goes to a person rather than guessing a value.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Test repeated requests
&lt;/h2&gt;

&lt;p&gt;Define what makes one request unique, run a fictional request twice, and inspect the destination, not just the execution status. The customer's email alone does not identify a request: the same person can make two different enquiries.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://jamilfayad.com/insights/test-duplicate-booking-requests.html" rel="noopener noreferrer"&gt;How to test duplicate booking requests, with a recorded local example&lt;/a&gt;. In that example, sending the same request ID again left one record and made no additional mock-CRM write. It was a local demonstration, not an n8n workflow or a real CRM. Persistence after restart and concurrent requests still need separate tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Exercise failed and uncertain responses
&lt;/h2&gt;

&lt;p&gt;Test a failed destination, a timeout and an ambiguous acknowledgement in an isolated environment, with bounded retries and a manual fallback. For an unclear acknowledgement, check whether the destination already accepted the request before retrying.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://jamilfayad.com/insights/test-crm-failure-retry.html" rel="noopener noreferrer"&gt;Test CRM failure and retry handling&lt;/a&gt;. My local mock-CRM test returned HTTP 503: after two attempts the request went to an in-memory review queue, with no booking record created for it. This was one error-response test; it did not establish timeout handling, durable queues or production reliability.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Review the diff, then test behaviour
&lt;/h2&gt;

&lt;p&gt;Treat analyzer findings as prompts for review. Re-check each changed field and test the whole workflow with fictional data and test accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not cover
&lt;/h2&gt;

&lt;p&gt;The checklist does not establish security, successful execution or time savings. I wrote it alongside a small Python analyzer I built for n8n workflow JSON. In one local run on a sanitised 16-node sample, it reported 11 findings, applied five JSON edits and left six findings. The workflow was not activated or executed in n8n.&lt;/p&gt;

&lt;p&gt;The edits included removing two credential bindings, which can break an otherwise valid workflow. The review also exposed an authentication-mode false positive and a separate diagnostic fixture where the missing-authentication check missed four HTTP nodes set to authentication: "none". These are tool limitations, not verified security repairs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://jamilfayad.com/insights/n8n-workflow-review-checklist.html" rel="noopener noreferrer"&gt;Full n8n workflow review checklist with acceptance checks and limits&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://jamilfayad.com/projects/n8n-workflow-autofix.html" rel="noopener noreferrer"&gt;Analyzer write-up and source&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>n8nbrightdatachallenge</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How I found and fixed real schema errors in n8n workflows</title>
      <dc:creator>Jamil Fayad</dc:creator>
      <pubDate>Tue, 10 Nov 2026 18:36:58 +0000</pubDate>
      <link>https://dev.to/jamil_fayad/how-i-found-and-fixed-real-schema-errors-in-n8n-workflows-5gdc</link>
      <guid>https://dev.to/jamil_fayad/how-i-found-and-fixed-real-schema-errors-in-n8n-workflows-5gdc</guid>
      <description>&lt;p&gt;This one shows the actual before/after evidence, because that's the part that's usually missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;n8n workflow JSON files accumulate schema drift over time — nodes get added,&lt;br&gt;
connections get edited by hand, and small structural errors creep in that don't&lt;br&gt;
show up until a workflow fails in production. I wanted a tool that could&lt;br&gt;
actually find and fix these, with every change logged, not a black box.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A workflow analyzer and auto-fix pipeline that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parses an n8n workflow's JSON structure and checks it against n8n's own schema
expectations&lt;/li&gt;
&lt;li&gt;Flags structural issues (broken connections, malformed node parameters, schema
mismatches)&lt;/li&gt;
&lt;li&gt;Applies fixes where it's confident, and logs exactly what changed&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The real numbers
&lt;/h2&gt;

&lt;p&gt;On the test workflow I ran this against:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;11 findings before the fix pass&lt;/li&gt;
&lt;li&gt;5 schema edits applied&lt;/li&gt;
&lt;li&gt;6 findings remained after (documented, not hidden — some issues need a human
decision, not an automated fix)&lt;/li&gt;
&lt;li&gt;16 nodes retained unchanged&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm not claiming 100% automated fixing — I'm showing the actual before/after&lt;br&gt;
with the limitations visible, because that's more useful than a demo that only&lt;br&gt;
shows the happy path.&lt;/p&gt;

&lt;p&gt;Full writeup and the live evidence page: &lt;a href="https://jamilfayad.com/projects/n8n-workflow-autofix.html" rel="noopener noreferrer"&gt;https://jamilfayad.com/projects/n8n-workflow-autofix.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the schema-validation approach or n8n's JSON&lt;br&gt;
structure in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>n8nbrightdatachallenge</category>
      <category>automation</category>
    </item>
    <item>
      <title>I built a prompt pipeline that grades itself with an independent AI judge, not its own output</title>
      <dc:creator>Jamil Fayad</dc:creator>
      <pubDate>Mon, 12 Oct 2026 12:45:04 +0000</pubDate>
      <link>https://dev.to/jamil_fayad/i-built-a-prompt-pipeline-that-grades-itself-with-an-independent-ai-judge-not-its-own-output-3chn</link>
      <guid>https://dev.to/jamil_fayad/i-built-a-prompt-pipeline-that-grades-itself-with-an-independent-ai-judge-not-its-own-output-3chn</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Most prompt-engineering setups either hope the model complies with formatting/compliance requirements, or let the same model that generated the output also score it. Both fail quietly. I wanted a pipeline that catches that before a human ever sees the result.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Two failure modes show up constantly in LLM-generated content: the model "forgets" to include a required section (compliance language, a caveat, a citation), and when you ask the same model to grade its own output, it's a biased judge of its own work — it rates its own mistakes more charitably than an independent reviewer would.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A sequential pipeline: &lt;strong&gt;user input → MCP-grounded research → DSPy reasoning/generation → deterministic validation → independent evaluation → optional closed-loop verification.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MCP Research Module&lt;/strong&gt; — injects live domain knowledge into context before generation starts, instead of relying on the model's frozen training data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DSPy.ai&lt;/strong&gt; for the actual reasoning/generation step — declarative, optimizable prompt pipelines instead of hand-tuned prompt strings&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deterministic QA Linter&lt;/strong&gt; — a rule-based hard gate (zero LLM calls) that catches placeholder gaps, duplicated sections, contradictions, and fabricated citations before anything reaches evaluation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Independent Evaluation&lt;/strong&gt; via DeepEval/G-Eval — an external judge model scores the output, specifically to avoid the model grading its own work&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Iterative Enhancer&lt;/strong&gt; — generate → critique → refine, with a bounded iteration budget and early-stopping once quality targets are hit, so it doesn't loop forever chasing marginal gains&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-provider routing&lt;/strong&gt; across OpenAI, Anthropic, Mistral, Qwen, Cerebras, OpenRouter, Groq, and Gemini with priority-fallback, so a single provider outage doesn't take the pipeline down&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;215 offline tests run with zero API keys required, and the whole thing ships through GitLab CI/CD with SAST, secret detection, bandit, and pip-audit scanning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key design decisions
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Deterministic gate before the AI judge, not instead of it:&lt;/strong&gt; cheap, fast, zero-cost checks (duplication, placeholders, missing required sections) get caught by a linter before spending an API call on evaluation. The expensive independent-judge step only runs on output that already passed the free checks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;External judge over self-scoring:&lt;/strong&gt; explicitly rejected having the generator model rate its own output — avoids the obvious bias problem, at the cost of an extra model call per evaluation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bounded iteration, not infinite refinement:&lt;/strong&gt; the critique→refine loop has a hard budget and early-stopping. Early versions without this would occasionally chase diminishing returns on borderline outputs.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Expanding the enterprise-safeguard sections (the linter currently enforces Security &amp;amp; Compliance, Scalability &amp;amp; Observability, and Governance &amp;amp; Audit blocks on production-bound prompts) and tightening the closed-loop verification trigger conditions.&lt;/p&gt;

&lt;p&gt;Portfolio: &lt;a href="https://jamilfayad.com" rel="noopener noreferrer"&gt;jamilfayad.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>mcp</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
