docs: where file-only decoding stands, and that prod's ASCII overlay is scaffolding
CLAUDE.md 'Where things stand' now says plainly how prod uses a paired Blastware ASCII report (save_imported_bw overlays its peaks, notes, sample rate and record time onto SFM's decode), that only report-less events run on the decoder alone, and that the overlay is scaffolding to retire at step 3 of the plan. The checker status is brought up to dev: 18 of 88 fields, the remaining groups A-F in the proposed order. README roadmap: the same framing and progress. Protocol reference: - D.3.3: the footer is the file's last 26 bytes; footer[18:24] is not fixed (retracted). - D.6.1: STRT[18] picks the codec. - D.6.3: the job number. - D.6.5: the PVS^2 high word is non-zero above 1.28 in/s (retracted 'reads 0000'); the peak/PVS consistency check; Blastware's Number of Intervals is the monitoring time / the interval. - D.6.7: refreshed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALX2R8pghDaZuti9U7mEE9
This commit is contained in:
1 parent
fcacc8f28c
commit
5a089671e8
3 files changed
+132
-29
No files matched your search
@@ -10,10 +10,27 @@ pair — lives in `../terra-view/docs/tmi-stack.md`, which is also loaded as
|
||||
|
||||
---
|
||||
|
||||
## Where things stand (updated 2026-11-02)
|
||||
## Where things stand (updated 2026-11-03)
|
||||
|
||||
Read this first when picking the project back up.
|
||||
|
||||
- **🔑 Prod still leans on Blastware's ASCII report, and that is scaffolding.**
|
||||
- **How it works today:** when a `_ASCII.TXT` report arrives with a
|
||||
Blastware file, `WaveformStore.save_imported_bw` overlays its peaks, notes,
|
||||
sample rate and record time onto SFM's decode
|
||||
(`event_file_io.apply_report_to_event`).
|
||||
- **Only events without a report** run on the decoder alone: all DL2 events
|
||||
before 2025, and everything SFM downloads itself.
|
||||
- **Why that matters:** the overlay made SFM trustworthy from day one. It
|
||||
also hid how much the decoder could not yet do; until the checker (below)
|
||||
there was no full list of what Blastware reports.
|
||||
- **The goal is full function without Blastware (Brian, 2026-10-29).** The
|
||||
README roadmap has four steps:
|
||||
1. the checker ✅
|
||||
2. complete the file-only decode, one field group at a time
|
||||
3. switch ingest so reports are kept only for checking (retire the overlay)
|
||||
4. stop the watchers forwarding reports
|
||||
- Until step 3, prod keeps the report as truth wherever one exists.
|
||||
- **🔑 The Series-3 decode checker (2026-10-29; v0.33.0).**
|
||||
- **Goal:** SFM produces everything Blastware reports, from the event file
|
||||
alone (spec and plan in `docs/superpowers/`).
|
||||
@@ -28,25 +45,42 @@ 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**.
|
||||
|
||||
**As of v0.33.0, plus the range fix on `dev` (`057df47`, 2026-11-02):**
|
||||
- ✅ **Match on every event:** sample rate, record time, pre-trigger, notes,
|
||||
event type (#41, from STRT[18]), and geophone range (`dev`).
|
||||
**Where the decoder stands on `dev`** (2026-11-03, run `20261103-121047`):
|
||||
**18 of 88 fields match on every event**, up from about 6 before v0.33.0.
|
||||
The four `dev` fixes below share one release and one backfill.
|
||||
- ✅ **Match on every event:**
|
||||
- sample rate, record time, pre-trigger, notes and event type (v0.33.0)
|
||||
- geophone range, job number, event times (6,524 / 6,524) and histogram
|
||||
start dates (63,518 / 63,518) — `dev`
|
||||
- ✅ **Geophone samples** are exact on **6,524 / 6,524** waveforms in every
|
||||
year (`dev`). v0.33.0 had 6,491: the 33 others were on the 1.250 in/s
|
||||
range, 8× high under SFM's old Normal-range assumption.
|
||||
- ✅ **Histogram PVS** = the stored per-interval PVS²: 69,952 / 70,042.
|
||||
- ✅ **Mic: one count = 0.25 Pa,** with Blastware's dB offset at 81.9384. It
|
||||
fails on only a few dozen events.
|
||||
year (`dev`; v0.33.0 had 6,491, its 33 others being Sensitive-range events
|
||||
read 8× high).
|
||||
- ✅ **Histograms** decode to Blastware's own interval table on every DL2
|
||||
file: Tran / Vert / Long interval peaks have 0 mismatches (`dev`).
|
||||
- The codec is now chosen by STRT[18]. The waveform codec had been
|
||||
claiming 2018 5 s histograms.
|
||||
- The sub-minute layout check now tests peak ≤ PVS ≤ √3·peak.
|
||||
- Blastware's "Number of Intervals" is the monitoring time ÷ the interval:
|
||||
a carve-out, 8 events.
|
||||
- ✅ **Histogram PVS** = the stored per-interval PVS²: 69,989 / 70,042.
|
||||
**Mic:** one count = 0.25 Pa, dB offset 81.9384; a few dozen stragglers.
|
||||
- ❌ **Open:**
|
||||
- histogram start times are 1 s early (#51)
|
||||
- 35 sub-minute (5 s / 2 s) histograms decode wrongly, plus 2 one-minute
|
||||
no-mic histograms (`R352HFZ7`-shaped, likely a separate cause)
|
||||
- 26 histogram start dates are a day off
|
||||
- the per-interval PVS is not stored
|
||||
- histogram start times are 1 s early (#51; fixing it moves every stored
|
||||
histogram by 1 s, and the event key is (serial, time), so it needs a
|
||||
decision first)
|
||||
- the mic stragglers: ~20 one-minute histograms with an interval or two off
|
||||
- Blastware prints `OORANGE` when the vector sum alone exceeds the range
|
||||
(a carve-out to prove)
|
||||
- ⬜ **Not read yet:** job number, ZC frequency, acceleration, displacement,
|
||||
time of peak, sensor check, battery, calibration, units, monitor log.
|
||||
- ⬜ **Not read yet, in the order proposed** (2026-11-03):
|
||||
- **A. Setup fields:** trigger source and levels, stop mode, mic type,
|
||||
display units, firmware version, serial number, calibration, battery.
|
||||
- **B. Histogram interval detail:** per-interval frequencies (#50: they
|
||||
assume 1024 sps), per-interval PVS, interval size, stop time.
|
||||
- **C. #51 timing:** start time, per-interval times, peak times.
|
||||
- **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.
|
||||
- 🔶 **#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
|
||||
|
||||
Reference in new issue
Block a user