fix: close recovered ccrotate capacity escalations - #542
Merged
Conversation
added 2 commits
June 30, 2026 02:01
Signed-off-by: Search <search@example.com>
Signed-off-by: Search <search@example.com>
Author
|
Follow-up pushed for PEN-407 after review wake.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
Linked Issues or Issue Description
What Changed
closeRecoveredCcrotateCapacityEscalations()to the recovery service for openccrotate_capacity_exhaustedissues scoped by(company, target).ccrotate_capacityscheduled retry re-checks the gate and capacity has returned.done, adds a recovery comment, and permits a later fresh outage issue for the same pool.Verification
pnpm run preflight:workspace-links && pnpm exec vitest run server/src/__tests__/heartbeat-ccrotate-capacity-retry.test.ts(7 passed)pnpm --filter @paperclipai/server typecheckgit diff --checkRisks
ccrotate_capacity_exhaustedissues with matching company and target, and it is best-effort so a close failure cannot block retry promotion.ccrotateTarget, the code falls back to the adapter-to-target mapping and skips closing if no target can be determined.Model Used
openai/gpt-5.5) with tool use for code inspection, editing, git, tests, and GitHub/Paperclip operations.Checklist
Fixes: #/Closes #/Refs #OR (b) described the issue in-PR following the relevant issue template