mirror of
https://github.com/Dasemu/faust-vn.git
synced 2026-11-26 07:16:20 +00:00
Annotated with Haiku through `vnpipe annotate run` (3 chunks, 3 calls); other scenes use the deterministic fallback in data/annotated.json. Old per-line caches and chunks removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.2 KiB
3.2 KiB
Plan
Goal: a playable Ren'Py prototype of the opening of Goethe's Faust I (Llorente's
Spanish translation). The reusable pipeline lives in its own repo, ../vnpipe
(see its docs/pipeline.md); this repo is the Faust "work": work.toml, data,
annotations, art and the generated game.
Pipeline (as run for Faust)
Gutenberg .txt ──fetch──▶ raw (cached, gitignored)
──clean──▶ play.txt (header/footer/intro stripped, scope cut)
──parse──▶ parsed.json (scenes, speakers, verse lines, directions)
──chunks──▶ rendered text (LLM work units)
Haiku runner ───────▶ annotations/cache/*.txt (records per chunk, keyed by hash)
──merge──▶ annotated.json (schema-validated, complete)
art (MCP) ──▶ assets/assets.json + images (manifest, sha256, status)
──renpy──▶ vn/ (generated Ren'Py project)
Every stage is a vnpipe CLI subcommand, deterministic given its inputs, and
idempotent (re-running produces byte-identical output). The only non-deterministic
steps — LLM annotation and image generation — write to caches keyed by content
hash, so they are resumable and never redone unless their input changes.
Layout
| Path | Purpose |
|---|---|
work.toml |
Everything work-specific: source URL, scope markers, cast, colors, locations, expression maps, staging |
data/ |
play.txt, parsed.json, annotated.json (raw/ is the gitignored download) |
annotations/ |
Cached LLM outputs (cache/) and token usage (usage.jsonl) |
assets/ |
assets.json manifest, generated/processed images (raw/ is gitignored) |
vn/ |
Generated Ren'Py project (committed so the repo is playable) |
tests/ |
Faust integration tests (real text, e2e playthrough) |
docs/ |
Faust design and process docs |
../vnpipe |
The pipeline code, schemas, prompts, GUI templates and generic docs |
Steps
- Text — fetch, clean, cut scope (
docs/scope.md), deterministic parser + tests,docs/licensing.md. - Annotation — JSON Schema, chunker, merge/validate, cache. Haiku sub-agents
annotate chunks in parallel. Faust adaptation rules in
docs/adaptation-rules.md. - Art —
docs/art-bible.mdwith a fixed base prompt. Backgrounds and sprites via the ChatGPT image MCP (max 20 generations/hour), background removal, manifest, placeholders for anything missing. - Ren'Py — vnpipe generator from
annotated.json+ manifest;renpy lintclean; web/desktop build if feasible. - Report —
docs/report.md: automation vs human judgment, cost/time, weaknesses, next steps.
Parallelisation
- Text stage and art bible / first background generations run in parallel.
- Annotation chunks are independent → parallel Haiku agents.
- Ren'Py generator is written against the schemas while annotation and art run.
- Image generation is sequential (MCP queue) and runs in the background throughout.
Model allocation
| Work | Model |
|---|---|
| Design, schemas, adaptation rules, art direction, review | Opus (main) |
| Parser, generator, tooling, tests | Sonnet sub-agents |
| Line annotation, formatting, mechanical edits | Haiku sub-agents |