…canvas graph
Adds the coverage the regional prompting change was missing:
- attention: the processor's mask/sequence-length shape guard, and that a
processor built without regional state ignores the shared mask
- regional prompting: that only even main blocks actually apply the mask
during a real transformer forward (the existing test only checked the
processor map), and that an unsupported mask rank is rejected
- denoise: that each CFG pass installs a mask sized for its own text
sequence when the positive and negative prompts tokenize to different
lengths
- canvas graph: a composed suite running the real addRegions,
addKrea2LoRAs and regional-guidance validators, covering validator
filtering, the IP adapter collector teardown, the LoRA-before-regions
ordering the regional encoders depend on, and per-region enhancers
Each test was mutation-checked against a deliberately broken
implementation to confirm it fails for the right reason.
Summary
Adds regional prompting support for Krea-2 using Flux-style restricted attention.
This PR:
Related Issues / Discussions
Builds on #9406.
QA Instructions
For manual canvas QA:
Merge Plan
Checklist
What's Newcopy (if doing a release after this PR)