🪢 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
docs(agents): replace prod regression skill with weekly review (#13873)
Max Deichmannba8eea890b49
diff --git a/.agents/AGENTS.md b/.agents/AGENTS.mdindex d31fc11059..c2e4f7b671 100644--- a/.agents/AGENTS.md+++ b/.agents/AGENTS.md@@ -57,9 +57,9 @@ evaluating, and debugging AI applications.- Measured bug or regression evidence that needs Linear deduplication, evidencecomments, or Triage bug issue creation:`.agents/skills/linear-bug-triage/SKILL.md`-- Proactive production regression sweeps across Datadog errors, logs, spans, and- API latency with Linear handoff:- `.agents/skills/detect-prod-regressions/SKILL.md`+- Weekly production reviews of what broke, fixed/open `bug`-labeled Linear+ tickets, Datadog alert/page signals, and status-page or incident.io incidents:+ `.agents/skills/weekly-production-review/SKILL.md`- Changelog drafting for completed feature branches:`.agents/skills/changelog-writing/SKILL.md`- ClickHouse schema/query review:diff --git a/.agents/skills/README.md b/.agents/skills/README.mdindex a304acbd2f..d9d8b290f7 100644--- a/.agents/skills/README.md+++ b/.agents/skills/README.md@@ -122,15 +122,18 @@ Use for:Open: [code-review/SKILL.md](code-review/SKILL.md)-### detect-prod-regressions+### weekly-production-reviewUse for:-- proactive Datadog sweeps across `prod-us`, `prod-eu`, `prod-hipaa`, and `prod-jp`-- checking which paging monitors outside the SLO/burn-rate set alerted engineers and why-- comparing recent production errors, logs, spans, and API latency to baselines-- handing measured regressions to `linear-bug-triage` for Linear issues or comments--Open: [detect-prod-regressions/SKILL.md](detect-prod-regressions/SKILL.md)+- weekly engineering reviews of what broke in production+- combining Linear `bug`-labeled tickets, Datadog alert/page signals, and+ status-page or incident.io incidents+- fixed/open production bug summaries with title, summary, owner, evidence, and+ classification+- event-centric reporting that separates source evidence from the engineering+ narrative++Open: [weekly-production-review/SKILL.md](weekly-production-review/SKILL.md)### linear-bug-triagediff --git a/.agents/skills/datadog-query-recipes/SKILL.md b/.agents/skills/datadog-query-recipes/SKILL.mdindex 178881c894..2f3eed32a4 100644--- a/.agents/skills/datadog-query-recipes/SKILL.md+++ b/.agents/skills/datadog-query-recipes/SKILL.md@@ -57,8 +57,9 @@ data domain you need: traces, logs, metrics, and visualizations.- Use [`debug-issue-with-datadog`](../debug-issue-with-datadog/SKILL.md) when aLinear issue, GitHub issue, incident report, or monitor needs root-causeanalysis and patch recommendations.-- Use [`detect-prod-regressions`](../detect-prod-regressions/SKILL.md) when the- user asks for a proactive production sweep or baseline comparison.+- Use [`weekly-production-review`](../weekly-production-review/SKILL.md) when+ the user asks for a weekly engineering overview of production bugs, pages,+ and incidents.- Use [`linear-bug-triage`](../linear-bug-triage/SKILL.md) only after a humanapproves sharing measured findings in Linear.diff --git a/.agents/skills/detect-prod-regressions/SKILL.md b/.agents/skills/detect-prod-regressions/SKILL.mddeleted file mode 100644index ddd73309c1..0000000000--- a/.agents/skills/detect-prod-regressions/SKILL.md+++ /dev/null@@ -1,206 +0,0 @@-----name: detect-prod-regressions-description: |- Proactively detect production regressions in Langfuse by comparing recent- Datadog paging alerts from monitors outside the SLO/burn-rate set, errors,- error logs, error spans, and API route latency signals against baseline- benchmarks or traces across prod-us, prod-eu, prod-hipaa, and prod-jp. Use- when asked to sweep production for new bugs, catch regressions early,- understand why engineers were paged, catch low-occurrence coding bugs or edge- cases, compare recent changes to Datadog measurements, or prepare measured- production evidence for human review before any optional Linear handoff.------# Detect Prod Regressions--Run this skill as an evidence-first production sweep. The deliverable is a set-of measured candidate bugs summarized for a human reviewer in a compact table,-plus a short summary of what was checked. Do not touch Linear automatically.--## Required Scope--Always review all production environments unless the user explicitly narrows the-scope:--- `prod-us`-- `prod-eu`-- `prod-hipaa`-- `prod-jp`--Query both Datadog sites when needed. Default to the EU site for `prod-eu` and-the US site for the other production envs, but verify by querying facets or-running a small count query rather than assuming where a tag lives.--## Measurement Rules--- Ground every bug claim in a measurable signal: counts, rates, p50/p95/p99- duration, trace samples, flamegraphs, monitor thresholds, or benchmark- comparisons.-- Treat paging alerts from monitors outside the SLO/burn-rate set as triage- leads. Capture which monitors paged and why, then validate candidate- regressions with the underlying metric, log, span, trace, or event- measurements before calling them bugs.-- If a requested measurement is missing or unavailable, write exactly- "No measurements found" for that signal.-- Treat a bug as new only when a recent window shows a new or materially worse- error cluster or latency regression versus a baseline.-- Do not rely only on top-volume clusters. Also inspect new low-occurrence- errors that look like coding bugs or edge cases, such as invariant failures,- unexpected null/undefined values, validation surprises, unhandled promise- rejections, serialization failures, impossible enum states, or one-off 500s- on uncommon routes.-- For latency, error-rate, throughput, saturation, or performance findings,- focus on how the signal worsened over time: recent versus preceding window,- recent versus same window 7 days earlier, and post-change versus pre-change- when deployment markers are available.-- Prefer high-level aggregations before individual events; drill into example- logs, spans, traces, or flamegraphs only after a cluster is identified.-- Do not infer customer impact, root cause, or severity beyond what the- measurements support.--## Baseline Window--Use the user's stated window when provided. Otherwise:--1. Compare the most recent 24 hours with the preceding 24 hours.-2. Add a same-day or same-hour historical baseline, usually the matching window- 7 days earlier, when Datadog data is available.-3. If release or deployment markers, service versions, git SHAs, or change- timestamps are visible, compare post-change versus pre-change windows.--Include the recent window and baseline window in any later handoff to-`linear-bug-triage` after the human explicitly approves sharing findings in-Linear.--## Datadog Sweep--Before querying Datadog, load the relevant Datadog MCP guidance for logs,-traces, metrics, and visualizations. Use the existing-[`datadog-query-recipes`](../datadog-query-recipes/SKILL.md) skill for query-syntax, production environment coverage, tenant/public API usage, and queue-consumer measurements. Use-[`debug-issue-with-datadog`](../debug-issue-with-datadog/SKILL.md) when a-candidate regression becomes an incident-style root-cause analysis.--For each environment, check:--1. **Paging monitors outside the SLO/burn-rate set**- - Query Datadog monitor and event history for the recent window across both- Datadog sites as needed. Focus on monitors that notified paging routes,- escalation policies, PagerDuty/Opsgenie-style integrations, or on-call- alert channels.- - Exclude clearly SLO-backed monitors from the primary paging sweep, such as- monitors with SLO monitor types, `slo`/`burn rate` names, SLO tags, or SLO- queries. If a monitor is ambiguous, keep it and mark the SLO status as- uncertain instead of silently dropping it.- - Group repeated alert events by monitor ID, monitor name, environment,- service/team owner, group key, and trigger reason so renotifications or- flapping do not look like separate regressions.- - For each alerting monitor, capture the monitor URL, alert start/recovery- time, duration, notified paging target, current state, threshold, observed- value, group tags, no-data status when relevant, and the exact reason the- monitor entered alert.- - Explain the issue that paged engineers in operational terms: metric breach,- error cluster, queue backlog, saturation, no-data gap, host/task health,- failed job, or other monitor source. Then connect it to logs, spans,- traces, metrics, deployment markers, or dashboards that show whether the- signal is new or materially worse than baseline.- - Include monitor-driven candidates even when they are not top-volume error- or latency clusters. Conversely, mark noisy, flat, expected, SLO-only, or- non-regressing monitor pages as `none` with the measurements that justify- that decision.--2. **Datadog errors**- - Use Datadog Error Tracking to review error groups, new issues,- regressions, affected services, and occurrence timelines. Also check the- EU Datadog site equivalent when environment data is stored there.- - Aggregate error counts and rates by `env`, `service`, route/resource,- status code, `error.type`, and `error.message`.- - Compare recent counts/rates to the baseline.- - Include low-occurrence new error groups when the stack, message, route, or- affected code path suggests a coding bug or edge case, even if occurrence- counts are too small for top-N dashboards.--3. **Datadog error logs**- - Aggregate `status:error` logs by service, route/resource, source,- `error.message`, tenant/project identifiers when present, and environment.- - Open representative logs only for clusters with measurable increase.--4. **Datadog error spans**- - Aggregate error spans by `env`, `service`, `resource_name`, `http.route`,- `error.type`, and `error.message`.- - Fetch representative traces only after grouping identifies a candidate- regression.--5. **API route latencies**- - Focus on `service:web` HTTP spans and metrics such as- `trace.http_request.duration` when available.- - Compare p50, p95, and p99 by route/resource and environment.- - Rank candidates by worsening over time, not only by absolute latency:- recent versus baseline deltas, slope, and newly introduced tail latency.- - Use trace samples or flamegraphs for routes whose latency materially- regressed.--Keep Datadog links for every query, trace, dashboard, or flamegraph used as-evidence.--## Linear Handoff--Before doing anything in Linear, show the human reviewer a findings table in-chat and ask for permission to share the findings in Linear. The table should-include one row per candidate with:--- Candidate / cluster name.-- Environments.-- Service and route/resource.-- Monitor / page signal, including the paging monitor name, alert reason, and- notified route when applicable.-- Recent window measurement.-- Baseline measurement.-- Delta / regression summary.-- Key evidence links.-- Recommended Linear action (`comment existing`, `create new`, or `none`).--Use a concrete markdown table shaped like this:--```markdown-| Candidate | Envs | Service / Route | Monitor / Page Signal | Recent Window | Baseline | Delta | Evidence | Proposed Linear Action |-| --- | --- | --- | --- | --- | --- | --- | --- | --- |-| Public scores latency regression | prod-us | `web` `GET /api/public/v2/scores/index` | Paging monitor `Public API p95 latency` alerted `pagerduty-web`; observed p95 crossed `5s` threshold | p95 `7.44s`, p99 `12.77s`, count `71,448` | p95 `4.34s`, p99 `6.60s`, count `26,024` | p95 `+72%`, p99 `+94%`, volume `+174%` | [monitor](https://app.datadoghq.com/) [metrics](https://app.datadoghq.com/) [spans](https://app.datadoghq.com/) [trace](https://app.datadoghq.com/) | comment existing |-| ClickHouse socket hang up cluster | prod-us | `web-iso` `POST /` | Paging monitor `web-iso 5xx rate` alerted `pagerduty-web-iso`; grouped on `error.message:socket hang up` | errors `14,088` | errors `6,026` | `+134%` errors | [monitor](https://app.datadoghq.com/) [spans](https://app.datadoghq.com/) [trace](https://app.datadoghq.com/) | comment existing |-| Ingestion DLQ monitor noise | prod-eu | `worker-cpu` `langfuse.queue.ingestion.dlq_length` | Paging monitor `Ingestion DLQ length` alerted `pagerduty-ingestion`; threshold breach but no increase versus baseline | max `150` | max `150` | flat | [monitor](https://app.datadoghq.eu/) [metrics](https://app.datadoghq.eu/) | none |-```--If a requested signal is unavailable, write `No measurements found` in the-relevant cell instead of leaving it blank.--Only if the human explicitly approves, use-[`linear-bug-triage`](../linear-bug-triage/SKILL.md) for Linear search,-deduplication, evidence comments, Triage issue creation, labels, and ticket-formatting. Treat that skill as the source of truth for Linear behavior once-approval is granted.--Hand off:--- Recent window and baseline window.-- Measured deltas or `No measurements found` for unavailable signals.-- Affected environments, services, routes/resources, status codes, and top error- messages.-- Datadog links for every query, trace, dashboard, metric graph, or flamegraph- used as evidence.--## Final Response--Summarize:--- The windows compared and all prod environments checked.-- Which paging monitors outside the SLO/burn-rate set alerted engineers, why- they alerted, and which pages did or did not map to measured regressions.-- The findings table shown to the human.-- Whether the human approved sharing findings in Linear.-- New Linear issues created, with links, only if approval was granted.-- Existing Linear issues commented on, with links, only if approval was- granted.-- Candidate signals skipped with "No measurements found".-- A compact "no new bugs found" statement when no issue-worthy regressions were- measured.diff --git a/.agents/skills/detect-prod-regressions/agents/openai.yaml b/.agents/skills/detect-prod-regressions/agents/openai.yamldeleted file mode 100644index 0b8cd995ba..0000000000--- a/.agents/skills/detect-prod-regressions/agents/openai.yaml+++ /dev/null@@ -1,4 +0,0 @@-interface:- display_name: "Detect Prod Regressions"- short_description: "Datadog monitor/page and regression sweep"- default_prompt: "Use $detect-prod-regressions to check which paging monitors outside the SLO/burn-rate set alerted engineers, explain why they alerted, compare production Datadog signals against baselines across all prod environments, and prepare measured findings for human review before any Linear handoff."diff --git a/.agents/skills/linear-bug-triage/SKILL.md b/.agents/skills/linear-bug-triage/SKILL.mdindex 6fc76a3a1f..f1807fbc55 100644--- a/.agents/skills/linear-bug-triage/SKILL.md+++ b/.agents/skills/linear-bug-triage/SKILL.md@@ -34,9 +34,9 @@ The table should include one row per candidate with:If the human does not explicitly approve, stop after presenting the table. Donot search Linear, do not comment on issues, and do not create issues.-If this skill was invoked by `detect-prod-regressions` and that calling skill-already showed the findings table and obtained explicit human approval for a-Linear handoff, skip this gate and proceed directly to deduplication.+If a calling workflow already showed the findings table and obtained explicit+human approval for a Linear handoff, skip this gate and proceed directly to+deduplication.## Required Evidencediff --git a/.agents/skills/weekly-production-review/SKILL.md b/.agents/skills/weekly-production-review/SKILL.mdnew file mode 100644index 0000000000..ade3926469--- /dev/null+++ b/.agents/skills/weekly-production-review/SKILL.md@@ -0,0 +1,226 @@+---+name: weekly-production-review+description: |+ Prepare Langfuse weekly production reviews that explain what broke, what was+ fixed, what remains open, and where alerting or tracking needs cleanup. Use+ when asked for a production review, "what broke last week", fixed/open bugs,+ Datadog alerted monitors/pages, status-page incidents, incident.io incidents,+ or an engineering-team overview that combines Linear, Datadog, and customer+ incident signals.+---++# Weekly Production Review++Use this skill to produce a source-grounded, event-centric production review.+The report should help engineering understand the week, not just list tool+output.++## Scope++- Default "last week" to the previous Monday through Sunday in the user's+ timezone. State both local and UTC query windows.+- Cover all production environments unless the user narrows scope:+ `prod-us`, `prod-eu`, `prod-hipaa`, and `prod-jp`.+- Keep the first pass read-only. Do not create or update Linear issues,+ comments, incident.io records, follow-ups, alerts, or Datadog monitors unless+ the user explicitly asks after reviewing the findings.+- For chat-only reviews, avoid creating report artifacts or local analysis+ workspaces unless a required tool workflow explicitly does so or the user asks+ for a file. If incident.io analysis tooling requires a local playbook+ workspace, mention it briefly inline when relevant and keep production systems+ unchanged.+- Write `No measurements found` when a requested signal cannot be queried or+ measured.++## Related Skills++- Use [`datadog-query-recipes`](../datadog-query-recipes/SKILL.md) for+ production Datadog query shapes and environment/site routing.+- Use [`linear-bug-triage`](../linear-bug-triage/SKILL.md) only after a human+ explicitly approves a Linear write-back.++## Workflow++1. Confirm the review window and timezone. If the user says "last week", use the+ previous calendar week, not a rolling seven-day window.+2. Gather customer-facing incidents from the public status page and incident.io+ if available. Prefer incident.io for internal accepted incidents and+ follow-ups; use the status page as the customer-facing source of truth.+3. Gather Datadog alert/page signals for the window. Use incident.io alerts or+ escalations when they represent pages; use Datadog monitor/event data when+ available. Group repeated firings of the same monitor instead of counting+ every notification as a separate event.+4. Gather Linear bugs from the `bug` label first. Include all `bug`-labeled+ tickets created, updated, completed, or still-open with production evidence+ during the window. Inspect likely production bugs with issue details and+ comments when status, owner, or evidence is unclear.+5. Classify each bug and alert. Separate production breakage from staging,+ self-hosted, internal-only, duplicate, canceled, test, or monitor-noise+ signals.+6. Pick the canonical object for each production event using the linking model+ below. One production event can include status incidents, Datadog pages,+ Linear bugs, and follow-ups.+7. Synthesize an event-centric view. Lead with conclusions and keep raw source+ tables as evidence sections.++## Linking Model++Every production event should have exactly one canonical object in the review:++- Use an incident.io incident as canonical when there is customer impact,+ status-page communication, coordinated response, or post-incident follow-up.+- Use a Linear bug as canonical when production behavior broke but the issue did+ not become an incident.+- Use an explicit alert disposition as canonical when the signal is+ `expected/test`, `monitor noise`, or `unknown/no measurements` and no incident+ or Linear bug should be created yet.++Treat Datadog as evidence, not the canonical event. Treat the public status page+as the customer-facing mirror, not the engineering source of truth.++### Link Direction++Use this table to decide what is missing:++| Canonical Object | Should Link To | How To Represent In Review |+| --- | --- | --- |+| incident.io incident | status-page URL, Datadog alert/monitor/query links, Linear follow-ups | event row sources plus customer incident linked sources |+| Linear production bug | Datadog monitor/query/trace/log links, incident.io incident if any, status incident if any | Linear bug evidence plus event row sources |+| Alert disposition | monitor ID/title, env, reason, verdict, owner/team if visible | Datadog table row with `Linked Event` set to disposition |++For a healthy review, each real production event should satisfy one of:++```text+Canonical event = incident.io incident+OR canonical event = Linear production bug+OR canonical event = explicit alert disposition+```++### Proposed Link Titles++When proposing or later creating links, use short stable titles:++- `Datadog monitor: <monitor name>`+- `Datadog logs: <env/service/symptom>`+- `Datadog spans: <env/route/symptom>`+- `Datadog trace: <trace id or route>`+- `Status incident: <status title>`+- `incident.io: <INC reference>`+- `Linear follow-up: <issue key>`++Do not write any of these links unless the user explicitly asks for changes+after reviewing the report.++## Linear Bug Table++Start from all Linear tickets with the `bug` label that were touched by the+window. Do not rely only on text searches for `prod`, `incident`, or `Datadog`;+those searches are useful for enrichment but are not the source universe.++Use this table for the bug section:++| Linear | Title | Summary | Owner | Status | Touched Last Week Because | Production Evidence | Classification | Counted? |+| --- | --- | --- | --- | --- | --- | --- | --- | --- |++Column rules:++- `Linear`: the issue key linked to Linear, such as `LFE-123`.+- `Title`: the Linear issue title in a separate column. Do not collapse the+ title into the `Linear` link because reviewers need to scan IDs and titles+ independently.+- `Summary`: one operational sentence based on issue body, comments, and+ evidence. Avoid fix guesses.+- `Owner`: assignee if present; otherwise owning team if clear; otherwise+ `Unassigned`.+- `Status`: the Linear status or state, plus completion timing when useful+ such as `Done May 18`, `Todo`, `Triage`, or `Canceled`.+- `Touched Last Week Because`: `created`, `updated`, `completed`, or+ `open production bug`.+- `Production Evidence`: prod env, customer impact, status incident, Datadog+ link, measured logs/spans/errors, or `No measurements found`.+- `Classification`: use one of `production/customer-impacting`,+ `internal-only`, `self-hosted`, `staging/dev`, `duplicate/canceled/no-action`,+ or `unclear`.+- `Counted?`: `yes` only when the bug label and production/customer-impacting+ evidence support including it in fixed/open production bug counts.++For headline counts, report fixed and open production bugs separately from the+total number of bug-labeled tickets reviewed.++## Datadog Alert/Page Signals++Use this table as the evidence layer:++| Monitor/Page Signal | Env | Count / Window | Why It Alerted | Verdict | Linked Event |+| --- | --- | ---: | --- | --- | --- |++The Datadog table answers "what alerted or paged?" It is monitor-centric, not+the primary narrative. Use these verdicts:++- `customer incident`+- `confirmed bug`+- `infra/dependency`+- `expected/test`+- `monitor noise`+- `unknown/no measurements`++Group repeated pages by monitor name or ID, environment, service/team, and+trigger reason. Exclude or clearly mark SLO/burn-rate monitors, test monitors,+and maintenance-window noise when the review is about actionable breakage.++`Linked Event` should be the canonical incident.io reference, Linear issue key,+or explicit disposition. Do not leave a real page as `none` unless the next+action is to classify the alert.++## Event-Centric View++Use this as the main engineering narrative:++| Event | Impact | Sources | State | Owner / Team | Next Action |+| --- | --- | --- | --- | --- | --- |++The event-centric view answers "what actually broke?" Combine related status+incidents, Datadog pages, Linear bugs, and follow-ups into one row when the+evidence supports it. If correlation is inferential, say so.++Good event rows:++- Name the affected product surface or system behavior.+- State impact only as far as sources support it.+- Use the canonical incident.io reference, Linear issue key, or alert+ disposition in the event name or sources.+- Link source IDs such as status incident IDs, incident.io references, Datadog+ monitor IDs, and Linear issue keys.+- Mark state as `fixed`, `mitigated`, `open`, `monitoring`, `noise`, or+ `unknown`.+- Prefer a concrete next action: fix owner, monitor tuning, correlation cleanup,+ close stale ticket, or no action.++## Customer Incident Table++Use this section for public status-page incidents and accepted incident.io+incidents:++| Incident | Severity / Status | Start / End / Duration | Impact | Linked Sources |+| --- | --- | --- | --- | --- |++Lead each incident summary with its reference or URL. Preserve uncertainty when+status-page timezone, severity, linked alerts, or Linear follow-ups are missing.++## Executive Summary++Start the final report with:++- Review window and environments checked.+- Number of customer-facing incidents.+- Number of Datadog alert/page clusters, plus noisy/test clusters if relevant.+- Number of `bug`-labeled Linear tickets reviewed.+- Production bug count split by fixed and open.+- Highest open risk and why.++Then present sections in this order:++1. Event-Centric View.+2. Customer Incident Table.+3. Linear Bug Table.+4. Datadog Alert/Page Signals.diff --git a/.agents/skills/weekly-production-review/agents/openai.yaml b/.agents/skills/weekly-production-review/agents/openai.yamlnew file mode 100644index 0000000000..2d0dd58eda--- /dev/null+++ b/.agents/skills/weekly-production-review/agents/openai.yaml@@ -0,0 +1,4 @@+interface:+ display_name: "Weekly Production Review"+ short_description: "Summarize bugs, pages, and incidents"+ default_prompt: "Use $weekly-production-review to prepare an event-centric weekly production review from Linear bugs, Datadog alert/page signals, and status-page or incident data."