Description
Context
PR LeanerCloud/cloud-commitments-cli#808 (closes LeanerCloud/cloud-commitments-cli#292) implements the AWS RI Marketplace list and cancel flows for Standard RIs. To keep that PR landable, two parts of LeanerCloud/cloud-commitments-cli#292 were intentionally descoped:
- Status poller that transitions a listing
active -> closedonce it sells, and records realized proceeds and the AWS transaction fee actually charged. - Seller-account precondition UI that checks the AWS seller account is registered (US bank account on file) and surfaces a tailored message before the user attempts to list.
Because the poller is unimplemented, migration 000060 in PR LeanerCloud/cloud-commitments-cli#808 was reduced to only the three columns the implemented flow reads/writes (offering_class, listing_id, listing_state). The settlement/poller columns (listed_at, listing_price_schedule, listing_proceeds_received, listing_fee_paid) were removed so the schema never carries columns nothing populates. They should be re-added alongside the poller in this follow-up.
Scope
- Background poller (or on-demand refresh) calling
DescribeReservedInstancesListingsto updatelisting_stateand detectclosed(sold) listings. - Persist realized proceeds and the AWS fee actually charged; re-add the settlement columns in a new migration.
- Seller-account precondition check + UI message (registered seller / US bank account on file) before listing.
- This completes the remaining requirements of feat(history): Sell-on-Marketplace button for Standard RIs (CreateReservedInstancesListing) with status polling + sell-{any,own} RBAC cloud-commitments-cli#292.
Out of scope
Listing creation and cancellation (already shipped in LeanerCloud/cloud-commitments-cli#808).
Activity
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
fix(marketplace): multi-count listing, handler tests, descope poller …
14 remaining items
IAmJSD commentedon Oct 23, 2026
Claiming: working on this
fix(config): drop the previous listing's settlement when a relist is …
feat(marketplace): poll RI Marketplace listings and record proceeds a…
feat(marketplace): explain SellerNotRegistered with a 400 and reason …
IAmJSD commentedon Oct 28, 2026
Status update (2026-10-28): #1559 merged: AWS
SellerNotRegisterednow returns a 400 with a fixed explanation andreason: seller_not_registered.Left: exposing proceeds (owner decision D23), superseded listings (D24, see #1494), and the Sell-dialog precondition message and Sold/proceeds display (UI owner).
cristim commentedon Nov 11, 2026
Claimed by claude-platform-2.
cristim commentedon Nov 11, 2026
Releasing my claim (claude-platform-2): per the last status comment what remains depends on owner decisions D23 (exposing proceeds) and D24 (superseded listings, #1494), plus the proceeds-display work held in #1586. Not starting without those.
cristim commentedon Nov 12, 2026
Checked on origin/main 447a98b. Partly met, leaving open.
Met:
Still open:
cristim commentedon Nov 14, 2026
Claimed by claude-platform (widened goal, 2026-11-14). Working this in a worktree; will post the landed commit or a blocker here.
cristim commentedon Nov 14, 2026
Decision (claude-platform, 2026-11-14): blocked, claim released, no code landed. Both remaining parts need API changes: (a) a seller-registration status endpoint, because the only SellerNotRegistered signal is the 400 after a failed list attempt (internal/api/handler_marketplace.go ~442-488); (b) realized proceeds and fee fields on history or listing responses (GetMarketplaceListingProceedsTotals exists only in internal/config and the poller). Owner input: approve the two API additions and their response shapes, then this can be picked up.
cristim commentedon Nov 14, 2026
Claimed by claude-platform-2.
cristim commentedon Nov 14, 2026
Checked on origin/main (claude-platform-2). Shipped: the status poller (internal/api/handler_marketplace_poller.go, scheduler hook in internal/server/handler_marketplace_poll.go) with active to closed/canceled transitions, realized proceeds and fee persisted (migrations 000144, 000153, store_postgres_marketplace_settlement.go), the tailored SellerNotRegistered 400, and superseded-listing handling (#1494). Two items remain and are both gated, so they do not need this issue: exposing proceeds/fee in the API and UI waits on the real-listing check, estimate labels and totals scoping tracked in #1586 (owner-only); a seller-registration precondition endpoint needs an owner-approved response shape and a real seller call (AWS has no lookup). Closing as completed; reopen or file from #1586 when those gates clear.