Skip to content

fix: classify invalid image inputs#32

Merged
Minorli merged 1 commit into
mainfrom
fix/0.1.59-mask-error-classification
Jul 11, 2026
Merged

fix: classify invalid image inputs#32
Minorli merged 1 commit into
mainfrom
fix/0.1.59-mask-error-classification

Conversation

@Minorli

@Minorli Minorli commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • stop treating generic image_generation_user_error as content moderation
  • classify invalid_mask_image_format as actionable upstream_invalid_image_input
  • preserve explicit content policy codes and messages
  • release version 0.1.59

Production evidence

A real mask edit returned invalid_mask_image_format / mask size does not match image size, but PicGen surfaced upstream_content_policy. Both uploaded PNGs were 1088x2240, indicating an upstream compatibility restriction rather than moderation.

Verification

  • ./scripts/check.sh (389 passed)
  • coverage: 87%
  • explicit invalid-mask and content-policy counter-tests
  • API response test for actionable input guidance
  • node --check static/app.js
  • bash -n scripts/*.sh
  • docker compose config --quiet
  • uv lock --check
  • independent review: no findings

@Minorli
Minorli merged commit e52fd5f into main Jul 11, 2026
1 check passed
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