You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: relocate quota tracker DO to agent worker behind capability entrypoints
Move the QuotaTracker Durable Object from gateway-worker to agent-worker,
where its consumers (run admission, Composio metering, accrual flush) live.
Cross-worker access now goes through capability-scoped WorkerEntrypoints with
strict-Zod ctx.props validation instead of full cross-script DO namespaces:
- agent-worker: local QUOTA_TRACKER binding + appended new_sqlite_classes v3;
GatewayQuotaEntrypoint {history, peek, setLimit} and QuotaDeletionEntrypoint
{deleteAllState} exported as named entrypoints
- gateway-worker: class export + local binding removed; service binding to
GatewayQuotaEntrypoint; appended deleted_classes v4 (fires only after all
bindings/code refs are gone)
- webhooks-worker: cross-script DO binding replaced by QUOTA_DELETION service
binding scoped to deleteAllState only
- dependency-cruiser: quota-runtime imports restricted to the agent DO shell
(rule proven firing via probe)
Net privilege reduction: gateway/webhooks previously held full 8-method DO
namespaces; each is now confined to its exact baseline call set. All 503
service_maintenance_unavailable translations preserved at every call site.
Deploy is roll-forward-only per the approved rev-5.2 sequence (agent ->
webhooks -> gateway). Pre-cutover quota counters are discarded at the gateway
deploy; sanctioned pre-launch with disposable data.
0 commit comments