Skip to content

A temperature written as a unit gets a useful hint - #6

Merged
juw12 merged 1 commit into
mainfrom
agent/temperature-hint
Nov 25, 2026
Merged

juw12 merged 1 commit into
mainfrom
agent/temperature-hint

Conversation

@juw12

@juw12 juw12 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Found by writing day-one engineer programs against 0.2.3: 25 degC answered unknown unit degC, did you mean deg?, which points at angles. 25 °C answered a bare unexpected character.

Now degC, degF, celsius, fahrenheit after a number, and the degree sign, say how a temperature is written (celsius(25.0), which gives kelvin) and that a difference is 25 K. Nothing that ran before is refused, and nothing that was refused now runs.

Checked on Windows before the push: tests/unit_hints_test.py 79 of 79 (4 new), judge.py --quick every check passed, tests/fuel_location_test.py 4 of 4, tests/fuzz_test.py 11,608 cases with 0 failures. docs/kilat.wasm and main.js are rebuilt from this source (plugin 392,513 characters, under the 400,000 limit).

25 degC answered: unknown unit, did you mean deg? Now degC, degF, celsius and fahrenheit after a number, and the degree sign, each say to write celsius(25.0) and that a difference is 25 K. Four cases added to tests/unit_hints_test.py (79 of 79). docs/kilat.wasm and main.js rebuilt from this source.
@juw12
juw12 merged commit aa0a5c8 into main Nov 25, 2026
4 checks passed
@juw12
juw12 deleted the agent/temperature-hint branch November 25, 2026 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant