Repository navigation
test(host): cover AUTOREPORT temperature interleave as wire behavior - #31
Merged
Merged
Conversation
The dialect matrix exercised AUTOREPORT_TEMP only as a negotiated cap flag (asserted via profile.has), never as wire behavior. With AUTO_REPORT_TEMPERATURES the controller pushes unsolicited `T:` telemetry on a timer, interleaved with command traffic; the host must absorb it as a non-terminal report so ok-per-command pacing stays in sync. Add a focused test driven through the collecting `query` path, so the absorbed line is observable and the assertion is load-bearing: a bare send/stream discards intermediates (collect=None), so a stream alone cannot tell whether the interleave happened at all. The test fails if the `T:` is dropped or misclassified (mutation-checked). A supplementary stream assertion shows a short program still completes one ack per command with a `T:` ahead of every ack. Test-only; no host changes. Closes #19. Claude-Session: https://claude.ai/code/session_017N6LZRKsJYXcNMQZqeEvpd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #19.
Problem
The dialect matrix (
test_dialect_matrix_connect_and_stream) exercisedAUTOREPORT_TEMPonly as a negotiated cap flag (profile.has), never aswire behavior. With
AUTO_REPORT_TEMPERATURESthe controller pushesunsolicited
T:telemetry on a timer (temperature.cpp print_heater_states),interleaved with command traffic. The host must absorb it as a non-terminal
report — never mistake it for the terminal
ok— sook-per-command pacingstays in sync.
Approach
A focused, test-only case driven through the collecting
querypath so theabsorbed line is observable:
This matters: a bare
send/streamcalls_await_terminalwithcollect=None,so absorbed intermediates are dropped and a stream assertion alone cannot tell
whether the interleave happened at all. The
query-based assertion isload-bearing — it fails if the
T:is dropped or misclassified (verified bymutation: setting the responder to
["ok"]fails the test). A supplementarystream assertion then shows a short program still completes one ack per command
with a
T:pushed ahead of every ack.No host changes — the telemetry is already absorbed by the same
_await_terminalcatch-all that handles the
waitheartbeat.Verification
just checkclean (ruff format + lint, pyright 0 errors);just testgreen(120 passed, 4 skipped).
https://claude.ai/code/session_017N6LZRKsJYXcNMQZqeEvpd