File size: 2,041 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
id: cb-021
title: "Find urgent GitHub issues and post summary to Slack"
difficulty: medium
category: composite
description: |
  Find all open GitHub issues in "acme-corp/web-platform" that have the label
  "priority:critical" or "priority:high". Then compose a summary of these issues
  and post it to the #engineering Slack channel with the format:
  "Urgent Issues Report: N issues require attention" followed by a list.
tools_provided:
  - gh
  - slack
initial_state:
  gh:
    repos:
      acme-corp/web-platform:
        issues:
          - number: 42
            title: "Fix login redirect loop"
            state: open
            assignee: alice
            labels: ["bug", "priority:critical"]
          - number: 45
            title: "Memory leak in websocket handler"
            state: open
            assignee: null
            labels: ["bug", "priority:high"]
          - number: 46
            title: "Migrate to Node 20"
            state: open
            assignee: dave
            labels: ["chore"]
          - number: 47
            title: "SQL injection in search endpoint"
            state: open
            assignee: bob
            labels: ["security", "priority:critical"]
          - number: 48
            title: "Add dark mode toggle"
            state: open
            assignee: carol
            labels: ["enhancement", "priority:low"]
  slack:
    channels:
      - id: C002
        name: engineering
        is_private: false
        num_members: 22
        messages: []
expected_state:
  gh:
    command_history:
      - pattern: "gh issue list.*--label.*priority"
  slack:
    channels:
      - name: engineering
        messages:
          - text_contains: "Urgent Issues Report"
          - text_contains: "login redirect"
          - text_contains: "Memory leak"
          - text_contains: "SQL injection"
    command_history:
      - pattern: "slack message send.*--channel.*engineering"
scoring:
  outcome: 0.6
  efficiency: 0.2
  recovery: 0.2
max_turns: 8
optimal_commands: 3
timeout_seconds: 60