From Runbook to Script: Turning My n8n Pre-Publish Checklist Into a One-Command Gate
说明与用途
./prepublish.sh 脚本取代了手动的五步 n8n LLM 工作流预发布检查表,强制执行所有门控并发现手动流程未捕获的隐藏错误。
问题
A twenty‑minute manual pre‑publish checklist for n8n LLM workflows was frequently skipped, risking untested deployments.
结果
The script reduced manual effort, enforced non‑skippable gates, and revealed three hidden failures: unasserted sabotage, nondeterministic crash points, and vacuous cost rehearsal in CI.
工作流
- Run fixture clean and adversarial checks
- Iterate over providers (openai, anthropic, gemini) forcing failure and verifying injected failure and fallback
- Force crash after node
extract_3, then resume and verify no duplicates or re‑spend - Run cost rehearsal by checking escalation rate <= 0.15 and per‑run cost <= $0.50
证据
My last post ended with a five‑step pre‑publish checklist for n8n LLM workflows. It took twenty minutes to run by hand.
I turned it into one command: ./prepublish.sh. Any gate fails, exit non‑zero, nothing ships.
Three things the script caught that the checklist never did…
- 记录日期: 2026-10-13T02:40:56.001Z