Skip to content

Migrate hosted Jev decision provider to Cloudflare Clef - #250

Merged
0thernet merged 2 commits into
mainfrom
clef-migration-20261004
Oct 5, 2026
Merged

0thernet merged 2 commits into
mainfrom
clef-migration-20261004

Conversation

@0thernet

@0thernet 0thernet commented Oct 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Add src/clef.ts + crates/algal/src/clef.rs adapters for clef/clef-flash: strict REST envelope, exact model/question correspondence, embedded PNG/JPEG/WebP images with container validation, and interval-feasible handling of the provider's four-decimal scores
  • clefExecutor rejects custom-asker + configured-images combinations; src/clef-image.ts keeps the image type out of the browser compile graph; credentials are environment-only and requests are single-attempt
  • New algal --clef CLI path, cumulative-skill pipeline manifests, cross-runtime parity script (scripts/clef-parity.ts), and refreshed README/docs/spec; historical Jev pipeline tests and frozen evidence are byte-identical

Test plan

  • bun test src/clef.test.ts src/clef-fixture.test.ts src/experiment-pipeline-clef.test.ts src/clef-cli.test.ts (23 pass)
  • cargo test --locked -p algal --test clef + clef:: lib tests (10 pass)
  • bun scripts/clef-parity.ts (13 cross-runtime + 6 invalid-image + 12 CLI-capacity cases)
  • CI Required

Generated with Devin

Adds the Clef adapter (clef and clef-flash) for typed decide cells in
both the TypeScript and Rust runtimes, including embedded image support,
four-decimal provider rounding feasibility, and a browser-safe image
type contract. Credentials are environment-only and requests are
single-attempt with strict envelope validation. The historical Jev
pipeline tests and evidence stay byte-identical.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@0thernet
0thernet enabled auto-merge (squash) October 5, 2026 02:31
@vercel

vercel Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
algal Ready Ready Preview Oct 5, 2026 3:44am UTC

Request Review

The shard run wedges the bundler's process-global workers after child-
spawning test files on the Linux runner; build in a spawned child with a
SIGKILL timeout, matching the portable-application test's isolation.
@0thernet
0thernet merged commit 422b050 into main Oct 5, 2026
27 checks passed
@0thernet
0thernet deleted the clef-migration-20261004 branch October 5, 2026 03:49

This branch was successfully deployed

1 active deployment
Preview — 044ebc7a Deployed Oct 5, 2026 by vercel[bot]
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