ai newsFr., 4. Dez.
EilmeldungOpenAI verfehlt eigene Umsatzprognose um knapp 20 Prozent

World-First Prompt Architecture: Cutting Scene Collisions from 18.7% to 0% (and the Negative Trap Behind It)

Last month I wrote about continuity inside a shot list: the same face, the same coat, the same cup in the same hand, five shots in a row. This is the layer above that one. It is the question I was answering implicitly, and wrong, every single time: which world is this scene even in? Two failures ke

dev.toFreitag 12:48 · 04.12.10 Min. Lesezeit
Bild: dev.to

Last month I wrote about continuity inside a shot list: the same face, the same coat, the same cup in the same hand, five shots in a row. This is the layer above that one. It is the question I was answering implicitly, and wrong, every single time: which world is this scene even in?

Two failures kept repeating, and they turned out to be the same bug again.

Failure 1 — the world drifts. A character in a Joseon-era hanbok, standing in front of a neon storefront. Victorian lace cuffs on a Regency dress. Cherry blossoms in a snow scene. A moonlight composition inside a bright daylight kitchen. Every individual prompt reads fine. The sequence does not. A viewer can forgive a face that shifts slightly; they cannot forgive a 15th-century woman holding a plastic cup.

Failure 2 — what I told it not to draw is what it drew. I had a character with a small beauty mark under one eye. The model rendered tears. I added no tears — and got more tears. I put mandarin collar in the negative list to keep European court dresses European, and the dresses came back with mandarin collars.

The first failure is a data problem. The second one is a language problem, and I made it worse with my own UI.

So I built a world-first prompt machine: one HTML file, no server, no account, no API key, no subscription, that runs from file:// with the wifi off. This post is the engineering note — including the numbers I measured and the parts that still don't work.

The usual prompt flow goes character → scene → shot. That order guarantees the largest decision is made last, implicitly, by whatever description happened to be in the character box. If your hero description says "silk ribbon and pearl hairpin," you have already chosen a century without meaning to.

So I flipped the order: world → branch → person → look → what to make. Five worlds, fourteen branches:

Modern modern sensibility East Asian period Korea · China · Japan Western period romance fantasy · 15C Burgundy · Regency · Victorian Seasonal fantasy spring · summer · autumn · winter Future / neon neon city · future correspondence Enter fullscreen mode Exit fullscreen mode Each branch carries its own wardrobe, hair, backgrounds, props, and finish. Items never substitute across branches: a Regency silhouette is not a fallback for a Victorian one, and the app will not offer it. In data terms a branch is a filter, not a suggestion.

Pro ships 3,621 catalog items — 1,238 shared (faces, hair, eye colors, expressions, modern scenes) plus 2,383 in branch packs. The free starter ships 1,607: the shared block plus the romance-fantasy pack only. All of it is inline JSON inside the HTML, and the file makes zero network calls.

Why one file? Because it is the only form that survives my actual workflow: no backend to keep alive, no build step at 2am, no version drift between what I tested and what someone downloaded, and it opens on a plane. The cost is real — the Pro build is 720 KB of HTML, and every data edit means a rebuild — but a tool I can hand someone as a single attachment is worth that.

A finished character-sheet prompt comes out as anchors rather than adjectives:

[WORLD] Joseon-era Korea, late autumn, overcast daylight [SUBJECT] an adult woman in her mid-20s, oval face, softly curved cheek line [WARDROBE] indigo jeogori with white dongjeong collar, rust cotton chima, linen apron, cloth headband, flower-shaped norigae tassel [LOCATION] a wooden hanok room, paper lattice window on frame right [LIGHT] flat overcast daylight through paper, soft even falloff [FORMAT] character sheet, 6 panels, consistent face across all panels Enter fullscreen mode Exit fullscreen mode Note what is missing: no "beautiful," no "cinematic," no "masterpiece." Every line is either a thing that exists in the branch's catalog or a lock that repeats on every panel.

I could not fix what I had not measured, so I defined a collision first: a chosen slot item that contradicts the place, the time of day, or the branch. Six slots (pose, composition, lighting, props, finish, mood) checked against four axes.

Axis 1 — indoor/outdoor. I tagged 879 catalog items with in / out / any: 313 backgrounds, 195 compositions, 198 lighting entries, 173 video scenes. any is reserved for places where both framings are genuinely possible — a veranda, a terrace, a balcony, a pavilion, the space under the eaves. Everything else is one or the other. Composition and lighting are then drawn only from the side that matches the chosen location, and if a saved selection has drifted out of sync, the prompt builder deterministically swaps it on generation.

Axis 2 — night and day. A night-only item cannot attach to a daylight room, and the other five slots have to agree with the light that was actually chosen, not just with the location.

Axis 3 — place anchors. Forty anchors carry the scene: bed, sea, fireplace, chandelier, staircase, taxi, convenience store, subway, rooftop, laundromat, rain, snow, cherry blossom, fallen leaves, stained glass, and so on. "Rain on the window" is a scene, not a mood, and it cannot be attached to a desert at noon.

