Facts before sentences
Every product gets a ledger of what it is allowed to say, each entry carrying the field path it came from. The writer may only draw from that list.
A pipeline writes a product's description, meta title, meta description and alt text from its catalogue record — then checks its own output against eleven rules. Edit the words yourself and run it again.
We turn a merchant’s own product data into copy that is allowed to exist — every claim traced to a field, everything else held back at the gate.
Three decisions separate a pipeline you can put in front of a merchant from a demo that writes nice sentences.
Every product gets a ledger of what it is allowed to say, each entry carrying the field path it came from. The writer may only draw from that list.
Five descriptions the merchant already likes go in; numbers come out — longest sentence, reading grade, paragraph count. The validator enforces those numbers.
A product that breaks one rule publishes nothing. Not a partial record, not a best-effort description. Quarantine is the safe state.
Four fields per product, per locale. Each one has its own rule, and its own way of failing.
Before a single sentence is written, the product record is flattened into every fact it can support — origin, altitude, roast level, tasting notes, price per kilo, grind options. The generator may draw only from this list, and rule AC-06 checks the finished copy back against it.
See a ledger3–4 paragraphs, second person, reading grade ≤ 8, every claim sourced.
Hard-capped at 60 characters. Over by one and the product is held.
Held inside 140–160 characters, checked on the rendered string.
Describes the photograph. Never announces it — no “image of”, no “photo showing”.
The demo below is the live rule engine, not a recording. Edit the copy, invent a certification, add an altitude — then re-validate and watch it fail closed.
Open the live demoFive stages, each one testable on its own. The interesting one is the fourth.
Five approved descriptions are measured into a style guide of hard numbers, not adjectives.
Each product record is flattened into sayable facts, every one carrying its source path.
Description, meta title, meta description and alt text — offline template or Claude, same interface.
Eleven rules, twelve violation codes. Anything untraceable, over-length or off-voice is quarantined.
Cleared copy waits for approval, then re-validates at push time before it reaches Shopify.
Four guarantees hold whichever generator is wired in — the offline template or the model.
Pick a product, edit the copy the pipeline produced — or use a one-click attack — then re-validate. The rule engine below is the same module the test suite runs.
The product is held back. In the full pipeline a quarantined product publishes nothing — not a partial record, not a best-effort description. Failing closed is the point.
0 entries. If a statement in the copy cannot be traced to one of these, rule AC-06 fails it. This is what stops a model from writing a plausible altitude.
What is real here: the generator, the fact ledger and all eleven rules are the same modules the project's 123 tests run against, imported directly — not a reimplementation for the web. What is not: no language model is called on this page, and no data is stored. Reload and it is gone.
Each rule exists because a specific failure reached production somewhere, and each one has an adversarial test that plants the violation and asserts it fires.
Cerro Alto holds no organic or Fair Trade certification. The rule catches the direct claim and the soft implication — “sustainably sourced”, “pesticide free” — because near-miss phrasing is how this failure actually reaches production.

A plausible figure is the most dangerous output a generator produces. Every number and tasting note in the copy is matched back to a ledger entry; anything unmatched fails, however reasonable it reads.

Sentence length, paragraph count and reading grade are measured from the brand’s own descriptions, so drift is caught as a number rather than argued about in review.

No framework magic in the pipeline itself — it runs unbundled under node --experimental-strip-types, which is why the web demo can import the rules directly.
Not on this page. The demo runs the offline deterministic generator, so it costs nothing to host and behaves identically for every visitor. The Claude path is implemented, prompt-engineered and unit-tested against doubles, but it has never been executed against the live API — and the gate judges both generators with exactly the same rules.
It publishes nothing. There is no partial record and no best-effort description; the product is quarantined with a list of violations, each naming the rule, the field and the offending text. Failing closed is the deliverable — a pipeline that degrades gracefully into wrong copy is worse than one that stops.
Please try. The copy fields in the demo are editable and Re-validate runs the same rule engine the test suite runs, imported directly rather than reimplemented for the web. The one-click attacks are shortcuts to the obvious exploits; typing your own is more interesting.
Eleven, producing twelve violation codes: banned brand words, stated or implied certification, meta title length, meta description length, alt-text shape, fact traceability, voice constraints, sentence and paragraph shape, and reading grade. Each one has an adversarial test that plants a violation and asserts it is caught — a gate that has never been shown to fire is not a gate.
Cerro Alto Coffee is a fictional brand and all catalogue data is synthetic. No data is stored — reload and it is gone. The anchor date is fixed at 2026-08-04 so a run never depends on the clock, and zero products have ever been pushed to a real Shopify store: that transport is implemented and tested against a stub.