Accept governed boolean leaves in memo envelopes.
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Multi-Context Image / build-and-push (push) Successful in 26s

type() excluded bool even though bool subclasses int, so schema fields
requires_new_bind, required_ack, and sealed failed as invalid_type.
Unknown leaves still fail closed. No submitter, token, or write-back change.

Assistant: grok
Assistant-Session: 01a10286-9185-7bb2-b411-89cf6ab4c0c6
This commit is contained in:
tegwick 2026-10-03 22:25:47 +02:00
parent 49eeddbfed
commit d61ba327fa
2 changed files with 21 additions and 1 deletions

View file

@ -359,7 +359,8 @@ def _bounded_tree(value: Any) -> None:
elif isinstance(node, list):
for child in node:
walk(child, key)
elif type(node) in (int, float) or node is None:
elif isinstance(node, bool) or type(node) in (int, float) or node is None:
# type() excludes bool; bool subclasses int, so it must be named first.
return
else:
raise ContractError("invalid_type")