clm:
abstract_spec:
context: "Primitive type for floating-point number values."
goal: "Validate that a payload evaluates to a valid floating-point number."
success_criteria:
- "Payload content is a numeric value with a decimal component."
- "Payload is not a string or boolean."
concrete_impl:
runtime: system
operation: type_validator_float
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:
pattern: "^-?[0-9]*\\.[0-9]+([eE][+-]?[0-9]+)?$"
type_check: "is_float"
description: "Value must be a number with a decimal point or scientific notation."
inputs:
payload: "MCard — the data to validate"
outputs:
is_valid: "boolean"
v_post: "VCard"
process:
type: meta_evaluate
target: "core.type_validator.float"
balanced_exp:
expectation: "Float validator accepts decimal numbers and rejects non-floats."
pending_cases:
- given: {payload: {"value": 3.14159}}
when: "validate"
then: {is_valid: true}
- given: {payload: {"value": 42}}
when: "validate"
then: {is_valid: false}
_meta:
clm_root_hash: sha256:70469adc5dfee1556856814eb44cd4023edccf226bc922bdf749318d4e0e3c72
a_hash: sha256:527b0089406f50d31d8902ec27e6b171dbbd5935b9a4bea6dd08101b4d75c743
c_hash: sha256:12fa4bf8d445a51ccf252e5a21e467f13a5975e963d308c8b7b2bf889e48c83d
b_hash: sha256:ee153de967fb0c503e25fbbef691c2e025291dbd1dd2cc9d14d5acd258279c68
clm_name: type_validator_float
computed_at: "2026-05-27T08:50:06Z"
depends_on: []