Skip to content

Draw VIP pictures with Krea 2 and MOSS only - #313

Merged
iamwavecut merged 3 commits into
mainfrom
fix/vip-two-pictures-without-fibo
Dec 2, 2026
Merged

iamwavecut merged 3 commits into
mainfrom
fix/vip-two-pictures-without-fibo

Conversation

@iamwavecut

Copy link
Copy Markdown
Owner

What changes

  • VIP draws produce two pictures instead of three: the VIP generator runs image_generation_flux (Krea 2) and image_generation_moss (MOSS-Image). The image_generation_fibo slot leaves the code.
  • Migration 215 vip_without_fibo_dev removes Fibo 2.0 Dev from text-to-image routing, because aifarm-draw stops serving fibo_generate:
    • fallbacks that pointed at Fibo 2.0 Dev move to the other text-to-image model: Krea 2 workflows (image_generation, image_generation_boogu_turbo, image_generation_flux) fall back to MOSS-Image, image_generation_moss falls back to Krea 2;
    • the image_generation_fibo workflow and its two assignments are disabled;
    • the Fibo 2.0 Dev provider model is disabled.
  • Fibo 2.0 Edit Turbo (fibo_edit) keeps every VIP edit. Nothing changes for edits.

Compatibility

  • Every switched assignment stores vip_two_pictures_v1_previous_model_id; every disabled row carries disabled_by_vip_two_pictures_v1. The down migration restores the previous routing exactly.
  • The migration does nothing unless the Krea 2, MOSS-Image and Fibo 2.0 Dev models exist and are enabled.
  • Deploy order: this PR first, then aifarm-draw without Fibo 2.0 Dev, so no request reaches a removed endpoint.

Verification

  • cargo fmt --all; cargo clippy --workspace --all-targets -- -D warnings (rc 0, toolchain 1.99.0).
  • cargo test -p openplotva-app image_ — 164 passed; image_worker_workflows_keep_free_vip_and_editor_slots_apart passes with the two-slot list.
  • Migration 215 up and down ran against the production routing tables inside one transaction that was rolled back: up switched 4 fallbacks (5371, 5372, 5404 → MOSS-Image 845; 5401 → Krea 2 843), disabled assignments 5405/5406, the workflow and model 846; down restored every row to its previous state.

VIP draws drop the third Fibo 2.0 Dev picture: the VIP generator runs
image_generation_flux (Krea 2) and image_generation_moss (MOSS-Image).

aifarm-draw stops serving Fibo 2.0 Dev, so migration 215 moves every
text-to-image fallback that pointed at it: Krea 2 slots fall back to
MOSS-Image and the MOSS-Image slot to Krea 2. It disables the
image_generation_fibo workflow, its assignments and the Fibo 2.0 Dev
model. Fibo 2.0 Edit Turbo keeps the VIP edits. Every switched row keeps
its previous model and every disabled row a marker, so the down
migration restores the routing.
@iamwavecut iamwavecut closed this Dec 2, 2026
@iamwavecut iamwavecut reopened this Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Messages
📖 Danger checked 4 changed file(s).

Generated by 🚫 dangerJS against e7ec4ec

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🔒 No security concerns identified
⚡ Recommended focus areas for review

Over-eager re-enable in down migration

The down migration unconditionally sets enabled = TRUE for the image_generation_fibo workflow whenever any of its assignments carry the disabled_by_vip_two_pictures_v1 marker. If the workflow was already disabled before migration 215 ran (for an unrelated reason), the down migration will wrongly re-enable it, breaking the stated guarantee that down restores the previous routing exactly. The up migration has the same gap in reverse only for rows it actually touched, so a WHERE enabled guard (matching how the assignments are restored) or storing the previous enabled state would fix it.

UPDATE workflows
SET enabled = TRUE
WHERE key = 'image_generation_fibo'
  AND EXISTS (
      SELECT 1 FROM workflow_assignments
      WHERE workflow_key = 'image_generation_fibo'
        AND inference_overrides ? 'disabled_by_vip_two_pictures_v1'
  );

@iamwavecut

Copy link
Copy Markdown
Owner Author

PR Reviewer Guide, "Over-eager re-enable in down migration": fixed in e7ec4ec. Up now records the workflow's previous state on each assignment it disables (vip_two_pictures_v1_workflow_enabled) and disables the workflow only if it was enabled; down re-enables it only when that marker is true. Checked on the production routing tables in rolled-back transactions: normal up/down restores every row; with image_generation_fibo disabled beforehand, up+down leaves it disabled and restores both assignments.

🤖 Addressed by Claude Code

@iamwavecut
iamwavecut merged commit ade0512 into main Dec 2, 2026
12 checks passed
@iamwavecut
iamwavecut deleted the fix/vip-two-pictures-without-fibo branch December 2, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant