LDC-E1319 — Expectation outside the vocabulary
For LLMs5 sections
What it means
Section titled “What it means”Expectations compare result fields against a closed dictionary: each status field accepts only its own enumerated values. A value from outside that list matches nothing the engine can produce — not a stricter check, but a check against a word the result language never utters. The compiler stops at the unknown value and lists the words the field actually accepts.
The repair is to expect one of the listed values. When none of them says what the test means, the test is asking about the wrong field, not missing a word.
Example
Section titled “Example”{"argv": ["lower-test", "$ROOT/test.lawtest"], "files": {"test.lawtest": "language \"law.core\" version \"0.2\";\npackage demo.diagnostics version \"0.1.0\";\nnamespace \"urn:law:demo:diagnostics\";\n\nrelation sunny() kind institutional;\n\ntest \"vacuous\" {\n given {\n context {\n legal_time @2026-08-26;\n }\n }\n\n evaluate truth(sunny());\n\n expect evaluation_status == BOGUS;\n}\n"}, "expect": "LDC-E1319"}{"argv": ["lower-test", "$ROOT/test.lawtest"], "files": {"test.lawtest": "language \"law.core\" version \"0.2\";\npackage demo.diagnostics version \"0.1.0\";\nnamespace \"urn:law:demo:diagnostics\";\n\nrelation sunny() kind institutional;\n\ntest \"vacuous\" {\n given {\n context {\n legal_time @2026-08-26;\n }\n }\n\n evaluate truth(sunny());\n\n expect evaluation_status == COMPUTED;\n}\n"}, "expect": null}Documentation for Arxo. Writings — blog.arxo.io.
Anonymous visit counts on stats.arxo.io, no cookies.