[Phase 5] Credits, orders, entitlements and paid launch
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- api, backend-api-design, cli, payments
调研方向
Start by reviewing the dependencies on Epic #31 and Phase 4 #36, then map the credit ledger, webhook inbox, quote/order flow, purchase command/API, and CLI/MCP entry points described here. Done means duplicate events and retries are safe, concurrent purchases cannot overspend, entitlements are traceable, paid payloads remain protected, and the payment architecture is approved.
由索引模型根据 Issue 内容生成。
描述
Depends on
-
Epic #31
-
Phase 4 #36
Objective
Attach commerce to an already-proven package delivery and entitlement system.
Delivery/security depends on Phase 4. Payment-provider approval work may run earlier, in parallel with Phases 2-4.
Scope
- Append-only buyer credit ledger.
- Top-up with verified provider events.
- Quotes/orders.
- Atomic debit + entitlement grant.
- Refund/chargeback.
- Agent-safe transaction confirmation.
- Provider/business-model approval gate.
Implementation tasks
- Add credit ledger entries and balance projection.
- Add top-up records.
- Add webhook inbox/dedup.
- Verify provider signatures and paid-state semantics.
- Add quote model + expiry.
- Add orders/order items.
- Add idempotent purchase command/API.
- Atomically debit + order + entitlement grant.
- Add already-owned handling.
- Add refund compensating entries.
- Add chargeback account/entitlement policy.
- Add seller payable placeholder accounting separate from credits.
- Add quote via CLI/MCP.
- Add transaction-specific confirmation contract.
- Test duplicate webhooks.
- Test duplicate purchase retries.
- Test concurrent debit/overspend.
- Document approved payment architecture.
Acceptance criteria
- No double-mint/double-debit.
- Concurrent purchase cannot create negative usable balance.
- Entitlement is traceable to grant/order.
- Every public representation still protects paid payload.
- Payment provider has approved the actual business model.
Milestone: paid launch.
- 主要语言
- TypeScript
- 星标
- 189
- 派生
- 40
- 平均合并
- 7 小时 38 分钟
- 30 天内合并 PR
- 30
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextlevelbuilder/skillx 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
nextlevelbuilder/skillx#49 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
nextlevelbuilder/skillx#28 ·
维护者通常 1 天内回复
-
refactor
难度 2/5 1-3 小时 新手友好度 82/100
nextlevelbuilder/skillx#27 ·
维护者通常 1 天内回复
-
Personal-kit API gaps for AgentKit kit publish/sync可能已有人在做 @mrgoonie 于 1 天前认领。 未关闭
nextlevelbuilder/skillx#88 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 12/100
nextlevelbuilder/skillx#81 ·
维护者通常 1 天内回复
查看 nextlevelbuilder/skillx 的全部 Issue
相似的 Issue
-
streams:add
难度 2/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
apache/rocketmq-dashboard#6872 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
interledger/publisher-tools#931 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
ARTPARK-SAHAI-ORG/calibrate-frontend#727 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
fab-geocommuns/RNB-site#539 ·
维护者通常 2 天内回复