68 Commits
Author SHA1 Message Date
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 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 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 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 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 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
serversdownandClaude Opus 5.5 2e1c2ba21f docs: phase 4 bench -- call-home on/off on both series, idle and monitoring
Benched 2026-11-03 on UM20147 and BE9441 (each on its own modem, one send per
go): idle, a no-op, off and on all acked, read back and confirmed on each unit's
menu; UM20147 accepts 0x00 at [5].  Monitoring, neither series takes a change: a
MiniMate answers 0x2C with its device-info block, a Micromate acks and ignores
('Feature disabled while monitoring').  Series 4 [118:120] is a function of the
block's content -- XOR 0x6D7D per bit-0 flip on two units, not a nonce.  A stop's
call-in reached THOR when the ring followed the ack.  UM20147's clock is an hour
ahead (DST).  Spec, both protocol references (Series III: a CRLF row), CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-03 15:32:51 -05:00
serversdownandClaude Opus 5.5 9820a5389f docs(spec): phase 4's final review -- what it caught before the bench
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-02 17:24:13 -05:00
serversdownandClaude Opus 5.5 3e1d42e04b docs: phase 4 built -- call-home enable/disable by serial; bench questions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-02 17:07:36 -05:00
serversdownandClaude Opus 5.5 5b37ea22cc docs(plan): phase 4 -- call-home enable/disable by serial, both series
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-02 16:47:56 -05:00
serversdownandClaude Opus 5.5 8123d75d72 fix(sfm): page polish from the 1c bench -- #6, #10, #12, #16 (Batch 2)
- #6 Config tab by serial: the empty legacy edit form stays hidden (settings
  are read-only until phase 5); the settings box shows from the start, 'Not read
  yet', and a different unit's settings are never left on screen.
- #10 A start/stop that went out but was not confirmed is no longer called
  'failed'.  The route now adds 'sent' (acknowledged / unknown) and 'audit_id'
  to a ChangeUnconfirmed -- same status, same message -- and the page says
  'Start monitoring not confirmed: <what happened, audit record>'.
- #12 Device tab by serial: the empty legacy Compliance/Project tables are
  hidden behind a pointer to the Config tab; a Micromate's Firmware card reads
  'Thor line (version not read)' (its version string is in 0x01, undecoded).
- #16 A 504 with nothing sent adds: the connection opened, so the modem is
  reachable -- another program (THOR or Blastware) may be holding the line, or
  the unit is busy.  Measured 2026-10-29: THOR polling leaves SFM a 0-byte 504.

New logic lives in sfm/static/device_routing.js (firmwareLabel,
deviceErrorText, changeErrorText, serialPanes) under Node tests; the page glue
in sfm_webapp.js only applies them.  Checked in jsdom against the real page
(served at a fake origin, /static from disk): all four, legacy mode unchanged,
no script errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-02 16:22:22 -05:00
serversdownandClaude Opus 5.5 f98c4ff129 fix(sfm): a MiniMate download stores what its own file says, at the range it was recorded at (#17)
With the decode checker's fixes merged (histogram vector sum 625bc39, mic psi
5644dbd, the file's geophone range 4844135), the event file reads everything
Blastware reports.  So a live download's row and samples are now the file's:
peaks, vector sum, mic -- and the geophone range from the file's own setup
block, the setting when the event was recorded.  The live 1A is the unit's
setting now, which may have changed since; it is the fallback only when the
file's range does not read.

Measured: K557J1KB.RQ0W (Sensitive waveform) downloaded with its settings unread
-- e.g. while monitoring -- stores 0.019 / 0.055 / 0.019 and PVS 0.061,
Blastware's report; its .h5 read 0.155 / 0.44 (8x) before.  M010HR6K.OA0H
(Sensitive histogram) likewise.  K441LTON.900 (Normal) stores Blastware's
values whatever the unit's current settings say, and its mic is 5.80e-4 psi
(Blastware: 106.0 dB(L)).

The unit's 0C summary stays the download check, and fills in the channel peaks
and vector sum only when the file's range does not read (never seen in DL2) and
the unit is not confirmed Normal -- the impossible-vector-sum guard kept there.
The mic is the file's always.  Closes the range part of open finding #17.

Store consequence: new live downloads only; no backfill, no migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-11-02 13:48:59 -05:00
serversdownandClaude Opus 5.5 0a87d85202 fix(sfm): a MiniMate download's peaks come from its file when the unit confirms Normal range
Since the decode checker's histogram-PVS fix (625bc39, merged 6945009) the file
reads a histogram's vector sum as the unit stored it: K441LTON.900 stores
0.200 / 0.385 / 0.255 and a vector sum of 0.3852, as Blastware's report (was
0.503).  The 0C summary, read at fixed offsets, can shift (BE9441 read 0 and
-0.0, bench #4) -- and a shifted value can look plausible and pass the
impossible-value guard.  So the row now takes the file's channel peaks and
vector sum.

Only when the unit's settings confirm Normal range: the file reader computes
every peak as if the range were Normal (_GEO_SENSITIVE_FS_INS is defined but
unused), so a Sensitive unit's file peaks are 8x off (the checker's 33
waveforms).  For Sensitive, or a range not read (a monitoring unit's 1A has no
settings), the unit's own peaks stand, as before.  The mic is always the
unit's: the file still reads it as 0.  The 0C peaks remain the download check.

