Prepare
Copy a fresh fixture into a uniquely named workspace.
Experiment 01 · Python agents
Ten controlled Python engineering tasks measure whether skills, agent topologies, and trigger rules can reduce cost without sacrificing correctness.
Every attempt begins from the same clean fixture. The agent sees the task and public tests; an external verifier later applies hidden checks and protects the experiment from accidental contamination.
Copy a fresh fixture into a uniquely named workspace.
Pin model, reasoning effort, condition, permissions, and timeout.
The agent reads TASK.md, edits Python, and runs visible tests.
Trusted code runs compilation, public, hidden, and scope checks.
Save success, tokens, estimated cost, elapsed time, and traces.
TASK.mdchallenge/ packageThe suite spans parsing, data pipelines, state, concurrency, API contracts, security, and refactoring. Expand any card to see what makes the case difficult and what successful behavior looks like.
Convert USD, TRY, and EUR strings into exact integer minor units while rejecting malformed or ambiguous values.
python-data-normalizationNaive string replacement accepts malformed grouping and can silently produce the wrong number of minor units.
Normalize customer data, preserve record line numbers, and distinguish identical duplicates from conflicting ones.
python-data-normalizationLine numbering becomes subtle when quoted fields contain newlines, and duplicate policy depends on normalized content.
Repair expiration behavior with an injected clock and precise handling at the exact TTL boundary.
python-systematic-debuggingA one-character boundary error or a wall-clock dependency can pass ordinary tests while remaining incorrect and flaky.
Make job claiming atomic without serializing independent handler work, while preserving ownership and cancellation semantics.
python-systematic-debuggingHolding a global lock during the handler removes the race but also destroys the required concurrency.
Implement a mutation-safe endpoint with exact field validation, stable error messages, and duplicate detection.
python-api-contractsCorrectness depends on exact response shape and messages, not only on returning a broadly appropriate HTTP status.
Add opaque cursor pagination without breaking legacy behavior or losing records that share a timestamp.
python-api-contractsTimestamp-only cursors skip or repeat tied events, while careless API changes break existing callers.
Validate every archive entry before writing anything, blocking traversal, symlinks, absolute paths, and encoding tricks.
python-security-hardening
Simple prefix checks and extractall() miss
platform-specific and symlink-assisted escape paths.
Secure a search query while treating SQL wildcard characters as literal input and validating pagination controls.
python-security-hardeningParameterizing the search term alone does not make unchecked sort identifiers safe or make percent signs literal.
Extract three duplicated name validators into one shared function without changing any observable behavior.
python-behavior-preserving-refactorA refactor can pass happy paths but subtly alter exception types, messages, whitespace rules, or compatibility.
Process large iterables concurrently with a fixed worker pool while preserving result order and cancellation behavior.
python-behavior-preserving-refactorA semaphore around thousands of pre-created tasks limits active calls but still violates the bounded-worker requirement.
Cost alone is not enough. A cheap failure is not an optimization, so every configuration is evaluated on resource use and executable correctness together.
Input plus output tokens, without double-counting cached input or reasoning output.
Uncached input, cached input, and output are multiplied by a frozen price snapshot.
Accepted runs divided by all attempts. Failed attempts remain in the cost total.
Wall-clock duration captures the latency tradeoff introduced by skills, retries, and additional agents.
cost per accepted result = total cost of all attempts ÷ accepted runs
A run is accepted only when all five gates pass. Human impressions can be reported separately, but they never override an executable failure.
One failed hidden test or one protected-file modification makes the entire run unsuccessful.