Skip to content

Add the platform API: challenges and a GPU proof queue on Cloudflare - #112

Merged
AbdelStark merged 3 commits into
mainfrom
cloudflare-api
Nov 26, 2026
Merged

AbdelStark merged 3 commits into
mainfrom
cloudflare-api

Conversation

@AbdelStark

Copy link
Copy Markdown
Member

One Cloudflare Worker (api/) serves the web preview and an API at akashi.lucidcomputing.ai.

  • Challenges POST/GET /api/v1/challenges: shape checks plus the spec quotas (10 per key per hour, 3 per reply per day), enforced in one D1 transaction.
  • Proof queue: one job per challenged reply, shared by every challenge on that reply. GPUs pull work through /api/v1/prover/claim and /jobs/:id under leases, authenticated with PROVER_TOKEN. Expired leases are retried, then settled unavailable.
  • Mock GPUs: the cron plays two H100s through the same claim and complete calls. Set MOCK_GPUS=0 once real workers are connected.
  • Not real yet: the receipt or key verification at intake, verdict signing, and handing the transcript to the GPU. See api/README.md.
  • CI: api.yml runs the type check and 10 tests in the Workers runtime.

🤖 Generated with Claude Code

AbdelStark and others added 3 commits November 26, 2026 14:06
One Worker serves the web preview and /api at akashi.lucidcomputing.ai.
Challenges share one proof job per reply in D1; GPU workers pull jobs
under leases. The cron mocks two H100s until real workers are connected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AbdelStark
AbdelStark merged commit 04033c5 into main Nov 26, 2026
@AbdelStark
AbdelStark deleted the cloudflare-api branch November 26, 2026 17:25
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.

1 participant