docs(api): 事件重复投递/幂等语义 - #1433
Conversation
|
Warning Review limit reached
Next review available in: 42 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
validate「Verify doc SSOT」失败:api/events.md 187 行 > 180 上限。 收紧叙述,保留 30 个 live Hub WS 幂等语义表与 Edge runtime 清单。
44ddc37 to
b8fa0ec
Compare
Summary
frame.go/HUB_EVENTS/ OpenAPI 1:1)在api/events.md补「幂等键 + 重复投递语义」栏:UPSERT by id / idempotent on apply / 水位 / ephemeral。seq_id仅为 per-connection 投递序,不是业务幂等键;at-least-once + 离线/outbox 重放场景下客户端必须按业务键 apply。frame.go/hubEvents.ts旁注指向该合同;hubEvents.test.ts钉死文档覆盖全部 live type,并禁止把 hub/web: WS 死协议面 — sync.request 无服务端实现、agent.regenerate/message.edited 无生产者、plan_* 无 Hub 传输 #1362/chore(ws): 删除无生产者死协议面与坏死 useHubWebSocket #1422 死面写回语义表。Coverage (30)
typing,auth.ok, message×7, session×5, device×3, agent×6, team×4,notification.new,friend.request,friend.accepted.Dead surface not reintroduced:
sync.*,auth/auth.fail,agent.regenerate,message.edited,agent.timeoutwire,run.agent.plan_*.Test plan
go test ./internal/wsin hub-serverhubEvents.test.ts(worktree vitest 依赖解析受限,由 CI 兜底)