refactor: stop storing gateway key IDs#27171
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
@codex review |
Dogfood migration UAT passed.
The preserved database was then migrated to #27172 successfully. |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
dbede83 to
edea7df
Compare
6635cd2 to
7557de2
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
edea7df to
ab1009d
Compare
2a464a3 to
e6a9d4f
Compare
ab1009d to
500b588
Compare
e6a9d4f to
21f7269
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Final-stack targeted dogfood passed after the FK-decoupling fix.
This supplements the earlier full UI/API/database UAT and validates the final rewritten stack heads. |

Summary
Stop reading and writing the legacy
api_key_idcolumns on chat messages and queued messages. Runtime AI Gateway attribution continues to use the per-user synthetic key introduced by #27170.The nullable text columns remain for rolling deployment compatibility, but #27170 has already removed their foreign keys. Any IDs stamped by older replicas remain inert. This PR must be fully deployed before #27172.
Depends on #27170.