Skip to content

refactor(ai-gateway): add Effect account runtime - #167

Merged
robinbraemer merged 1 commit into
mainfrom
feat/ai-gateway-effect-accounts
Aug 1, 2026
Merged

refactor(ai-gateway): add Effect account runtime#167
robinbraemer merged 1 commit into
mainfrom
feat/ai-gateway-effect-accounts

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Advances #105 and #102.

Outcome

  • switches the live AI Gateway entrypoint to an Effect-native account store, vault, and ManagedAccountVault layer
  • implements OpenAI Codex device-code login and refresh over scoped Effect HttpClient, with bounded responses and typed redacted failures
  • preserves private 0700/0600 state, atomic fsync/rename writes, bounded files, cross-process locking, virtual-time retries, and interruption-safe release
  • deduplicates refresh across fibers and processes by holding the durable scoped store lock through the Effect refresh transaction
  • leaves the legacy Promise service/compaction compatibility graph byte-identical and explicitly baselined for its later full characterization/removal slice

Verification

  • bun run check
    • Effect policy: 409 assigned TypeScript paths, zero violations
    • legacy: 529 pass, 4 intentional skips, 0 fail
    • Effect: 260 pass
    • site: 114 pass
    • build, root typecheck, site lint, site typecheck pass
  • executable smoke: help created zero state entries; /healthz 200; empty-account /readyz 503; SIGINT scoped shutdown observed and accepted

This does not close #105: the unchanged legacy service/proxy/routing/account compatibility graph and its Promise-era tests remain scheduled migration inventory.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
agentos-site ba9d12b Aug 01 2026, 09:27 PM

@robinbraemer
robinbraemer merged commit 8920697 into main Aug 1, 2026
1 of 3 checks passed
@robinbraemer
robinbraemer deleted the feat/ai-gateway-effect-accounts branch August 1, 2026 21:30
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.

refactor(effect): migrate AI Gateway and provider-access services

1 participant