Skip to content

docs(api): 事件重复投递/幂等语义 - #1433

Merged
DeliciousBuding merged 2 commits into
masterfrom
docs/event-idempotency
Jul 27, 2026
Merged

docs(api): 事件重复投递/幂等语义#1433
DeliciousBuding merged 2 commits into
masterfrom
docs/event-idempotency

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Collaborator

Summary

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.timeout wire, run.agent.plan_*.

Test plan

  • Node 一致性检查:go frame 常量 ↔ HUB_EVENTS ↔ events.md 语义表(30/30)
  • go test ./internal/ws in hub-server
  • openapi yaml load ok
  • CI shared vitest hubEvents.test.ts(worktree vitest 依赖解析受限,由 CI 兜底)

Copilot AI review requested due to automatic review settings July 27, 2026 15:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@DeliciousBuding, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 42 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: e52a3d4a-10fb-447d-8775-d193414eb987

📥 Commits

Reviewing files that changed from the base of the PR and between 7160400 and b8fa0ec.

📒 Files selected for processing (4)
  • api/events.md
  • app/shared/src/hubEvents.test.ts
  • app/shared/src/hubEvents.ts
  • hub-server/internal/ws/frame.go
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/event-idempotency

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

为 Hub WS 30 个 live frame 在 api/events.md 补「重复投递语义」栏
(UPSERT / idempotent on apply / 水位 / ephemeral),并在
frame.go 与 hubEvents 旁注指向该合同;shared 测试钉死文档覆盖、
禁止写回 #1362/#1422 死面。WS 增量 SPEC 先修。
validate「Verify doc SSOT」失败:api/events.md 187 行 > 180 上限。
收紧叙述,保留 30 个 live Hub WS 幂等语义表与 Edge runtime 清单。
@DeliciousBuding
DeliciousBuding force-pushed the docs/event-idempotency branch from 44ddc37 to b8fa0ec Compare July 27, 2026 15:30
@DeliciousBuding
DeliciousBuding merged commit 4ac188a into master Jul 27, 2026
20 checks passed
@DeliciousBuding
DeliciousBuding deleted the docs/event-idempotency branch July 27, 2026 15:43
DeliciousBuding added a commit that referenced this pull request Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants