test: add object field CHECK TYPE NUMBER negative fixture

This commit is contained in:
Hermes Agent
2026-06-30 03:07:07 -06:00
parent 66816f26d1
commit ca7c3b51ca
8 changed files with 20 additions and 5 deletions
+5
View File
@@ -1,5 +1,10 @@
# Changelog
## v1.18.26-dev object field CHECK TYPE NUMBER negative validation
- Added a focused negative `claro typecheck` fixture for direct object-field metadata checks: `CHECK TYPE player.score IS TEXT` is rejected after `NEW Player player` and `SET player.score 10` when the class declares `HAS score NUMBER`.
- Wired the fixture into both the typecheck diagnostics validator and `claro validate`; no production typechecker behavior change was needed because the existing direct object-field metadata diagnostic already reports the learner-friendly NUMBER mismatch.
## v1.18.26-dev object field CHECK TYPE YESNO negative validation
- Added a focused negative `claro typecheck` fixture for direct object-field metadata checks: `CHECK TYPE player.ready IS TEXT` is rejected after `NEW Player player` and `SET player.ready YES` when the class declares `HAS ready YESNO`.