Find the silent failures in an LLM content pipeline: count outputs sitting exactly on a limit, make guards log what they drop, and replay changes blind
A solo builder's article pipeline (planner, writer, editor) never threw an error but kept getting worse: schema limits cut briefs mid-sentence and safety checks quietly deleted links and edits. He shows the checks that found it and the fixes.
Evidence: The source shows its work: steps, screenshots, code or data you can inspect.
The business problem
When a chain of AI calls produces content for real sites, failures rarely crash anything. The output stays valid and passes every check while quietly losing the important parts, so the owner only notices when quality has already dropped.
What was tried
1. The pipeline: a planner writes a structured brief, a writer drafts the article, and an editor revises it, each handing instructions to the next. 2. To look for hidden truncation, run a simple database query counting how many generated fields are exactly at their length limit; a pile of exact hits means the model is being cut off (he found 11 of 14 briefs over two weeks had at least one cut field). 3. Remove length limits from the schema the model fills in. Put 'at most N characters' in the field description instead, check the length in your own code after the call, and run one repair pass if it is over. 4. List every guard that deletes or skips something on failure (link checks, edit checks, token budgets) and make each one log what it dropped, with a counter you actually look at. 5. Make links impossible to get wrong: let the planner pick links by ID from the same list the link check uses, and have code turn IDs into paths. 6. Count token budgets in tokens, and test them with a non-Latin language. 7. When the model gets something wrong, fix it in a separate checking stage rather than adding more 'never do X' rules to the writer, which he found made drafts vaguer. 8. Before shipping any prompt or schema change, replay it offline on stored briefs and drafts and compare old and new output blind, ideally with AI judges from more than one company.
What was reported (mixed)
Over two weeks, 23 of 120 writer notes and 7 of 96 outline points had been cut at exactly the limit, and 11 of 14 briefs had at least one cut field, with no errors raised. Other silent losses: a link check that removed every internal link, an editor pass discarded over a capitalised anchor, Thai drafts that overran the token budget, and a word-count target that roughly halved article length. After the fixes, a replay on six sites put nothing on a limit, 14 of 14 links resolved, and the checking-stage change won a five-article blind comparison with 4 wins, 1 tie and 0 losses. Adding rules to the writer lost blind comparisons (4-1 and 3-2).
Limitations
Firsthand account from one builder running his own content engine (NichePressa) on his own sites; the post links to its case study, so it partly promotes his work. Blind tests used only five articles, which he says shows direction, not size of effect. He cannot yet measure how articles perform in search, so quality was judged on how drafts read. The AI-judge observation rests on one topic. The truncation behaviour is described for OpenAI strict structured outputs in his runs; other providers may differ.
What you need
An existing multi-step LLM pipeline with stored inputs and outputs in a database, and enough coding skill to change schemas and add logging.
Start with the at-limit count query on the last two weeks of output; it takes minutes and shows whether truncation is happening.
Sources
- DEV Community (Roy Levy) ↗ Firsthand write-up, published November 12, 2026
Source published: November 12, 2026. Last reviewed here: November 28, 2026. Spot a mistake? Tell us.
Tools in this workflow
- Sentry: Still used for loud errorsTry Sentry
- OpenAI structured outputs: Strict JSON output from the planner; its length limits caused the cutsTry OpenAI structured outputs
- Zod: Own length check after each callTry Zod
Get new workflows like this by email
A short selection of the most useful new workflows, including the ones that did not work. Free, and you can unsubscribe at any time.
Related workflows
Hand your year-end bookkeeping checklist to Claude Code: it finds context in your email, reconciles in Xero and asks you only what it cannot find
The owner of a small UK company gave Claude Code his accountant's 37-item year-end checklist. Claude planned the job, reconciled about 200 bank lines in Xero, recategorised expenses and filled the form, with about an hour of his input over 80 short messages.
Check whether your pages can appear in Google AI Overviews with a short eligibility script, then accept that AI Overview clicks cannot be told apart in analytics
A solo founder with a dozen small sites read Google's own rules for AI Overviews, wrote a standard-library Python script that checks indexing and snippet settings, ran it on 20 URLs, then compared what his analytics can and cannot attribute to AI tools.
Track ChatGPT visits by utm_source instead of referrer, then find they land on live-data tools rather than service pages
A small Israeli web agency found ChatGPT had become its second-largest traffic source once it filtered by utm_source instead of referrer: 769 sessions in 30 days, 76% on one free vehicle lookup tool and none on service pages. Visitors looked for contacts more often, but leads are unknown.
Run a Lighthouse audit, including the new Agentic Browsing check, through Chrome DevTools MCP and let the agent propose fixes
An SEO consultant connects Google's chrome-devtools-mcp server to an AI coding agent, runs a real Lighthouse audit on his own site, fixes the accessibility findings and re-audits, and explains which agent-readiness checks are worth acting on.