Skip to content

Fix: Normalize constraint launching workers#39

Merged
cherusk merged 1 commit intomainfrom
patch_config_normalization
Jan 26, 2026
Merged

Fix: Normalize constraint launching workers#39
cherusk merged 1 commit intomainfrom
patch_config_normalization

Conversation

@cherusk
Copy link
Member

@cherusk cherusk commented Jan 26, 2026

  • Add _normalize_constraints() method to BreederService
  • Convert dict format {"values": [...]} to list format [{"values": [...]}]
  • Call normalization after preflight validation passes
  • Fixes "constraints must be a non-empty list" error in sysfs.qdisc

Config v0.3 allows both dict and list formats for categorical constraints,
but breeder_workers expect list format. This ensures workers receive
normalized constraints regardless of input format.

  - Add _normalize_constraints() method to BreederService
  - Convert dict format {"values": [...]} to list format [{"values": [...]}]
  - Call normalization after preflight validation passes
  - Fixes "constraints must be a non-empty list" error in sysfs.qdisc

  Config v0.3 allows both dict and list formats for categorical constraints,
  but breeder_workers expect list format. This ensures workers receive
  normalized constraints regardless of input format.
@cherusk cherusk force-pushed the patch_config_normalization branch from 9d9a5be to a9ce669 Compare January 26, 2026 17:59
@cherusk cherusk merged commit a18558b into main Jan 26, 2026
2 checks passed
@cherusk cherusk deleted the patch_config_normalization branch January 26, 2026 17:59
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