clm:
abstract_spec:
context: "Primitive type for logical truth values."
goal: "Validate that a payload evaluates to a valid boolean (true or false)."
success_criteria:
- "Payload content is exactly true or false."
- "Payload is not a string, number, or null."
concrete_impl:
runtime: system
operation: type_validator_boolean
universe_level: 0
precondition:
description: "Payload must be a non-null value."
vcard_pre: gate:payload_nonempty
postcondition:
description: "Returns boolean is_valid."
vcard_post: gate:result_sealed
schema:
constraints:
enum: [true, false]
type_check: "is_boolean"
description: "Value must be exactly true or false."
inputs:
payload: "MCard — the data to validate"
outputs:
is_valid: "boolean"
v_post: "VCard"
process:
type: meta_evaluate
target: "core.type_validator.boolean"
balanced_exp:
expectation: "Boolean validator accepts true/false and rejects everything else."
pending_cases:
- given: {payload: {"value": true}}
when: "validate"
then: {is_valid: true}
- given: {payload: {"value": "true"}}
when: "validate"
then: {is_valid: false}
_meta:
clm_root_hash: sha256:aa943ed9b87aec7e55190e7155c8401f237c2af079251dae0364b945eda6b6d5
a_hash: sha256:e2576d91c833a871b5b8deb85d1862981158d460bd3371f5404894df261897d4
c_hash: sha256:46f84cc6cf0e6257be2b26751c6698a52dd44381fba3fb8ae68ba3602a92ff77
b_hash: sha256:0438226f8fcedae033f6f235b5bc9b3fdcf7b386bb3b23d10cea2c15d70f2d76
clm_name: type_validator_boolean
computed_at: "2026-05-27T08:50:06Z"
depends_on: []