Add complete step-by-step workflow (1-20) for courtesan tier generation
BetterLeaks / scan (push) Successful in 53s

Full production workflow from planning → packaging, incorporating all lessons:
- Identity design (distinctive geometry mandatory)
- Intent QA vs Fidelity QA (separate gates)
- Location lock per scene
- Per-scene Dressed generation (no cross-scene outfit lock)
- Manual review gates with quality-over-speed principle
- Preflight checks before finalization
- Male courtesan body constraints
This commit is contained in:
Dolon (Agent)
2026-03-24 16:50:42 +00:00
parent fa67605b9d
commit ebff55e07e
+287
View File
@@ -0,0 +1,287 @@
# Complete Workflow — Courtesan Tier Generation
**Scope:** One wealth tier (Poor, Modest, Comfortable, Wealthy, Elite, Elite XL, Elite XXL) of courtesans.
**Output:** Per-scene progression sets (Arrival → Dressed → Teasing → Teasing More → Topless [→ Topless Plus] → Underwear/Undressed).
---
## Step-by-Step Process
### 1. Planning
Determine:
- **Count and genders** of single courtesans
- **Count of pairs, triples, and twins**
- **Skin/eye/hair tone range** (Irish, Icelandic, Nordic, Dutch, etc.)
- **Body variety** (heights, builds, cup sizes for women)
---
### 2. Identity Design
Generate **short semicolon-list identities** for each courtesan.
**Format:** `hair; eyes; skin; distinctive facial geometry; unique mark (optional); height; build; cup (women)`
**Critical:**
- **Distinctive facial geometry** (angular face, heart-shaped, square jaw, high cheekbones, narrow/broad nose, defined jawline, prominent chin, etc.)
- **Avoid generic descriptors** ("soft features," "oval face," "pleasant")
- **Specific colors** (ash-blond, copper-red, ice-gray eyes — not "light" or "grayish")
- **Keep it short** (~25-35 words max)
**Body info (minimal):**
- **Height:** tall / average / short
- **Build (women):** slender / athletic / curvy / slightly overweight
- **Build (men):** average / athletic / muscular (ripped) — **no curvy/stocky/overweight for male courtesans**
- **Cup size (women only):** A / B / C / D / DD
**Example (good):**
```
long curly auburn hair; bright green eyes; fair Irish skin with scattered freckles; heart-shaped face; upturned nose; full lips; small dimple on right cheek; average height; curvy build; C cup
```
**Example (BAD — too generic):**
```
light brown hair swept back; hazel eyes; fair Nordic skin; oval face with soft features; slightly upturned nose; thin lips; average height; slender build
```
*(This produced 0/4 fidelity — "oval face" and "soft features" are meaningless.)*
---
### 3. Generate Undressed
Use **text-only prompts** with the locked recipe (see `LOCKED_RECIPE.md`):
- **Model:** `grok-imagine-image-pro`
- **Attempts:** V4×2, V1×2
- **Expression:** "smiling warmly with inviting, direct eye contact"
- **Nudity clauses:** simple old-style (no "short, neatly trimmed")
Generate **2-4 scenes per courtesan/group** (different room settings).
---
### 4. Intent QA (Undressed)
**Human inspection required.**
Visually inspect all Undressed outputs for **intent fails** (images that passed moderation but are implausible):
- **Anatomical absurdities:** pubic hair to knees, impossible proportions, etc.
- **Other intent fails:** wrong gender, modern artifacts, etc.
**Action:** Mark as FAIL and rerender. Keep grinding until all Undressed outputs pass basic plausibility.
**Note:** This is **separate from moderation fails** (API rejects). Intent fails require human judgment.
---
### 5. Fidelity QA (Undressed)
**Human inspection required.**
Visually compare all Undressed scenes **per courtesan/group**.
**Expected fidelity:** ~75-100% (most subjects will have 3-4/4 scenes matching).
**If a subject has <50% fidelity** (all scenes look different):
- Treat as **identity-design failure**
- Revise identity (add distinctive geometry, avoid generic descriptors)
- Regenerate all Undressed scenes for that subject
**Action:** Once fidelity is acceptable, proceed to next step.
---
### 6. Location Lock
**Pick one Undressed per scene** (per courtesan/group).
This **locks the background location** for that scene. All later stages (Dressed, Teasing, Topless, etc.) for this scene will reference this room.
**Note:** Face/body will stay consistent across scenes (if identity is good), but the **room changes**. Players pick one room → DM shows that room's full progression.
---
### 7. Clothing Design
Generate **detailed tier-appropriate clothing descriptions** for each courtesan (singles only at this stage).
**Requirements:**
- Detailed enough to **render consistently** across multiple attempts
- Tier-appropriate (Modest = simple wool/linen; Comfortable = finer fabrics; Wealthy+ = silk/velvet/jewelry)
- Medieval Norse aesthetic
---
### 8. Generate Dressed A-E (First Scene)
For **each courtesan/group**, generate **Dressed A-E** for **one scene only** (pick the most common/central scene, e.g., bedchamber or lounge).
**Use:**
- The locked Undressed from that scene as reference (if using reference-based method), OR
- The same text identity + clothing description (if text-only)
**Output:** 5 candidates per courtesan/group.
---
### 9. Pick Dressed Keeper (Per Scene)
**Human review.**
Pick **one Dressed keeper** from the A-E batch **per scene**.
This becomes the **master Dressed reference** for that courtesan/scene.
**Quality gate:** If none of the A-E candidates are good enough, **request a new generation batch**. Don't settle for "least-bad."
---
### 10. Expand Dressed to Other Scenes
Using the **master Dressed keeper** as reference (or same identity+clothing text), generate **Dressed A-E** for the **remaining scenes** for that courtesan/group.
**Human review:** Pick one Dressed keeper per remaining scene.
**Result:** Each courtesan/group now has **one locked Dressed per scene**.
---
### 11. Fidelity QA (Dressed vs Undressed, Per Scene)
**Human inspection required.**
For **each scene**, compare the locked **Dressed vs Undressed**:
- Does the face match?
- Does the body match?
**If they don't align:** Rerender Dressed (or Undressed if Dressed is clearly better) until they match.
**This is the critical fidelity gate** — once Dressed ↔ Undressed align within a scene, that scene is locked and progression will work.
---
### 12. Generate Teasing (All Scenes)
Using the **locked Dressed per scene** as reference (or same identity), generate **Teasing A-E** for **all scenes**.
**Human review:** Pick one Teasing keeper per scene.
**Quality gate:** If none are good enough, regenerate.
---
### 13. Generate Topless (A-Z with ABERX Variants)
Using the **locked Dressed** (preferred) or **Teasing More** (if available) as reference, generate:
- **Topless A-Z** (skipping I and O) = 24 images
- Letters A-K use **A-B method**
- Letters L-Z use **C-E method**
- **Topless ABERX extras:** A1-A9, B1-B9, E1-E9, R1-R9, X1-X9 (treat original A/B/E/R/X as A0/B0/E0/R0/X0)
**Human review:** Manually sort Topless outputs. Move any images with **extra exposure but not fully nude** into **`Topless Plus/`** folder.
---
### 14. Shoulder Mapping (Before Teasing More)
**Required step.**
Inspect all locked **Teasing keepers** and record which shoulder is bare:
- **Singles:** viewer-left / viewer-right / both
- **Doubles/Triples:** per-person, per-image (each scene may differ)
**Method:** Use a subagent with model `openrouter/x-ai/grok-4.1-fast` to inspect images and write a JSON map (e.g., `tmp/{tier}_teasing_shoulder_map.json`).
---
### 15. Generate Teasing More A-E
Using shoulder map + **locked Teasing** as reference, generate **Teasing More A-E** (with explicit shoulder directions per prompt).
**Human review:** Pick one Teasing More keeper per scene.
**Quality gate:** If none are good enough, regenerate.
---
### 16. Generate Arrival A1-C6
Using the **locked Dressed** as reference, generate **Arrival A1-C6** (18 images per Dressed):
- **A1-A6, B1-B6, C1-C6**
- 4-6 variants per letter should include a **visible staircase**
**Rules:**
- Main subject(s) fully dressed
- Background patrons progressively more nude (A→C)
- **Arrival A:** background fully clothed (full chest coverage, no bare chests/breasts)
- **Background gender mix:** 80-90% women, 10-20% men
- **Sparse crowds** (especially Wealthy+; room should feel spacious)
- Background patrons: gently smiling/curious or chatting with each other
**Human review:** Pick **6 Arrival keepers** (2 per letter: one with stairs, one without if applicable).
---
### 17. Generate Underwear (Optional)
If the table-facing tier is **Underwear L** or **Underwear S** (not Undressed), generate:
- **Underwear L (A-C):** large loincloth-type cover
- **Underwear S (D-F):** small modern-size (g-string) cover
**Human review:** Pick one per letter type (if exposing Underwear at table).
---
### 18. Final Human Review
**Massive manual sorting:**
- Arrange all **Topless** (and Topless Plus) into progression order
- Any Topless Plus or full-exposure Topless that are actually **fully nude** → move to **Undressed/** as additional variants
- Confirm one keeper per stage per scene:
- Dressed ✓
- Teasing ✓
- Teasing More ✓
- 6× Arrival (per courtesan/set, not per scene)
- Topless (ordered, may have multiple)
- Topless Plus (if applicable)
- Underwear or Undressed (depending on table-facing choice)
---
### 19. Preflight Check (REQUIRED)
**Before finalization:**
Run automated preflight checks:
- All non-Arrival stage files have **stage letters stripped** (no `_A__`, `_B__`, `TeasingMoreC__`, etc.)
- No **bracketed and unnumbered files** coexisting for the same stage (e.g., both `Topless[1].jpg` and `Topless.jpg`)
- One Dressed, one Teasing, one Teasing More per scene
- Six Arrival variants present (or documented why fewer)
**If preflight fails:** Fix issues before proceeding.
---
### 20. Finalization and Packaging
**Script:** `scripts/finalize_courtesan_tier.py --tier {TierName}`
**Requires:**
- OpenCV venv: `~/.openclaw/workspace/.venv-opencv/bin/python`
**Actions:**
1. Create **`Per Courtesan/`** folder structure (Singles/Doubles/Triples/Twins)
2. Copy stage files per courtesan/scene into named folders
3. Generate **passport thumbnails** (OpenCV face detection from Dressed images)
4. Place **ArrivalAllSingles** overview images in tier root
5. Move raw stage folders into **`Stages and Raw Files/`**
**Output:** Ready-to-play tier folder with arrow-right progression for each courtesan/set.
---
## Review Principle (All Steps)
**If none of the A-E (or other) candidates are good enough, request a new generation batch.**
Don't settle for "least-bad" — output quality matters more than speed. Regenerate until you have a keeper worth locking.
---
## Male Courtesan Body Constraints
**Allowed builds:**
- average
- athletic
- muscular (ripped)
**NOT allowed:**
- curvy
- stocky
- slightly overweight
---
## Legal Boundary
All characters are **adults aged 18+**. Courtesans specifically are **aged 20+**. This is enforced in prompts (explicit age statements) and character definitions.