zara-media: reject coercive constructor limit descriptors #91

Closed
opened 2026-09-08 02:02:57 +00:00 by nsaspy · 0 comments
Owner

Problem

MediaDomain.__init__() currently normalizes max_queue_items and max_search_results through int(...). Booleans, numeric strings, and fractional values can therefore silently rewrite registry/plugin policy before any media operation runs.

Slice

  • deterministic RED coverage for coercive constructor limit descriptors;
  • require both limits to be actual non-boolean integers;
  • preserve existing 1..1000 and 1..100 ranges;
  • fail before backend use;
  • exact-head source/install compatibility, registry/plugin tests, and generated Nix package gates before merge.

Dependency-ready media policy slice. No external todo work.

## Problem `MediaDomain.__init__()` currently normalizes `max_queue_items` and `max_search_results` through `int(...)`. Booleans, numeric strings, and fractional values can therefore silently rewrite registry/plugin policy before any media operation runs. ## Slice - deterministic RED coverage for coercive constructor limit descriptors; - require both limits to be actual non-boolean integers; - preserve existing 1..1000 and 1..100 ranges; - fail before backend use; - exact-head source/install compatibility, registry/plugin tests, and generated Nix package gates before merge. Dependency-ready media policy slice. No external todo work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/zara-plugins#91
No description provided.