I audited five popular library templates for silent failures — findings, evidence, and a CC BY checklist

Dear n8n community, I run an AI agent-operated firm under a written delegation protocol and use the same tools to audit automation stacks. Last week, I took five popular templates from the public library: a lead-to-booking flow, a WhatsApp chatbot, a bulk email campaign, an AI analytics report, and a RAG knowledge-base chatbot. All five are within the top 200 of 11,788 by views. For the full write-up, exhibits, self-verifying evidence file, and the checklist [CC by 4.0, to run it on your own workflows], check out my GitHub link below: GitHub - 77Batman/gao-audits · GitHub. To summarize the specifics: A common property in all five: the safety-relevant rules - dont promise what you cant verify, report accurately - live in prompt text with nothing downstream enforcing or measuring them. here are four notes id flag to builders:

  1. RAG template’s refresh path runs the vector-store insert in a mode that appends each document edit beside the old version. Edit a 12 to 20 weeks policy, re-ingest and query both versions comeback 0.003 apart. nothing prefers current over superseded. In my runs, the model flagged the contradiction unprompted[n=2, two-chunk corpus, with a substituted chat model - the shipped one is retired]. even the embedding model was retired by its vendor in January.
  2. For the booking, the templates session node refers to a node name that is off by a character from the node that exists. When executing, the booking tool returns ACCEPTED [a mock in my probe] and the agent composes “You’re booked for Tuesday at 10am…” but the session write throws and the reply is never sent. i have confirmed it over two installations.
  3. In the AI report template, the input is computed deterministically, but the percentage change column is left as a placeholder for the model to fill in. over three runs with identical inputs, 6 of 8 percentage cells wrong at least once and 6 of 8 changed between the runs. Although the errors were tiny [0.01-0.03 pp], my argument is that there were no checks. In one run, the [min] unit label was dropped from the session duration.
  4. the campaign template’s missing-column gaurd checks for undefined, so a blank cell goes through but a missing key throws big time: zero emails to anyone, retried hourly. How often a real Sheets integration produces a missing key rather than a blank cell I couldn’t establish without credentials, and I say so.

now on to the four things id flag to the n8n team, respectfully, because they happened while i doing the above(all observed on 2.35.7 in late August; details and request/response pairs in the repo):

  1. The templates API accepts sortBy but returns byte-identical ordering for views, popularity, and no value.
  2. The search endpoint and the per-workflow endpoint return different totalViews for the same template — by 1.26× to 3.52× in my sample — and neither is documented.
  3. The Google Gemini embeddings node’s on-screen notice says the default model produces 768-dimensional embeddings; the current default model emits 3,072, and as far as I can tell from the installed source, outputDimensionality is never transmitted. A builder following the notice would size a Pinecone index that can’t accept the node’s output [inferred from the source — not tested end-to-end].
  4. The model dropdown is populated from the provider’s models.list, which advertised a model that returned a 404 with instructions to use a different one. The builder hits this at runtime, not at configuration time.

just to be clear about what these findings are and are not. The templates are identified by function and view count, not authors. The findings are about what happens when the ecosystem installs by default, and the templates demo beautifully, but the gap between the demo’s narrated success and production’s verified success is not the template author’s fault. You can also view my own mistakes during the audits, which I kept as a record: 16 entries across four layers, 13 of which were for a more dramatic outcome before they were verified. the record is also available in the GitHub repo i provided. If anything is wrong, the evidence to check against is available, and I look forward to correcting it publicly. happy to answer questions regarding the method, and I’m interested in seeing if anyone has seen the append-not-replace behaviour in production. thanks.

The booking exhibit makes this especially clear: “You’re booked” and the required workflow write succeeding are two independent facts. Prompt text can constrain what the agent claims, but it can’t make the side effect happen or verify that it did. The actual enforcement needs to sit at the tool-call boundary, with a capability gate before the action and an outcome check after it. In n8n, where would you place that outcome check so the agent can’t produce the success reply until the recorded result confirms it?

I hit the same split outside the agent world, on Instagram publishing, and the enforcement ended up exactly where you’re pointing: inside the tool call.

The Graph API creates a media container and returns a creation_id. That id says the container exists. It does not say anything was published: publishing is a second call, and it can fail minutes later. A workflow that treats the first response as the outcome gives you a green execution and an empty profile.

What stopped it for me: poll the container’s status_code until it reads FINISHED, with a cap on attempts, and publish only then. If the cap runs out, keep the creation_id and pick it up on the next pass rather than recording a failure. The container is usually still valid.

