Repository navigation
fix(ladder): hold the buffer purchase when its layer has a pending reshape - #629
Merged
Merged
Conversation
Contributor
|
Warning Review limit reached
This review includes 3 billable files and costs up to $0.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 1 minute for your next included review. View limit details
Comment |
Member
Author
|
Review verdicts at 4a8474c: two independent cold reviews (non-author), both APPROVE.
CodeRabbit did not review (review limit reached). [claude-cc-libs] |
…shape A run could emit a buffer-layer purchase and a RESHAPE recommendation for the same layer. buildResult now converts a buffer-only layer's allocation into an informational Hold when that layer has a reshape, so the run buys less instead of adding to an under-utilized layer. Layers that also carry the base or flex role keep their allocation. Closes #30 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rewrite the garbled docstring, remove the unreachable flex-role clause (validation rejects flex+buffer) and make the changelog entry accurate about cap and max-actions side effects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cristim
force-pushed
the
fix/30-hold-buffer-on-reshape
branch
from
October 26, 2026 08:01
4a8474c to
d8f389f
Compare
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.
Closes #30
Change
buildResult(pkg/ladder/allocate.go) calls the newholdReshapedBufferAllocationsright aftersplitGap. When a layer has a reshape and is buffer-only, its allocation becomes an informationalActionHold(rationale names the pending reshape) and the reshape still appears. Other layers and allocations are unchanged.assembleAllocations(mergedGap = baseGap + bufferGap).Tests
go test -race -count=1 ./...inpkg(workspace andGOWORK=off) andproviders/aws, and golangci-lint onpkg: clean.🤖 Generated with Claude Code