feat(export): contract-conformant event_logs event_time and is_active

Reanimator contract v2.13 makes event_logs[].event_time optional
(Reanimator falls back to collection/ingest time) and defines is_active
("still active / not cleared").

- Omit event_time when the event has no source time instead of passing
  collected_at off as the event time.
- is_active=true only from an authoritative active-alarm snapshot: Inspur
  dev_status.log (IDL event ID / SEL sensor at the same instant) and
  component.log fan state (new models.Event.Active). false for Deasserts,
  superseded Asserts in a real Assert/Deassert lifecycle and Inspur
  Warning/Critical Asserts missing from dev_status.log; unset otherwise.
  A missing Deassert is not treated as active: AC loss and BMC resets drop
  them (24C319575: PSU1 predictive failure).
- component.log fan events use source BMC instead of host.
- Request installed_at in the Reanimator contract to date component
  installs from maintenance.log; follow-up in BACKLOG [installed_at].

ADL-072.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Mikhail ChusavitinandClaude Opus 5.5 committed 2026-09-28 13:01:46 +03:00
1 parent 693906ceba
commit 2ce60280c3
10 files changed
+423 -11

No files matched your search

+29
View File
@@ -2101,3 +2101,32 @@ X to Y` records only, emitted as Info events of type `Component Replace` with
- Installation is not written to `status_history`: that field carries health
statuses only, and the BMC logs the SN change after POST, i.e. after a POR
mapout of the same module.
---
## ADL-072 — Reanimator event_logs: no invented event_time, is_active from snapshots only
**Date:** 2026-09-28
**Context:** Contract v2.13 `event_logs[]` has optional `event_time` (Reanimator
falls back to collection/ingest time) and `is_active` ("still active / not
cleared"). The exporter filled `event_time` with `collected_at` and never set
`is_active`; component.log snapshot events were exported as `source=host`.
**Decision:** `event_time` is omitted when the event has no source time.
`is_active` is `true` only from an authoritative active-alarm snapshot:
Inspur `dev_status.log` (matched by IDL event ID or SEL sensor at the same
instant) and component.log fan state (`models.Event.Active`). It is `false` for
Deasserts and for Asserts superseded within a real Assert/Deassert lifecycle,
and for Inspur Warning/Critical Asserts missing from `dev_status.log`.
Otherwise it is unset. A latest Assert with no logged Deassert is not assumed
active: AC loss and BMC resets drop Deasserts (24C319575: PSU1 predictive
failure never deasserted, absent from `dev_status.log`). component.log fan
events use source `BMC`.
**Consequences:**
- Snapshot-state events are exported without `event_time` and with
`is_active=true`.
- Installation time from `maintenance.log` cannot be passed to the Reanimator
timeline under v2.13; contract change requested in
`docs/reanimator-contract-request-installed-at.md`, follow-up in BACKLOG
`[installed_at]`.