RAGE: enforce strict integer types for zara-healthcheck policy bounds #85

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

HealthDomain still coerces history_limit, hysteresis_count, and max_evidence_bytes through int(...), so booleans, numeric strings, and fractional values can silently rewrite typed health policy.

Acceptance:

  • all three policy bounds accept only exact integers within their existing ranges;
  • malformed descriptors fail with HealthError before probe execution/state creation;
  • valid integers preserve current hysteresis/history/evidence semantics;
  • deterministic RED first, then exact-head source/install compatibility, registry/plugin tests, and generated Nix package builds green.
`HealthDomain` still coerces `history_limit`, `hysteresis_count`, and `max_evidence_bytes` through `int(...)`, so booleans, numeric strings, and fractional values can silently rewrite typed health policy. Acceptance: - all three policy bounds accept only exact integers within their existing ranges; - malformed descriptors fail with `HealthError` before probe execution/state creation; - valid integers preserve current hysteresis/history/evidence semantics; - deterministic RED first, then exact-head source/install compatibility, registry/plugin tests, and generated Nix package builds green.
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#85
No description provided.