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
This commit is contained in:
1 parent
4bc669df4d
commit
35bac40dd5
3 files changed
+153
-10
No files matched your search
@@ -31,6 +31,17 @@ Read this first when picking the project back up.
|
||||
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.
|
||||
- **🔑 Monitor logs (.MLG) and each unit's timeline (2026-11-13, `feat/mlg-import`).**
|
||||
- **What:** every unit sends an `.MLG` at every call-in, in every mode. SFM reads it
|
||||
(`minimateplus/mlg_file.py`, reference D.4) and keeps each unit's monitoring timeline:
|
||||
sessions, gaps and what they mean, clock steps, and the call-ins, including calls that
|
||||
left no file.
|
||||
- **Why (Brian, 2026-11-09):** shot reports need proof that a unit which did not trigger was
|
||||
monitoring. Continuous-mode units send no file on a quiet day. Outage history is the
|
||||
second use.
|
||||
- **Spec:** `docs/superpowers/specs/2026-11-09-mlg-unit-timeline-design.md`.
|
||||
- **Not yet:** the watcher still does not forward `.MLG`s (its repo, Brian's call), and
|
||||
Terra-View shows none of it.
|
||||
- **🔑 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/`).
|
||||
@@ -1859,10 +1870,16 @@ GET /db/monitor_log?serial=BE11529&from_dt=&to_dt= ← monitoring intervals
|
||||
GET /db/sessions?serial=BE11529&limit=50 ← ACH call-home sessions, newest first
|
||||
PATCH /db/events/{id}/false_trigger?value=true ← flag/unflag false triggers
|
||||
GET /db/device_commands?serial=UM20147&limit=100 ← start/stop audit trail (sent, states), newest first
|
||||
POST /db/import/mlg_file?serial=&call_in=true ← Blastware .MLG upload (form field mtimes = JSON {name: unix s UTC})
|
||||
GET /db/units/{serial}/timeline?from_dt=&to_dt= ← sessions, gaps (+ meaning), clock steps, call-ins, from .MLGs
|
||||
GET /db/units/{serial}/monitoring_at?at= ← monitoring / not_monitoring / unknown at a unit-clock time
|
||||
GET /db/mlg_records?serial=BE8081&from_dt=&to_dt= ← raw .MLG records, oldest first
|
||||
GET /db/mlg_files/{id} ← the original .MLG, byte for byte
|
||||
```
|
||||
|
||||
DB file: `bridges/captures/seismo_relay.db` (default; override with `--db-path` at startup).
|
||||
All DB endpoints are read-only except `PATCH /db/events/{id}/false_trigger`.
|
||||
All DB endpoints are read-only except `PATCH /db/events/{id}/false_trigger` and the
|
||||
`/db/import/*` uploads.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in new issue
Block a user