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
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-06 13:23:39 -05:00
1 parent f222ea9e80
commit a80ea759e4
2 files changed
+74 -11

No files matched your search

+15 -7
View File
@@ -45,12 +45,12 @@ Read this first when picking the project back up.
- **Byte layouts** of every field read from the file:
`docs/instantel_protocol_reference.md` Appendix **D.6**.
**Where the decoder stands on `dev`** (2026-11-05, run `20261105-140021`):
**59 of 88 fields match on every event**, up from about 6 before v0.33.0 and
47 before group D.
**Where the decoder stands on `dev`** (2026-11-06, run `20261106-125854`):
**71 of 88 fields match on every event**, up from about 6 before v0.33.0,
47 before group D and 59 after it.
- Groups A, B, C and D part 1 shipped in v0.34.0 (#50, #51).
- D part 2 (the unit's own summary) is on `dev` and owes the next release
a backfill.
- D part 2 (the unit's own summary) and E (the sensor check) are on `dev`
and owe the next release a backfill.
- 🔑 **Events are keyed unit + time + type:** `UNIQUE(serial, timestamp,
record_type)` (#51, Migration 3 in `sfm/database.py`, `dev`).
- A waveform and its histogram may share a second: 209 times in prod's
@@ -77,6 +77,14 @@ Read this first when picking the project back up.
(fitted g 386.2238): 6,522–6,523 / 6,524. The unit stores its own
too, which Blastware ignores. The misses are O117I1NK.R70W, whose
samples wrap at the trigger, and S353I5PZ.EP0W Vert (open).
- group E (D.6.13): sensor check frequency, ratio, mic amplitude and
result, every record type. Also the unit's own, in each sensor-check
record's header. "Check" is the unit's status code, not a limit SFM can
recompute.
- 🔑 **The tail of every event file is one record chain** (D.6.13):
event record → unit summary → sensor checks → footer, each
`[length][id][payload]`. It ends exactly at the file's end on all 70,041
DL2 files, and SFM reads none of it otherwise.
- 🔑 **"Units" means three different things — keep them apart** (reference
D.6.6):
- **Recorded data:** the mic samples and interval peaks in the file, as
@@ -114,8 +122,8 @@ Read this first when picking the project back up.
- ~~**D. Blastware's waveform calculations**~~ ✅ done. ZC frequency,
displacement and time of peak are the unit's own (D.6.12); acceleration
is Blastware's.
- **E. Sensor check results.** Probably records `0x3c` / `0x3d`, which
follow the unit's summary (inferred, D.6.12).
- ~~**E. Sensor check results**~~ ✅ done (D.6.13). Plus the traces of a
unit without a mic, which the trace decoder had been dropping.
- **F. Monitor log:** probably not in the event file at all. Lead, not
measured: O117I1NK's report prints its log as the event record's
start – stop.