01 / DECISION
When this primitive earns a place
Use Workers AI when managed inference near the Worker reduces integration friction and the task tolerates probabilistic output.
02 / ARCHITECTURE
Build the smallest defensible path
Pin a current model, constrain input, request a narrow output shape, validate before use, set token and timeout budgets, and keep a deterministic fallback.
- 01Name the contract
Use Workers AI when managed inference near the Worker reduces integration friction and the task tolerates probabilistic output.
- 02Add one primitive
Pin a current model, constrain input, request a narrow output shape, validate before use, set token and timeout budgets, and keep a deterministic fallback.
- 03Capture failure evidence
Run fixed test prompts, reject malformed output, measure latency and token use, and prove timeout plus fallback behavior.
03 / REPRODUCE
Evidence before confidence
Run fixed test prompts, reject malformed output, measure latency and token use, and prove timeout plus fallback behavior.
curl -fsS https://lab.cloudflare.claude-world.com/api/health 04 / BOUNDARY
The production boundary
Model output is not authorization, truth, or a safe command. Never pass untrusted output directly into privileged tools.
05 / FIRST-PARTY SOURCES
Keep first-party sources authoritative
Product behavior, limits, pricing, and availability can change. Re-check these sources before acting.