Skip to content

Fix 18 factual errors: pricing, limits, API names, sandbox docs, CLI syntax - #35

Merged
dmmulroy merged 1 commit into
cloudflare:mainfrom
adewale:fix/factual-errors-pricing-limits-apis
Apr 1, 2026
Merged

Fix 18 factual errors: pricing, limits, API names, sandbox docs, CLI syntax#35
dmmulroy merged 1 commit into
cloudflare:mainfrom
adewale:fix/factual-errors-pricing-limits-apis

Conversation

@adewale

@adewale adewale commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes 18 categories of factual errors verified against the official Cloudflare documentation. Each correction includes the source of truth URL. 38 files changed across 37 skill files + README.

Changes

Pricing (off by 10x–1000x)

  • KV reads: $0.50 per 10M$0.50 per 1Msource
  • D1 reads: $0.001 per 1K$0.001 per million + added missing free/paid tier allowances — source

Limits

  • CPU time in 16 files: 30ms/50ms → 30s default / 5min max (paid) — source
  • Vectorize batch upsert: 500 → 1,000 (Workers) / 5,000 (HTTP API) — source
  • "KV reads" label: relabeled to "Subrequest operations (KV, R2, Cache API)" — shared 1,000 op quota — source

API names & patterns

  • routeAgentrouteAgentRequest (6 occurrences) — source
  • wrangler checkwrangler check startup (5 occurrences) — not config validation, it's startup profiling — source
  • nodejs_compat_v2nodejs_compat (8 occurrences) — v2 behavior auto-enabled with compat date ≥ 2024-09-23 — source
  • Agent binding "AGENT""MyAgent"routeAgentRequest discovers agents by class name — source
  • Multi-agent fetch() → RPC with getAgentByName()source
  • Secrets Store CLI: secret-store:secret putsecrets-store secret createsource

Sandbox SDK (4 fixes)

  • ctx.runCode()sandbox.runCode(code, { context })source
  • result.outputsresult.results (ExecutionResult type) — source
  • Docker image latest0.7.0 (version must match npm package) — source
  • exec() timeout 60s/120s → no default — source

Housekeeping

  • Wrangler version: v3.91.0+v4+source
  • web-perf description: added INP (replaced FID as Core Web Vital, March 2024) — source
  • README: added missing cloudflare-api MCP server (defined in .mcp.json but absent from table)

Not fixed in this PR

  • AIChatAgent / useAgentChat import paths — 3 different paths across files; needs verification against the actual npm package
  • this.statethis.ctx in workers/api.md and workerd/api.md — legacy DO pattern
  • Secrets Store config keywrangler/configuration.md:104 uses "secrets_store" with fields binding, id; two other files use "secrets_store_secrets" with fields binding, store_id, secret_name. Neither key is documented at https://developers.cloudflare.com/workers/wrangler/configuration/. Needs clarification from the Wrangler/Secrets team.

…CLI syntax

Verified each correction against official Cloudflare documentation.

- KV pricing wrong by 10x, D1 pricing wrong by 1000x
- CPU time limits showed ms instead of seconds across 16 files
- routeAgent misspelled (missing 'Request'), nodejs_compat_v2 standalone usage
- wrangler check described as config validation (actually startup profiling)
- Vectorize batch limit 500 -> 1000, wrangler version v3.91 -> v4
- Sandbox: runCode() API, return types, Docker tags, exec() timeout
- Agent binding name mismatch, multi-agent fetch() -> RPC
- Secrets Store CLI syntax, README missing cloudflare-api MCP server
- web-perf description missing INP, KV reads label misleading
@dmmulroy
dmmulroy merged commit 22a32f5 into cloudflare:main Apr 1, 2026
adewale pushed a commit to adewale/skills that referenced this pull request Apr 2, 2026
…limits, and docs

Incorporates upstream fixes from cloudflare/skills PRs cloudflare#34 and cloudflare#35:
- Fix Workers CPU time limits (ms → seconds across multiple files)
- Fix D1 pricing errors (removed fabricated $5/db fee, corrected read rate)
- Fix KV pricing (was wrong by 10x)
- Fix wrangler config references (TOML → JSONC)
- Fix Agents SDK configuration (new_classes → new_sqlite_classes)
- Fix sandbox docs (runCode() API, return types, exec() timeout)
- Fix secrets store CLI syntax
- Add missing cloudflare-api MCP server to README
- Fix vectorize batch limit (500 → 1000)
- Various other factual corrections

https://claude.ai/code/session_01VMYzryVgfa9JUTK5PKA4XU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants