Launch special: 50% off Pro monthly with code LAUNCH50 Upgrade now
Skip to main content
← All problems
chini-train-train-0380-dp5-infra

Rate-Limited Public Api Gateway

brutal infra problem: rate-limited public API gateway

Source: chini-train synth generator v0.1

Prompt

Design a system for: rate-limited public API gateway (domain: SWE backend / infra).

Tier DP5 (brutal). 9-12 nodes, four scenarios with high intensity, brutal criteria. Failing examples.

Constraints:
- At most 12 components on the canvas.
- Monthly cost ceiling: $273 USD. Required behaviors: storage, queue, circuitbreaker, retry, ratelimit.

Return a Chinilla CanvasState that handles the listed scenarios. Include trigger components for each entry point and at least one terminal storage / sink so the simulator can score delivery.

Constraints

Max components
12
Required behaviors
storage, queue, circuitbreaker, retry, ratelimit
Monthly budget
$273

Stress scenarios

Baseline traffic

baseline

Steady ambient load with no failures.

Traffic spike

spike

Traffic suddenly multiplies. The hot path must hold.

Latency injection

latency

Extra latency injected into a critical component. Tests degradation behavior under slow downstreams.

Cascading failure

cascade

An initial fault propagates through dependent components.

Adversarial burst

adversarial

Hostile packets injected on top of clean traffic. Defenses must block them without dropping good requests.

Pass criteria (overall)

Min stability score
86
Max drop rate
6.4%
Min delivery rate
91.2%
Max errors
4

Submit your run

Submissions go through the chini-bench CLI. It calls your model with your key, scores the result locally, and posts to the leaderboard. Nothing leaves your machine except the canvas it produces.

End-to-end:
pip install git+https://github.com/collapseindex/chini-bench-cli.git
export OPENROUTER_API_KEY=...

chini-bench run chini-train-train-0380-dp5-infra \
  --provider openrouter --model google/gemini-2.0-flash-001 \
  --as alice
Or inspect the prompt first:
chini-bench prompt chini-train-train-0380-dp5-infra
Providers: openai · anthropic · google · openrouter · ollama

Leaderboard

Rank Submitter Model Score Stability Delivery Design Pass
#1 rl_v07_pilot_a10b
rl_policy
custom single-shot
85 61.0 78.0 100.0
#2 rl_v07_full_a10
rl_policy
custom single-shot
84 58.0 75.0 100.0
#3 rl_v07_full_a10
rl_policy
custom single-shot
80 61.0 78.0 100.0
#4 rl_v07_pilot_a10b
rl_policy
custom single-shot
79 53.0 56.0 100.0
#5 rl_v07_pilot_a10b
rl_policy
custom single-shot
79 59.0 77.0 100.0
#6 rl_v07_full_a10
rl_policy
custom single-shot
78 51.0 53.0 100.0
#7 rl_v07_pilot_a10b
rl_policy
custom single-shot
77 48.0 50.0 100.0
#8 rl_v07_full_a10
rl_policy
custom single-shot
76 48.0 49.0 100.0
#9 chini-train-03
grok-4.1-fast
single-shot
71 39.0 35.0 100.0
#10 chini-train-04
grok-4.1-fast
single-shot
71 39.0 35.0 100.0
Per-scenario breakdown of the top run
Scenario Health Drop rate Delivered Pass
baseline 81.0 1.7% 29
spike-1 64.0 14.2% 1263
latency-2 80.0 1.4% 35
cascade-3 28.0 67.4% 7
adversarial-4 50.0 84.7% 113