story-repair
/story-repair — Scene/Shot Repair Director
Overview
Use this when Alex gives repair notes for an existing video-story project. The director's cut overlays SCENE N · SHOT M, so Alex can say things like “repair scene 2 shot 4: make the dog face camera and keep the red jacket.”
- Project ID or URL. If missing, use the most recent video-story project if unambiguous; otherwise ask for the project link/ID.
- Target scene numbers.
- Target shot numbers or scene+shot tuples.
- Repair instruction: visual, continuity, motion, dialogue, pacing, style, safety/NSFW workaround.
- Whether to regenerate frames, video, lipsync, final clean cut, and/or director's cut.
API
Base:
BASE=http://localhost:4015
TOKEN="$HERMES_AUTOMATION_TOKEN"
Production map:
curl -sS "$BASE/api/hermes/projects/$PROJECT_ID/production-map" \
-H "Authorization: Bearer $TOKEN"
Repair:
curl -sS -X POST "$BASE/api/hermes/projects/$PROJECT_ID/repair" \
-H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{
"instructions": "...",
"shots": [{"scene_number": 2, "shot_number": 4}],
"regenerate_frames": true,
"regenerate_video": true,
"lipsync": true,
"directors_cut": true
}'
Status:
curl -sS "$BASE/api/hermes/projects/$PROJECT_ID/repair-status" \
-H "Authorization: Bearer $TOKEN"
Director's cut:
curl -sS -X POST "$BASE/api/hermes/projects/$PROJECT_ID/assemble-directors-cut" \
-H "Authorization: Bearer $TOKEN"
Repair Strategy
- Fetch the production map first so the repair is anchored in current scenes, shots, characters, sets, props, and references.
- If Alex names only a scene, repair all shots in that scene.
- If Alex names a shot without scene and shot numbers repeat, ask or infer from context.
- Preserve canon: character identity, wardrobe, environment, prop continuity.
- Prefer precise prompt additions over broad style changes.
- For bad motion, simplify action and camera movement rather than overprompting.
- For lip sync failures, regenerate video and lipsync only dialogue shots.
- After repair, produce a new director's cut unless Alex asks for clean final only.
- Repair started: project + target scene/shot list + directive summary.
- While pending: percent/message from repair status.
- Complete: director's cut URL/path + ask for next notes by scene/shot label.
Verification Checklist
- [ ] Project/targets resolved.
- [ ] Production map checked.
- [ ] Repair API accepted request.
- [ ] Status polled to completion or reported actionable failure.
- [ ] Director's cut updated when requested.