Move character slot label policy

This commit is contained in:
2026-06-27 08:21:44 +02:00
parent b3fce97efd
commit 3f251a6bb7
5 changed files with 57 additions and 23 deletions
+4 -3
View File
@@ -130,9 +130,10 @@ Already isolated:
parsers live in `category_cast_config.py`; `prompt_builder.py` keeps public
delegate wrappers for existing nodes and tests.
- generation-time cast count phrases, configured-cast context metadata,
scene-kind labels, cast-summary wording, and couple count normalization live
in `cast_context.py`; `prompt_builder.py` keeps delegate wrappers where
existing generation paths still call the old helper names.
character-slot label assignment, scene-kind labels, cast-summary wording, and
couple count normalization live in `cast_context.py`; `prompt_builder.py`
keeps delegate wrappers where existing generation paths still call the old
helper names.
- ethnicity/filter choices, advanced filter JSON, ethnicity-list JSON, filter
parsing, and ethnicity normalization live in `filter_config.py`; character
routes and builder filters use `prompt_builder.py` delegate wrappers.
+3 -2
View File
@@ -70,7 +70,7 @@ Core helper ownership:
| `category_library.py` | JSON category loading, subcategory normalization, named scene/expression/composition pool loading, cast compatibility filtering, exact subcategory lookup, and inheritance-based pool merging. |
| `category_template_metadata.py` | Object-style item-template metadata extraction, action/position family normalization, position-key normalization, key merging, and audit validation errors. |
| `category_cast_config.py` | Category preset and cast preset schemas, category/cast config JSON builders, choice lists, and config parsers used by route nodes. |
| `cast_context.py` | Generation-time cast count phrases, configured-cast context metadata, cast-summary wording, scene-kind labels, and couple count normalization. |
| `cast_context.py` | Generation-time cast count phrases, configured-cast context metadata, character-slot label assignment, cast-summary wording, scene-kind labels, and couple count normalization. |
| `camera_config.py` | Camera option schema, direct/orbit/Qwen camera JSON builders, camera config parsing, plain camera directive text, and camera caption labels. |
| `character_config.py` | Character choice lists, descriptor detail/presence/slot-seed normalization, characteristic-list JSON builders/parsers, eye labels, hair config builders/parsers, and hair phrase helpers. |
| `character_profile.py` | Character manual-detail config, profile name/path policy, profile JSON normalization, descriptor assembly, save/load/rename/delete operations, fallback profile loading, and context override application. |
@@ -390,7 +390,8 @@ Important behavior:
Edit targets:
- Appearance field generation: `_context_from_character_slot`,
`_character_context_for_label`; pair cast descriptor entry assembly:
`_character_context_for_label`; character-slot label assignment:
`cast_context.character_slot_label_map`; pair cast descriptor entry assembly:
`pair_cast.cast_descriptor_entries`.
- Profile save/load: `SxCPCharacterProfileSave`,
`SxCPCharacterProfileLoad`, profile policy in `character_profile.py`, and