Round #872

11 May 2026, 09:54· csharp· Meta-Llama-3.3-70B-Instruct· r15-firing-v3
Complexity
band 1
ZP / UO / OBS
3 / 0 / 10
Journey weight
977
Lightshift ΔL

Prompt

Write a switch expression that maps an int status code (200, 301, 404, 500) to a string label. Use the 'when' clause for the 5xx range.

Zero-point index (what the engine surfaced)

ZPI-ZPI-0004 | 2026-05-11T09:54:23Z Write a switch expression that maps an int status code (200, 301, 404, 500) to a string label. Use the 'when' clause for the 5xx range. ZERO POINT — 3 entries (structural invariants) ● hsl(7.18, 100%, 50%) class [feature] ● hsl(0.00, 100%, 50%) public [feature] ● hsl(84.10, 100%, 50%) namespace [feature] UNOBSERVED — 0 entries (implied truths) OBSERVED — 10 entries (explicit in request) ◉ hsl(34.87, 100%, 15%) switch [feature] ◉ hsl(113.85, 100%, 15%) int [feature] ◉ hsl(133.33, 100%, 15%) string [feature] ◉ hsl(142.56, 100%, 15%) Range [feature] ◉ hsl(215.38, 100%, 15%) switch [feature] ◉ hsl(248.21, 100%, 15%) Switch expression [feature] ◉ hsl(249.23, 100%, 22%) With expression [feature] ◉ hsl(256.41, 100%, 15%) Range expression [feature] ◉ hsl(264.62, 100%, 22%) is expression [feature] ◉ hsl(265.64, 100%, 22%) as expression [feature] COMPLEXITY │ 13 entries │ spread: 231° │ band: MEDIUM

Baseline response (no ZPI)

```csharp public static string GetStatusLabel(int statusCode) => statusCode switch { 200 => "OK", 301 => "Moved Permanently", 404 => "Not Found", _ when (statusCode >= 500 && statusCode < 600) => "Internal Server Error", _ => "Unknown Status Code" }; ``` In this code: - We define a method `GetStatusLabel` that takes an integer `statusCode` as input. - We use a switch expression to map the `statusCode` to a string label. - For the 5xx range, we use the `when` clause to match any status code between 500 and 599. - If the status code does not match any of the specified cases, we return "Unknown Status Code". Example usage: ```csharp public static void Main() { Console.WriteLine(GetStatusLabel(200)); // Outputs: OK Console.WriteLine(GetStatusLabel(301)); // Outputs: Moved Permanently Console.WriteLine(GetStatusLabel(404)); // Outputs: Not Found Console.WriteLine(GetStatusLabel(500)); // Outputs: Internal Server Error Console.WriteLine(GetStatusLabel(501)); // Outputs: Internal Server Error Console.WriteLine(GetStatusLabel(999)); // Outputs: Unknown Status Code } ```

Enhanced response (with ZPI)

```csharp int statusCode = 500; string label = statusCode switch { 200 => "OK", 301 => "Moved Permanently", 404 => "Not Found", _ when statusCode >= 500 && statusCode < 600 => "Server Error", _ => "Unknown Status Code" }; ```

Grader chain

Each grader reads the same baseline + enhanced pair and casts an independent verdict. Disagreement is the framework's own signal — not noise to be averaged away.

V1samba/Meta-Llama-3.3-70B-Instruct
Worse
V4qwen2.5-coder-3b-instruct
Better
V5openrouter/qwen/qwen3-235b-a22b-2507
Worse
V7qwen2.5-coder-7b-instruct
Same
V8openai/gpt-4.1
Worse
V9anthropic/claude-opus-4-7
Better
V12openai/gpt-4o
Worse

Comments

Our grader said what it said. What do you say? Comment as a guest below.

No comments yet. Be the first to say what you make of this round.

← back to all rounds