Extract row camera policy

This commit is contained in:
2026-06-27 02:54:35 +02:00
parent 132d457bf7
commit 1cc65e35b5
5 changed files with 210 additions and 86 deletions
+6 -4
View File
@@ -116,8 +116,7 @@ Keep here:
Move or isolate later:
- pair assembly and camera mutation helpers that still live in
`prompt_builder.py`.
- pair assembly helpers that still live in `prompt_builder.py`.
Already isolated:
@@ -179,8 +178,9 @@ Already isolated:
side-lying, and front/back group layouts.
- camera option schema, orbit/Qwen translation, config parsing, camera
directive text, and camera caption text live in `camera_config.py`;
camera-scene prose and coworking composition adaptation live in
`scene_camera_adapters.py`; `prompt_builder.py` still owns row mutation.
camera-scene prose lives in `scene_camera_adapters.py`; row-level camera
insertion, contextual coworking composition mutation, subject-kind detection,
and POV suppression live in `row_camera.py`.
- shared hardcore environment-anchor cleanup lives in
`hardcore_text_cleanup.py` and normalizes malformed pool joins before metadata
reaches formatter routes.
@@ -528,6 +528,8 @@ Near-term:
`/home/ethanfel/.codex/memories/scene-camera-system.md` when editing POV.
- Keep `scene_camera_adapters.py` as the owner for location-aware camera prose;
add new location families there one at a time.
- Keep `row_camera.py` as the owner for inserting camera/scene directives into
generated rows, including POV suppression of normal third-person camera text.
Medium-term:
+3 -2
View File
@@ -94,6 +94,7 @@ Core helper ownership:
| `hardcore_action_metadata.py` | Source action-family and position-family metadata used by Krea2, SDXL, and caption routes. |
| `route_metadata.py` | Shared row-level route metadata readers for normalized action family, position family/keys, and formatter hints used by Krea2, SDXL, and caption routes. |
| `scene_camera_adapters.py` | Location-aware camera/scene prose such as coworking lounge camera layout. |
| `row_camera.py` | Row-level camera insertion, contextual coworking composition mutation, subject-kind detection, POV label fallback, and POV suppression of normal camera directives. |
| `krea_cast.py` | Shared formatter cast descriptor parsing, cast labels, cast prose, natural cast descriptor text, and label replacement used by Krea2 and caption routes. |
| `prompt_hygiene.py` | Generic prompt, caption, and negative-prompt cleanup. |
| `row_normalization.py` | Final prompt-row and pair metadata normalization: trigger prepending, extra-positive append, negative merge/dedupe, caption-part joining, embedded soft/hard row output and side-metadata synchronization, and embedded row sanitation. |
@@ -911,8 +912,8 @@ Use these traces to narrow a problem in one pass.
1. Check `scene_text` and `composition` separately.
2. If scene is good and composition is bad, edit composition pools, not
location pools.
3. If a scene-camera adapter rewrote composition, inspect
`scene_camera_adapters.py`.
3. If a scene-camera adapter rewrote composition, inspect `row_camera.py` first
for row mutation and `scene_camera_adapters.py` for location-specific prose.
4. If the issue comes from `Location Theme`, edit `location_config.py` / `THEMATIC_LOCATION_PRESETS`.
### Trigger missing after formatting