Repository navigation
fix(ladder)!: every ramp step incl. AfterDays==0 becomes a Tranche, drop BuyNow - #351
Merged
Merged
Conversation
…drop TrancheResult.BuyNow The immediate step was returned as a BuyNow action the platform never persisted, so in-flight netting could not see it. Every non-zero step is now a scheduled Tranche (immediate: FireAfter == Now). Adds the issue-input regression test and the nil-InFlight validation test, and documents the amount unit on Tranche and InFlightUSDPerHour. Refs #36 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reached
This review includes 6 billable files and costs up to $1.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 58 minutes for your next included review. View limit details
Comment |
Member
Author
Independent merge-gate review (Opus, claude-opus-5-5): APPROVE at 829de8eBase: main 5b9155e (head not behind). Local runs from a fresh clone at the exact head, GOWORK=off, GOTOOLCHAIN=go1.26.9, GOMAXPROCS=2, -p 2. Evidence
Non-blocking follow-ups
|
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.
Every ramp step, including AfterDays == 0, is now a scheduled Tranche (immediate step: FireAfter == Now), and TrancheResult.BuyNow is removed. The immediate step used to be a BuyNow action that nothing persisted, so in-flight netting never saw it.
Breaking: the only consumer of BuyNow is the platform's internal/server/handler_ladder.go (cli and mcp checked); it needs a pin bump plus the platform B1 change (persist immediate rows, display-only plan JSON).
Tests: issue-input regression (gap 10, ramp [0:.5, 30:.5] gives two 5/hr tranches, step 0 at Now; fails before the change), nil InFlightUSDPerHour rejection. Units documented on Tranche.AmountUSDPerHour and InFlightUSDPerHour (#349).
Refs #36 (closes after the platform PRs).
🤖 Generated with Claude Code