skald/migrations
Kayos d2442f0a87 forge: rewrite pass — re-author prose in an author's voice
New Forge::rewrite + PassKind::Rewrite. An author re-authors
existing chapter prose entirely in their voice — sentence rhythm,
word choice, paragraph shape all become theirs — while canon
(names, dates, places, events, order, technical facts) is preserved
exactly. Not editing; re-authoring. SystemMode::Replace, max effort.

skald rewrite --chapter <uuid> [--author slug] overwrites body_md
with the rewritten version. The pre-rewrite prose is stashed in the
new chapters.body_md_original column on first rewrite (migration
0008, idempotent) so the original is never lost. body_md_tts is
cleared — it was annotated against the old prose and must be
regenerated by a fresh prepare-narration.

prepare-narration gains --single-voice: skips the character speaker
roster so no [voice:X] dialogue tags are inserted, only beat
markers. Right for one-voice narration.

Migration 0008 also extends generation_runs.kind to allow 'rewrite'.
2026-05-14 21:35:20 -07:00
..
0001_init.sql scaffold v0.1: postgres+pgvector inside-container, schema, markdown ingest, CLI 2026-05-13 09:04:28 -07:00
0002_voices_and_pronunciation.sql schema: voices + pronunciation_overrides + narration_runs (v0.2 prep) 2026-05-13 10:07:32 -07:00
0003_narration_findings.sql schema: narration_findings — audio-layer audit table 2026-05-13 10:10:04 -07:00
0004_authors.sql v0.3 step 1: migration 0004 + authors module + web form panels 2026-05-13 12:01:29 -07:00
0005_chapter_body_md_tts.sql migration 0005: idempotent ADD COLUMN IF NOT EXISTS 2026-05-13 20:32:41 -07:00
0006_generation_runs_narrate_prep.sql migration 0006: extend generation_runs.kind to allow narrate_prep 2026-05-13 20:28:59 -07:00
0007_characters_voice.sql multi-voice: per-character dialogue rendering 2026-05-14 08:35:33 -07:00
0008_chapter_rewrite.sql forge: rewrite pass — re-author prose in an author's voice 2026-05-14 21:35:20 -07:00