merge: dev 9b458b5 into the parity branch (group A/B, #51 histogram timing)

Brings the checker's file-only decode work onto the parity branch so the
phase-5 bench runs on the code that will ship.  One conflict, the CRLF
Series-III reference changelog: both kept, phase 5's row numbered
'2026-11-03 (5)' above dev's (4)/(3)/(2).  test_event_ingest's live-
histogram dedup test asserted the stored row sits a second off the 0C
time -- the #51 bug, fixed on dev -- so its premise now reads the event's
own second; the dedup it tests still holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-04 12:31:21 -05:00
commit f24913189b
31 files changed
+9577 -127

No files matched your search

+7 -6
View File
@@ -426,11 +426,12 @@ def test_the_units_range_reaches_the_store(tmp_path):
assert store.geo_range == 1
# Review finding (2026-10-29): a histogram's row is stored at its file's time,
# a second before the unit's 0C time on most histograms (#51) -- K441LTOK.QZ0
# decodes to 16:06:34, its 0C says 16:06:35 -- so a pre-check on the 0C time
# alone missed it, and a live download overwrote the watcher's row and sidecar.
# The Blastware name encodes the event's own second and does not miss.
# Review finding (2026-10-29): a histogram's row was stored at its file's time,
# a second before the unit's 0C time (#51) -- K441LTOK.QZ0 decoded to 16:06:34,
# its 0C says 16:06:35 -- so a pre-check on the 0C time alone missed it, and a
# live download overwrote the watcher's row and sidecar. Since #51 (dev,
# 2026-11-03) the file decodes the event's own second, so the time matches too;
# the Blastware name, which encodes that second, stays as the second guard.
@pytest.mark.parametrize("stored_as", ["K441LTOK.QZ0", "K441LTOK.QZ0H"]) # direct / call-in name
def test_a_live_histogram_the_watcher_already_stored_writes_nothing(sdm, stored_as):
@@ -442,7 +443,7 @@ def test_a_live_histogram_the_watcher_already_stored_writes_nothing(sdm, stored_
db.insert_events([ev], serial="BE9441", waveform_records={ev._waveform_key.hex(): rec},
device_family="series3") # as the import route (server.py) does
[row0] = db.query_events(serial="BE9441")
assert row0["timestamp"] != "2026-10-26T16:06:35" # the case: the row sits a second off
assert row0["timestamp"] == "2026-10-26T16:06:35" # #51: the event's own second
assert row0["blastware_filename"] == stored_as
out = persist_download(_hist_download("K441LTOK.QZ0", "01110000",
datetime.datetime(2026, 10, 26, 16, 6, 35)), store=store, db=db)