Skip to content

feat(provisioner): add RegradeResource RPC for tier connection-cap re-grade#2

Merged
mastermanas805 merged 1 commit into
masterfrom
phase1-resource-regrade
May 15, 2026
Merged

feat(provisioner): add RegradeResource RPC for tier connection-cap re-grade#2
mastermanas805 merged 1 commit into
masterfrom
phase1-resource-regrade

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

Summary

  • Adds RegradeRequest / RegradeResponse messages + the RegradeResource RPC to ProvisionerService.
  • The RPC re-applies a resource's tier-derived HARD limits (Postgres role CONNECTION LIMIT) to already-provisioned infrastructure — a plan upgrade now extends real capacity, not just the resources.tier label. Idempotent.
  • Regenerated provisioner.pb.go + provisioner_grpc.pb.go via buf generate.

Phase 1 of the entitlement re-grade work. This is the first PR in a 4-repo chain — it must merge before the provisioner and worker PRs, whose CI builds check out proto@master as a sibling.

Release order

  1. proto (this PR) → library only, no deploy
  2. provisioner — RegradeResource handler
  3. worker — entitlement_reconciler job
  4. api — migration 047

Test plan

  • go build ./... clean in proto
  • Downstream provisioner / worker PR CI goes green once this merges

🤖 Generated with Claude Code

…-grade

Adds RegradeRequest / RegradeResponse messages and the RegradeResource
RPC to ProvisionerService. The RPC re-applies a resource's tier-derived
HARD limits (currently the Postgres role CONNECTION LIMIT) to its
already-provisioned infrastructure, so a plan upgrade extends real
capacity rather than only the resources.tier label. Idempotent.

Phase 1 of the entitlement re-grade work (api/SPEC-resource-regrade-autoscaling.md).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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