Store consequence: new live downloads only; no backfill, no migration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-31 00:17:57 -04:00
serversdownandClaude Opus 5.5 1cce2fcf63 docs: Batch 1 final-review fixes -- reconnect wake, dedup by name, the write encoder's refusal
- Spec: #1, #8, #9 carry their review follow-ups (a72d3a9, 3a1d34a, dbd8a91);
  new open finding 17 (a monitoring MiniMate's 1A has no range, so a download
  then stores Normal-scaled samples; ':S338.17' setup name; no .a5.pkl kept).
- Series-III reference (CRLF kept): the 2026-10-29 row records that the write
  encoder was not moved and now refuses a patch that would not read back.
- CLAUDE.md: the three fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 23:57:13 -04:00
serversdownandClaude Opus 5.5 1626e521ae docs: 1c bench Batch 1 -- #1, #8, #9 fixed; #15 retracted; the 1A layout after unescaping
- Spec (Left open by the 1c bench): #1 b320a53, #8 9492e49, #9 ce441a0, #2 via the
  dev merge 342c696; #15 retracted in place (sent NULL = unknown, by design).
- Series-III reference: a 2026-10-29 row -- the SUB 1A settings fields read after
  unescaping (mode -7, rate -6, interval -4, record time +6), the old
  'anchor-7 constant 0x10' was the escape before 04 at 1024 sps, the channel
  block stays on raw bytes (open: a float containing an escapable byte), and a
  monitoring BE9441 answers 1A with its device-info block.  CRLF kept.
