Catalogue automation · Shopify / DTC

Try to sneak a fabrication
past the gate.

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.

001Who we are

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.

246Facts in the ledger
11Hard rules enforced
123Tests passing
110msFull run, 12 products
002Value

Why this exists

Three decisions separate a pipeline you can put in front of a merchant from a demo that writes nice sentences.

01

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.

02

Voice measured, not described

Five descriptions the merchant already likes go in; numbers come out — longest sentence, reading grade, paragraph count. The validator enforces those numbers.

03

Fails closed, every time

A product that breaks one rule publishes nothing. Not a partial record, not a best-effort description. Quarantine is the safe state.

003Capabilities

What the pipeline produces

Four fields per product, per locale. Each one has its own rule, and its own way of failing.

The fact ledger

246 facts, each one holding the field it came from

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 ledger
246 entries · 110 cited in the published copy

Product description

3–4 paragraphs, second person, reading grade ≤ 8, every claim sourced.

Meta title

Hard-capped at 60 characters. Over by one and the product is held.

Meta description

Held inside 140–160 characters, checked on the rendered string.

Image alt text

Describes the photograph. Never announces it — no “image of”, no “photo showing”.

Not sure it really holds?

Try to break it in the next two minutes.

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 demo
004Process

How it works

Five stages, each one testable on its own. The interesting one is the fourth.

01

Extract the voice

Five approved descriptions are measured into a style guide of hard numbers, not adjectives.

02

Build the fact ledger

Each product record is flattened into sayable facts, every one carrying its source path.

03

Generate the copy

Description, meta title, meta description and alt text — offline template or Claude, same interface.

04

Run the gate

Eleven rules, twelve violation codes. Anything untraceable, over-length or off-voice is quarantined.

05

Queue for a human

Cleared copy waits for approval, then re-validates at push time before it reaches Shopify.

Fails closed. Always.

Four guarantees hold whichever generator is wired in — the offline template or the model.

No claim without a source pathNo certification the brand lacksNo number the data does not holdNo push without a human approval
005Live demo

The gate does not care who wrote the words

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.

Language

Loading…

Description
Meta title0 / 60 max
Meta description0 / 140–160
Image alt text0 chars
One-click attacks
Quarantined0 violations

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.

The fact ledger — everything this product may claim

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.

006The rules

What the gate actually catches

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.

AC-02

The certification that was never held

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.

2Phrase classes
0False negatives in tests
A matte black coffee bag with an empty, unmarked wax seal.
AC-06

The altitude nobody grew coffee at

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.

246Facts indexed
110Cited in published copy
A stepped contour sculpture standing in for an altitude figure.
AC-08 / AC-09

The voice that drifted

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.

18Word sentence ceiling
8Reading grade ceiling
A stack of black paper with the top sheet lifting away from it.
007Stack

What it is built on

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.

The gate
TypeScriptNode 22Next.jsnode:testShopify Admin APIn8nClaude APIOffline generatorJSON Schema
JSON SchemaOffline generatorClaude APIn8nShopify Admin APInode:testNext.jsNode 22TypeScript
008FAQs

Common questions

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.