-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbaseline.yaml
More file actions
38 lines (36 loc) · 1.81 KB
/
Copy pathbaseline.yaml
File metadata and controls
38 lines (36 loc) · 1.81 KB
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
name: baseline
cases:
- name: newtype
assertions:
- { type: script, runtime: python, script: { path: evals/scripts/check_newtype.py } }
- type: judge
prompt: |
The code introduces a UserId type that wraps a string, exposes
construction as the only sanctioned entry point, and makes a plain
string unassignable where UserId is required. There are no `as`
casts at call sites; validation lives once in the constructor.
- { type: tokens, metric: total, op: "<", value: 6000 }
- name: configuring-logging
assertions:
- { type: script, runtime: python, script: { path: evals/scripts/check_configuring_logging.py } }
- type: judge
prompt: |
The bootstrap installs a single subscriber registry in main with
Format, Filter, Enrich, and Export layers, attaches `service.*`
resource attributes, installs the W3C `traceparent` propagator,
and registers a shutdown flush with a hard timeout. No `init` is
called from library code.
# Kept equal to invocation.yaml: see the note there. The budget must match
# across arms so the comparison's token outcome reflects a real size delta.
- { type: tokens, metric: total, op: "<", value: 14000 }
- name: emitting-logs
assertions:
- { type: script, runtime: python, script: { path: evals/scripts/check_emitting_logs.py } }
- type: judge
prompt: |
The call site emits a structured log record with `EventName` set
to `order.placed` and attaches fields under OpenTelemetry
semantic-convention keys (`http.response.status_code`, `order.id`,
`user.id`). The message body is a stable string; no values are
interpolated into it.
- { type: tokens, metric: total, op: "<", value: 6000 }