Release 0.14.0: quality eval
Release / release (push) Successful in 3m17s

A deterministic quality eval as a run type next to BetterBench: tool
calling (12 requests), coding (8 Python functions checked by unit tests
in a locked-down sandbox container) and long-context retrieval (needle at
3 depths in 3 lengths up to the context). Versioned eval set in
src/evals/v1, score stored per run, shown on the run page, in compare
views, the benchmark list and sweep tables (optional eval per variant);
API kind "eval", quality in run/sweep/compare answers; skill updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-21 15:24:36 +02:00
1 parent 716bd8f2f0
commit 6b67c653b5
33 files changed
+3822 -79

No files matched your search

+89
View File
@@ -0,0 +1,89 @@
{
"instructions": "Write the Python 3 function described below. Use only the standard library. Reply with the complete function definition, starting with def, in a single ```python code block and nothing else.",
"items": [
{
"id": "is-palindrome",
"prompt": "is_palindrome(s: str) -> bool: True if s reads the same forwards and backwards, ignoring case and every character that isn't a letter or a digit.",
"tests": [
"assert is_palindrome('A man, a plan, a canal: Panama') is True",
"assert is_palindrome('race a car') is False",
"assert is_palindrome('') is True",
"assert is_palindrome('No lemon, no melon') is True",
"assert is_palindrome('ab2a') is False"
]
},
{
"id": "fizzbuzz",
"prompt": "fizzbuzz(n: int) -> list[str]: for 1..n, 'Fizz' for multiples of 3, 'Buzz' for multiples of 5, 'FizzBuzz' for multiples of both, else the number as a string.",
"tests": [
"assert fizzbuzz(5) == ['1', '2', 'Fizz', '4', 'Buzz']",
"assert fizzbuzz(15)[-1] == 'FizzBuzz'",
"assert fizzbuzz(0) == []",
"assert len(fizzbuzz(100)) == 100"
]
},
{
"id": "merge-intervals",
"prompt": "merge_intervals(intervals: list[list[int]]) -> list[list[int]]: merge overlapping or touching [start, end] intervals and return them sorted by start.",
"tests": [
"assert merge_intervals([[1, 3], [2, 6], [8, 10], [15, 18]]) == [[1, 6], [8, 10], [15, 18]]",
"assert merge_intervals([[1, 4], [4, 5]]) == [[1, 5]]",
"assert merge_intervals([]) == []",
"assert merge_intervals([[5, 7], [1, 2]]) == [[1, 2], [5, 7]]",
"assert merge_intervals([[1, 10], [2, 3], [4, 5]]) == [[1, 10]]"
]
},
{
"id": "word-count",
"prompt": "word_count(text: str) -> dict[str, int]: count words, lowercased, where a word is a run of letters (anything else separates words).",
"tests": [
"assert word_count('Hello, hello world!') == {'hello': 2, 'world': 1}",
"assert word_count('') == {}",
"assert word_count('one-two three') == {'one': 1, 'two': 1, 'three': 1}",
"assert word_count('A a A b') == {'a': 3, 'b': 1}"
]
},
{
"id": "roman-to-int",
"prompt": "roman_to_int(s: str) -> int: convert a Roman numeral (I, V, X, L, C, D, M, with subtractive forms like IV and CM) to an integer.",
"tests": [
"assert roman_to_int('III') == 3",
"assert roman_to_int('LVIII') == 58",
"assert roman_to_int('MCMXCIV') == 1994",
"assert roman_to_int('XLIX') == 49",
"assert roman_to_int('MMXXVI') == 2026"
]
},
{
"id": "flatten",
"prompt": "flatten(nested: list) -> list: return all non-list items of an arbitrarily nested list, in order.",
"tests": [
"assert flatten([1, [2, [3, [4]], 5]]) == [1, 2, 3, 4, 5]",
"assert flatten([]) == []",
"assert flatten([[], [[]], [1]]) == [1]",
"assert flatten(['a', ['b', ['c']]]) == ['a', 'b', 'c']"
]
},
{
"id": "second-largest",
"prompt": "second_largest(nums: list[int]) -> int | None: the second largest distinct value, or None if there isn't one.",
"tests": [
"assert second_largest([3, 1, 4, 1, 5, 9, 2, 6]) == 6",
"assert second_largest([7, 7, 7]) is None",
"assert second_largest([]) is None",
"assert second_largest([-2, -5, -1]) == -2",
"assert second_largest([10, 9]) == 9"
]
},
{
"id": "rle-encode",
"prompt": "rle_encode(s: str) -> str: run-length encode a string as each character followed by its run length, e.g. 'aaabcc' -> 'a3b1c2'.",
"tests": [
"assert rle_encode('aaabcc') == 'a3b1c2'",
"assert rle_encode('') == ''",
"assert rle_encode('abc') == 'a1b1c1'",
"assert rle_encode('zzzzzzzzzzzz') == 'z12'"
]
}
]
}
+41
View File
@@ -0,0 +1,41 @@
{
"lengths": [0.25, 0.5, 1.0],
"positions": [0.1, 0.5, 0.9],
"reserveTokens": 384,
"seed": 20261021,
"needle": "Note for later: the access code for the {color} vault is {code}.",
"question": "In the text above there is one note with an access code for the {color} vault. What is that access code? Answer with the six-digit number only.",
"colors": ["amber", "cobalt", "crimson", "jade", "silver", "violet", "ochre", "teal", "scarlet"],
"filler": [
"The river bends twice before it reaches the old mill at the edge of the valley.",
"Most of the orchard was planted after the long winter, when the soil had recovered.",
"A narrow path leads from the station to the market square, lined with plane trees.",
"In spring the meadows fill with clover and the bees return to the wooden hives.",
"The library keeps its oldest maps in a cool room behind the reading hall.",
"Fishing boats leave the harbour before dawn and come back around midday.",
"The bakery on the corner opens at six and is usually sold out by ten.",
"Snow rarely stays on the lower slopes for more than a few days at a time.",
"An old stone bridge crosses the stream where the two footpaths meet.",
"The town hall clock was repaired last year and now runs a minute fast.",
"Every autumn the vineyards hire extra hands for the harvest weeks.",
"The lighthouse has been automated, but a keeper still checks it each week.",
"A small museum by the church shows tools that farmers used a century ago.",
"The tram line was extended to the university campus in the north.",
"Wild garlic grows along the shaded banks of the brook in early May.",
"The guesthouse serves breakfast in a garden room that faces the hills.",
"Cyclists often stop at the fountain to refill their bottles before the climb.",
"The weekly market sells cheese from three farms in the neighbouring villages.",
"On clear nights the observatory opens its dome to visitors after nine.",
"The ferry runs every hour in summer and twice a day in the colder months.",
"A row of chestnut trees marks the old boundary of the monastery grounds.",
"The pottery workshop fires its kiln on Thursdays and sells seconds on Fridays.",
"Fog settles in the valley on most mornings and lifts by late morning.",
"The cooperative store stocks seeds, rope, lamp oil and tinned food.",
"Herons nest in the reeds at the far end of the lake each year.",
"The school bus takes the long way round when the pass is closed.",
"A painter rents the attic above the bookshop for the summer months.",
"The old railway embankment is now a walking trail through the woods.",
"Shepherds move the flocks to the high pastures in the first week of June.",
"The smithy still repairs gates and hinges for the farms nearby."
]
}
+160
View File
@@ -0,0 +1,160 @@
{
"tools": {
"get_weather": {
"description": "Current weather for a city.",
"parameters": {
"type": "object",
"properties": {
"city": { "type": "string", "description": "City name, e.g. Berlin" },
"unit": { "type": "string", "enum": ["celsius", "fahrenheit"] }
},
"required": ["city", "unit"]
}
},
"convert_currency": {
"description": "Convert an amount of money between currencies.",
"parameters": {
"type": "object",
"properties": {
"amount": { "type": "number" },
"from": { "type": "string", "description": "ISO 4217 code, e.g. USD" },
"to": { "type": "string", "description": "ISO 4217 code, e.g. EUR" }
},
"required": ["amount", "from", "to"]
}
},
"create_calendar_event": {
"description": "Add an event to the user's calendar.",
"parameters": {
"type": "object",
"properties": {
"title": { "type": "string" },
"date": { "type": "string", "description": "YYYY-MM-DD" },
"time": { "type": "string", "description": "HH:MM, 24-hour" },
"duration_minutes": { "type": "integer" }
},
"required": ["title", "date", "time", "duration_minutes"]
}
},
"set_timer": {
"description": "Start a countdown timer.",
"parameters": {
"type": "object",
"properties": { "minutes": { "type": "integer" } },
"required": ["minutes"]
}
},
"get_stock_price": {
"description": "Latest price of a stock by its ticker symbol.",
"parameters": {
"type": "object",
"properties": { "ticker": { "type": "string", "description": "e.g. AAPL" } },
"required": ["ticker"]
}
},
"search_files": {
"description": "Search the user's files.",
"parameters": {
"type": "object",
"properties": {
"query": { "type": "string" },
"extension": { "type": "string", "description": "File extension without the dot, e.g. pdf" }
},
"required": ["query"]
}
},
"send_message": {
"description": "Send a chat message to a contact.",
"parameters": {
"type": "object",
"properties": {
"recipient": { "type": "string" },
"text": { "type": "string" }
},
"required": ["recipient", "text"]
}
},
"calculate": {
"description": "Evaluate an arithmetic expression.",
"parameters": {
"type": "object",
"properties": { "expression": { "type": "string", "description": "e.g. 3 * (4 + 5)" } },
"required": ["expression"]
}
}
},
"items": [
{
"id": "weather-berlin",
"tools": ["get_weather", "get_stock_price", "set_timer"],
"prompt": "What's the weather in Berlin right now? Use Celsius.",
"expect": { "name": "get_weather", "args": { "city": "Berlin", "unit": "celsius" } }
},
{
"id": "currency-usd-eur",
"tools": ["convert_currency", "calculate", "get_stock_price"],
"prompt": "How much is 250 US dollars in euros?",
"expect": { "name": "convert_currency", "args": { "amount": 250, "from": "USD", "to": "EUR" } }
},
{
"id": "calendar-budget",
"tools": ["create_calendar_event", "set_timer", "send_message"],
"prompt": "Put a meeting called Budget review on 2026-11-03 at 14:30 for 45 minutes in my calendar.",
"expect": { "name": "create_calendar_event", "args": { "title": { "contains": "budget review" }, "date": "2026-11-03", "time": "14:30", "duration_minutes": 45 } }
},
{
"id": "timer-12",
"tools": ["set_timer", "create_calendar_event", "get_weather"],
"prompt": "Set a timer for 12 minutes.",
"expect": { "name": "set_timer", "args": { "minutes": 12 } }
},
{
"id": "stock-aapl",
"tools": ["get_stock_price", "convert_currency", "search_files"],
"prompt": "What's Apple's stock price at the moment? The ticker is AAPL.",
"expect": { "name": "get_stock_price", "args": { "ticker": "AAPL" } }
},
{
"id": "files-invoices",
"tools": ["search_files", "send_message", "calculate"],
"prompt": "Find my PDF files about invoices.",
"expect": { "name": "search_files", "args": { "query": { "contains": "invoice" }, "extension": { "oneOf": ["pdf", ".pdf"] } } }
},
{
"id": "message-maria",
"tools": ["send_message", "create_calendar_event", "set_timer"],
"prompt": "Tell Maria that I'll be ten minutes late.",
"expect": { "name": "send_message", "args": { "recipient": "Maria", "text": { "contains": "late" } } }
},
{
"id": "weather-tokyo-f",
"tools": ["get_weather", "convert_currency", "search_files"],
"prompt": "Weather in Tokyo, in Fahrenheit please.",
"expect": { "name": "get_weather", "args": { "city": "Tokyo", "unit": "fahrenheit" } }
},
{
"id": "currency-jpy-chf",
"tools": ["calculate", "convert_currency", "get_weather"],
"prompt": "Convert 1200 Japanese yen to Swiss francs.",
"expect": { "name": "convert_currency", "args": { "amount": 1200, "from": "JPY", "to": "CHF" } }
},
{
"id": "timer-90",
"tools": ["create_calendar_event", "set_timer", "send_message"],
"prompt": "I need a 90 minute timer.",
"expect": { "name": "set_timer", "args": { "minutes": 90 } }
},
{
"id": "calendar-dentist",
"tools": ["send_message", "get_weather", "create_calendar_event"],
"prompt": "Schedule 'Dentist' for 2026-12-01 at 09:00, it takes 30 minutes.",
"expect": { "name": "create_calendar_event", "args": { "title": { "contains": "dentist" }, "date": "2026-12-01", "time": "09:00", "duration_minutes": 30 } }
},
{
"id": "calc-17x23",
"tools": ["calculate", "get_stock_price", "set_timer"],
"prompt": "What is 17 times 23? Use the calculator.",
"expect": { "name": "calculate", "args": { "expression": { "matches": "^\\s*17\\s*[*x×]\\s*23\\s*$" } } }
}
]
}