chore(ai-gateway): formalize llm gateway migration - #75899
chore(ai-gateway): formalize llm gateway migration#75899richardsolomou wants to merge 19 commits into
Conversation
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
Hey @richardsolomou! 👋 It looks like your git author email on this PR isn't your
You can fix it for this repo with: git config user.email "you@posthog.com"Or set it globally with |
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
benjackwhite
left a comment
There was a problem hiding this comment.
hell yeah - no idea if this will work but this is the kind of idea i was hoping for
👀 Auto-assigned reviewersThese soft owners were skipped because they only have minor changes here. Nothing blocks merge, so self-assign if you'd like a look:
Soft owners come from each directory's |
Prompt To Fix All With AI### Issue 1
services/llm-gateway/PARITY.md:82
**Fallback policy breaks staged rollout**
When an agent migrates a supported caller through a shared Go-capable builder, this checklist restricts the Python fallback to parity blockers even though the builders retain it for staged rollout. Following this instruction removes the rollback path and leaves callers unable to run when the Go gateway configuration is unset or only partially deployed.
```suggestion
5. Keep the Python fallback only for staged rollout or a named blocker. Record the rollout plan or blocker in the PR.
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Reviews (1): Last reviewed commit: "chore(ai-gateway): refresh migration gui..." | Re-trigger Greptile |
Generated-By: PostHog Code Task-Id: e2e45fbc-1c5e-4ef2-9688-bcc941c2229c
Problem
Why: Gateway callers need one clear default while the Go gateway catches up with the remaining first-party contracts. Without a migration policy and current parity record, new Python gateway work can widen the gap and make the eventual move harder.
Changes
How did you test this code?
pnpm dlx oxfmt@0.57.0 --check AGENTS.md services/llm-gateway/PARITY.md .agents/skills/auditing-llm-gateway-parity/SKILL.md .agents/skills/finding-llm-gateway-migration-candidates/SKILL.md .agents/skills/migrating-llm-gateway-callers/SKILL.md .agents/skills/migrating-llm-gateway-callers/references/migration-examples.mdpnpm dlx markdownlint-cli2@0.18.1 --config .config/.markdownlint-cli2.jsonc AGENTS.md services/llm-gateway/PARITY.md .agents/skills/auditing-llm-gateway-parity/SKILL.md .agents/skills/finding-llm-gateway-migration-candidates/SKILL.md .agents/skills/migrating-llm-gateway-callers/SKILL.md .agents/skills/migrating-llm-gateway-callers/references/migration-examples.mdgit diff --check👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
This PR adds the migration policy and parity guide used by coding agents. No product documentation update is required.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Codex audited the Python and Go gateways, representative callers, shared clients, deployment wiring, and merged migration PRs. The three workflows remain separate: refresh the parity record, discover and rank candidates, then migrate a selected caller. Candidate discovery verifies the production process, API shape, model, attribution, and billing route before recommending work.
Created with PostHog Code