zara-comms: fail closed on malformed message and send booleans #68

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

Problem

CommsDomain currently truthiness-coerces backend boolean fields: normalized message read uses bool(...), and send mutation accepted uses bool(evidence.get("accepted")). Malformed provider strings such as "false" can therefore become true.

Required behavior

  • message read must be an exact boolean; malformed values fail structurally
  • only exact boolean True counts as send acceptance
  • malformed send evidence never yields verified success
  • deterministic regressions
  • full registry/install/Nix gate remains green

No Zara Core changes.

## Problem `CommsDomain` currently truthiness-coerces backend boolean fields: normalized message `read` uses `bool(...)`, and send mutation `accepted` uses `bool(evidence.get("accepted"))`. Malformed provider strings such as `"false"` can therefore become true. ## Required behavior - message `read` must be an exact boolean; malformed values fail structurally - only exact boolean `True` counts as send acceptance - malformed send evidence never yields verified success - deterministic regressions - full registry/install/Nix gate remains green No Zara Core changes.
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#68
No description provided.