πͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(agents): add incident-alert-tickets skill and wire investigation skills to it (#15150)
Niklas Semmler50269e7a8ea6
diff --git a/.agents/skills/datadog-query-recipes/SKILL.md b/.agents/skills/datadog-query-recipes/SKILL.mdindex 2f3eed32a4..33f553e42b 100644--- a/.agents/skills/datadog-query-recipes/SKILL.md+++ b/.agents/skills/datadog-query-recipes/SKILL.md@@ -60,6 +60,10 @@ data domain you need: traces, logs, metrics, and visualizations.- Use [`weekly-production-review`](../weekly-production-review/SKILL.md) whenthe user asks for a weekly engineering overview of production bugs, pages,and incidents.+- Use [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md) when the+ research is anchored to a named production alert or monitor: look up+ documented causes before measuring, and record new ones only after human+ approval.- Use [`linear-bug-triage`](../linear-bug-triage/SKILL.md) only after a humanapproves sharing measured findings in Linear.diff --git a/.agents/skills/debug-issue-with-datadog/SKILL.md b/.agents/skills/debug-issue-with-datadog/SKILL.mdindex 27c7eefe77..4e66395d3e 100644--- a/.agents/skills/debug-issue-with-datadog/SKILL.md+++ b/.agents/skills/debug-issue-with-datadog/SKILL.md@@ -42,6 +42,10 @@ supports them.the issue *and* its comments via the Linear MCP β the description is oftenupdated inline as triage proceeds. For a GitHub issue, use `gh issue view`.For pasted text, treat it as the description.+ If intake contains an alert identity (a Datadog monitor ID or title, an+ incident.io alert/INC reference, or an on-call page), first apply+ [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md) β a+ documented cause section may resolve the investigation before any sweep.2. **Scope the sweep.** From the intake, pick the affected subsystem and timewindow. Use [`references/repo-debug-map.md`](references/repo-debug-map.md)@@ -71,6 +75,11 @@ supports them.7. **Deliver.** Default: print the analysis in chat. If the user asked for it,also save under the workflow they specified (file, Linear comment via, etc.).+ If the investigation was anchored to an alert identity, also offer the+ human-gated write-back from+ [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md): append the+ established root cause as a dated cause section, or create the monitor's+ ticket.## Datadog MCP Usage Notes@@ -110,6 +119,9 @@ do not invent root causes.## Cross-References+- Per-monitor knowledge base β look up documented causes before the sweep,+ record new ones after (human-gated):+ [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md)- Production telemetry query recipes, tenant/public API usage, and queueconsumer measurements:[`datadog-query-recipes`](../datadog-query-recipes/SKILL.md)diff --git a/.agents/skills/incident-alert-tickets/SKILL.md b/.agents/skills/incident-alert-tickets/SKILL.mdnew file mode 100644index 0000000000..4fd6c3f7d8--- /dev/null+++ b/.agents/skills/incident-alert-tickets/SKILL.md@@ -0,0 +1,122 @@+---+name: incident-alert-tickets+description: |+ Look up, compare against, and (after human approval) update the Linear+ incident-alert knowledge base: one ticket per production alert/monitor,+ labeled `incident-alert`, with one dated cause section per distinct root+ cause. Use whenever an investigation is anchored to a named alert identity β+ a Datadog monitor ID or title, an incident.io alert/INC reference, or an+ on-call page β both before debugging from scratch (a documented cause may+ already answer it) and after establishing a new root cause (record it).+---++# Incident Alert Tickets++Incident-alert tickets turn on-call debugging into searchable knowledge: one+Linear ticket per production alert/monitor, one dated section per distinct+root cause. This skill owns lookup, comparison, and the human-gated+write-back; calling skills own the investigation itself. The team SOP is the+Linear document titled "Incident Alert Tickets".++## When to Apply++Apply whenever the task is anchored to an **alert identity**:++- a Datadog monitor ID or title,+- an incident.io alert or INC reference,+- an on-call page ("we got paged for X").++Do not try to detect "incident mode" β the presence of a named alert is the+condition, because the monitor is the ticket key. When an alert identity is+present, the lookup is mandatory; recording is offered after the investigation+and gated on human approval. A customer report or code question with no alert+identity skips this skill.++When multiple alerts fire together (a cascade), run lookup, compare, and+classify for **each** alert identity β every monitor has its own ticket. If+one root cause explains several alerts, write the full cause section on the+monitor closest to the cause and propose a short dated section on the other+monitors' tickets that links to it.++## Ticket Contract++- One ticket per monitor (per env when monitors are per-env), titled+ `[ENV] <Monitor title>`, in the Engineering (LFE) team, carrying the+ `incident-alert` label. The label set is the knowledge base.+- The description opens with an alert header: monitor ID, trigger condition,+ and how it surfaces (incident.io urgency, auto-resolve behavior).+- One dated section per distinct root cause, separated by `---`:++ ```markdown+ ## YYYY-MM-DD β <short cause name>++ **Recognize it:** <signals that identify this cause: log patterns, span+ filters, metric shapes, affected routes>++ **How urgent?** <impact, auto-recovery behavior, escalation threshold>++ **Fix:** <positive actions only β every "do not X" needs a working+ alternative; verified levers, not speculation>+ ```++- Cause sections are append-only: never rewrite or delete an existing section;+ new knowledge gets a new dated block.+- Keep each cause section to roughly one screen.+- A distinct problem discovered during the investigation that is *not* a cause+ of this alert gets its own ticket (bug or incident-alert), cross-linked β do+ not mix it into this ticket's cause sections.++## Lookup++1. List Linear issues carrying the `incident-alert` label.+2. Match on monitor ID first (tickets carry it in the alert header), then on+ monitor title and env.+3. Read the matched ticket's cause sections and comments.++## Compare and Classify++Compare the current evidence against each cause section's "Recognize it"+signals and classify:++- **Known cause** β a section matches. Cite the ticket and section in the+ analysis; its "Fix" is the starting recommendation. This may end the+ investigation before any Datadog sweep.+- **New cause on existing ticket** β the monitor has a ticket but no section+ matches the evidence. Propose appending a dated section.+- **No ticket** β no ticket matches the monitor. Propose creating one.++Treat a partial match β some "Recognize it" signals fit, others do not β as a+**new cause**, never as a known one: do not recommend a documented "Fix"+whose recognition signals only partially match. Name the near-miss section in+the draft so the human can judge the overlap.++## Write-Back (Human Approval Gate)++Never create or update a ticket without explicit human approval. Present the+proposal first:++| ID | Alert / Monitor | Classification | Proposed Action | Draft Content | Human Decision |+| --- | --- | --- | --- | --- | --- |++- `Proposed Action`: `append cause section to LFE-XXXX`, `create ticket`, or+ `none (known cause)`.+- `Draft Content`: the dated section (or full ticket body) exactly as it would+ be written.+- `Human Decision`: leave blank for the human to choose.++Wait for the human to select row IDs and actions before writing. On approval:++- **Append**: add the new `---`-separated dated block after the existing+ sections; leave everything else untouched.+- **Create**: new Engineering (LFE) issue titled `[ENV] <Monitor title>` with+ the `incident-alert` label; description = alert header plus the first dated+ cause section.++## Division of Labor++- [`linear-bug-triage`](../linear-bug-triage/SKILL.md) owns bug deduplication+ and creation from measured evidence. Incident-alert tickets are per-monitor+ runbook knowledge, not defect reports.+- An alert whose root cause is a code bug gets both: the cause section+ documents recognition and mitigation, and links the bug ticket that tracks+ the durable fix.diff --git a/.agents/skills/weekly-production-review/SKILL.md b/.agents/skills/weekly-production-review/SKILL.mdindex 2212110163..ba7087a282 100644--- a/.agents/skills/weekly-production-review/SKILL.md+++ b/.agents/skills/weekly-production-review/SKILL.md@@ -40,6 +40,9 @@ audit from the linked source rows.production Datadog query shapes and environment/site routing.- Use [`linear-bug-triage`](../linear-bug-triage/SKILL.md) only after a humanexplicitly approves a Linear write-back.+- Use [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md) to check+ each Datadog alert cluster against the per-monitor knowledge base and, only+ after explicit human approval, record newly root-caused clusters there.## Workflow@@ -69,7 +72,11 @@ audit from the linked source rows.Group repeated firings by monitor/page title or ID, environment, service/team,and trigger reason.6. For every Datadog alert/page cluster, perform the deep dive before writing the- final row. Do not stop at the monitor title or count. Inspect matching APM+ final row. Do not stop at the monitor title or count. Check the monitor's+ `incident-alert` ticket first (see+ [`incident-alert-tickets`](../incident-alert-tickets/SKILL.md)); a+ documented cause section may explain the cluster β cite the ticket in the+ `incident.io / Linear Link` column. Inspect matching APMspans, representative traces, related logs, error records, exception details,failed job logs, dependency spans, queue backlog/delay context, and monitortime windows. Put the relevant trace/span evidence and relevant logs/errors@@ -116,7 +123,8 @@ relationships instead of synthesizing a separate cross-source table.Use Linear as the source of truth for deduplication across weeks and workflows.Before reporting a bug, security finding, cost concern, or alert as new, search-Linear for matching issue keys, titles, source URLs, and comments. If an+Linear for matching issue keys, titles, source URLs, and comments β covering+both the `bug` label set and the `incident-alert` label set. If anexisting issue covers it, link to that issue and mark the row as alreadytracked instead of reporting it again as fresh work.