100 Commits
Author SHA1 Message Date
serversdownandClaude Opus 5.5 621c836109 docs(changelog): Unreleased -- a Thor file's own settings, notes and time (#44, #45)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-20 15:03:38 -05:00
serversdownandClaude Opus 5.5 0c228fa258 merge: a Thor file's own settings, notes and time (#44, #45)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-20 15:02:08 -05:00
serversdownandClaude Opus 5.5 f7a02b1fee fix(idf): a Thor file's own settings, notes and time (#44, #45)
A Micromate event read without Thor's report (SFM's own downloads) came out
with sample rate, pre-trigger and record time 0, empty notes, and a
1970-01-01 time; every Micromate .h5, report or not, stored pre-trigger 0.

- The settings were found by the bytes be 80 00 00 00 00 -- a -0.25 s
  pre-trigger and Fixed stop mode, not a marker -- so any other pre-trigger
  left them unread.  The event's settings record is now found by its own
  signature 00 2a 04 00 00 (fields at the live 0x1A block's head offsets).
- The event time is read at settings record + 0x34, not two fixed offsets
  that miss a header shape.
- The four notes are read at 0x23c ([label 22][value 42] x 4).
- IdfEvent.to_minimateplus_event sets pretrig_samples.
- save_imported_idf fills the pre-trigger and notes from the file when the
  report lacks them.

Measured against Thor's own reports on 2,027 corpus files: sample rate and
notes 2,027 / 2,027; record time and pre-trigger 291 / 291 waveforms; event
time = filename on 2,384 / 2,384.  The issues' 20 UM12947 bench files now
store 4096 S/s, 4096 pre-trigger samples (1.0 s), 3 s and their notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-20 14:45:52 -05:00
serversdownandClaude Opus 5.5 c0561f9de6 docs(changelog): Unreleased -- tests and scripts cleanup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-20 14:31:18 -05:00
serversdownandClaude Opus 5.5 fbd0c60cc7 merge: tests and scripts cleanup -- a fresh checkout passes on its own
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-20 14:31:18 -05:00
serversdownandClaude Opus 5.5 e071be7ee0 docs(CLAUDE.md): a test reads only tracked files
Copy what a test needs from bridges/captures/ or example-events/ into
tests/fixtures/ (git add -f), never guard a fixture with a skip, and
check with a fresh worktree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-20 13:39:23 -05:00
serversdownandClaude Opus 5.5 a7f9f66da1 build: bridges/ leaves the production image
The bench and lab tools (MITM proxy, the old ACH servers, probes, link
simulator) were copied into the SFM image and installed as a package,
though SFM imports nothing from them (ADR 0003: lab tools leave the
image).  Dockerfile and the package list now carry minimateplus,
micromate, sfm and scripts only; the backfills still run in the
container.  Checked: the image builds, sfm.server and the backfill /
import scripts import inside it.  Tests that use bridges/ run from a
checkout, unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-20 13:39:23 -05:00
serversdownandClaude Opus 5.5 638ac58b4d chore: remove four obsolete scripts
- scripts/backfill_event_zc_freq.py copied ZC frequency from Blastware
  reports into the DB; the decoder reads it from the file since v0.35.0,
  whose backfill refreshed every row.  Its two tests go with it; the DB
  column tests in test_zc_freq_columns.py stay.
- scripts/backfill_record_type.py: a one-time fix from May; the record
  type is read from the file since v0.33.0.
- scripts/test_thor_render.py: a one-off re-import of two prod Thor files
  (May); nothing referenced it.
- scratch/next_experiment_skeleton.py: codec research scaffolding from
  before the codec was solved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-20 13:39:23 -05:00
serversdownandClaude Opus 5.5 646da046b7 test: remove test_5a_protocol.py and the retracted 5A helpers only it used
Its 19 tests pinned the May 2026 5A model -- a raw offset_hi 0x10,
11-byte params, metadata pages at 0x1002 / 0x1004 -- retracted on
2026-10-26, and the 5-1-26 capture they read no longer exists on the dev
box, so they skipped everywhere.  tests/test_5a_blastware_walk.py
replaced them: all 540 of Blastware's 5A requests rebuilt from tracked
fixtures.  Removed with them, from framing.py, the four helpers marked
'superseded, no production caller, kept for test_5a_protocol.py':
build_5a_frame, bulk_waveform_params, bulk_waveform_term_params,
bulk_waveform_term_v2.  parse_strt_end_offset stays: test_5a_blastware_
walk.py uses it to show the old misread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-20 13:39:23 -05:00
serversdownandClaude Opus 5.5 20b1581e37 build: a test dependency group -- pytest and httpx
httpx is FastAPI's TestClient transport; without it
tests/test_db_snapshot_endpoints.py skipped its 3 tests everywhere.
`pip install -e .[test]` now brings what the suite needs.  The
runtime requirements are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-19 13:33:21 -05:00
serversdownandClaude Opus 5.5 4d0984dcaf test: everything the tests read is in git -- a fresh checkout passes on its own
A fresh checkout of dev failed 10 tests, errored 3 and skipped 64: the
tests read 100 files that were only on the dev box.  Recorded with an
audit hook over a full run: 100 files, 2.3 MB, out of 1.1 GB of
bridges/captures/ and 45 MB of histogram-extension-re/.

- Force-added in place: tests/fixtures/thor-idf (14), histogram-multi-
  interval (2) and the one histogram-extension-re file read.
- Copied into tests/fixtures/example-events/ (10) and
  tests/fixtures/captures/ (73, from bridges/captures/), and the tests
  pointed there.
- The presence skips ('not on this machine', 'gitignored', 'fixture
  missing') are gone: a missing fixture now fails instead of skipping.

The worktree now runs as the dev box does: 1,787 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-19 13:32:59 -05:00
serversdownandClaude Opus 5.5 c2b8e76774 chore(release): v0.35.0 — 80 of 88 report fields from the file, and monitor logs (.MLG)
CHANGELOG: Unreleased -> v0.35.0 (2026-11-16), with the release's theme
and its Migration.  pyproject, README, CLAUDE.md -> 0.35.0.
TOOL_VERSION -> 0.35.0: the codec changed (groups D2, E, F, over range,
the mic's range), which gates the backfill's regeneration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-16 12:46:58 -05:00
serversdownandClaude Opus 5.5 ed4f3d2213 docs(changelog): Unreleased -- monitor logs (.MLG) and each unit's timeline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-16 11:08:30 -05:00
serversdownandClaude Opus 5.5 03c272316f merge: monitor logs (.MLG) and each unit's monitoring timeline
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-16 11:06:39 -05:00
serversdownandClaude Opus 5.5 ba826dfac6 fix(mlg): final-review fixes
A fresh whole-branch review found four Important issues; three of its
Minors and one item it set aside were re-graded up.  Each has a test that
failed first.

- A windowed timeline 500'd when a file came without its modified time
  (Python 3.10 rejects the 'Z' of received_at).  received_at is now
  +00:00 and timeline times parse 'Z' too.
- On the clock-step day an event-triggered call-in moved the event into
  the next session and lost the step.  An event now joins the 'monitoring
  started' record of its own file.
- A call-in whose records came first in another file (a cable download)
  read 'nothing_new'.  Each file now keeps its own call summary
  (last_stop, no_file_stops) from when it arrived.
- Sessions and call-ins now carry record_ids / file_ids / file_id, the
  shot report's proof (spec 5).
- A non-'started' record with no stop made the unit's timeline 500 for
  good; it now opens a session whose end is unknown.
- A serial from a file's bytes (or a hint) could write outside the store;
  only plain serials are used, and records with no serial are refused, not
  dropped.
- Times with a UTC offset, an empty 'at', or a bad mtimes value gave 500s
  (or stored half a request); they are now 400s, checked first.
- A missing call-in file made the gap after its Modem Exit read 'not
  monitoring' for days.  Files are numbered <serial><counter>; a gap
  across a missing number is now 'records missing' (unknown).  A long gap
  after a call-in with no number missing is 'no restart after a call-in':
  real outages on the DL2 data (BE6907 14 days from 2026-10-07; BE8081
  over Labor Day 2019).  Real fixtures BE6907 #899-#902 added.
- Docs: BE8081 did write one empty file (BE80811.MLG).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 14:17:08 -05:00
serversdownandClaude Opus 5.5 35bac40dd5 docs: the .MLG format measured (reference D.4), and the new /db routes
Reference D.4 rewritten from the measurements: the 18-byte prefix,
length-led 292-byte records, the CRC-16/AUG-CCITT (3,329 / 3,329), the
fields, how Blastware writes the files and how a session appears, and
the cross-check against DL2's event files.  The old D.4.1-D.4.3 stay,
marked retracted.  CLAUDE.md gains the five routes and a Where things
stand entry; the spec's footer-CRC note points at dev's 8544e9c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:56:10 -05:00
serversdownandClaude Opus 5.5 4bc669df4d feat(mlg): bulk import, and a cross-check against the event files
scripts/import_mlg_dir.py imports every .MLG under a directory (files
with records first, then the empty ones, so each unit's serial is known
first; dry run writes nothing).  scratch/check_mlg_vs_events.py matches
each Event Recorded record to an event file's footer (stop, flag word,
trigger source) in both directions, inside each unit's .MLG period.

Run on the dev box against DL2's 1,273 sample files (2026-11-13):
  import: 1273 ok, 0 errors, 231 empty, 0 unresolved, 2180 records, 13 s
  BE8081:  785 matched, 0 record-only, 0 file-only
  BE6907:    6 matched, 5 record-only, 0 file-only
  BE12844:  19 matched, 37 record-only, 0 file-only
  every record-only one stops after 2026-08-25, where the DL2 copy ends;
  the 4,303 footers of those three units' event files all pass their CRC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:54:50 -05:00
serversdownandClaude Opus 5.5 c0cdf58527 feat(mlg): /db routes: import .MLG, a unit's timeline, monitoring at T
POST /db/import/mlg_file (per-file status; good files stored even when
another in the request is refused; each file's modified time as a JSON
form field), GET /db/units/{serial}/timeline (optionally windowed),
GET /db/units/{serial}/monitoring_at, GET /db/mlg_records, and
GET /db/mlg_files/{id} (the original, byte for byte, for printing).

Tested by calling the route functions directly: httpx is not in this
venv, so TestClient tests would skip silently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:50:59 -05:00
serversdownandClaude Opus 5.5 faa371a73b feat(mlg): each unit's monitoring timeline, and was it monitoring at T
sfm/mlg_timeline.py builds, from a unit's stored records: sessions (with
how each ended, its events and its trigger level as logged), the gaps
between them and what each means (call-in, scheduled off, lost power,
stopped by a person, memory full), clock steps (a session starting
before the previous one stopped, as at the end of daylight saving), and
call-ins: delivered, no_file (a Modem Exit that left no file) and
nothing_new (an empty file).  monitoring_at() answers monitoring /
not_monitoring / unknown, never claiming more than the records show.
Tested on real files, including BE8081's weekend: Battery Low Exit
Saturday 10:47, back Monday 12:47, two calls that left no file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:48:13 -05:00
serversdownandClaude Opus 5.5 f41e4be382 feat(mlg): ingest one .MLG: verify, resolve the serial, keep the original
sfm/mlg_ingest.ingest_mlg() is shared by the import route and the bulk
script.  A file that is not whole, or with any record failing its
checksum, stores nothing.  The serial comes from the file; for an empty
file (no serial inside) from the caller's hint, else the longest known
serial its <serial><counter> name starts with, else unresolved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:45:21 -05:00
serversdownandClaude Opus 5.5 84d6cd05c3 feat(mlg): store .MLG files and records, each record once
Two new tables, created on first start (no migration):
mlg_files (one row per file received, deduped by name + sha256) and
mlg_records (one row per log record, unique on serial, start, stop,
flag word and trigger source; COALESCE on the stop, since an open
record's NULL stop is distinct to a UNIQUE constraint).  The text is not
part of a record's identity: Blastware writes it, and two copies of the
same records differ there.  WaveformStore.save_mlg keeps the original
file byte for byte under <serial>/mlg/.

Operational consequence: two new tables on first start; no migration,
no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:43:47 -05:00
serversdownandClaude Opus 5.5 a8adb03d23 feat(mlg): write .MLG files as Blastware does; retire the old writer
mlg_bytes()/write_mlg() rebuild all 12 fixture files byte for byte:
little-endian times, length-led records, each record's checksum.  The old
blastware_file writer (big-endian times, a zero CRC at the wrong end, 308-
byte header) and the read_mlg stub are removed; nothing called them.  No
re-export: event_file_io imports blastware_file, and mlg_file imports
event_file_io.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:41:38 -05:00
serversdownandClaude Opus 5.5 3cd95db405 feat(mlg): read Blastware .MLG files, every record's checksum verified
minimateplus/mlg_file.py parses the measured format: an 18-byte prefix,
then length-led 292-byte records, each with a CRC-16/AUG-CCITT over
[0:288] stored little-endian.  A record that fails its checksum is
returned flagged, never silently dropped.  One shared CRC function
(minimateplus/crc.py) replaces micromate/setup_block's copy.

Fixtures: 12 real .MLG files (DL2's ACH folder + 3 bench files) in
tests/fixtures/mlg-11-9-26/, force-added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 13:39:44 -05:00
serversdownandClaude Opus 5.5 74ce7abcc6 docs(plan): monitor logs (.MLG) and each unit's monitoring timeline
Eight tasks: reader, writer, storage, ingest, timeline, routes, bulk import
with a cross-check against the event files, and the reference's D.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 03:43:45 -05:00
serversdownandClaude Opus 5.5 6f5898fe4e docs(spec): monitor logs (.MLG) and each unit's monitoring timeline
Design for reading Blastware .MLG files into SFM and deriving each unit's
monitoring timeline (sessions, stop reasons, call-ins), for shot reports
and outage history. Includes the measured MLG format: length-led 292-byte
records with a CRC-16/AUG-CCITT tail (3,329 / 3,329 records).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R9LdWawLzUxwewZGA1
2026-11-13 03:33:02 -05:00
serversdownandClaude Opus 5.5 77a0296496 chore: every text file LF by default, and a test that fails on CRLF
5dff54b listed file types; a Dockerfile, .jsonl, .gitignore or any type not
yet invented had no rule.  .gitattributes now defaults every file to
`text=auto eol=lf` (Terra-View's rule), marks the binaries, and keeps
tests/fixtures/** -text.  Renormalizing under it changes no file.

tests/test_line_endings.py fails if a tracked file outside the fixtures is
stored CRLF, or if the rule stops covering new text types, fixtures or
binaries.  Its CRLF detector, pointed at the fixtures, finds all 38.
Suite: 1,711 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-12 16:38:10 -05:00
serversdownandClaude Opus 5.5 5dff54b292 chore: store source and docs with LF line endings (.gitattributes)
The protocol reference, seismo_lab.py and one scratch CSV were CRLF, so a
rewrite outside the Edit tool turned them into whole-file diffs, and merges
into them had to be resolved byte by byte.  They are converted once (line
endings only: the diff ignoring CR at EOL is empty), and .gitattributes keeps
every source and doc type LF from now on, whatever writes it.

tests/fixtures/** is -text: Blastware's own reports and exports, captures and
event files stay byte for byte (38 CRLF fixtures, unchanged).

A branch that edits one of the three files merges with -X renormalize.
Suite: 1,693 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-12 15:29:36 -05:00
serversdownandClaude Opus 5.5 745aab40b1 docs(changelog): Unreleased -- an escaped checksum is the checksum, not data (#58)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-12 15:28:00 -05:00
serversdownandClaude Opus 5.5 ff705ebf87 merge: an escaped checksum is the checksum, not data (#58)
S3FrameParser kept the 10 of a checksum sent as `10 02/03/04` as the reply's
last data byte.  It now takes the pair: 7,747 / 7,747 recorded replies check,
272 of them with an escaped checksum.  Fixes the 1C battery/memory misread
(419.84 V on 12 of 760 recorded status replies) and the 2C call-home read; the
5A file builder's own compensation is removed with it, and pre-fix .a5.pkl
frames are converted on load (A5_PICKLE_VERSION 2).  checksum_valid now sums
the unescaped payload.

Conflict: the reference's changelog table (dev's own 2026-11-06 row); #58's
row kept as 2026-11-06 (2).  Suite on the merge: 1,693 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-12 15:27:00 -05:00
serversdownandClaude Opus 5.5 b24ea33b9d docs(changelog): Unreleased -- over range, the mic's range and dB offset, a green suite
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-11 15:23:23 -05:00
serversdownandClaude Opus 5.5 750ef1f84b merge: over range, the mic's range and dB offset, and a green test suite (the last of the 88)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-11 15:23:23 -05:00
serversdownandClaude Opus 5.5 c87e677294 docs: the last 16 values are left as they are, by decision
The vector sum's last digit on 4 waveform/histogram twins (no fitted
factor on a compliance number) and the 4 accelerations (O117I1NK's fit
rests on one clipped file): left and documented, Brian 2026-11-11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-11 15:22:49 -05:00
serversdownandClaude Opus 5.5 8544e9c7e2 docs(reference): the event footer ends in a CRC-16/AUG-CCITT
Footer [24:26] is CRC-16/AUG-CCITT (poly 0x1021, init 0x1D0F), stored
big-endian, over the footer record from its length prefix 00 1a through
footer [0:22] -- 24 bytes; the zero word [22:24] is not covered.
70,041 / 70,041 DL2 files.  Found by the .MLG session, verified here.
Retracts 2026-11-08's 'no common CRC-16 fits' (D.3.3, in place, and the
footer comment in event_file_io): every attempt had started at the
footer itself and missed the length prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-11 14:55:50 -05:00
serversdownandClaude Opus 5.5 8c6cad681c test: the suite runs green -- fix the 16 long-standing 'known failures'
They were two stale tests, not broken code:
- tests/test_bw_ascii_report.py (15) read its Blastware ASCII reports
  from decode-re/5-8-26/ at the repo root, removed when the fixtures
  moved to tests/fixtures/decode-re-5-8-26/.  At the real path all 27 of
  its tests pass.  The same stale path made a report-pairing test in
  test_event_file_io.py skip silently; it now runs and passes.
- test_save_imported_bw_without_report_works_unchanged (1) expected a
  sample-less event's PPV to be 0.0.  Since fa9d3cd (2026-05-20) the
  decoder deliberately leaves peaks unknown (None) so a backfill never
  writes zeros over real peaks; the sidecar-level check now says so.
  Its main assertion -- no bw_report block without a report -- is
  unchanged and covered nowhere else.

Full suite: 1,620 passed, 0 failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-11 14:54:16 -05:00
serversdownandClaude Opus 5.5 e2c0f26b69 docs: over range, the mic's range and dB offset, and Blastware's mic unit labels
- Reference D.6.15 (new): over range -- a peak past 2,000 units (the mic
  in counts) is OORANGE, per channel and per histogram interval; the
  vector sum is OORANGE exactly when a geophone is (43 / 43), never on
  its own (38 / 38); the <OORANGE> line marks the mic over (18 / 18).
- D.6.6: the mic's own range byte (an eighth at 1; 7 events read 8x
  high); the dB offset corrected in place to 81.938216 (every printed
  count leaves [81.9382058, 81.9382266]); the unit labels that do not
  hold, and the mixed columns.
- D.6.11, CLAUDE.md: 80 of 88 report fields match on every DL2 event
  (run 20261109-144544, 0 regressions); the two causes left (the vector
  sum's last digit on 4 twins, 4 accelerations); the 'vector sum alone'
  case retracted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 15:11:43 -05:00
serversdownandClaude Opus 5.5 6818e3023e feat(checker): a histogram row printing one unit in both mic columns is the mixed-units case
The ~20 histograms with one mic interval off were Blastware printing
the same number in both mic columns of a row: I145HKWT.DY0H row 672
reads 95.92 under psi(L) and dB(L) (count 5: dB), S353K894.OE0H rows
106 and 608 read 0.000 under both (count 2: psi).  SFM's count agrees
with the neighbouring rows and with the other column.  mic-units-mixed
now covers the interval mic columns too; a column names its own unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 14:45:41 -05:00
serversdownandClaude Opus 5.5 0b6150adb5 feat(checker): read each mic value in the unit Blastware printed; carve out mixed columns
Blastware's dB(L) / psi(L) labels do not hold for the mic on every
report (DL2, 2026-11-09):
- the mic peak carries its own <Units>, which 7 reports set to dB under
  a psi Units line and 3 the reverse: the checker now reads the peak in
  its own unit;
- a mic sample table has no unit of its own and need not follow the
  line (S353JTHU.DT0W prints dB under psi): the checker reads it from
  its cells -- a mic dB value is never under 60, psi never over 1;
- some reports mix the two inside one column: K441L9IN.OT0W prints psi
  '0.000' for counts of 1 to 3 in a dB table.  Carve-out
  mic-units-mixed accepts a mic field when every cell SFM disagrees
  with is SFM's own value in the other unit: 19 DL2 events (14 sample
  tables, 5 peaks); a cell matching neither stays a mismatch.

Not a decoder change: SFM's mic data were right.  Checker run
20261109-141808: 78 of 88 fields, 0 regressions; no mic peak or mic
sample table mismatches left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 14:44:11 -05:00
serversdownandClaude Opus 5.5 e21d23a3f2 fix(decode): the mic dB offset is 81.938216, fitted on every count Blastware printed
The 81.9384 offset came from a window fitted on histogram intervals,
[81.9383, 81.9385], which was too high.  Every count Blastware printed
in DL2 -- 1,704 in waveform sample tables, 520 in histogram intervals,
494 histogram peaks -- leaves [81.9382058, 81.9382266]: count 129
(124.2) bounds it from below, 463 (135.2; 81.9384 prints 135.3) and 677
(138.5) from above.  One offset serves all three printing paths; no
count prints two ways once range-1 mics and psi-formatted tables are
set aside.  Fixes the mic samples and peaks that sat one digit off at a
rounding edge.  The old window's comment is kept, retracted in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 14:04:55 -05:00
serversdownandClaude Opus 5.5 e25784d9db feat(decode): over range inside a histogram's intervals, as in the event
Inside an interval the rule is the event's: a peak past 2,000 units
(the mic in counts) is Blastware's OORANGE, and the interval's vector
sum is OORANGE when any geophone is.  DL2 (2026-11-09): numeric up to
1,846 (geophones) / 1,414 (mic), OORANGE from 2,001; vector sums 16 / 16
OORANGE with a geophone over, 2,862 / 2,862 numeric without.

event_file_io.over_full_scale(count, channel); the checker renders those
interval cells as OORANGE.  The saturation carve-out compares SFM's own
words properly (_differs): an OORANGE from SFM never counts as
saturation, and an OORANGE equal to Blastware's is not a difference.
Its interval tests run on the numeric values it used to see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 13:35:08 -05:00
serversdownandClaude Opus 5.5 836c9e864b fix(decode): the mic's own range -- a range-1 mic reads an eighth
The mic's channel block carries a range byte at the geophones' offset
(label + 29, reference D.6.4).  At 1 each count is an eighth, 0.25 / 8
Pa: set on 7 DL2 events, all of them Blastware's values divided by 8,
and on none of the other 70,026 -- independently of the geophone range
(28 events have Sensitive geophones and a range-0 mic).  SFM read those
7 mics 8x high: K557J1XQ.GF0W is 79.4 dB(L), not 97.5.

Event.mic_range; the decoded mic peak (and so the .h5 mic samples, whose
scale is the peak's) and the checker's mic conversions follow it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 13:32:07 -05:00
serversdownandClaude Opus 5.5 af8dde5114 feat(decode): over range from the unit's own peaks -- Blastware's OORANGE
A channel is over range when the unit's own peak (its summary's min /
max) passes 2,000: 32,000 counts, full scale, on either geophone range;
the mic in counts.  Blastware prints OORANGE for that channel's peak,
for the vector sum when any geophone is over, and its "Out of Range"
line when the mic is (DL2, 2026-11-09): numeric up to 1,991 / 1,933,
OORANGE from 2,001; the vector sum is OORANGE on all 43 events with a
geophone over and on none of the 38 whose vector sum alone passes
10 in/s -- the open "vector sum alone" carve-out was never needed.

PeakValues gains tran/vert/long/mic/pvs_over_range.  The checker matches
OORANGE by the flag, and calls a flag against a printed number a
mismatch.  Clipped events that the saturation carve-out used to accept
now match outright; the carve-out stays as the fallback for a file
without the unit's summary, and its guards are tested that way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 12:51:57 -05:00
serversdownandClaude Opus 5.5 e542e61b68 docs(reference): an .MLG is little-endian, and its flags are the footer's flag word
D.2 and D.4.2 said MLG timestamps are big-endian; §7.5 already had the
year little-endian.  Measured on the 4 bench .MLG files: every date's
year is little-endian, and a record's [22:26] is the event footer's
flag word and trigger source (D.6.14), little-endian.  BE9441's 10-25
session lines up 20 / 20 with its event files.  write_mlg() writes
big-endian dates; nothing calls it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 12:37:37 -05:00
serversdownandClaude Opus 5.5 d740897714 docs(changelog): Unreleased -- the monitor log line from the footer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 12:36:02 -05:00
serversdownandClaude Opus 5.5 15112ef83b merge: the monitor log line from the file's footer (group F)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-09 12:36:02 -05:00
serversdownandClaude Opus 5.5 ed8712ac8e docs: the monitor log is in the footer (reference D.6.14)
- Reference D.6.14 (new): the Monitor Log line is the footer's ts1 - ts2
  plus words for its flag word [18:20]; 69,983 / 69,983 DL2 lines,
  character for character; the flag table and how common each is.
- D.3.3: footer [18:20] flags, [20:22] trigger source, [22:24] zero;
  [24:26] still unknown (no common CRC-16 or sum fits).
- D.6.11, CLAUDE.md: 72 of 88 report fields match on every DL2 event
  (run 20261108-034313, 0 regressions) and what is still open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-08 04:08:23 -05:00
serversdownandClaude Opus 5.5 b6309027b3 feat(decode): the monitor log line from the file's footer (group F)
Blastware prints one Monitor Log line per event: the footer's start and
stop, then words for the footer's flag word [18:20] -- 69,983 / 69,983
DL2 lines, character for character (2026-11-08):

  0x0001 Event Recorded       0x0010 Timer Stop
  0x0002 Keyboard Exit        0x0020 Modem Exit
  0x0004 Remote Exit          0x0200 Battery Low Exit
  0x0008 Selfcheck Passed     0x0800 Memory Full Exit

One line sets Modem and Timer and prints Modem, so the higher bit wins
(the order of the others is inferred).  Footer [20:22] is the event
record's trigger source again (69,983 / 69,983); [22:24] is zero; [24:26]
is not a common CRC-16 or sum.

Event.monitor_log: MonitorLogLine(start, stop, flags, description), read
only when the file's record chain is whole, which proves the footer.
The checker compares it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-08 03:43:05 -05:00
serversdownandClaude Opus 5.5 4402753e70 docs(changelog): Unreleased -- sensor check results, and a no-mic unit's traces
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-07 15:58:16 -05:00
serversdownandClaude Opus 5.5 3cd414b589 merge: sensor check results from the unit's own records (group E)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-07 15:58:16 -05:00
serversdownandClaude Opus 5.5 7b45647b23 docs: #58 in the reference and CLAUDE.md; unescape_reply's 748 were replies
Reference row 2026-11-06: an escaped checksum is the checksum, measured on
7,747 / 7,747 recorded replies, with what the stray byte misread.  CLAUDE.md's
phase-5 warning marked fixed, and the reply rule widened.

Corrects 89c5234's unescape_reply docstring: the 2026-10-26 recording's
748/748 was measured on its replies (it also has 748 requests); I had called
them Blastware's requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-06 14:57:39 -05:00
serversdownandClaude Opus 5.5 47da0ddef0 fix(framing): checksum_valid sums the reply's payload unescaped
S3FrameParser summed its payload with the kept `10` of each `10 02/03/04`
still in, so checksum_valid was False on about a third of good replies (the
old "S3 checksums frequently fail" belief).  SUM8 of the unescaped payload
is the unit's checksum on 7,747 of 7,747 recorded replies; the test pins it
on the 2,509 in the committed October fixtures (62 with an escaped checksum),
which also proves #58's split of data from checksum on real replies.

Nothing decides on checksum_valid; seismo_lab's display stops crying wolf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-06 14:54:45 -05:00
serversdownandClaude Opus 5.5 89c5234ac0 fix(framing): an escaped checksum no longer leaves its 0x10 in a reply's data (#58)
A MiniMate sends a checksum of 02, 03 or 04 as `10 X`.  S3FrameParser kept
both bytes and _finalise took only the last as the checksum, so the frame's
data ended in a stray 0x10.  It now takes the pair.

Measured on every recorded reply (60 captures, March to October 2026): SUM8
of the unescaped payload is the checksum on 7,747 of 7,747; 272 arrived
escaped, all valid as an escape pair.

What the stray byte did:
- 1C status: battery and memory are counted from the end; 12 of 760 recorded
  status replies read 419.84 V / 251,654,656 bytes (6.76 V / 983,026).
- 2C call-home read: one byte long, refused as "monitoring".
- 1A, 09 reads: already trimmed (bench 2026-11-04); the trims stay as guards.
- 5A file builder: compensated in _frame_body_bytes; that pairing is removed,
  else a real 0x10 ending a chunk (one in ten do) would be dropped.

Stored .a5.pkl frames: A5_PICKLE_VERSION 2; load_a5 drops the stray 0x10
from version-1 frames.  All 28 pickles on this box rebuild byte-identical
to dev's build.

Operational consequence: none for prod's stored events (S3 events arrive
through save_imported_bw, which keeps no frames); no schema change, no
TOOL_VERSION bump, no backfill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-06 14:52:50 -05:00
serversdownandClaude Opus 5.5 a80ea759e4 docs: the record chain to the footer and the sensor check (reference D.6.13)
- Reference D.6.13 (new): the tail of an event file is one record chain
  ending exactly at the file's end (70,041 / 70,041 DL2 files); the
  sensor-check header layout and what Blastware prints from it.
- D.3.3: the footer is the chain's last record (length 00 1a, id 0e).
- D.6.12: 'before and after' retracted in place -- one record per channel.
- D.6.11, CLAUDE.md: 71 of 88 report fields match on every DL2 event
  (run 20261106-125854, 0 regressions; 59 before group E).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-06 13:23:39 -05:00
serversdownandClaude Opus 5.5 f222ea9e80 fix(sensor-check): a unit without a mic keeps its three geophone traces
The trace decoder required all four records 0x3c-0x3f, so BE16352 (no
mic: 0x3c-0x3e only, all 8 of its DL2 events) got no sensor-check traces
at all.  The three geophone records, chained by their length prefixes,
are now enough.  The .h5 writer already stores a three-channel set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-06 13:00:16 -05:00
serversdownandClaude Opus 5.5 f7b310b130 feat(decode): sensor check results from the unit's own records (group E)
The record chain that starts with the embedded event record runs to the
file's end on all 70,041 DL2 files: the event record 0x05, the unit's
summary 0x32-0x35, its sensor checks 0x3c-0x3f, then the footer 0x0e
(no 0x35 / 0x3f on a unit without a mic, 8 files).  _record_chain walks
it and refuses a chain that does not end exactly at the file's end; the
unit's summary is now read from it too.

Each sensor-check record's header holds the results (DL2, 2026-11-06):
[2] channel type (1 geophone, 2 mic, 0 disabled), [4] status (0 =
passed), [5:7] frequency x 10, [7:9] ratio x 10, [9:11] amplitude mV.
Blastware prints them as they are: 209,943 / 209,943 geophone
frequencies and ratios, 69,975 / 69,975 mic frequencies and amplitudes;
"Passed" on status 0, "Check" on every other (its bits not decoded:
a Check can sit inside every passing range), "Disabled" on type 0.

Event.sensor_check_results: channel -> SensorCheckResult (result,
status, freq_hz, ratio, amplitude_mv).  The checker compares them.
Behaviour change: an unknown id inside an intact chain now leaves only
that record unread (was: everything after it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-06 12:58:31 -05:00
serversdownandClaude Opus 5.5 d2fe675650 docs(reference): 256, 4,096 and 65,536 mean a number outgrew its box
A note at the head of Appendix D.6 listing every case so far: the
O117I1NK sample wrap, the unit's 16.16 fixed-point step, the histogram
PVS2 high word above 1.28 in/s, the old 1.275 in/s byte clip, and the
64 KB 5A page.  Brian's observation, 2026-11-05.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-06 12:35:56 -05:00
serversdownandClaude Opus 5.5 6591b09b31 docs(changelog): Unreleased -- ZC frequency, displacement and times of peak from the unit's summary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-06 03:22:20 -05:00
serversdownandClaude Opus 5.5 8e9a3ac9cf merge: ZC frequency, peak displacement and times of peak from the unit's own event summary (group D, part 2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-06 03:22:02 -05:00
serversdownandClaude Opus 5.5 b53de5448f docs(CLAUDE.md): untangle the acceleration sentence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-05 17:46:39 -05:00
serversdownandClaude Opus 5.5 f5feb0eabc docs: the unit stores its own largest sample step; Blastware's acceleration is still its own
The summary's unidentified [15:21] is the stored samples' largest step
plus 0 to 1 unit, x 65,536, on 19,479 geophone channels: probably the
unit's own step at full resolution (inferred).  Blastware does not print
it -- its acceleration matches the samples on 19,475 / 19,479 and this
field on 879.  Corrects 'acceleration is not stored'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-05 17:46:28 -05:00
serversdownandClaude Opus 5.5 8d5c16b03b docs: the unit's own event summary (reference D.6.12), and group D in CLAUDE.md
- Reference D.6.12 (new): the record chain after the embedded event
  record, the per-channel summary layout, what Blastware prints from it,
  why recomputing failed, and the two odd 2019 files.  Group D part 1
  (time of peak, acceleration with the fitted g) is documented there too.
- Reference §7.8.9: its "constant, meaning unknown" bytes amended in
  place (the vector-sum peak sample, then the next record's lead).
- Reference D.6.11 and CLAUDE.md: 59 of 88 report fields match on every
  DL2 event (run 20261105-140021, 0 regressions; 47 before group D).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-05 14:25:31 -05:00
serversdownandClaude Opus 5.5 9091fe75a9 feat(decode): ZC frequency, peak displacement and times of peak from the unit's own event summary
After its embedded event record, every Blastware event file carries the
unit's own per-channel summary: a chain of [length][id][payload] records,
ids 0x32 Tran .. 0x35 MicL, each with min, max, peak sample,
half-period and a displacement integral; the event record itself holds
the vector-sum peak's sample.  Blastware prints these as they are
(measured on DL2, 2026-11-05):

- ZC frequency = (rate / 2) / half-period: 15,844 / 15,844 waveform and
  104,000 / 104,000 histogram values; every word too (">100" at <= 5
  samples, "N/A" at 0, "<1.0" beyond rate / 2).  Recomputing from the
  samples had reached 46%: the unit works at full resolution.
- peak displacement = half the integral x 16 counts x in/s per count /
  rate: 19,479 / 19,479 (84% recomputed).
- times of peak and the vector-sum time now come from the unit's peak
  samples.  They equal the samples' argmax on 25,962 / 25,966 channels;
  the 4 others are O117I1NK.R70W, whose stored samples wrap at the
  trigger (Blastware's own sample table has the same wrapped values).

The event-record readers return the validated record's offset, so the
summary is read from that spot only.  No summary: nothing is set, and
times of peak stay the samples'.

The checker reports ZC frequency and displacement, and reads the mic's
above-range flag under its real name (mic_zc_above_range).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-05 14:00:13 -05:00
serversdownandClaude Opus 5.5 c9f41deadd chore(release): v0.34.0 — Series-4 parity, and most of Blastware's report from the event file alone
- CHANGELOG: Unreleased -> v0.34.0 — 2026-11-04, with the release theme
  and a Migration section (schema re-key + overnight backfill that moves
  every Series-3 histogram time by one second; rehearsed twice on a copy
  of prod's 2026-09-30 snapshot).
- pyproject.toml, CLAUDE.md, README: 0.34.0 (README gains its status
  entry).
- TOOL_VERSION 0.34.0: the codec changed, so the backfill regenerates.

Verified on dev before this commit: the full decode checker matches
pre-parity dev on every verdict of all 70,112 DL2 events (47 of 88
fields), group D part 1 ran clean on its branch, and the suite has only
the 16 known failures (1,566 passed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 17:58:54 -05:00
serversdownandClaude Opus 5.5 9f3434ff2b docs(changelog): Unreleased -- time of peak, vector-sum time and peak acceleration
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 17:56:58 -05:00
serversdownandClaude Opus 5.5 401d83dc2c merge: a waveform's time of peak, vector-sum time and peak acceleration (group D, part 1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 17:54:56 -05:00
serversdownandClaude Opus 5.5 75a1d135ee docs(changelog): Unreleased -- Series-4 parity in SFM (phases 1-5)
Everything by serial for both series, the audited changes (start/stop,
call-home, settings), the MiniMate wire fixes (#46, the 64 KB page, the
settings read as content), the legacy config write retired, the benches.
Operational: additive schema only (device_commands), no TOOL_VERSION bump,
no backfill from this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 16:29:07 -05:00
serversdownandClaude Opus 5.5 5b342b4d7d merge: feat/series4-sfm-parity -- Series-4 parity in SFM, phases 1-5
Everything by serial for both series (identify, status, settings, events,
download, start/stop, call-home on/off, settings change), live downloads
stored as the watcher stores them, the legacy config write retired.
Phase 4 benched 2026-11-03, phase 5 benched 2026-11-04 on BE9441 and
UM20147.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 16:26:45 -05:00
serversdownandClaude Opus 5.5 3564c4a744 docs: phase 5 benched on both series (2026-11-04)
Both protocol references, the spec's bench section and CLAUDE.md record
the bench: every settings change acknowledged, read back and confirmed on
the unit's screen, both units restored byte for byte; the escaped-
checksum stray byte (fixed); a MiniMate's open setup menu writes its
whole-block copy back on Cancel or Save, losing a remote change; the
alarm write at channel +38; [26:28] re-set by the unit while monitoring;
the first Micromate setup push with the unit's CRC equal to SFM's; the
Micromate scheduler switch in none of the blocks SFM reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 16:16:40 -05:00
serversdownandClaude Opus 5.5 c790e20116 fix: bench follow-ups -- the setup-menu warning, observed call-home values, waveform read
From the 2026-11-04 bench:
- A MiniMate settings preview warns that a change is lost if someone is in
  the unit's setup menu: a write sent with the menu open was acknowledged
  and read back, then lost on Cancel or Save -- the menu writes its own
  copy of the whole block back (measured both ways on BE9441).
- The two bytes after the MiniMate settings block went out as 00 00 and
  the unit took them; the preview note says so instead of 'unmeasured'.
- A Micromate call-home plan no longer warns about 0x00 / 0x01: UM20147
  took both, each way, on 11-03 and 11-04, matching its menu.
- read_waveform_data_raw drops the escaped-checksum's stray 0x10, as the
  settings read does (it failed closed: the write's block check refused
  203 bytes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 16:15:28 -05:00
serversdownandClaude Opus 5.5 55c7b7b5ae feat(codec): the MiniMate alarm level is writable (benched 2026-11-04)
S3_ALARM_WRITE_MEASURED = True.  At the bench on BE9441, with Brian's go,
the alarm went 1.0 -> 1.5 -> 1.0 in/s: each write acknowledged, read back
as sent, and shown in the unit's own setup menu.  The write moved exactly
channel +39 of the three geophone blocks (the f32 at +38), where the
event files put it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 16:12:58 -05:00
serversdownandClaude Opus 5.5 09f34c2c85 fix(decode): Blastware's g for peak acceleration, fitted to every DL2 value
Every printed acceleration in DL2 bounds Blastware's g; together they
leave [386.2236, 386.2240] in/s^2, and 386.2238 fits 19,475 / 19,479
values.  The other 4 are one odd file (O117I1NK.R70W, whose peak times
are also off) and one sample mismatch.  That is 9.81 m/s^2 (386.2205,
19,423) plus an unexplained offset, as with the mic's fitted dB offset.
The 59 values 9.81 left were all one last digit high.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 15:47:13 -05:00
serversdownandClaude Opus 5.5 233289d029 feat(decode): a waveform's time of peak, vector-sum time and peak acceleration
Group D, part 1, measured on 400 DL2 waveforms (2026-11-04):
- time of peak = (first peak sample - pre-trigger samples) / sample
  rate, per channel including the mic: 1,197 / 1,197 geophone values
- the vector sum's time, the same on sqrt(T^2 + V^2 + L^2): 398 / 399
- peak acceleration = the largest |v[i+1] - v[i]| x sample rate / g,
  with Blastware's g = 9.81 m/s^2: 1,190 / 1,197 (the standard 9.80665
  gives 1,073).  Blastware's manuals: 'subtracts two velocity readings
  and divides the result by the elapsed time between them'.

PeakValues gains *_time_of_peak, pvs_time and *_peak_accel_g, filled
for waveforms only.  The checker reports them.  Displacement (84% with
the manuals' half-cycle integral) and ZC frequency (46%) are not shipped
yet -- Blastware does something more there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 15:19:53 -05:00
serversdownandClaude Opus 5.5 9992b25fde fix(s3): a settings read takes exactly what each frame was asked for
Bench 2026-11-04, BE9441 live: frame B of a 1A read arrived one byte long,
ending in a lone 0x10.  When a frame's checksum byte is itself escaped
(02 / 03 / 04, about one frame in 85) the parser keeps the escape's 0x10
and strips only the byte after it.  The 12 recorded reads never hit it,
so the assembled block was 2,091 bytes and SFM refused it as 'monitoring'.
read_compliance_content now passes the lengths it asked for (1024, 1024,
42) and that one stray byte is dropped; any other leftover still fails
is_compliance_content.  The trimmed read decodes exactly as the old
decoder read the same reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 13:11:32 -05:00
serversdownandClaude Opus 5.5 2d237be5ef fix(ingest): a live download is held to its record type (#51)
Since #51 a waveform and a histogram recorded in the same second are two
events (UNIQUE(serial, timestamp, record_type)).  persist_download's
'already stored?' checks matched any row at the second and any row under
the letterless Blastware name both twins share, so a live download of
one twin was skipped as stored.  Both checks now hold to the download's
own type, read from its file (STRT[18]; IDFW / IDFH); an untyped row at
that second, or a download whose type does not read, still counts as
stored.  find_event_by_blastware_name takes an optional record_type.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-04 12:34:46 -05:00
serversdownandClaude Opus 5.5 f24913189b 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
2026-11-04 12:31:21 -05:00
serversdownandClaude Opus 5.5 9b458b5d92 docs(changelog): Unreleased -- histogram timing in the protocol reference
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 12:19:52 -05:00
serversdownandClaude Opus 5.5 1f8494dbc4 merge: histogram timing in the protocol reference (D.6.10), and the unit + time + type key
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 12:19:41 -05:00
serversdownandClaude Opus 5.5 d4cfb07fce docs: histogram timing from its own event record (D.6.10), and the unit + time + type key
The reference gains D.6.10: the histogram's embedded event record (lead
00 28 05 00, source 04 00, marker fe f5, start, stop) and the interval
and peak-time rules, with 'histograms stay on ts1' retracted in place.
CLAUDE.md 'Where things stand' records the new events key -- any lookup
by event needs the type -- and 47 of 88; the README roadmap follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 12:19:38 -05:00
serversdownandClaude Opus 5.5 d75dc6f5f1 docs(changelog): Unreleased -- #51, unit + time + type and Blastware's histogram times
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 12:18:20 -05:00
serversdownandClaude Opus 5.5 074c98823f merge: events are identified by unit + time + type, and histograms take Blastware's times (#51)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-04 12:17:30 -05:00
serversdownandClaude Opus 5.5 08d0a6c0d4 fix(settings): final-review fixes -- revision, resulting limits, logical writes
From the whole-branch review of phase 5:
- The preview's revision now covers the changes asked for, so a live
  change must be exactly what was previewed (any API caller, not only the
  page).  It covers what the preview showed -- the settings block (and a
  Micromate's setup name) -- not the blocks a write only echoes, which are
  re-read at send and sent as read (a MiniMate's trigger block byte 5
  differs by session, #46).
- The units' limits hold on the block that would result: a range, rate or
  mode change alone can no longer leave a held trigger, alarm or record
  time over them.
- Every MiniMate block read is logical, so push_config_raw no longer
  unescapes again (a job number of 4098, 10 02, was refused at Send); the
  preview runs the write's own block check, so a block it would refuse is
  shown as blocked.
- A MiniMate's monitoring refusal says a stop makes it call in (spec).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 22:10:49 -05:00
serversdownandClaude Opus 5.5 385716d8e1 feat(webapp): edit a unit's settings by serial: preview, send, read back
The Config tab by serial is now the unit's edit form, headed 'On the
unit <serial> -- read HH:MM' and built from the server's editable
fields.  Preview runs a dry run and shows old -> new, notes and anything
that blocks the change; Send (confirm) sends exactly what was previewed,
with its revision, then shows what the unit now holds and re-reads it.
An edit after a preview disables Send until the next preview.  The
by-host form loses its write button; the read stays.  Logic in
device_routing.js (Node-tested), glue in sfm_webapp.js, no inline JS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:57:17 -05:00
serversdownandClaude Opus 5.5 e8eabee4a2 feat(sfm): POST /device/settings/change; retire the legacy config write
DeviceAccess.change_settings refuses before any I/O a request with no
changes, a live change without its preview's revision, or no audit log,
then dispatches the series' change (never retried).  The route returns
the preview (fields old -> new, warnings, blocked, revision) or the
result (fields old/new/now), statuses as the other changes, and marks
the cached by-host config dirty after a live change.

/device/config and /device/config/project now answer 410 with a pointer.
Deleted with them: MiniMateClient.apply_config / set_project_info and
the raw-offset _encode_compliance_config (#46 found it wrong), the
lab script poc_set_project.py and experiments.py's EXP6, both of which
wrote a live unit through it.  Git keeps them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:51:20 -05:00
serversdownandClaude Opus 5.5 66bb29b9d4 feat(s3): change a MiniMate's settings by serial on the shared codec
Series3Adapter.settings reads the 1A block assembled into its 2,090
logical bytes and decodes it with micromate.setup_fields (a monitoring
unit's device-info answer is refused with 'stop monitoring first').
change_settings runs the shared change core: read the four settings
blocks, patch the settings block's fields, send Blastware's sequence
through push_config_raw with the event index, trigger and waveform blocks
as read, re-read.  Refused before sending: monitoring, a value the unit
does not allow, a stale preview.  push_config_raw's pre-check now raises
ImageRefused, so a refused image is audited as nothing sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:46:50 -05:00
serversdownandClaude Opus 5.5 c082f72d62 feat(s4): change a Micromate's settings by serial, audited, schedule-checked
s4_change_settings runs the shared change core with a read-back verdict
for its state (as asked / unchanged / differs).  It reads the active
setup's name (unstripped), the preferences, trigger and setup blocks and
the schedule; patches the setup through micromate.setup_fields; sends
THOR's setup push (0xDA 68 73 82 83 71 72, now enableable) once; reads
the setup back.  Refused before sending: a monitoring unit, a value the
unit does not allow (422), a stale preview (SettingsChanged, 409), and --
shown as 'blocked' in the preview -- the factory setup, a schedule that
loads another setup, an unreadable schedule, or a block SFM has not seen
(ChangeRefused, 409).  s4_settings carries the editable fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:43:03 -05:00
serversdownandClaude Opus 5.5 d0335dbbbd feat(micromate): read the schedule file (read-only)
MicromateProtocol.read_file: 0x94 + path, then 0x48 pages to an
all-zero reply -- THOR's frames byte for byte (UM12947, 2026-09-24),
including params[3] = 1 on 0x94 and params[7] = 1 on the first 0x48.
micromate.schedule parses the 260-byte records (two- and five-entry
schedules from THOR's captures) and names the scheduled starts that
would load a setup other than the active one, ignoring case.  The
client gains the raw (unstripped) active-setup name and the prefs /
trigger / setup content reads a setup push sends back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:37:30 -05:00
serversdownandClaude Opus 5.5 9cfa82117b feat(decode): histogram interval times and peak times (#51 group C)
With the start right, the rest of Blastware's histogram timing follows,
measured on a 2,000-histogram DL2 sample:
- each interval's printed time is its end, start + (i + 1) x interval,
  capped at the stop: 2,308,524 / 2,308,524 rows
  (event_file_io.interval_times)
- each of Tran / Vert / Long / PVS / MicL's peak date and time is that of
  the interval holding its first maximum: 2,000 / 2,000 each.
The checker compares intervals.Time and the ten peak date/time fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 21:35:54 -05:00
serversdownandClaude Opus 5.5 a9bb9f08c0 fix(decode): a histogram's start and stop come from its own event record (#51)
The footer's start runs a second early on 97% of histograms.  Each
histogram carries an event record like a waveform's -- lead 00 28 05 00,
source 04 00, marker fe f5, then start and stop -- and it holds
Blastware's Histogram Start and Stop on 63,490 / 63,490 DL2 histograms.
On all 63,500 there is exactly one, its start 0 or 1 s after the
footer's and its stop 0 or 1 s before; that is the validation rule.
Without a validated record the footer's start stands, as a decode
problem.

Ships with the unit + time + type key (ea2dfc2), without which a
waveform and its histogram at the same second would collide.  Three
tests that pinned the old footer start (one said 'for now', pointing at
#51) now pin the record's, which equals the file's Blastware name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 21:33:32 -05:00
serversdownandClaude Opus 5.5 5ba72740dd feat(codec): one settings codec for both series, on the shared layout
micromate/setup_fields.py: the fields an operator can change (record
mode, sample rate, interval, record time, geophone trigger, Series 3's
range and -- read-only until benched -- alarm, job number and its report
flag, the four notes by slot), the units' own limits from Instantel's
manuals, field-only byte patching (bit fields bit by bit; Series 3's
[26:28] as Blastware writes it; Series 4's CRC recomputed), the
read-back verdict compared by bytes, and the preview revision.

All 11 Blastware compliance writes reproduce from the block before them
(BE11529's first also shows Blastware re-rendering two mic levels
through its dB value; SFM echoes the unit's bytes); Series 4 keypad
fixtures reproduce pairwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:33:01 -05:00
serversdownandClaude Opus 5.5 e24e77bfd0 test: the estimate guard's neighbour is an event of the same type (#51)
Under the unit + time + type key, the test's untyped neighbour no longer
shared the imported waveform's key, so the waveform was stored as its
own row -- the neighbour untouched, which is what the test's name asks.
The guard's job is an estimate landing on another waveform's second, so
the neighbour is now a waveform.  A companion test pins the case the new
key allows: an estimate beside a histogram at its second is stored
alongside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 21:30:51 -05:00
serversdownandClaude Opus 5.5 ea2dfc21b7 feat(db): events are identified by unit + time + type (#51)
The events table was UNIQUE(serial, timestamp): one event per unit per
second.  A unit records a waveform and a histogram in the same second
legitimately -- 209 times in prod's 2026-09-30 store once histograms
carry Blastware's start -- so the key is now (serial, timestamp,
record_type).  Agreed with Brian 2026-11-03.

- Migration 3 rebuilds the table from its own current definition with
  only the key swapped, in one transaction: every column, row and id is
  kept (Terra-View reads rows by id) and the indexes are recreated.
  Migration 1's check no longer mistakes the new key for a missing one.
- The upsert, the estimate guard and the restamp match on the type too.
  The restamp also re-types a file's own row in place: before v0.33.0 a
  row's type came from the filename, and a re-import under the file's
  own type must not add a second row.
- An untyped event still refreshes the untyped row at its second (a
  UNIQUE key treats NULLs as distinct).
- scripts/repair_unknown_serials.py checks the new key.

No time changes yet: that is the next commit, and they ship together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 21:29:46 -05:00
serversdownandClaude Opus 5.5 1bb15573fc feat(s3): assemble a settings read into the 2,090-byte block
Unescape each 1A data frame, take data[11:], drop the one non-content
byte that starts every frame but the last: 2,090 bytes headed by
N = 2090, Series IV's 0x1A layout.  Measured on BE9441's 10-26
recording (12 reads, both frame patterns); the read after each
Blastware write equals the image written.  read_compliance_content is
strict (a missing frame raises) and unjudged (a monitoring unit's
device-info answer comes back for the caller to recognise).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 21:28:04 -05:00
serversdownandClaude Opus 5.5 e3a77e421d docs(spec,plan): phase 5 -- the units' own limits, from Instantel's manuals
Brian: use the actual unit limits, not what has been used in the past.
Trigger 0.005-10 in/s in 0.001 steps (capped by the range), record time
1-90 s (Micromate) or the MiniMate manual's 1 MB table by sample rate
(13 s in Histogram Combo), job number 1-9999.  The read-back reports any
value a unit does not take.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 19:30:07 -05:00
serversdownandClaude Opus 5.5 71609e71ab docs(plan): phase 5 -- changing a unit's settings by serial
Seven tasks: the Series 3 read assembly, one settings codec for both
series, the Micromate schedule read, each series' audited change, the
route (and the legacy write retired), and the page.  Spans measured
from 75,958 Blastware reports.  Bench after the final review, Brian's
go per send.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 18:51:53 -05:00
serversdownandClaude Opus 5.5 dba891d504 docs(spec): phase 5 -- the Micromate schedule check; work hours is next
A scheduled start loads the setup it names, so a change to another
setup would be undone at the next start: read schedule.dat and refuse
that case.  Configurable work-hours recording, without THOR's scheduler
or setup files, is the agreed next project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 18:35:29 -05:00
serversdownandClaude Opus 5.5 e8242aaadc docs(changelog): Unreleased -- group B in the protocol reference
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 18:30:08 -05:00
serversdownandClaude Opus 5.5 19719bdd96 merge: group B in the protocol reference (D.6.9), #50 retracted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 18:29:54 -05:00
serversdownandClaude Opus 5.5 2c4ae8c4ef docs: group B in the protocol reference (D.6.9), #50 retracted
Interval size (k - 40), the stop (footer ts2), frequency = (sample rate
/ 2) / half-period with Blastware's words for N/A, >100 / >200 and
<1.0, and each interval's vector sum with its OORANGE rule.  The old
fixed-512 frequency formula is retracted in place.  CLAUDE.md and the
README roadmap follow: 34 of 88.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 18:29:53 -05:00
serversdownandClaude Opus 5.5 42933f76df docs(changelog): Unreleased -- histogram interval detail, #50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 18:29:00 -05:00
serversdownandClaude Opus 5.5 31231d7e81 merge: a histogram's interval detail -- frequencies (#50), vector sums, interval size, stop (group B)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-11-03 18:28:27 -05:00
serversdownandClaude Opus 5.5 0238e4d3f3 docs(spec): phase 5 -- changing a unit's settings by serial
Brian's intent (UM6047's trigger, notes typos, the backup unit), the
flow, the first-version fields, and what is measured: Series 3's
compliance block has Series 4's 0x1A layout; a whole 1A read assembles
to the 2,090 bytes Blastware writes back (exact on both 10-26 writes);
Blastware writes 00 00 at [26:28] and a per-unit constant after the
block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 18:12:14 -05:00