Skip to content

feat: deferred lettering + visual bible for finished pages - #30

Merged
phaethix merged 35 commits into
mainfrom
feat/deferred-lettering
Aug 2, 2026
Merged

feat: deferred lettering + visual bible for finished pages#30
phaethix merged 35 commits into
mainfrom
feat/deferred-lettering

Conversation

@phaethix

@phaethix phaethix commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Deferred lettering for finished pages: blank art + PIL overlay, language lock, bounds/pinyin fixes, metaphorical-name hardening (e.g. 虎妞 stays human).
  • Project Visual Bible (phase B): canonicalize identities, lock style/color/face-outfit, force portrait refs, resume sanitize.
  • bible_v2 hardening: block prose names and cross-role merges, fill locks, backfill empty panel characters, forbid character-sheet insets / modern athleisure on pages (9910 repro).

Test plan

  • pytest tests/test_lettering_lang.py tests/test_page_lettering.py tests/test_page_prompt.py tests/test_finished_page_pipeline.py tests/test_screenwriter_pages.py tests/test_identity_metaphor.py -q
  • pytest tests/test_visual_bible*.py -q
  • Re-run a Chinese finished_page project and confirm lettering stays in-bounds without pinyin glosses
  • Re-run comic_out/9910f82a3873 (or equivalent) and confirm bible_v2 sanitize, no mother↔daughter / count↔novelist merges, no English-prose character assets, period wardrobe / no turnaround insets

Made with Cursor

phaethix and others added 30 commits July 31, 2026 10:09
Avoid hard failures on providers that do not support portrait output sizes, and clarify that page plans live in page_cache rather than ChunkCache.

Co-authored-by: Cursor <cursoragent@cursor.com>
Lock source-language lettering and overlay real fonts instead of
model-painted glyphs; planner boxes with heuristic fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Fit deferred bubbles to text instead of filling huge plan boxes, and
force human identity for animal-metaphor nicknames like 虎妞.

Co-authored-by: Cursor <cursoragent@cursor.com>
Fit deferred bubbles to text instead of filling huge plan boxes, ask the
image model for no chrome at all, and force human identity for animal-
metaphor nicknames like 虎妞 so portraits stop becoming tiger heads.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bump overlay to deferred_v3: clamp boxes inside page margins, nudge away from faces, sanitize/truncate lettering, and re-letter blanks on resume.

Co-authored-by: Cursor <cursoragent@cursor.com>
Strengthen human-identity locks in finished-page prompts and bump render fingerprint to metaphor_v2 so portraits and pages regenerate.

Co-authored-by: Cursor <cursoragent@cursor.com>
Lock project-level style/palette and canonical identities (phase B), with hooks reserved for a future visual sheet (phase C).

Co-authored-by: Cursor <cursoragent@cursor.com>
Task-sized TDD plan for phase B (schema, reconcile, prompts, pipeline) with C sheet hooks only.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Ensure legacy completed projects bootstrap a bible and soft-invalidate render,
rewrite page plans via alias map, resolve assets through bible aliases, stage
portrait keys, preserve locked palette/style on update, and pass preferred_style.

Co-authored-by: Cursor <cursoragent@cursor.com>
Address wrong merges, prose identities, empty locks, sheet insets, and missing panel character refs (9910 repro).

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
phaethix and others added 5 commits August 2, 2026 23:48
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Bind loop-scoped state in nested render helpers and clean visual-bible test lint.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@phaethix
phaethix merged commit bd09c57 into main Aug 2, 2026
4 checks passed
@phaethix
phaethix deleted the feat/deferred-lettering branch August 2, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant