File size: 3,746 Bytes
934aad3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
id: cb-031
title: "Incident response: find broken commit, create issue, assign on-call, notify Slack"
difficulty: hard
category: composite
description: |
  A production incident has been reported. Investigate the GitHub repository
  "acme-corp/web-platform" to find the most recent merged PR that touched
  files in the "src/auth/" directory. Create a GitHub issue documenting the
  incident and link it to that PR. Then find the on-call engineer from the
  Linear team "Platform" (the one with the "oncall" label on their current
  issue) and assign the GitHub issue to them. Finally, post an incident
  notification to the #incidents Slack channel with the issue link, suspected
  PR, and assigned engineer.
tools_provided:
  - gh
  - linear
  - slack
initial_state:
  gh:
    repos:
      acme-corp/web-platform:
        pull_requests:
          - number: 180
            title: "feat: Add session refresh logic"
            state: closed
            merged: true
            merged_at: "2026-03-12T06:00:00Z"
            author: dave
            files_changed: ["src/auth/session.ts", "src/auth/refresh.ts"]
          - number: 179
            title: "fix: Update user avatar upload"
            state: closed
            merged: true
            merged_at: "2026-03-11T15:00:00Z"
            author: carol
            files_changed: ["src/profile/avatar.ts"]
          - number: 178
            title: "chore: Bump auth library version"
            state: closed
            merged: true
            merged_at: "2026-03-11T10:00:00Z"
            author: bob
            files_changed: ["package.json", "src/auth/config.ts"]
          - number: 181
            title: "docs: Update API reference"
            state: open
            author: alice
            files_changed: ["docs/api.md"]
        issues:
          - number: 90
            title: "Existing tracking issue"
            state: open
            labels: ["tracking"]
  linear:
    teams:
      - name: Platform
        key: ACM
        members:
          - sarah@acme.com
          - mark@acme.com
          - dave@acme.com
          - bob@acme.com
    issues:
      - id: ACM-600
        title: "On-call rotation week 11"
        status: in_progress
        priority: medium
        assignee: mark@acme.com
        team: Platform
        labels: ["oncall"]
      - id: ACM-601
        title: "Refactor error handling"
        status: todo
        priority: low
        assignee: sarah@acme.com
        team: Platform
        labels: []
      - id: ACM-602
        title: "Performance optimization"
        status: in_progress
        priority: medium
        assignee: dave@acme.com
        team: Platform
        labels: []
  slack:
    channels:
      - id: C005
        name: incidents
        is_private: false
        num_members: 15
        messages: []
      - id: C002
        name: engineering
        is_private: false
        num_members: 22
        messages: []
expected_state:
  gh:
    repos:
      acme-corp/web-platform:
        issues:
          - title_contains: "incident"
            state: open
            assignee: mark
            body_contains: "180"
    command_history:
      - pattern: "gh pr list.*--state.*merged"
      - pattern: "gh issue create.*--repo acme-corp/web-platform"
  linear:
    command_history:
      - pattern: "linear issue list.*--team.*Platform.*--label.*oncall"
  slack:
    channels:
      - name: incidents
        messages:
          - text_contains: "incident"
          - text_contains: "mark"
          - text_contains: "180"
    command_history:
      - pattern: "slack message send.*--channel.*incidents"
scoring:
  outcome: 0.6
  efficiency: 0.2
  recovery: 0.2
max_turns: 15
optimal_commands: 7
timeout_seconds: 120