- CLAUDE.md: Batch 1 status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 23:28:39 -04:00
serversdownandClaude Opus 5.5 0dbd0b506d docs(plan): 1c bench fixes, Batch 1 -- #1 settings decode, #9 read-back reconnect, #8 downloads via the file import path; #15 retracted
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 23:08:56 -04:00
serversdownandClaude Opus 5.5 342c69602d merge: dev into feat/series4-sfm-parity -- v0.32.0, #42, #47/#49, #44/#45, the S3 decode checker
Brings the branch up to dev (41 commits) before the 1c bench fixes, which
touch code dev changed: the histogram reader (#47/#49, bench finding #2), the
v0.32.0 event-time rules, the Blastware file's setup-block fields (#44/#45),
and the decode checker for verifying stored S3 downloads.

One conflict: the top of the Series-III reference's change table -- both sides
added rows; kept all, in date order, CRLF preserved.  CLAUDE.md, README,
blastware_file.py, models.py and database.py merged cleanly.  Suite: the known
16 failures only (15 test_bw_ascii_report, test_save_imported_bw_without_report_
works_unchanged, which also fails on dev); 1237 passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 22:51:42 -04:00
serversdownandClaude Opus 5.5 335f70ff46 docs: the Micromate line hold stays for now; SFM handling call-ins is the long-term fix
Brian, 2026-10-29: not expected to be a problem in practice.  Settles the 1c
ring-path merge gate; Run B stays open, not blocking.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 21:02:20 -04:00
serversdownandClaude Opus 5.5 7491cd4b6f docs: the 1c bench pass and the ring-path results (2026-10-29)
- Spec: the 1c bench pass on BE9441 and UM20147, each on its own modem, and
  its 16 findings (a new 'Left open by the 1c bench' section).  Ring-path
  results, measured: with THOR's watchdog off a call-home reaches THOR when
  nobody holds the line (Run 0, via ListenerAchTcp) and is lost when SFM holds
  it (Run A: the unit times out and does not retry); with THOR polling, SFM gets
  no reply and THOR is undisturbed (A2, step 1).  Decision owed before merge:
  the Micromate line hold.
- Micromate reference: retracts 'ListenerAchTcp never used' in place (it
  accepted tonight's call-home; port 12345); a call-home that rings on another
  receiver's connection is lost; a second TCP connection while THOR holds the
  line is accepted but silent.
- CLAUDE.md: 1c status, the open decision, THOR's log location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 20:49:28 -04:00
serversdownandClaude Opus 5.5 6bdd140c29 docs(plan): the Series 3 decode checker, task by task -- and T438HGTZ is not truncated
Eight tasks: the XML report parser, SFM's side from the bytes alone, the
field-by-field comparison, carve-outs (saturation first), the parallel
runner, the summary and grouped detail report, run-to-run changes with a
one-event view, and the first full run checked against what is known.

While pinning the plan's test values on real files: T438HGTZ.B30W, called
"3 samples short" by the setup-field harness, matches Blastware exactly.
Its Tran, Vert and MicL end 3 samples before Long, and Blastware's own
sample table does the same -- its last three rows carry only the Long cell.
The harness compared Tran's length with the table's row count.  The spec
now says so, and the plan compares samples row by row by running channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-10-29 18:30:08 -04:00
serversdownandClaude Opus 5.5 af703808db docs(spec): the Series 3 decode checker -- SFM's file-only decode against Blastware's XML reports
The first of four pieces toward SFM producing everything Blastware reports
from the event file alone: compare every field, sample and histogram
interval with DL2's 70,042 _XML.XML reports (2016-2026), report what
matches, what doesn't and what SFM can't produce yet, grouped for
diagnosis, run after run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
2026-10-29 17:47:34 -04:00
serversdownandClaude Opus 5.5 2560ef4586 docs: THOR's watchdog interval is a setting; the ring-path test varies it
- micromate reference: the watchdog can check every 5 s, hourly or never
  (Brian, operator-reported).  The 10-14 "reconnects continuously" describes
  that THOR's setting, not fixed behaviour; whether a check holds the line,
  and how a call-home reaches THOR with the watchdog off, are unmeasured.
- spec, ring-path test: the old setup ("a unit THOR is not otherwise
  watching") would not test the production path, since THOR receives a
  call-home on its own connection.  Revised: UM20147 as a THOR test unit; Run 0
  baseline with the watchdog off; Run A with SFM holding the line; Run A2 and
  Run B at the fleet's watchdog setting; after the 1c bench pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 13:12:29 -04:00
serversdownandClaude Opus 5.5 073284fc88 docs: phase 1c -- the webapp by serial, and the Series-3 guard on legacy writes
- CLAUDE.md: a 1c entry under Where things stand (serial mode, what follows
  the unit's own answer, writes off until phases 4-5, the Node-run page tests)
  and the legacy-route guard in the REST API notes, with why the stop tools
  are exempt.
- Spec: the 1c build status; the ring-path Runs A/B are still owed before
  serial mode is used on a unit that calls home to THOR; which parked 1c items
  the page settles (CORS: same origin; the S4 mic is not shown).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 12:01:39 -04:00
serversdownandClaude Opus 5.5 c3746a6a01 docs(spec): park event deletion with the future call-in receiver
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-29 11:38:05 -04:00
serversdownandClaude Opus 5.5 eecabc76eb docs(plan): phase 1c -- the webapp by serial, and the wrong-series safeguards
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-28 23:20:26 -04:00
serversdownandClaude Opus 5.5 02d8517ebd docs(spec): park the MiniMate speed-ups, measured -- after 1c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-28 23:16:50 -04:00
serversdownandClaude Opus 5.5 20ea61e0e9 fix(minimateplus): push_config_raw checks every block before the first write goes out (#46 review)
Review of b5037b0 (measured on 12 recorded SFM compliance reads): the read
keeps three escape bytes from its reply headers, so every real config image is
refused by write_image -- correctly, but only after 68 and 73 had been sent,
with a message saying nothing was.  All four blocks are now checked first; the
test feeds the block exactly as SFM's read produces it and asserts no frame is
sent (two went out without the check).

Config push stays unusable on purpose: fixing that read alone would let the
compliance encoder write some fields to the wrong bytes (e.g. 4,096 sps as
4,112) while the image still passes.  The rework -- logical read, encoding at
measured offsets with #48, a diff check, N pinned per SUB, an idle check, the
start/stop safeguards on POST /device/config -- is recorded in the spec and on
#46.  Start/stop frames are unchanged (verified byte-identical by the review).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-27 03:17:34 -04:00
serversdownandClaude Opus 5.5 a7f581f66a docs(spec): the persist_download alignment follows what v0.32.0 shipped -- event-record times, the estimate guard
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-27 00:20:54 -04:00
serversdownandClaude Opus 5.5 98def4aae0 docs(spec): a stop starts a call-home on a unit with auto-call-home -- unmeasured on Series 3
Brian: stopping by command or keypad with ACH enabled makes the unit call home
and upload events + MLG, which can take minutes.  Fits UM20147's 0x01 after a
stop (10-25).  Owed: measure a MiniMate stop with ACH on, through the bridge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-27 00:17:29 -04:00
serversdownandClaude Opus 5.5 d7e65f5d15 docs: MiniMate start through SFM verified on BE9441 -- the start/stop bench check is complete
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-27 00:13:37 -04:00
serversdownandClaude Opus 5.5 6f2acc79e6 docs(spec): owe persist_download an alignment with dev's waveform-time restamp before the merge
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-26 19:16:25 -04:00
serversdownandClaude Opus 5.5 1da3083665 docs: the MiniMate histogram and stop checks are done; start is still owed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-26 19:10:04 -04:00
serversdownandClaude Opus 5.5 8acb9512a9 fix(minimateplus): size the 5A chunk cap from STRT, refuse a misread STRT, TERM only a tail
Follow-ups from the review of 887e75d (verdict: keep, with fixes; no critical).

- The cap: a caller's max_chunks (client.py passes 128) now bounds only a walk
  whose end is unknown.  With STRT it cut every event past ~66 KB short --
  2,545 of 63,500 archived histograms are bigger (the review's count, DL2).
  Strict raised; legacy sent a TERM for most of the event, or a bare ValueError.
- A STRT claiming less than one 0x200 chunk, or more than 4 MiB (a sanity bound,
  not a measured limit), is refused as a misread, in both modes -- once a bare
  ValueError and a 500.
- TERM is sent only for a true tail (< 0x200).  After an early end the legacy
  walk returns what arrived and sends none.
- build_5a_request wraps build_bw_frame; the old 5A helpers are marked
  superseded (kept for tests/test_5a_protocol.py) and their imports dropped.

Tests: all 8 recorded events (were 4) walk exactly as Blastware and rebuild its
own files; an end key holding escaped bytes; a 300 KB event past a 128 cap; both
misread-STRT refusals; the 1A frames BE9441 answered post-fix; the checksum
vectors retargeted.  Mutants the review saw survive (no STRT un-escape; a
standard-request escape revert) and 3 new ones are each caught.

Measured on the way: a reply's checksum is SUM8 of its unescaped payload,
748/748.  The 'S3 checksums frequently fail' note was the parser summing its
own kept escape bytes; noted, parser unchanged.

Docs: the crossing count corrected to four (events 1, 3, 5, 7); the remaining
stale 5A sections in CLAUDE.md annotated; the write-frame suspicion recorded as
inferred only.  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-26 15:16:10 -04:00
serversdownandClaude Opus 5.5 6f31eca366 docs: the 64 KB page bug is fixed; the 5A 'non-standard frame' model retracted in place
CLAUDE.md: the KNOWN BUG entry marked fixed (887e75d) with what settled it, and
retraction notes under the 5A sections that described the misreading (partial
stuffing, offset_hi 0x10 raw, 11-byte params, metadata pages 0x1002/0x1004).
Series-III reference: a 2026-10-26 (3) row.  Spec: the MiniMate check updated.
Code comments that called the page bug open, updated; the adapter's struct.error
mapping kept as a defence, its message and test no longer naming the old bug.

Verified live on BE9441 the same day: all 8 events downloaded by serial, the 4
that cross a 64 KB page included, each whole and matching the unit's own peaks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-26 14:44:11 -04:00
serversdownandClaude Opus 5.5 465bc704dd test+docs: SFM's MiniMate downloads are byte-identical to Blastware's; the 64 KB bug narrowed
Brian's Blastware downloads of BE9441's 20 events give ground truth.  SFM's
re-run downloads of events 0, 1, 3, 4 and 10 are byte-identical to Blastware's
own files; imported first through the watcher route, the same events download
as already_stored (no duplicate rows -- the unit's 0C and Blastware's file agree
on serial + timestamp).  Fixtures: Blastware's P00/Q10 (now asserted equal to
SFM's builds) and QZ0/T80, the two page-crossing events, as byte-exact targets.

The 64 KB page bug, narrowed by a read-only test walk: carrying the page byte
addresses the first chunk in page 0x12 (answered), but the next request carries
a raw 0x03 inside its params (counter 0x032c) and gets no reply.  Pages after
0x11 have such counters; 0x11 does not (event 1 skips 0x0000-0x05FF).  Needs a
Blastware wire capture of event 2 or 19 (recorded in CLAUDE.md, the Series-III
reference and the spec).  No code change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-26 12:15:50 -04:00
serversdownandClaude Opus 5.5 1ded70fcd9 docs: the MiniMate re-run -- every in-page event verifies; the 'reboot' was our bare 0x02 checksum
Series-III reference: a 2026-10-26 row (5A checksum escape, measured), and the
2026-10-25 row's guessed cause of the mid-download reboot (battery, firmware)
retracted in place -- it was our request.  CRLF kept.  Spec: the re-run, item
by item, and what is still owed.  CLAUDE.md: the phase-1b bullet brought up to
date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-26 01:19:46 -04:00
serversdownandClaude Opus 5.5 f34f5c3376 test(minimateplus): pin the BE9441 bodies and files byte for byte, and the TERM's header skip
Re-review of 64273c0: nothing pinned the TERM skip -- a TERM cut one byte off
loses a byte after the END record, invisible to every decode and peak check.
Golden sha256 of both fixtures' bodies and written files (event 0's file is
byte-identical to the one SFM stored at the bench before any fix; event 1's is
the bench's 25,810 bytes plus the 2 recovered), and a TERM moved to 0x1002.
The clipped-blast test now sits two steps past full scale (32032 counts), so it
needs the carve-out.  Spec: the TOOL_VERSION reason corrected (no stored file
is affected); a MicL-only waveform is now refused -- failing safe, bench-check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 19:01:36 -04:00
serversdownandClaude Opus 5.5 64273c07d3 docs(spec): the MiniMate fixes' review -- the changelog's operational note, a behaviour change, a bench-first item
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 18:52:42 -04:00
serversdownandClaude Opus 5.5 3898d03236 docs: the first MiniMate bench run -- four bugs found, what remains of the check
Series-III reference: the 0x15 serial is a C string (BE9441's "BE9441\x00?"),
A5 replies echo their address at data[2:6] (metadata pages only on the
event-1 walk), the unit boots on serial-port open (banner ~3 s, answered 8.8 s
after a reboot's banner), one mid-download reboot, and 24 index entries vs 20
listed events (inferred: monitor-log entries).  Spec: the MiniMate check's
first run, item by item, and what is still owed.  CLAUDE.md: the phase-1b
"unproven" line retracted in place, with the four bugs and the re-run owed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 18:19:14 -04:00
serversdownandClaude Opus 5.5 4b911b1c0c docs: the first commands this project originated -- start/stop on UM20147
Bench, 2026-10-25, Brian's go per send: 0x96 acked in 464 ms and read back
monitoring at the first 2 s poll (during the sensor check); 0x97 acked in
116 ms, then 0x49 read a new value 0x01 for ~18 s (inferred: the unit's
call-home attempts after a stop) before idle; two stops to an idle unit acked
in 10 ms and changed nothing.  Retracts "no command has ever been originated"
in place in CLAUDE.md and the reference's untested list; answers the spec's
stop-while-stopped question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-25 15:56:18 -04:00
serversdownandClaude Opus 5.5 b1c87ecccd docs(spec): what the phase 3 review left open, and why
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-23 19:36:36 -04:00
serversdownandClaude Opus 5.5 144d3779a1 docs(plan): phase 3 -- start/stop monitoring, the first live write, through the safety layer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-23 00:47:12 -04:00
serversdownandClaude Opus 5.5 c6f7b5c031 docs(spec): the ring cool-down is test-first -- bench procedure for the ring path and retries
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-23 00:20:08 -04:00
serversdownandClaude Opus 5.5 75b7694983 docs(spec): phase-3 write preconditions and the measured Series-3 verdict
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-22 17:48:52 -04:00
serversdownandClaude Opus 5.5 2a6acae259 docs(plan): Series-4 write path phase 2 -- encoder, opcode gate, write plans, dry run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-22 00:14:30 -04:00
serversdownandClaude Opus 5.5 7a6c74266b docs: phase 1b re-review residuals -- bench scope gains the already-stored check, parked items corrected
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
2026-10-21 17:59:25 -04:00