4 Commits
Author SHA1 Message Date
serversdownandClaude Opus 5.5 a7214c50de test: the Series-3 fake downloads a real event -- c32a9e7 was pushed with 4 tests failing
c32a9e7 made the download check read the 5A body; the Series-3 fake handed
back placeholder frames (['frame']), so 4 plumbing tests in
test_device_access_s3_events.py and test_device_access_event_dispatch.py
failed with "'str' object has no attribute 'data'" -- and that commit was
pushed without the failure set being read.  The fake's one-event download now
carries what a real one does: BE9441 event 1's recorded frames, their decoded
waveform and the unit's own peaks for it.  Those tests now see verified=True
on a whole event.  Suite back to the 16 known fixture failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 18:49:44 -04:00
serversdownandClaude Opus 5.5 2a70faf7b5 docs(sfm): state the held-line invariant, pin the hang-up on a library error, correct the README
- Series4Session's docstring now states which errors keep the line: an
  op raises a DeviceError only for a verdict on a healthy link (not
  found, stale, unnameable), and _exchange keeps the line for those; any
  library error means the link is suspect and hangs up.  DecodeMismatch
  is a library error and hangs up -- conservative.  Later ops must keep
  to it.
- Test: a micromate TimeoutError mid-download, on a fresh DeviceAccess
  (no retry path), is NoAnswer, closes the client once and leaves no held
  line.  It pins existing behaviour; a mutation that keeps the line on
  library errors makes it fail.
- README, event rows corrected in place: another unit's id is 422 (not
  409); a stale id is 409 without downloading, both series; an event
  already stored -- including by THOR's watcher -- returns its row and
  changes nothing (detail.already_stored); MiniMate lists give
  record_type null, on the normal timeout, and fail on a lost reply.

No code behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 17:41:26 -04:00
serversdownandClaude Opus 5.5 4e1e6a9d5c fix(sfm): Series-3 events list with no record type, not a wrong one
minimateplus's _extract_record_type returns "Waveform" for every 0C
record layout -- it cannot tell a histogram -- so a MiniMate histogram
was listed as "waveform".  The fake's "Histogram" was a value the real
client never produces, which is why no test saw it.

- _s3_ref: record_type is always None, with
  detail.record_type_note = "Series 3's event record does not say
  waveform or histogram; not decoded yet".
- default_s3_events(): both events "Waveform", as the real client gives.
- The shared-shape contract test allows exactly {"record_type"} to be
  None for Series 3 and nothing for Series 4.

Rows SFM stores for Series 3 still carry "Waveform" from the decode (the
same as the legacy blastware_file route); parked in the spec.  No codec,
store or DB change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 17:40:26 -04:00
serversdownandClaude Haiku 5.5 9e2d8b62c3 feat(sfm): DeviceAccess lists and downloads events for both series
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 17:02:19 -04:00