Skip to content

Fix Vercel runtime OIDC inference readiness - #268

Merged
Ankit6149 merged 1 commit into
masterfrom
fix/vercel-oidc-runtime-inference
Sep 4, 2026
Merged

Fix Vercel runtime OIDC inference readiness#268
Ankit6149 merged 1 commit into
masterfrom
fix/vercel-oidc-runtime-inference

Conversation

@Ankit6149

Copy link
Copy Markdown
Owner

Why

Production GP2 readiness is stuck at 2/8 even after #267 because Vercel supplies its function OIDC identity request-scoped (x-vercel-oidc-token), while SignalFlow only checked process.env.VERCEL_OIDC_TOKEN. The readiness card therefore reports Hosted inference missing, and the real generation routes cannot consume the runtime token either.

What changes

  • add a bounded server-only runtime OIDC reader that prefers x-vercel-oidc-token and falls back to VERCEL_OIDC_TOKEN
  • wire the same owner-scoped runtime credential through all six canonical intelligence routes: project context, opportunity, strategy, platform draft, targeted revision, critics
  • pass the token only as the Vercel Gateway credential for authenticated owner requests; it is never returned to the client or persisted
  • make GP2 readiness evaluate the actual request-scoped runtime identity
  • keep explicit AI Gateway/direct-provider keys as fallbacks
  • fix the empty Hosted inference missing-card label by emitting a UI-safe configuration identifier
  • add regression tests for runtime token precedence/rejection, readiness, and all six inference routes

Safety

Base / head

  • base: 9df4ab710bcc00c3cd7d4da14f3c08a15d82cad9
  • head: b90dc9d15cdd32a1a9c86c3e6d4c66e394af33d7
  • one squashed commit

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
signal-flow-studio Ready Ready Preview Sep 4, 2026 7:27pm UTC

Use the request-scoped x-vercel-oidc-token supplied to Vercel Functions for authenticated owner inference and GP2 readiness. Keep explicit Gateway/provider keys as fallbacks, never expose the token, and cover all six canonical intelligence routes plus readiness/UI contracts with regression tests.
@Ankit6149
Ankit6149 force-pushed the fix/vercel-oidc-runtime-inference branch from 154062c to 8efc8ec Compare September 4, 2026 19:27
@Ankit6149
Ankit6149 merged commit 46dbef2 into master Sep 4, 2026
5 checks passed
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