> For the complete documentation index, see [llms.txt](https://oodlz-ai-studio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oodlz-ai-studio.gitbook.io/docs/outbound-agents/awareness/2-articles/post-process-fixes.md).

# POST-PROCESS Fixes

8 deterministic fixes run after writing and link injection — citation placement, link density caps, keyword-plan stripping, citation renumbering, pull-quote/table conflict resolution.

> **8 deterministic fixes run after the LLM stages — every structural rule the writer might have missed gets enforced in code.**

The article pipeline relies on LLM stages for content but never trusts them for structural rules. After the writer, the link pipeline, and citation injection complete, a deterministic POST-PROCESS pass runs 8 fixes that enforce final content rules — link density, citation placement, structural cleanups, and counter corrections.

## How It Works

POST-PROCESS reads the article after every LLM stage has finished. Each fix runs in sequence, modifies the article in place, and logs what it changed. No fix is judgement-based; every rule is encoded.

| # | Fix                              | What it enforces                                                                            |
| - | -------------------------------- | ------------------------------------------------------------------------------------------- |
| 1 | Strip intro/conclusion citations | External citations belong in narrative supporting evidence, not in opening or closing zones |
| 2 | Pre-H2 link cap                  | At most 1 internal link before the first H2                                                 |
| 3 | Strip keyword process leaks      | Removes any bullet that accidentally exposes the focus-keyword process to the reader        |
| 4 | Pull-quote/table conflict        | Removes pull-quote when the same H2 section already contains a table                        |
| 5 | Citation renumbering             | Renumbers all citations in document order, rebuilds the Sources block clean                 |
| 6 | Per-H2 link cap                  | At most 1 internal link per H2 section across the body                                      |
| 7 | Strip KEYWORD\_PLAN block        | Removes any leaked keyword-planning scaffold the LLM left in the output                     |
| 8 | Correct step count               | Updates "this guide covers N steps" if the actual section count changed                     |

The fixes are downstream safety nets, not the primary enforcement layer. Most of these rules are also enforced upstream — by the writer's prompt, by link validation, by the citation sanitiser. POST-PROCESS catches the rare cases where upstream enforcement let something through.

## What You Get

* 8 final-pass fixes that enforce structural rules deterministically — no LLM judgement, no surprises.
* Citation positioning corrected — citations strictly out of intro and conclusion zones.
* Link density caps enforced — never more than 1 internal link in pre-H2, never more than 1 per H2 across the body.
* Sources block always renumbered in document order on every run — broken numbering from stripped sources cleaned up automatically.
* KEYWORD\_PLAN scaffolds and process-leak bullets stripped before publish — internal mechanics never leak into the reader's view.
