agentleFS
bordenetbordenet/superpowers-plus/skills/engineering/timeline-trace-investigator/skill.md

timeline-trace-investigator

Skill8 starsChanged 6 months agoMITView on GitHub

Specialized investigator for reconstructing incident timelines from distributed traces, logs, deployments, and metrics. Produces structured TimelineEvidence for the debug conductor. NOT a standalone skill — dispatched by debug-conductor as part of forked debugging.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Time window: When was the incident first detected?

    line 41
  2. Distinctive:

    Look for temporal correlations:

    line 80
  3. Distinctive:

    No deployment or config changes in window → timeline can't explain the incident alone

    line 121

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Timeline & Trace Investigator

Role: Reconstruct what happened and when across distributed services. Dispatched by: debug-conductor — never invoked directly by user. Evidence type: TimelineEvidence (see skills/_shared/evidence-schema.md)

When to Use

Dispatched by debug-conductor when the incident involves temporal causation — deployment correlations, cascading failures, or event ordering across services.

Investigation Protocol

Step 1: Scope the Timeline

From the incident packet, extract:

  • Time window: When was the incident first detected? Add 30-minute buffer on each side.
  • Affected services: Which services are in the failure path?
  • Trace/correlation IDs: Any specific request IDs to follow?

Step 2: Gather Evidence (Ordered by Signal Strength)

SourceToolSignal StrengthWhat to Look For
Distributed tracesTracing queries (Jaeger, Zipkin, OTEL)HighestRequest path, latency breakdown, span errors
Deployment historyGit log, CI/CD historyHighDeployments within time window → temporal correlation
Application logsLog search (structured)HighError messages, warnings, state transitions
MetricsMetric queries (Prometheus, Datadog)MediumLatency spikes, error rate changes, resource utilization
Git historygit log --since --untilMediumCode changes that correlate with incident onset

Step 3: Reconstruct Timeline

Build a chronological event sequence:

{
  "events": [
    { "timestamp": "ISO-8601", "service": "call-router", "event": "deployment v2.3.1", "traceId": null },
    { "timestamp": "ISO-8601", "service": "call-router", "event": "first error logged", "traceId": "abc123" },
    { "timestamp": "ISO-8601", "service": "telephony-gw", "event": "SIP timeout spike", "traceId": null }
  ]
}

Step 4: Identify Gaps

Gap TypeDetectionSignificance
Trace gapRequest enters service A, no trace in service BHigh — something happened between A and B
Time gap>5 seconds between related eventsMedium — unusual delay worth investigating
Service gapKnown service in path has no eventsHigh — service may be silently failing
Log gapExpected log entries missing in windowMedium — logging may be broken or delayed

Step 5: Correlate Events

Look for temporal correlations:

  • Deployment timestamp vs. error onset (< 5 min gap = strong correlation)
  • Config change vs. behavior change
  • Metric spike vs. error spike
  • Cross-service event ordering (A happens, then B happens — causal?)

Step 6: Produce Evidence

Return TimelineEvidence to conductor:

{
  "events": [ /* chronological event list */ ],
  "gaps": [
    { "from": "ISO-8601", "to": "ISO-8601", "service": "string", "explanation": "string | null" }
  ],
  "correlations": [
    { "eventA": "deployment v2.3.1", "eventB": "first SIP timeout", "lagMs": 120000, "suspicious": true }
  ]
}

Plus standard evidence wrapper:

  • Supporting evidence: Events that point toward a hypothesis
  • Disconfirming evidence: Events that contradict or complicate the hypothesis
  • Confidence: Based on trace completeness (% of request path covered)
  • Verdict: What the timeline suggests happened

Stop Conditions

  • Complete timeline reconstructed (all services accounted for, no critical gaps)
  • 3 evidence items collected (sufficient for conductor to work with)
  • Token budget exhausted
  • Wall-clock limit reached (5 minutes)

Escalation Conditions

  • Trace gaps > 30% of expected request path → tell conductor "timeline is incomplete"
  • Conflicting timestamps across services (clock skew?) → flag as suspicious
  • No deployment or config changes in window → timeline can't explain the incident alone

Common Patterns This Investigator Detects

PatternEvidence Shape
Deployment-correlated failureDeployment event < 30 min before error onset
Cascading timeoutService A timeout → Service B timeout → Service C timeout (each delayed)
Event ordering bugEvents arrive out of sequence (checked via trace timestamps)
Silent service failureService in path has zero events (gap in timeline)
Clock skewEvent in Service B "before" the event in Service A that triggered it

Failure Modes

ModeSymptomRecovery
Clock skewEvents appear out of orderNormalize timestamps across services
Missing spansGaps in trace dataCheck sampling rate and instrumentation
Correlation errorLinking unrelated eventsVerify trace ID propagation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.