Skip to content

Revert "feat(gateway): add per-member usage limit policies (#5056)" - #5124

Merged
benjaminshafii merged 1 commit into
devfrom
revert/5056-gateway-usage-limits
Sep 17, 2026
Merged

benjaminshafii merged 1 commit into
devfrom
revert/5056-gateway-usage-limits

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

Verification

  • git diff --exit-code 9b0adb8491f4de5c021d0cd137342722f9c0bf0a^ HEAD passed: resulting tree exactly matches the original parent.
  • git diff --check origin/dev...HEAD passed.
  • Runtime tests and UI screenshots not run; this is a mechanical revert, not new UI.

Deployment note

This removes migration files 0102–0104 from source; it does not undo migrations already applied to a database. If these migrations have been deployed, database rollback compatibility needs deployment review.

@mintlify

mintlify Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
differentai 🟢 Ready View Preview Sep 17, 2026, 7:20 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@vercel

vercel Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 17, 2026 7:21pm UTC
openwork-den Ready Ready Preview Sep 17, 2026 7:21pm UTC
openwork-diagnostics Ready Ready Preview Sep 17, 2026 7:21pm UTC
openwork-landing Ready Ready Preview, v0 Sep 17, 2026 7:21pm UTC

@benjaminshafii
benjaminshafii enabled auto-merge (squash) September 17, 2026 19:20

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Machine-verified at e0d62c26e5d3b714caf6e3e982625f5d7b977fbe: this PR's tree is the exact inverse of commit 9b0adb8491f4de5c021d0cd137342722f9c0bf0a, which previously landed on protected dev via a reviewed PR. Auto-approval per the clean-revert fast-lane control, bound to the verified commit; any further push re-runs verification.

@benjaminshafii

Copy link
Copy Markdown
Member Author

Read-only incident investigation

  • Render inference-private deployed 9b0adb8 at 2026-09-17 18:50:27 UTC. Its deployment history shows an existing rollback to 030be3e completed at 19:17:48 UTC; this investigation did not trigger that rollback.
  • During that window, logs repeatedly report Gateway usage admission rejected. A sampled request at 19:16:35 UTC returned HTTP 503 after 21,448 ms.
  • PlanetScale Insights identifies select id from organization where organization.id = ? for update as the top query by total time in its returned reporting window: 542 executions, 175 errors, approximately 16.15 s average and 19.99 s p99. These totals are the Insights reporting window, not an independently bounded incident count.
  • The introduced gateway usage transaction wrapper acquires this organization row lock (original source lines 65–69), consistent with organization-wide contention. Insights also reports transaction-killer rollbacks, closed transactions and exceeded 20-second timeouts. This strongly implicates the new serialized accounting path; the exact long-running lock holder was not captured.
  • Live read-only lock inspection after rollback returned zero waiting locks. This alone does not prove complete recovery.
  • Read-only schema inspection confirms gateway usage policy/accounting tables already exist in production. Removing migration files 0102–0104 does not undo applied schema. No database writes, schema rollback, service restart or deployment was performed by this investigation.

Verification: a separately prepared exact inverse was confirmed byte-for-byte equal to the original parent tree; whitespace checks passed. Runtime tests and UI screenshots were not run. Reusing this existing PR rather than opening a duplicate.

@benjaminshafii
benjaminshafii merged commit c70481e into dev Sep 17, 2026
39 checks passed

This branch was successfully deployed

5 active and 1 inactive deployments
Preview – openwork-landing — e0d62c26 Deployed Sep 17, 2026 by vercel[bot]
staging - packages/docs — e0d62c26 Deployed Sep 17, 2026 by mintlify[bot]
Preview – openwork-app — e0d62c26 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-den — e0d62c26 Deployed Sep 17, 2026 by vercel[bot]
Preview – openwork-diagnostics — e0d62c26 Deployed Sep 17, 2026 by vercel[bot]
warden-clearance — e0d62c26 Deployed Sep 17, 2026 by benjaminshafii via verify-and-approve #4266
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.

2 participants