Add prompt hygiene architecture pass
This commit is contained in:
@@ -605,6 +605,25 @@ Naturalizer field consumption:
|
||||
| Insta/OF pair | `softcore_row`, `hardcore_row`, pair options and continuity | `_insta_pair_from_row` |
|
||||
| Text fallback | `caption` or `prompt` text | `_text_to_prose` |
|
||||
|
||||
### Final Text Hygiene
|
||||
|
||||
`prompt_hygiene.py` owns route-agnostic final cleanup. It is intentionally
|
||||
small: whitespace, punctuation, empty field labels, adjacent duplicate
|
||||
sentences, repeated trigger prefixes, duplicate comma-list items, and dangling
|
||||
connectors.
|
||||
|
||||
It is called from:
|
||||
|
||||
- `prompt_builder.build_prompt`
|
||||
- `prompt_builder.build_insta_of_pair`
|
||||
- `krea_formatter.format_krea2_prompt`
|
||||
- `sdxl_formatter.format_sdxl_prompt`
|
||||
- `caption_naturalizer.naturalize_caption`
|
||||
|
||||
Do not put semantic fixes in `prompt_hygiene.py`. Sexual action readability,
|
||||
POV geometry, clothing state, Krea prose, SDXL weighting, and training-caption
|
||||
policy still belong to their route-specific owner.
|
||||
|
||||
## Utility / Workflow Nodes
|
||||
|
||||
These do not own prompt pool wording, but they affect execution and review:
|
||||
@@ -616,6 +635,7 @@ These do not own prompt pool wording, but they affect execution and review:
|
||||
| Accumulator | `loop_nodes.py`, `web/accumulator_preview.js` | Stores generated values/images during workflow execution and previews/reorders/deletes them. |
|
||||
| Persistent text preview | `loop_nodes.py`, `web/preview_any_text.js` | Stores any value as text and keeps it after workflow reload. |
|
||||
| SDXL bucket size | `SxCPSDXLBucketSize` in `__init__.py` | Random/fixed SDXL bucket width and height selection. |
|
||||
| Krea2 resolution selector | `SxCPKrea2ResolutionSelector` in `__init__.py` | Krea-compatible width/height and API aspect/resolution helper. |
|
||||
|
||||
## Drift Audit Helper
|
||||
|
||||
@@ -655,6 +675,7 @@ or pool appears there but not in this map, update the relevant route table.
|
||||
| Camera prompt missing from Krea2 | Row `camera_directive` / `camera_scene_directive`, then Krea `_camera_phrase`. |
|
||||
| Trigger missing in Krea2 fallback | `format_krea2_prompt` preserve-trigger fallback behavior. |
|
||||
| SDXL tags too weak/wrong style | `sdxl_formatter.py` presets and `_row_core_tags` / `_soft_tags` / `_hard_tags`. |
|
||||
| Duplicate punctuation, empty labels, repeated trigger, repeated tag item | `prompt_hygiene.py`, then the route-specific formatter if the repeated content is semantic. |
|
||||
| Saved profile does not match liked character | Profile save/load path and whether the saved input is row metadata or regenerated slot config. |
|
||||
| Accumulator preview behavior wrong | `loop_nodes.py` accumulator methods and `web/accumulator_preview.js`. |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user