registry: validate generated Python dependency metadata before Nix evaluation #207

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

Problem

python_dependencies is consumed directly by flake.nix to select Python packages for plugin test/install/runtime environments, but the registry validator does not currently validate its shape. A malformed list, blank value, whitespace-padded name, or duplicate can pass registry validation and fail later during Nix evaluation with a poor catalog-level error.

Scope

  • when present, require a list of unique non-empty canonical strings
  • reject surrounding whitespace and non-string values
  • deterministic RED-first tests
  • no dependency allowlist: package existence remains Nix's authoritative check
  • no Zara Core/runtime changes

Gate

Compatibility contract tests, full nix flake check, generated package builds.

## Problem `python_dependencies` is consumed directly by `flake.nix` to select Python packages for plugin test/install/runtime environments, but the registry validator does not currently validate its shape. A malformed list, blank value, whitespace-padded name, or duplicate can pass registry validation and fail later during Nix evaluation with a poor catalog-level error. ## Scope - when present, require a list of unique non-empty canonical strings - reject surrounding whitespace and non-string values - deterministic RED-first tests - no dependency allowlist: package existence remains Nix's authoritative check - no Zara Core/runtime changes ## Gate Compatibility contract tests, full `nix flake check`, generated package builds.
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#207
No description provided.