Axis 4 — era and season locks. Period branches reject neon signs, fluorescent tubes, monitors, screens, streetlights, cars, vending machines, convenience stores, and plastic, in both Korean and English. Future branches reject candles, candlesticks, hanok roof tiles, and firewood. Spring, summer, and autumn reject snowfall, frost, ice, and icicles; winter rejects heat-wave vocabulary. The matching is token-level, so 비단 (silk) does not trip the rain rule and 눈썹 (eyebrow) does not trip the snow rule — a naive substring check gets both of those wrong.

How it was measured. I wrote a separate scoring script that injects an independent copy of the rules into the page and grades the app's own picks() output. The scorer is not the code it grades. 1,400 character sheets: 14 branches × 2 protagonist genders × 50 pulls, six slots each — 8,400 slot decisions.

The worst offenders before the fix were exactly the branches I would have guessed were easiest: modern (161 collisions in 50 sheets), summer (124), Joseon Korea (90), Victorian (86).

Alongside that, 11,360 randomized full simulations (8,960 Pro + 2,400 starter) now run with zero violations across era, season, indoor/outdoor mix, ASMR air-versus-motion, negative/positive contradiction, adult age lock, opposite-gender poses, undefined / NaN, and Korean characters leaking into English output.

What did not move the number: more negative prompts, longer adjectives, the word "consistency," and stronger scene descriptions. What did: removing the wrong options from the pool before the roll.

A detail the model cannot pick is a detail it cannot get wrong.

Here is the part I got wrong in public, so it is worth writing down carefully.

The beauty mark. The description was a small teardrop mole accent under one eye, and the renders came back with tears. Fix attempt: a mole, not a tear; no tears — more tears. The sentence that works says only what is there: a small dark beauty mark just below one eye. One noun, no negation, no drama.

The mandarin collar. Romance fantasy needed to stay European, so the branch's negative list contained mandarin collar, Chinese stand collar, frog-button closures. The result: European court dresses with mandarin collars. That phrase appeared nowhere else in the prompt — the negative list was the only place the model could have learned that word from me. It is gone now, replaced by a positive wardrobe lock per branch: square neckline, sweetheart neckline, off-shoulder lace, silk slippers, buttoned boots.

The hands. no prominent veins or wrinkles produced veiny, aged hands. Now: smooth, soft, youthful mid-20s hands with slender adult proportions. Eyes went the same way — no glow or sparkle gave glowing eyes; natural, softly lit eyes with realistic matte iris color does not.

The structural cause is simple and I knew it and still fell for it: many image engines do not receive a separate negative field. They read your prompt as one blob of tokens. A negated noun is still a noun, and "no tears" is a stronger signal for tears than "tears" is, because it sits at the end of the prompt where recency matters.

Then my own UI made it worse. The copy button appended a [NEGATIVE] block to the end of every image prompt. So the last thing the model read — every single time — was the complete list of everything I did not want. The tear list, the collar list, the logo list, all of it, as vocabulary.

The rule I now apply everywhere: negatives belong in the engine's negative field, never in the prompt body. If the engine has no negative field, say the positive thing.

So no people anywhere became showing an empty, unoccupied place in every panel. No text, no labels became clean, unlettered panels. Same intent, no nouns for the model to grab.

An honest problem with prompt tools: the person who needs them most is the person who understands them least. So the same file opens in three modes.

Easy mode — seven steps. World → branch → hero or heroine → pull and customize → what to make → length and aspect ratio → finished prompt. At the character step you can re-pull everything, re-pull only the person while the scene stays, pick slot by slot yourself, or accept it. That last pair matters: "same face, new scene" and "same scene, new face" are the two operations I actually use, and most tools make you start over for both.

One-tap mode. One button produces a complete concept — world, place, occupation first, then the person and props that fit that place — and you edit what you care about. This is the mode I use.

Compact. A hard 1,900-character budget for engines with tight limits, trimmed only at sentence boundaries, never dropping the adult age lock, the branch lock, or the identity lock. It is tested exhaustively rather than spot-checked: 14 branches × 8 stages × 2 genders × 3 rounds, maximum measured exactly 1,900 characters, zero over.

All of the sheets below were produced from prompts this tool generated, on the same character across panels — front, three-quarter, profile, back, face detail, and a scene panel — because "consistent" is only meaningful if it survives a 180-degree turn.

East Asian period / Korea. The apron and the norigae tassel are catalog items, not inventiveness; the point is that the same tassel appears in the detail crop and in the scene panel.

Western period / romance fantasy. This is the branch where the mandarin collar used to appear. The wardrobe lock now states square neckline and lace instead, positively.

Shared modern block. Same face across six panels, wardrobe and bag minimal and logo-free by rule.

Same branch, different pull. A character sheet is cheap; a reshoot is not.

Modern, soft daylight. Nothing in the prompt names a brand, a person, or a studio style.

Western period, ceremonial. Full-length and detail panels on one face at one light.

I would rather undersell this than have someone buy it expecting a generator.

The free edition is a real edition, not a teaser: 2 worlds (modern + romance fantasy), 3 output stages, 1,607 items, one tap, EN/KO, compact mode.

If you take one thing from this post, take the diagnosis: when a model mixes centuries, or draws the thing you banned, it is usually answering exactly the question you asked. Put the world in the prompt before the person, put the negative in the field that exists for it, and measure the collisions instead of trusting your eye.

The 18.7% was not a model problem. It was a data problem I had been handing to the model and calling it creativity.

Quelle: dev.to (dev.to). Original öffnen