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
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-05 14:25:31 -05:00
1 parent 9091fe75a9
commit 8d5c16b03b
2 files changed
+101 -12

No files matched your search

+23 -9
View File
@@ -10,7 +10,7 @@ pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as
---
## Where things stand (updated 2026-11-03)
## Where things stand (updated 2026-11-05)
Read this first when picking the project back up.
@@ -45,10 +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-03, run `20261103-213557`):
**47 of 88 fields match on every event**, up from about 6 before v0.33.0.
Everything below on `dev` shares one release and one backfill. Groups A, B
and C are done, which also fixed #50 and #51.
**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.
- 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.
- 🔑 **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
@@ -66,6 +68,14 @@ Read this first when picking the project back up.
- group B (`dev`, D.6.9): interval frequencies, vector sums, size, stop
- group C (`dev`, D.6.10): histogram start and stop from the histogram's
own event record, interval times, and the peak dates and times
- group D (D.6.12): ZC frequency on every record type, peak displacement,
times of peak and the vector-sum time.
- These are **the unit's own values**, stored in the file right after
the event record. Blastware prints them; recomputing from the samples
reached only 46% and 84%.
- Peak acceleration is Blastware's own computation (fitted g 386.2238),
6,522–6,523 / 6,524. The misses are O117I1NK.R70W, whose samples wrap
at the trigger, and S353I5PZ.EP0W Vert (open).
- 🔑 **"Units" means three different things — keep them apart** (reference
D.6.6):
- **Recorded data:** the mic samples and interval peaks in the file, as
@@ -100,10 +110,14 @@ Read this first when picking the project back up.
- ~~**B. Histogram interval detail**~~ ✅ done on `dev`. Frequencies (#50),
per-interval PVS, interval size, stop.
- ~~**C. #51 timing**~~ ✅ done on `dev`.
- **D. Blastware's waveform calculations:** ZC frequency, acceleration,
displacement, time of peak.
- **E. Sensor check results.**
- **F. Monitor log:** probably not in the event file at all.
- ~~**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).
- **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.
- 🔶 **#48 is still open.** The event file's setup block puts the pre-trigger
where the 1A "stable anchor" `be 80 00 00 00 00` sits. In the file, though,
it is **each event's own pre-trigger**, not the setting: 253–256 samples at