Use when analyzing what the scene self-critique system changed in a generated story, comparing draft vs output for each page
Analyzes what the scene description self-critique system changed between draft and output for each page of a generated story. Shows issues found, corrections applied, and field-by-field differences.
/analyze-scene-changes <job-id> [page-number]
Examples:
/analyze-scene-changes job_1769373235483_1cazuipuh - Analyze all pages/analyze-scene-changes job_1769373235483_1cazuipuh 5 - Analyze only page 5node scripts/analyze-scene-changes.js <job-id> [page-number]
Requires DATABASE_URL in .env pointing to Railway PostgreSQL public proxy.
For each page with changes:
imageSummary - Scene description textsetting - location, camera, lighting, depthLayerscharacters - added/removed, position, pose, action, expression, holdingobjects - position changesPages with no issues show "Draft was correct".
## Page 5
**Issues Found:** 3
1. Critical Rule #3 violation: Scene requires 3 children but only Lukas included
2. Story text fidelity: Manuel 'verschränkte die Arme' - missing character
3. Holding inventory conflict: Franziska holding with both hands
**Corrections Applied:**
1. Add Manuel to character array with crossed arms pose
2. Add Sophie to character array displaying her golden shield
3. Fix Franziska's holding: L:holding Roger's hand, R:resting on table
**Field Changes (Draft → Output):**
`characters` (added/removed):
+ Added: Manuel, Sophie
`Lukas`:
- pose: "Standing, body turned three-quarter" → "Standing, weight on right leg"
At the end of a full analysis, shows: