Skip to content

fix(spike): enforce durable host and approval boundaries - #434

Merged
bubbleptr merged 2 commits into
mainfrom
fix/durable-host-boundaries
Oct 3, 2026
Merged

bubbleptr merged 2 commits into
mainfrom
fix/durable-host-boundaries

Conversation

@bubbleptr

@bubbleptr bubbleptr commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

修复 Durable 多端 spike 的宿主边界:跨会话审批通过持久任务记录校验归属,在读取已有决定、写入和放行前被拒绝,取消等待或宿主重启后也保持有效;每次订阅持有独立身份,旧 watch 不再覆盖新快照,文档创建也不会落在监听间隙;畸形 JSON 或消息参数只关闭出错客户端,宿主继续服务。

浏览器连接增加精确 Origin 白名单,原生客户端仍须通过 token 鉴权。常规启动日志不再输出凭证;提供显式 bun run web:link,原生客户端和验收脚本从本地 token 文件读取。测试为各自 Vite 端口注册明确来源。

覆盖 #426 的订阅、畸形消息、日志凭证与 Origin 检视,以及 #431 的审批归属和文档创建竞态。其他历史检视未包含在本层。

验证:每个缺陷先红后绿。本次增加真实审批取消、宿主重启后遇到其他会话历史错误决定的两个回归用例;宿主层独立 spike typecheck、15 文件 / 62 项测试通过,上层同步后 spike typecheck、15 文件 / 66 项测试通过。此前整栈已通过根 typecheck、lint、build、1977 项根测试和完整 12 幕三端演示。复跑及行为边界见 docs/research/durable-multiview-review-fixes.md。

@bubbleptr
bubbleptr added this pull request to stack #436 October 2, 2026 15:28

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

@bubbleptr
bubbleptr merged commit 378e1f7 into main Oct 3, 2026
1 check passed
@bubbleptr
bubbleptr deleted the fix/durable-host-boundaries branch October 3, 2026 08:02
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.

1 participant