Report timeline, acknowledge, and notes #57

Closed
opened 2026-11-13 19:27:59 +00:00 by jfro · 0 comments
Owner

Give each report a history of what happened to it and who did what, with notes from people. Right now a report only has its start, last-observed and resolved times, plus the latest diagnosis. That's not enough to look back on, or to export (#54).

Timeline (on the report's details page, newest at the bottom)

  • Problem events from Triggers:
    • opened (with the triggering facts)
    • escalated or de-escalated (severity from → to)
    • flapped/recovered while held open
    • resolved, and reopened if the fingerprint opens again within the hold window
  • Diagnosis events: queued, started, completed (with its one-sentence summary and a link to the full text) and failed (with its error). Re-runs keep the earlier diagnoses instead of overwriting them.
  • Notifications: what was sent, through which channel, and whether it failed.
  • People's actions: acknowledged, unacknowledged, ignored, un-ignored, silenced (once silences exist), and notes added.

Store these in a report_events table (report_id, kind, at, actor_id nullable, data map). Fill it from where things already happen, rather than recomputing it from other tables.

Acknowledge

  • An Acknowledge button for people. Today acknowledged is only set by Alertmanager silences.
  • Acknowledging a report records who did it and when. Optionally, it stops repeat or escalation notifications until the severity rises above what was acknowledged.
  • It shows on the list as it does now, with the person's name.

Notes

  • A plain text box under the timeline. Notes are markdown, with the author and time shown.
  • A note can be edited or deleted by its author, and the timeline records the edit.
  • Notes are added to the AI's context when it diagnoses or chats about this report: "Jeremy: swapped the SATA cable on 11/14".
  • Notes stay with the report after it resolves. Optional: when the same fingerprint opens again, show "notes from the last time this happened" with a link.

Also

  • History page: filter by "has notes".
  • #54 export includes the timeline and notes.
  • API/MCP: read the timeline and add a note, so the AI can write down what it found or did.

Open questions

  • Backfill events for existing reports from their started_at/resolved_at/diagnosed_at? Leaning yes, as a simple migration.
  • How long to keep events: forever, or the same as reports? (Is there report retention yet?)

Done when

  • Report details show a timeline of problem, diagnosis, notification and people events.
  • People can acknowledge a report and add notes.
  • Notes are included in diagnosis/chat context.
  • Re-running a diagnosis keeps the earlier one.
  • Tests cover the events being recorded at each point.
Give each report a history of what happened to it and who did what, with notes from people. Right now a report only has its start, last-observed and resolved times, plus the latest diagnosis. That's not enough to look back on, or to export (#54). **Timeline** (on the report's details page, newest at the bottom) - Problem events from Triggers: - opened (with the triggering facts) - escalated or de-escalated (severity from → to) - flapped/recovered while held open - resolved, and reopened if the fingerprint opens again within the hold window - Diagnosis events: queued, started, completed (with its one-sentence summary and a link to the full text) and failed (with its error). Re-runs keep the earlier diagnoses instead of overwriting them. - Notifications: what was sent, through which channel, and whether it failed. - People's actions: acknowledged, unacknowledged, ignored, un-ignored, silenced (once silences exist), and notes added. Store these in a `report_events` table (report_id, kind, at, actor_id nullable, data map). Fill it from where things already happen, rather than recomputing it from other tables. **Acknowledge** - An **Acknowledge** button for people. Today `acknowledged` is only set by Alertmanager silences. - Acknowledging a report records who did it and when. Optionally, it stops repeat or escalation notifications until the severity rises above what was acknowledged. - It shows on the list as it does now, with the person's name. **Notes** - A plain text box under the timeline. Notes are markdown, with the author and time shown. - A note can be edited or deleted by its author, and the timeline records the edit. - Notes are added to the AI's context when it diagnoses or chats about this report: "Jeremy: swapped the SATA cable on 11/14". - Notes stay with the report after it resolves. Optional: when the same fingerprint opens again, show "notes from the last time this happened" with a link. **Also** - History page: filter by "has notes". - #54 export includes the timeline and notes. - API/MCP: read the timeline and add a note, so the AI can write down what it found or did. **Open questions** - Backfill events for existing reports from their started_at/resolved_at/diagnosed_at? Leaning yes, as a simple migration. - How long to keep events: forever, or the same as reports? (Is there report retention yet?) **Done when** - Report details show a timeline of problem, diagnosis, notification and people events. - People can acknowledge a report and add notes. - Notes are included in diagnosis/chat context. - Re-running a diagnosis keeps the earlier one. - Tests cover the events being recorded at each point.
jfro added this to the v1.2 milestone 2026-11-13 19:27:59 +00:00
jfro closed this issue 2026-11-14 14:49:43 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/lamplighter#57
No description provided.