telemetry-incident-response
How to work an alert that TaskTrooper Telemetry opened - a task titled "Incident:" whose brief says Telemetry opened it. Find the root cause with the telemetry_* tools, then either open the right developer's task with the findings or tell the user what only they can fix.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 122
- Forks
- 18
01 前言 Front Matter
- name
- telemetry-incident-response
- category
- operations
- description
- How to work an alert that TaskTrooper Telemetry opened - a task titled "Incident:" whose brief says Telemetry opened it. Find the root cause with the telemetry_* tools, then either open the right developer's task with the findings or tell the user what only they can fix.
03 SKILL.md 正文
Telemetry incident response
When a monitor or an SLO in the connected TaskTrooper Telemetry fires, the system opens a TaskTrooper incident and hands you a card titled Incident: …. Its brief names the service, the endpoint, the telemetry incident id and a rules-engine first pass. That first pass is a hypothesis. You own the alert from here to the end: diagnose it from the telemetry, then route it, and you never edit code yourself.
If a telemetry_* tool answers that telemetry is not connected or rejected its key, nothing can be diagnosed from it. Say that on the card, call propose_incident_remedy (kind config) asking the user to reconnect it in Settings, TaskTrooper Telemetry, and stop. Do not diagnose from the code alone and present it as a finding.
1. Diagnose (read only, in this order)
get_incidentwith the TaskTrooper id from the brief, thentelemetry_get_incidentwith the telemetry id: start time, value and peak, the monitor, the timeline. ItsrootCauseis a lead to verify, never the conclusion.telemetry_list_incidentsfor the same service: an earlier incident with the same shape means the previous fix did not hold; say why this time differs.telemetry_get_servicewith the service name: error rate, latency, the endpoints ranked with their ids, deploys, dependencies. Pick arangethat covers the start (6h for something that began two hours ago). Take the slowest or most failing endpoint'sidslug and call it again withendpoint_idfor the root-cause comparison: the top child is the dependency that got slower or errored, a large own-time delta is the endpoint's own code. No baseline requests means no comparison; retrybaseline: "1d"or"7d", else say the baseline is missing.telemetry_search_traceswitherrors_only(errors) orsort: "slowest"andmin_ms(latency), the endpoint in"METHOD /route"form,limit5 to 10. Open one or two withtrace_idand find the failing or slow span: its dependency, status, db statement, exception.telemetry_search_logswith thetrace_idfirst, then the service withlevel: "error"and separately"warn"(levels are exact), and aqtaken from the exception.telemetry_list_errorsfor the service, then one group withfingerprint: which exception, since when (afirstSeenjust after a deploy is a new error from that deploy), the stack.telemetry_list_deploysfor the service and for the dependency the trace pointed at: a deploy right before the start is a correlation, not proof. Thenlist_deploymentsandget_deploy_impacton our side to tie it to a release and a task.- When it points at infrastructure:
telemetry_api_getwithinfra/hosts,infra/databases,infra/k8s/pods,infra/clustersand so on.
Rules: cite or do not claim (a trace id, a log timestamp, a deploy version, an error fingerprint for every statement of cause). An empty result after an endpoint filter is suspect, not healthy: the route form and the slug are different things. If a result says truncated, narrow and call again before concluding. Log values arrive masked; a masked value is not a bug. If the evidence is thin, the cause is unknown and you say which signal is missing.
2. Classify
| Cause | Examples | Who acts |
|---|---|---|
| Our code | exception from a new deploy, slow query we wrote, bad retry loop, regression in an endpoint | the developer, through a task you open |
| Infrastructure or configuration | database out of connections or disk, node pressure, expired certificate, missing or rotated secret, wrong env var, quota | the user |
| Capacity | sustained saturation with no code change | the user (scale), possibly a code task to reduce load |
| A vendor or dependency | third-party API down, cloud region incident | the user (switch, wait, escalate) |
| Unknown | not enough telemetry | the user, with exactly what to turn on |
A rollback is a fix for code that just shipped: if the deploy right before the start is the cause and the component has a bound release, say so on the card and use the normal release path (rollback_release, which proposes to the user when auto rollback is off).
3a. Our code: open the developer's task
create_board_task with task_type: "bug" and assignee set to the component's developer (backend, frontend, mobile, data or game by the component's area, resolved with list_team), in the repository of the affected code (list_repositories if it is not the card's own). The description carries the whole case so the developer needs none of the telemetry tools:
- what broke, when, how bad (error rate, latency, affected endpoint), in two sentences;
- the evidence: trace ids, the failing span, log lines with timestamps, the error fingerprint and stack, the deploy and the task that shipped it;
- the fix you expect and the test that proves it (the failing request, the missing guard);
- the telemetry incident id, so the card links back.
The expected fix also goes in acceptance_criteria, one Given/When/Then each ("Given the failing request, When it is sent again, Then it returns 200"). A bug with no criteria, an empty description or no assignee is refused; fix what the refusal names and call again.
Park your own card on it (update_board_task with blocked_by) when the repository's workflow supports it, and add one add_task_comment on your card naming the task you opened. Then propose_incident_remedy with kind code_fix, the summary and the evidence, so the TaskTrooper incident shows the diagnosis and who has it.
3b. The user must act: say exactly what
propose_incident_remedy with kind config, capacity or dependency. Its summary is what the user is notified with, so it starts with the instruction: "An incident opened on orders-api: the database is out of connections; you need to raise the connection limit to 200 on the production Postgres." Then steps the user can run or click, each as command, expected output and what to do if it fails, and evidence with the telemetry facts behind it. Set confidence honestly.
If you cannot go on without an answer (which of two environments, whether a restart is acceptable, whether a vendor outage may be waited out), use ask_user with concrete options instead of guessing; work stops until they answer.
4. Close
Resolve nothing on the strength of a fix having shipped. After the developer's change is released (or the user reports the infrastructure fixed), re-read telemetry_get_service and telemetry_list_incidents; only when telemetry shows the service healthy and the incident resolved, call resolve_incident with a note naming that evidence. The system also resolves the TaskTrooper incident by itself when telemetry resolves its own.
Never
- Edit code, commit, or open a pull request yourself.
- Call a state-changing request on production, or try to change telemetry (acknowledge, resolve, create monitors): these tools only read.
- Invent a service name, an id or a cause. Service names come from the brief and
telemetry_get_service; trace ids from the search; incident ids from the list. - Treat a quiet telemetry as a healthy service when its own answer says it was unreachable.
04 同仓库更多 Skills
visual-craft
暂无简介
ux-copy
Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check
screen-mockup-html
Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task
performance-awareness
How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.
design-variants
Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision
design-system-authoring
Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns