Skip to content

feat(runtime-host): own Daily Review runtime - #2113

Merged
M4n5ter merged 3 commits into
mainfrom
feat/runtime-host-daily-review-authority
Aug 4, 2026
Merged

M4n5ter merged 3 commits into
mainfrom
feat/runtime-host-daily-review-authority

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Aug 4, 2026 •

Copy link
Copy Markdown
Member
English

Summary

  • establish a lease-authenticated Daily Review authority for revision-CAS configuration and durable archives
  • expose closed, bounded Runtime Host query and mutation operations shared by multiple Clients
  • build reviews from complete canonical Session and Usage projections, and route generation through the unified Runtime Policy, credential, proxy, OAuth, and model accounting path
  • publish archives and retention atomically, and provide stable keyset pagination under concurrent writes
  • own latest-complete-day missed-time recovery, archive idempotency, residency, recovery, drain, and cancellation in the Host
  • keep the existing Desktop production adapter unchanged for the M4 cutover

Validation

  • npm run build
  • npm run format:check
  • packages/core: 773 tests passed
  • packages/storage: 648 tests passed, 12 skipped
  • packages/runtime-host: 647 tests passed
  • real UDS coverage for two Clients, CAS conflict, coalesced generation, scheduling, and restart recovery
  • focused regressions for incomplete Usage projection, incompatible concurrent generation, atomic retention, and pagination during concurrent insertion
  • real provider-wire coverage for Daily Review model routing and accounting

Refs #1167
Refs #853

简体中文

概要

  • 为 Daily Review 建立经过 lease 认证的 authority,统一管理带 revision CAS 的配置与持久归档
  • 提供封闭且有界的 Runtime Host 查询和变更操作,供多个 Client 共享
  • 从完整的 canonical Session 与 Usage projection 构建回顾,并通过统一的 Runtime Policy、凭据、代理、OAuth 与模型计量路径执行生成
  • 在同一事务中发布归档并执行保留策略,同时提供并发写入下稳定的 keyset 分页
  • 由 Host 统一负责最新完整日的错过时点恢复、归档幂等、residency、恢复、drain 与取消
  • 保持现有 Desktop production adapter 不变,留待 M4 原子切换

验证

  • npm run build
  • npm run format:check
  • packages/core:773 项测试通过
  • packages/storage:648 项测试通过,12 项跳过
  • packages/runtime-host:647 项测试通过
  • 真实 UDS 覆盖两个 Client、CAS 冲突、生成合并、定时调度与重启恢复
  • 聚焦回归覆盖不完整 Usage projection、不兼容的并发生成、原子保留策略,以及并发插入时的稳定分页
  • 真实 provider wire 覆盖 Daily Review 模型路由与计量

关联 #1167
关联 #853

@M4n5ter
M4n5ter force-pushed the feat/runtime-host-daily-review-authority branch from 007f3cb to 334400a Compare August 4, 2026 08:42
@M4n5ter
M4n5ter marked this pull request as ready for review August 4, 2026 08:58
@M4n5ter
M4n5ter merged commit 26a5200 into main Aug 4, 2026
10 checks passed
@M4n5ter
M4n5ter deleted the feat/runtime-host-daily-review-authority branch August 4, 2026 08:58
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