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

Rate-Limited Public Api Gateway

hard 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 DP4 (hard). 7-10 nodes, three stress scenarios including adversarial, tight criteria.

Constraints:
- At most 11 components on the canvas.
- Monthly cost ceiling: $366 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
11
Required behaviors
storage, queue, circuitbreaker, retry, ratelimit
Monthly budget
$366

Stress scenarios

Baseline traffic

baseline

Steady ambient load with no failures.

Traffic spike

spike

Traffic suddenly multiplies. The hot path must hold.

Cascading failure

cascade

An initial fault propagates through dependent components.

Dependency outage

outage

A downstream component is disabled. System must degrade gracefully.

Pass criteria (overall)

Min stability score
79
Max drop rate
8.8%
Min delivery rate
87.5%
Max errors
6

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-0300-dp4-infra \
  --provider openrouter --model google/gemini-2.0-flash-001 \
  --as alice
Or inspect the prompt first:
chini-bench prompt chini-train-train-0300-dp4-infra
Providers: openai · anthropic · google · openrouter · ollama

Leaderboard

Rank Submitter Model Score Stability Delivery Design Pass
#1 rl_v07_full_a10
rl_policy
custom single-shot
80 64.0 51.0 100.0
#2 rl_v07_full_a10
rl_policy
custom single-shot
79 61.0 48.0 100.0
#3 rl_v07_full_a10
rl_policy
custom single-shot
78 60.0 46.0 100.0
#4 rl_v07_full_a10
rl_policy
custom single-shot
78 60.0 47.0 100.0
#5 chini-train-03
grok-4.1-fast
single-shot
73 51.0 33.0 100.0
#6 chini-train-04
grok-4.1-fast
single-shot
73 51.0 33.0 100.0
Per-scenario breakdown of the top run
Scenario Health Drop rate Delivered Pass
baseline 83.0 1.1% 44
spike-1 70.0 9.7% 1779
cascade-2 30.0 61.2% 13
outage-3 73.0 1.9% 0