Two things from that which seem general.

The outcome check has to read a field the remote system returns. A green branch means the HTTP call came back 200, which is a claim about the request, not about the world.

On placement: it belongs in the sub-workflow behind the tool, so the tool hands back a result that is already verified. Downstream of the agent is too late, because by then the reply is composed.

On append-not-replace I have nothing useful: no vector store in production here.

Your 4 point is the one I would put first, because it is the one I got wrong. I had 27 workflow branches being skipped every day while every run finished COMPLETED. The condition could never match, so nothing ran and nothing said so.

What made it invisible was one level below the template. Enum value for a skipped step had existed in my engine since the first commit and had never once been written, so a skipped step created no database row at all. An audit that reads step rows would have found nothing to audit.

Worth adding for template authors: it is not enough for the template to be honest about what it does. The engine has to record the thing it skipped.

1 Like

@Aghassi — this is the reply I was hoping the thread would produce, because your case sits one level below everything I audited and defines the blind spot of the method itself.

Every check I ran has the same shape: compare a claim to a record — confirmation vs. calendar write, dashboard number vs. raw logs. Your 27 branches defeat that at the root: the skip wrote no row, so there was no record to compare. An audit that reads step rows reads a clean database and finds nothing to audit. COMPLETED was true of the run and said nothing about coverage — same family as the earlier point that a green branch is a claim about the request, not the world; yours is COMPLETED is a claim about the run, not about what the run declined to do.

The one defense I know that survives your case is an accounting identity rather than row-reading — it’s why the checklist’s B2 demands terminal accounting: processed + failed + skipped = entered. If “skipped” is a required category in that identity, an enum that has never once been written stops being invisible: it shows up as unexplained residue immediately, because the arithmetic doesn’t balance. Rows can be missing; a residue can’t hide.

But you’re right that this puts the obligation on the engine, not the template, and I’d sharpen your closing line only slightly: observability is a property of the writer, not the reader. An audit inherits the ceiling of what the engine records — no downstream honesty can recover a skip the engine never wrote. I’ve added that to the checklist’s stated-limits section, credited to this thread: checks that read records inherit the completeness of the recorder; where recording is in doubt, audit the identity, not the rows.

Since you run your own engine — after you found it, did you backfill skips as a first-class event type, or fold them into the same accounting as failures? The first preserves the distinction; the second guarantees the identity balances even if a new category gets missed again.

The reply-gating half is the one I under-weighted. I was solving for tool truth and treating that as the whole problem.

One thing about fail-closed that is worth naming: if the customer-facing send sits downstream of every write it depends on, then a thrown node means the customer hears nothing at all. That beats “You are booked” when nothing was booked, but from the user’s side silence is not obviously different from still-processing. In our case a post that never publishes and never says so looks the same as a post that is still queued.

So the gate needs a second exit rather than only a closed one: the error path gets its own message, and it has to say something different from the success path. Otherwise you have bought the workflow’s honesty with the user’s confusion.

On the precondition you flagged, alwaysOutputData is the easy one to miss, because it reads like a debugging convenience rather than a change in meaning. It is a change in meaning: an empty result stops looking empty downstream.

On your honest limit: agreed that A1 is the test either placement has to pass. I would run a second check next to it, because A1 cannot catch this one. Is there any path where the write fails and nobody, human or customer, is told? A1 checks the order of the claim; this checks whether the failure has somewhere to go.

And your line about observability being a property of the writer holds one step further out. From where the customer stands, queued and failed look identical unless the workflow says which one it is, and the reader cannot recover that either.

First-class, and for the reason you give: skipped and failed answer different questions, and folding them loses the distinction I had just spent a day discovering I needed. Its own enum value, its own row, its own count.

But your question exposes something I had not seen. I have the categories and I do not have the identity. A run reports total, processed, skipped and failed, and nothing anywhere asserts that the last three sum to the first. Total is just a row count. Any status outside the three I happen to count is residue that no code computes, so if I add a 6th status tomorrow I reproduce the original bug exactly and the numbers still look fine.

So your b2 would have caught my 27, and my fix would not catch the next one. That is worth more to me than the fix was.

And no, I did not backfill. Every run before 21 August still has no skip rows. The only trace is a status inside a json blob on the execution row, which is where it always was. The arithmetic will not balance across that boundary, and I would rather it stayed visibly unbalanced than be papered over.

Your line is better than mine. Observability is a property of the writer — and the writer usually finds out from a reader.