bailinghub 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.en.md +6 -6
  2. package/README.md +6 -6
  3. package/docker-compose.images.yml +2 -2
  4. package/docs/CHANGELOG.en.md +12 -1
  5. package/docs/CHANGELOG.md +12 -1
  6. package/docs/CORE_RELIABILITY.en.md +59 -0
  7. package/docs/CORE_RELIABILITY.md +59 -0
  8. package/docs/DEPLOYMENT_DIAGNOSTICS.en.md +78 -0
  9. package/docs/DEPLOYMENT_DIAGNOSTICS.md +78 -0
  10. package/docs/IMPLEMENTATION_STATUS.en.md +22 -14
  11. package/docs/IMPLEMENTATION_STATUS.md +23 -15
  12. package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
  13. package/docs/INDEPENDENT_VALIDATION.md +4 -4
  14. package/docs/KERNEL_HOST_API.en.md +2 -0
  15. package/docs/KERNEL_HOST_API.md +2 -0
  16. package/docs/MODEL_BILLING.en.md +4 -0
  17. package/docs/MODEL_BILLING.md +4 -0
  18. package/docs/MODEL_PROCESS_RECOVERY.en.md +32 -0
  19. package/docs/MODEL_PROCESS_RECOVERY.md +37 -0
  20. package/docs/README.en.md +5 -0
  21. package/docs/README.md +5 -0
  22. package/docs/RELEASE_NOTES_v0.9.2.en.md +45 -0
  23. package/docs/RELEASE_NOTES_v0.9.2.md +45 -0
  24. package/docs/UPGRADE_v0.9.2.en.md +62 -0
  25. package/docs/UPGRADE_v0.9.2.md +62 -0
  26. package/package.json +7 -3
  27. package/scripts/check-doc-links.mjs +2 -0
  28. package/scripts/check-image-tags.sh +1 -1
  29. package/scripts/check-release-consistency.test.mjs +2 -2
  30. package/scripts/doctor-deployment.test.ts +419 -0
  31. package/scripts/doctor-deployment.ts +357 -0
  32. package/scripts/doctor.ts +8 -1
  33. package/scripts/install-secrets.test.mjs +185 -0
  34. package/scripts/install.sh +10 -6
  35. package/scripts/publish-images.sh +1 -1
  36. package/scripts/release-audit.mjs +4 -0
  37. package/scripts/verify-github-repo.mjs +4 -0
  38. package/sql/065_usage_reconciliation_scan.sql +4 -0
  39. package/sql/066_approval_continuations.sql +15 -0
  40. package/sql/README.md +9 -0
  41. package/src/app/approval-continuations.mysql.test.ts +138 -0
  42. package/src/app/approval-continuations.test.ts +325 -0
  43. package/src/app/approval-continuations.ts +107 -0
  44. package/src/app/http-server.ts +3 -0
  45. package/src/app/kernel-model-process-crash.mysql.test.ts +377 -0
  46. package/src/app/kernel.ts +13 -0
  47. package/src/app/runtime-evidence-maintenance.test.ts +55 -0
  48. package/src/app/runtime-lifecycle-default.ts +7 -0
  49. package/src/app/runtime-lifecycle.ts +39 -0
  50. package/src/core/contracts/approval-continuation.ts +43 -0
  51. package/src/core/contracts/types.ts +2 -0
  52. package/src/core/state/approval-continuation.ts +22 -0
  53. package/src/core/state/state-codec.ts +1 -0
  54. package/src/core/state/state-contracts.ts +3 -0
  55. package/src/infrastructure/config/config-approval-ledger.ts +75 -0
  56. package/src/infrastructure/config/configstore.ts +2 -2
  57. package/src/infrastructure/state/state-jsonl.ts +41 -11
  58. package/src/infrastructure/state/state-mysql.ts +27 -0
  59. package/src/modules/usage/billing-reconciliation.mysql.test.ts +163 -0
  60. package/src/modules/usage/billing-reconciliation.test.ts +71 -0
  61. package/src/modules/usage/billing-repository.ts +54 -11
  62. package/src/modules/usage/maintenance.test.ts +62 -0
  63. package/src/modules/usage/maintenance.ts +31 -0
  64. package/src/modules/usage/model-gateway.ts +2 -1
  65. package/src/routes/admin-default.ts +2 -2
  66. package/src/routes/admin-runtime-default.ts +2 -2
  67. package/src/routes/admin-runtime.test.ts +1 -1
  68. package/src/routes/admin-runtime.ts +25 -18
  69. package/src/routes/admin.ts +1 -1
  70. package/src/routes/approvals-default.ts +2 -2
  71. package/src/routes/approvals.ts +30 -33
  72. package/src/routes/critical-routes.test.ts +16 -3
  73. package/src/test-support/approval-continuation-crash-child.ts +24 -0
  74. package/src/test-support/model-process-crash-child.ts +78 -0
@@ -6,10 +6,10 @@
6
6
 
7
7
  ## 版本与阅读口径
8
8
 
9
- - 正式发行基线:[v0.9.1](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.1),对应 [v0.9.1 源码 Tag](https://github.com/bailinghub/bailinghub/tree/v0.9.1)。下表已有机制及后文的关闭修复属于该版本;不代表默认安装后已启用所有可选功能。
9
+ - 正式发行基线:[v0.9.2](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.2),对应 [v0.9.2 源码 Tag](https://github.com/bailinghub/bailinghub/tree/v0.9.2)。下表已有机制及后文的关闭修复属于该版本;不代表默认安装后已启用所有可选功能。
10
10
  - 历史基线:[v0.9.0](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.0),对应提交 [`dae5260ede6565080d21e94ae63d52f3a7d23556`](https://github.com/bailinghub/bailinghub/tree/dae5260ede6565080d21e94ae63d52f3a7d23556)。原 Tag 的异步关闭缺口在后文保留;源码、npm、镜像和具体部署应分别核验,不能从新版文档推导旧制品已修复。
11
11
  - 表中的测试链接是**公开测试代码及其检查范围**,不是本页重新执行所得的通过记录。单元测试、模拟供应商响应、MySQL 集成测试和完整 demo 验证分别说明各自覆盖的条件。未执行或跳过的测试不能写成已通过,也不能据此把已有机制写成“计划实现”。
12
- - 版本发行内容与升级前提以 [v0.9.1 说明](RELEASE_NOTES_v0.9.1.md) 和 [升级指南](UPGRADE_v0.9.1.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
12
+ - 版本发行内容与升级前提以 [v0.9.2 说明](RELEASE_NOTES_v0.9.2.md) 和 [升级指南](UPGRADE_v0.9.2.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
13
13
 
14
14
  ## 能力归属与发行状态
15
15
 
@@ -17,18 +17,18 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
17
17
 
18
18
  | 能力与责任方 | 发行状态 | 公开实现与证据入口 | 范围与限制 |
19
19
  |---|---|---|---|
20
- | 能力声明、工具发现、受控调用:Core 解析和治理,业务系统执行 | Core v0.9.1 已包含 | [工具模型](TOOLS_MODEL.md);[工具索引源码](../src/services/tools-index.ts) / [测试](../src/services/tools-index.test.ts);[执行治理测试](../src/core/runtime/execution-runtime.test.ts) | 工具可发现不等于当前调用获准。业务接口还需验签,并重新检查主体、租户、权限和业务状态;声明不能赋予调用方原本没有的权力。 |
21
- | Agent Auth:Core 绑定客户端会话,业务授权页提供可信身份 | Core v0.9.1 已包含 | [Agent Auth 契约](AGENT_AUTH_API.md);[路由源码](../src/routes/agent-auth.ts);[生命周期 HTTP 测试](../src/routes/agent-auth-lifecycle-http.test.ts) / [竞态测试](../src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts) | PKCE、授权绑定、刷新和撤销有公开实现;不接管业务系统的登录、角色管理或最终授权,也不允许模型从文本指定可信主体。 |
22
- | Agent Client Runtime:Core 提供工作区、turn、搜索和工具调用接口 | Core v0.9.1 已包含 | [Runtime API](AGENT_CLIENT_RUNTIME_API.md);[运行面源码](../src/app/agent-client-runtime.ts) / [测试](../src/app/agent-client-runtime.test.ts);[调用测试](../src/app/agent-tool-invocations.test.ts) | 本地 Agent 的模型选择、推理循环和工具编排由客户端宿主负责。Core 的原有 `/run` 管线是另一种公开接入路径,不能把两者混为同一客户端执行模式。 |
23
- | 审批、原调用快照和只读回执:Core 治理,业务系统保留执行结果 | Core v0.9.1 已包含 | [只读回执与恢复](INVOCATION_RECEIPTS.md);[调用源码](../src/app/agent-tool-invocations.ts) / [测试](../src/app/agent-tool-invocations.test.ts);[审批账本测试](../src/infrastructure/config/config-approval-ledger.test.ts) | 原调用回执读取与可能继续业务的 resume 分开。未知结果不构成重发写操作的许可;没有历史参数时不能补造。审批本身不证明业务已成功,也不是分布式业务事务的回滚保证。 |
24
- | 跨轮任务控制:Core 持久化原成员、写调用预算与并发占用 | Core v0.9.1 已包含(v0.8.0 引入) | [任务控制契约](AGENT_TASK_CONTROL.md);[运行面源码](../src/core/runtime/agent-task-control.ts) / [测试](../src/core/runtime/agent-task-control.test.ts);[MySQL 日志集成测试](../src/infrastructure/config/config-agent-task-control-journal-mysql.test.ts) | 这是受治理业务调用的控制,不是模型轮次套餐。写调用次数不等于退款金额、成功业务数或 Token 数;暂停/取消不能撤回已放行或已完成的业务效果。 |
25
- | 可见对话审计:客户端显式上传,Core 校验成员和保存事件 | Core v0.9.1 已包含 | [对话审计契约](AGENT_CONVERSATION_AUDIT.md);[运行面测试](../src/core/runtime/agent-conversation-audit.test.ts) | 不采集隐藏推理。确认成员和具备写接口不证明宿主已上传全部历史;审计归档不合并业务授权、会话或运行时记忆。跨绑定仍受同一中枢及各自身份边界约束。 |
26
- | 当前线程上下文和可选滚动摘要:Core 的路由/线程机制 | Core v0.9.1 已包含 | [记忆配置与渲染](../src/core/runtime/memory.ts);[线程注入源码](../src/core/runtime/memory-runtime.ts) / [测试](../src/core/runtime/memory-runtime.test.ts);[摘要测试](../src/core/runtime/summary-runtime.test.ts) | 摘要默认关闭,启用后仍按原线程读取。它不是完整的用户级跨新会话长期记忆模块;公开的可见对话审计也不会自动变成模型上下文。 |
27
- | 附件空间:宿主提供获准图片,Core 上传并返回可用 URL | Core v0.9.1 已包含(v0.8.0 引入) | [图片附件契约](GENERATED_ARTIFACTS.md);[附件源码](../src/app/agent-artifacts.ts) / [测试](../src/app/agent-artifacts.test.ts) | 首期 PNG/JPEG/WebP,不接受文档或视频。存储和保留策略需运营者配置;Core 不能读取客户端文件系统。上传图片与使用 URL 改变业务是两个独立动作。 |
28
- | 可选模型网关与美元额度结算:Core 接入、计量,客户端宿主编排 | Core v0.9.1 已包含 | [模型计费契约](MODEL_BILLING.md);[网关源码](../src/modules/usage/model-gateway.ts);[模型网关 MySQL 测试](../src/modules/usage/model-gateway.mysql.test.ts);[账本单元测试](../src/modules/usage/billing-ledger.test.ts) | 共享 USD 额度、统一倍率、周期售价与额度分离;不恢复按轮次/任务步数收费。参考价格不是供应商实际账单,原始 Token 不是额度分母。未取得权威 usage 的结果不能编造 Token 或费用。 |
29
- | 模型工具目录、文生图和原请求核对:Core 的可选网关扩展 | Core v0.9.1 已包含 | [工具描述源码](../src/modules/usage/model-tools.ts) / [测试](../src/modules/usage/model-tools.test.ts);[供应商适配测试](../src/modules/usage/model-tool-provider.test.ts);[异步图片 MySQL 测试](../src/modules/usage/model-tool-gateway.mysql.test.ts) | 公开可执行适配器包括阿里云兼容 Images、原生 DashScope 与 OpenRouter Images。视频、语音或自定义服务的目录声明不等于存在可执行适配器;异步完成与关闭边界见下文。 |
30
- | Kernel Host API、显式迁移和托管生命周期:Core 提供稳定嵌入入口,Host 管理进程与隔离 | Core v0.9.1 已包含 | [Kernel Host API](KERNEL_HOST_API.md);[Kernel 源码](../src/app/kernel.ts) / [测试](../src/app/kernel.test.ts);[制品清单测试](../src/kernel-api/v1/artifact.test.ts);[迁移测试](../src/infrastructure/schema/core-schema-migrator.test.ts) | 独立 MySQL schema 与 runtimeRoot、可信 instanceKey、显式迁移和 Host 的 tick/close 都是前提。此 API 不提供租户注册、平台套餐、集群目录或多副本升级编排;可选 usage 网关也不等于 Host 的平台计费产品。 |
31
- | 安装、体检与可选运维指标:Core 提供入口,部署者配置和验收 | Core v0.9.1 已包含 | [快速开始](QUICKSTART.md);[安装脚本](../scripts/install.sh);[体检脚本](../scripts/smoke.ts);[OpenMetrics 测试](../src/core/observability/openmetrics.test.ts);[独立复现任务卡](INDEPENDENT_VALIDATION.md) | 健康响应不证明全部业务或供应商可用。指标端点需显式启用并保护访问;有安装/诊断入口不等于已建立持续监控、告警值守或完成特定部署验收。 |
20
+ | 能力声明、工具发现、受控调用:Core 解析和治理,业务系统执行 | Core v0.9.2 已包含 | [工具模型](TOOLS_MODEL.md);[工具索引源码](../src/services/tools-index.ts) / [测试](../src/services/tools-index.test.ts);[执行治理测试](../src/core/runtime/execution-runtime.test.ts) | 工具可发现不等于当前调用获准。业务接口还需验签,并重新检查主体、租户、权限和业务状态;声明不能赋予调用方原本没有的权力。 |
21
+ | Agent Auth:Core 绑定客户端会话,业务授权页提供可信身份 | Core v0.9.2 已包含 | [Agent Auth 契约](AGENT_AUTH_API.md);[路由源码](../src/routes/agent-auth.ts);[生命周期 HTTP 测试](../src/routes/agent-auth-lifecycle-http.test.ts) / [竞态测试](../src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts) | PKCE、授权绑定、刷新和撤销有公开实现;不接管业务系统的登录、角色管理或最终授权,也不允许模型从文本指定可信主体。 |
22
+ | Agent Client Runtime:Core 提供工作区、turn、搜索和工具调用接口 | Core v0.9.2 已包含 | [Runtime API](AGENT_CLIENT_RUNTIME_API.md);[运行面源码](../src/app/agent-client-runtime.ts) / [测试](../src/app/agent-client-runtime.test.ts);[调用测试](../src/app/agent-tool-invocations.test.ts) | 本地 Agent 的模型选择、推理循环和工具编排由客户端宿主负责。Core 的原有 `/run` 管线是另一种公开接入路径,不能把两者混为同一客户端执行模式。 |
23
+ | 审批、原调用快照和只读回执:Core 治理,业务系统保留执行结果 | Core v0.9.2 已包含 | [只读回执与恢复](INVOCATION_RECEIPTS.md);[调用源码](../src/app/agent-tool-invocations.ts) / [测试](../src/app/agent-tool-invocations.test.ts);[审批账本测试](../src/infrastructure/config/config-approval-ledger.test.ts) | 原调用回执读取与可能继续业务的 resume 分开。未知结果不构成重发写操作的许可;没有历史参数时不能补造。审批本身不证明业务已成功,也不是分布式业务事务的回滚保证。 |
24
+ | 跨轮任务控制:Core 持久化原成员、写调用预算与并发占用 | Core v0.9.2 已包含(v0.8.0 引入) | [任务控制契约](AGENT_TASK_CONTROL.md);[运行面源码](../src/core/runtime/agent-task-control.ts) / [测试](../src/core/runtime/agent-task-control.test.ts);[MySQL 日志集成测试](../src/infrastructure/config/config-agent-task-control-journal-mysql.test.ts) | 这是受治理业务调用的控制,不是模型轮次套餐。写调用次数不等于退款金额、成功业务数或 Token 数;暂停/取消不能撤回已放行或已完成的业务效果。 |
25
+ | 可见对话审计:客户端显式上传,Core 校验成员和保存事件 | Core v0.9.2 已包含 | [对话审计契约](AGENT_CONVERSATION_AUDIT.md);[运行面测试](../src/core/runtime/agent-conversation-audit.test.ts) | 不采集隐藏推理。确认成员和具备写接口不证明宿主已上传全部历史;审计归档不合并业务授权、会话或运行时记忆。跨绑定仍受同一中枢及各自身份边界约束。 |
26
+ | 当前线程上下文和可选滚动摘要:Core 的路由/线程机制 | Core v0.9.2 已包含 | [记忆配置与渲染](../src/core/runtime/memory.ts);[线程注入源码](../src/core/runtime/memory-runtime.ts) / [测试](../src/core/runtime/memory-runtime.test.ts);[摘要测试](../src/core/runtime/summary-runtime.test.ts) | 摘要默认关闭,启用后仍按原线程读取。它不是完整的用户级跨新会话长期记忆模块;公开的可见对话审计也不会自动变成模型上下文。 |
27
+ | 附件空间:宿主提供获准图片,Core 上传并返回可用 URL | Core v0.9.2 已包含(v0.8.0 引入) | [图片附件契约](GENERATED_ARTIFACTS.md);[附件源码](../src/app/agent-artifacts.ts) / [测试](../src/app/agent-artifacts.test.ts) | 首期 PNG/JPEG/WebP,不接受文档或视频。存储和保留策略需运营者配置;Core 不能读取客户端文件系统。上传图片与使用 URL 改变业务是两个独立动作。 |
28
+ | 可选模型网关与美元额度结算:Core 接入、计量,客户端宿主编排 | Core v0.9.2 已包含 | [模型计费契约](MODEL_BILLING.md);[网关源码](../src/modules/usage/model-gateway.ts);[模型网关 MySQL 测试](../src/modules/usage/model-gateway.mysql.test.ts);[账本单元测试](../src/modules/usage/billing-ledger.test.ts) | 共享 USD 额度、统一倍率、周期售价与额度分离;不恢复按轮次/任务步数收费。参考价格不是供应商实际账单,原始 Token 不是额度分母。未取得权威 usage 的结果不能编造 Token 或费用。 |
29
+ | 模型工具目录、文生图和原请求核对:Core 的可选网关扩展 | Core v0.9.2 已包含 | [工具描述源码](../src/modules/usage/model-tools.ts) / [测试](../src/modules/usage/model-tools.test.ts);[供应商适配测试](../src/modules/usage/model-tool-provider.test.ts);[异步图片 MySQL 测试](../src/modules/usage/model-tool-gateway.mysql.test.ts) | 公开可执行适配器包括阿里云兼容 Images、原生 DashScope 与 OpenRouter Images。视频、语音或自定义服务的目录声明不等于存在可执行适配器;异步完成与关闭边界见下文。 |
30
+ | Kernel Host API、显式迁移和托管生命周期:Core 提供稳定嵌入入口,Host 管理进程与隔离 | Core v0.9.2 已包含 | [Kernel Host API](KERNEL_HOST_API.md);[Kernel 源码](../src/app/kernel.ts) / [测试](../src/app/kernel.test.ts);[制品清单测试](../src/kernel-api/v1/artifact.test.ts);[迁移测试](../src/infrastructure/schema/core-schema-migrator.test.ts) | 独立 MySQL schema 与 runtimeRoot、可信 instanceKey、显式迁移和 Host 的 tick/close 都是前提。此 API 不提供租户注册、平台套餐、集群目录或多副本升级编排;可选 usage 网关也不等于 Host 的平台计费产品。 |
31
+ | 安装、体检与可选运维指标:Core 提供入口,部署者配置和验收 | Core v0.9.2 已包含 | [快速开始](QUICKSTART.md);[安装脚本](../scripts/install.sh);[体检脚本](../scripts/smoke.ts);[OpenMetrics 测试](../src/core/observability/openmetrics.test.ts);[独立复现任务卡](INDEPENDENT_VALIDATION.md) | 健康响应不证明全部业务或供应商可用。指标端点需显式启用并保护访问;有安装/诊断入口不等于已建立持续监控、告警值守或完成特定部署验收。 |
32
32
 
33
33
  ## 公开验证能说明什么
34
34
 
@@ -40,7 +40,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
40
40
 
41
41
  ### 公开 demo 与独立复现任务卡
42
42
 
43
- [Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.9.1 安装、基础体检到 `npm run demo:e2e` 的公开路径。其订单、工单、退款和故障工具均为仓库 demo 数据;不需要真实模型 Key、客户接口或生产凭据。
43
+ [Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.9.2 安装、基础体检到 `npm run demo:e2e` 的公开路径。其订单、工单、退款和故障工具均为仓库 demo 数据;不需要真实模型 Key、客户接口或生产凭据。
44
44
 
45
45
  任务卡要求记录服务、控制台、匿名预览边界、基础体检和完整业务闭环的具体结果。README 的 demo 图像与动画展示同一公开样例,不能当作客户采用证据。任务卡存在也不意味着已有外部开发者完成验证;报告结果应保留验证者实际版本、环境、检查项和失败范围。
46
46
 
@@ -71,3 +71,11 @@ Core v0.9.1 增加了每个 `UsageRepository` 独立拥有的 [后台工作登
71
71
  - 完整用户级长期记忆、未具备执行适配器的媒体工具、未经本页所列公开路径验证的真实供应商/业务系统,均不能写成这里的已验证能力。本索引没有为这些范围建立新的产品时间表。
72
72
 
73
73
  后续修改应同步本页与英文版,保留正式 Tag 与主分支的区别;只有对应的公开证据改变后,才更新具体能力的发行状态或验证范围。
74
+
75
+ ## Core v0.9.2 新增的进程恢复回归
76
+
77
+ [进程崩溃与确认丢失专项](MODEL_PROCESS_RECOVERY.md)使用实际SIGKILL、不同PID恢复和MySQL COMMIT回包扣留,核原请求、供应商调用次数、结果与美元账本。此为Core v0.9.2中的独立opt-in测试,历史正式v0.9.1 Tag不含新增专项;链接是测试范围,不代表本页重跑、真实供应商或生产崩溃验收。
78
+
79
+ ## Core v0.9.2 的可靠性修复
80
+
81
+ [安装凭据、结算维护与审批补续](CORE_RELIABILITY.md)记录新安装安全随机源失败关闭、无新流量的结算维护及审批决策的持久补续。配套新增 065/066 增量迁移。公开测试包括[安装器故障回归](../scripts/install-secrets.test.mjs)、[结算 MySQL 回归](../src/modules/usage/billing-reconciliation.mysql.test.ts)、[审批补续回归](../src/app/approval-continuations.test.ts)与[审批 MySQL/进程回归](../src/app/approval-continuations.mysql.test.ts)。这些是Core v0.9.2的实现与检查范围;不扩展历史v0.9.1制品的保证。
@@ -7,7 +7,7 @@ It is not certification, a benchmark, or evidence of production adoption. Passin
7
7
  ## Scope
8
8
 
9
9
  - Target: the open-source BailingHub Docker demo;
10
- - Stable baseline: `v0.9.1`;
10
+ - Stable baseline: `v0.9.2`;
11
11
  - Data: the bundled demo orders, tickets, refunds, and failure probe;
12
12
  - Expected time: about 20 minutes after images and dependencies are available;
13
13
  - Not required: a real model key, production API, production credential, or real business data.
@@ -32,7 +32,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
32
  cd "$HOME/bailinghub"
33
33
  ```
34
34
 
35
- The installer pulls the official `v0.9.1` images by default, generates random tokens and an admin password, starts the services, and runs the smoke test. The initial administrator is created only when the administrator table is empty; restarting, upgrading, recreating containers, or reinstalling against the same persistent database does not overwrite a changed password. The optional `/metrics` endpoint remains disabled and does not affect core validation. Keep the reported version, install mode, elapsed time, and the commands printed under `常用命令`, but never include passwords or tokens in your report. After Docker is installed, the current non-root login usually still needs the printed `sudo docker compose ...` commands; Docker group membership may not take effect until the next login.
35
+ The installer pulls the official `v0.9.2` images by default, generates random tokens and an admin password, starts the services, and runs the smoke test. The initial administrator is created only when the administrator table is empty; restarting, upgrading, recreating containers, or reinstalling against the same persistent database does not overwrite a changed password. The optional `/metrics` endpoint remains disabled and does not affect core validation. Keep the reported version, install mode, elapsed time, and the commands printed under `常用命令`, but never include passwords or tokens in your report. After Docker is installed, the current non-root login usually still needs the printed `sudo docker compose ...` commands; Docker group membership may not take effect until the next login.
36
36
 
37
37
  If the default directory is already in use, choose a new empty directory instead of overwriting an existing deployment:
38
38
 
@@ -46,7 +46,7 @@ cd "$HOME/bailinghub-validation"
46
46
  ### Path B: local source reproduction
47
47
 
48
48
  ```bash
49
- git clone --depth 1 --branch v0.9.1 https://github.com/bailinghub/bailinghub.git
49
+ git clone --depth 1 --branch v0.9.2 https://github.com/bailinghub/bailinghub.git
50
50
  cd bailinghub
51
51
  git rev-parse HEAD
52
52
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +167,7 @@ After the core task passes, you may continue with:
167
167
  - [Trusted rich rendering and chat reliability](RELEASE_NOTES_v0.1.15.en.md).
168
168
  - [Bounded tool runtime and resilient semantic retrieval](RELEASE_NOTES_v0.1.16.en.md).
169
169
  - [Composable Core and Kernel Host API v1](RELEASE_NOTES_v0.3.0.en.md).
170
- - [Current stable release notes](RELEASE_NOTES_v0.9.1.en.md).
170
+ - [Current stable release notes](RELEASE_NOTES_v0.9.2.en.md).
171
171
 
172
172
  Select the relevant track in the same Issue form and disclose whether you received direct maintainer assistance.
173
173
 
@@ -7,7 +7,7 @@
7
7
  ## 验证范围
8
8
 
9
9
  - 验证对象:BailingHub 开源版 Docker demo;
10
- - 稳定基线:`v0.9.1`;
10
+ - 稳定基线:`v0.9.2`;
11
11
  - 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
12
12
  - 预计用时:镜像和依赖下载完成后约 20 分钟;
13
13
  - 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
@@ -32,7 +32,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
32
  cd "$HOME/bailinghub"
33
33
  ```
34
34
 
35
- 脚本默认拉取 `v0.9.1` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
35
+ 脚本默认拉取 `v0.9.2` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
36
36
 
37
37
  如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
38
38
 
@@ -46,7 +46,7 @@ cd "$HOME/bailinghub-validation"
46
46
  ### 路径 B:本地源码复现
47
47
 
48
48
  ```bash
49
- git clone --depth 1 --branch v0.9.1 https://github.com/bailinghub/bailinghub.git
49
+ git clone --depth 1 --branch v0.9.2 https://github.com/bailinghub/bailinghub.git
50
50
  cd bailinghub
51
51
  git rev-parse HEAD
52
52
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +167,7 @@ docker compose exec -T bailinghub npm run demo:e2e
167
167
  - [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
168
168
  - [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
169
169
  - [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
170
- - [当前稳定版发布说明](RELEASE_NOTES_v0.9.1.md)。
170
+ - [当前稳定版发布说明](RELEASE_NOTES_v0.9.2.md)。
171
171
 
172
172
  扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
173
173
 
@@ -68,6 +68,8 @@ Multiple Kernels may share `KernelExecutionQueueV1` as a process-wide concurrenc
68
68
 
69
69
  ## Artifact And Schema Upgrades
70
70
 
71
+ The [Core reliability fixes](CORE_RELIABILITY.en.md) in Core 0.9.2 add migrations 065/066. A new managed Kernel starts settlement and approval-continuation maintenance on its first existing tick, then advances it periodically. Hosts retain fair tick and close-drain responsibilities without implementing Core ledger recovery. standalone stops new maintenance before draining it. Explicitly migrate 066 and provide matching adapters before using the new decision paths. Kernel API v1 runtime exports remain unchanged, and Host deployments are not automatically upgraded.
72
+
71
73
  `BAILINGHUB_CORE_ARTIFACT_V1` identifies the installed package version, ordered active migration checksums, latest migration, retired-migration evidence, and aggregate manifest checksum. A host should persist these values in its instance directory and match all of them before loading a Kernel. `migrations` is the only sequence that may execute against a new schema. `retiredMigrations` only recognizes ledger history from early deployments; `replay: never` means the corresponding SQL must not be restored or replayed into a new database.
72
74
 
73
75
  `migrateBailingHubCoreSchema()` is the explicit migration entry point. It executes only the installed Core artifact's `sql/*.sql`, uses an advisory lock and migration ledger, and detects historical migration drift with SHA-256. Existing retired-migration ledger rows may receive their checksum from the immutable evidence catalog, but they never enter the execution or fresh-schema ledger sequence. Any unknown history or checksum mismatch fails closed before a new migration runs. Kernel startup never runs DDL implicitly. A host must quiesce the target, drain every replica, migrate with a short-lived schema-only DDL identity, and restore traffic only after the new Kernel passes readiness.
@@ -68,6 +68,8 @@ await kernel.close(30_000);
68
68
 
69
69
  ## 制品与数据库升级
70
70
 
71
+ Core 0.9.2 的 [可靠性修复](CORE_RELIABILITY.md)新增 065/066 迁移。新 managed Kernel 在首次既有 tick 启动结算与审批补续维护,以后按周期推进;Host 继续负责公平 tick 和关闭时等待,不需要自行实现 Core 的账本恢复。standalone 新维护先停止再排空。使用新审批决策前须显式迁移 066 并具备配套仓储;它不修改 Kernel API v1 的运行导出,也不自动升级 Host 的部署。
72
+
71
73
  `BAILINGHUB_CORE_ARTIFACT_V1` 包含已安装包版本、官方活动迁移摘要、最新迁移名、退役迁移证据和整体 manifest 摘要。宿主应把这些值写入自己的实例目录,并在加载前逐项匹配。`migrations` 只是可在新 Schema 中执行的活动序列;`retiredMigrations` 只用于识别早期部署的历史账本,`replay: never` 表示不得恢复相应 SQL 文件或在新库中重放。
72
74
 
73
75
  `migrateBailingHubCoreSchema()` 是显式迁移入口:它只执行当前 Core 制品自带的 `sql/*.sql`,使用命名锁、迁移账本和 SHA-256 检测历史文件漂移。已存在的退役迁移账本行可按固化证据补录摘要,但不进入执行或新库记账序列;任何未知历史文件或摘要不一致都会在新迁移前失败关闭。Kernel 启动不会隐式执行 DDL;宿主应先停止目标实例新流量、排空所有副本,再用短生命周期且仅限目标 Schema 的 DDL 身份迁移,最后通过新 Kernel readiness 后恢复流量。
@@ -121,3 +121,7 @@ Under Account Usage → Usage Details → Reset Allowance, administrators with `
121
121
  - Idempotent replay returns the original receipt. Revision checks prevent duplicate concurrent resets. The receipt records `reset.previousGrantId`, `reset.actor` and `reset.at` to identify the original grant and operator.
122
122
 
123
123
  Existing summaries return the new balance and next reset date. This feature adds no SQL migration and independently requires no SDK/DSH or backend changes.
124
+
125
+ ## Automatic settlement maintenance in Core 0.9.2
126
+
127
+ Core 0.9.2 adds an initial and recurring minute-based settlement pass, fair paging and database-failure backoff without depending on new HTTP requests. It uses original metering, prices and the unified multiplier, without reading generated bodies or dispatching providers. Missing authoritative metering remains pending. See [Core reliability fixes](CORE_RELIABILITY.en.md) for index 065, managed tick and standalone shutdown boundaries. These changes are available from Core 0.9.2 and do not expand the historical v0.9.1 Tag's guarantees.
@@ -123,3 +123,7 @@
123
123
  - 原请求幂等重试只返回原回执;并发变更通过修订号检查,避免重复重置。变更回执记录 `reset.previousGrantId`、`reset.actor`、`reset.at`,可关联原开通与操作人。
124
124
 
125
125
  沿用现有摘要接口返回新的剩余额度及下次重置时间,不新增 SQL 迁移,不需要客户端 SDK/DSH 或业务后端改造。
126
+
127
+ ## Core 0.9.2 的自动结算维护
128
+
129
+ Core 0.9.2 增加首轮及每分钟的后台结算维护、公平分页与数据库故障退避,结算不依赖新 HTTP 请求。仅使用原记录的计量、价格与统一倍率,不读取生成正文或重派供应商;缺少权威计量仍待核对。配套 065 索引及 managed tick/standalone 关闭边界见[Core 可靠性修复](CORE_RELIABILITY.md)。这些修改从 Core 0.9.2 提供,不扩展历史 v0.9.1 Tag 的保证。
@@ -0,0 +1,32 @@
1
+ # Model request process-crash and lost-acknowledgement regressions
2
+
3
+ [简体中文](MODEL_PROCESS_RECOVERY.md)
4
+
5
+ This page describes additional tests included in Core 0.9.2. The historical `v0.9.1` Tag contains original-request recovery and usage shutdown draining, but not these new process tests. Source, executed checks, released artifacts and production acceptance remain separate evidence.
6
+
7
+ ## Fault windows
8
+
9
+ Two distinct Kernel child-process PIDs use the same synthetic schema in a dedicated MySQL instance and an independent synthetic provider. The suite covers admission and dispatch transaction boundaries; a received provider request without a response; a received response without a committed result; a committed result awaiting settlement; and a saved chat result whose HTTP delivery is lost. A protocol proxy also withholds the actual MySQL COMMIT OK packet after committed dispatch, result and settlement transactions.
10
+
11
+ The first process receives a real `SIGKILL`. The replacement process is checked for original operation/request identity, physical provider calls, preserved result/hash, ledger rows and consumed USD. Reading a saved result must not call the provider again, and settlement recovery must not charge twice. An unknown result after durable dispatch retains its original ID for inspection; a network error is not permission to create another generation.
12
+
13
+ A killed admission that never committed and a durable admitted request are different cases. An admitted request that was not dispatched is not automatically dispatched after restart and can be cancelled under its original identity. Recovery may retain pending/unknown records; the suite does not require every record to become settled automatically.
14
+
15
+ ## Run
16
+
17
+ Node.js 22 or newer and Docker are required. Pull the pinned public fixture image, then explicitly enable the suite:
18
+
19
+ ```bash
20
+ docker pull mysql:8.4@sha256:85b9bf2e29cf836ecb8c2a15a935d4ba0c606631dff1dd79531a11983c638f2a
21
+ BAILING_USAGE_PROCESS_CRASH_TEST=1 npm run test:model-process-recovery
22
+ ```
23
+
24
+ Without the flag the tests explicitly skip and create no Docker, database or child-process resources. With the flag enabled, missing Docker or the pinned image fails rather than silently skipping. A default test run is not evidence that this suite executed.
25
+
26
+ The suite creates its own labelled container, randomly publishes MySQL only on `127.0.0.1`, and creates a random schema per case. It does not load deployment configuration, inherit deployment database settings or use real model credentials. Cleanup checks the saved full container ID and ownership label and removes only owned processes, container and temporary data. Fault barriers and the protocol proxy are test facilities, not deployment tools.
27
+
28
+ ## Limits
29
+
30
+ The suite does not establish real-provider retry/billing behavior, host power-loss recovery, database failover, cross-region resilience or exactly-once external business effects. It is not a production database-restore exercise. Hosted instance ownership and tenant isolation, and client task/delivery behavior, require their own checks.
31
+
32
+ [Tests](../src/app/kernel-model-process-crash.mysql.test.ts) · [Isolated child entrypoint](../src/test-support/model-process-crash-child.ts) · [Invocation receipts](INVOCATION_RECEIPTS.md) · [Implementation and public evidence index](IMPLEMENTATION_STATUS.en.md)
@@ -0,0 +1,37 @@
1
+ # 模型请求进程崩溃与确认丢失回归
2
+
3
+ [English](MODEL_PROCESS_RECOVERY.en.md)
4
+
5
+ 本页说明 Core 0.9.2 纳入的专项测试。正式 `v0.9.1` 已有原请求恢复与 usage 后台排空,但该历史 Tag 不包含本页新增的进程测试。测试源码、实际执行、正式发行和生产验收分别核对。
6
+
7
+ ## 验证的窗口
8
+
9
+ 专项以两个不同 PID 的真实 Kernel 子进程、专用 MySQL 和独立合成供应商核对以下边界:
10
+
11
+ - 准入事务提交前后;派发事务提交前后。
12
+ - 供应商已收到请求、尚未返回结果;结果已收到、持久结果尚未提交。
13
+ - 结果提交完成但异步结算尚未完成;普通文本结果已保存但 HTTP 回复丢失。
14
+ - MySQL 已提交派发、结果或结算事务,但协议代理扣留实际 COMMIT OK 回包。
15
+
16
+ 子进程实际收到 `SIGKILL`,随后以新 PID 连接同一合成 schema。断言检查原 `operation_id`、原请求记录、供应商实际调用次数、已保存结果及 hash、美元账本条数与当期消耗。已保存结果的恢复不再次调用供应商;结算恢复不产生重复扣款。持久派发边界之后结果未知仍保留原 ID 核对,不能换 ID 或凭网络错误重新生成。
17
+
18
+ 准入提交前被杀、数据库没有原请求记录的场景与已持久准入分开。尚未派发的持久请求不会因重启自动重新派发,可按原请求取消。成功恢复允许留下 pending/unknown;不是所有记录必须自动 settled。
19
+
20
+ ## 运行
21
+
22
+ 需要 Node.js 22 或更高、Docker,以及下面的固定公开测试镜像。先拉镜像,再显式启用专项:
23
+
24
+ ```bash
25
+ docker pull mysql:8.4@sha256:85b9bf2e29cf836ecb8c2a15a935d4ba0c606631dff1dd79531a11983c638f2a
26
+ BAILING_USAGE_PROCESS_CRASH_TEST=1 npm run test:model-process-recovery
27
+ ```
28
+
29
+ 未设置开关时,本专项明确 skip,不创建 Docker、数据库或子进程;显式启用但缺少 Docker/固定镜像时失败,不回退为跳过。普通默认测试的成功不能代表专项已经执行。
30
+
31
+ 测试自行创建带任务标签的独立容器,MySQL 端口仅随机映射到 `127.0.0.1`,每个场景使用随机 schema。测试不读取部署配置、继承部署数据库参数或使用真实模型凭据。清理按保存的完整容器 ID 和标签核对,仅移除自有容器、子进程与临时数据。请勿将测试夹点或协议代理用于实际部署。
32
+
33
+ ## 范围
34
+
35
+ 这些断言不证明真实供应商的重试或计费语义、主机断电、数据库服务器故障切换、跨地域容灾或外部业务 exactly-once。它们也不代表生产数据库恢复演练。独立宿主的实例管理与租户隔离、本地客户端的任务与交付分别由对应项目验证。
36
+
37
+ [专项测试](../src/app/kernel-model-process-crash.mysql.test.ts) · [隔离子进程夹点](../src/test-support/model-process-crash-child.ts) · [原调用回执](INVOCATION_RECEIPTS.md) · [能力与公开证据索引](IMPLEMENTATION_STATUS.md)
package/docs/README.en.md CHANGED
@@ -7,6 +7,9 @@ This directory contains public documentation for the open-source BailingHub proj
7
7
  | Document | Purpose |
8
8
  |---|---|
9
9
  | [IMPLEMENTATION_STATUS.en.md](IMPLEMENTATION_STATUS.en.md) · [Chinese](IMPLEMENTATION_STATUS.md) | Core ownership, formal releases versus main, public evidence, and uncovered scope. |
10
+ | [RELEASE_NOTES_v0.9.2.en.md](RELEASE_NOTES_v0.9.2.en.md) · [Chinese](RELEASE_NOTES_v0.9.2.md) | v0.9.2: secure installation, automatic settlement and original approval continuation, with deployment diagnostics and process tests. |
11
+ | [UPGRADE_v0.9.2.en.md](UPGRADE_v0.9.2.en.md) · [Chinese](UPGRADE_v0.9.2.md) | Explicit migrations 065/066, matching adapters, original-record checks and rollback limits. |
12
+ | [CORE_RELIABILITY.en.md](CORE_RELIABILITY.en.md) · [Chinese](CORE_RELIABILITY.md) | Installation credentials, fair settlement maintenance, approval continuation and synthetic acceptance boundaries. |
10
13
  | [RELEASE_NOTES_v0.9.1.en.md](RELEASE_NOTES_v0.9.1.en.md) · [Chinese](RELEASE_NOTES_v0.9.1.md) | v0.9.1: asynchronous usage shutdown fix, public capability index, and general security governance. |
11
14
  | [UPGRADE_v0.9.1.en.md](UPGRADE_v0.9.1.en.md) · [Chinese](UPGRADE_v0.9.1.md) | 0.9.0 patch upgrade, original requests, artifact manifests, and shutdown acceptance; no new SQL/APIs. |
12
15
  | [RELEASE_NOTES_v0.9.0.en.md](RELEASE_NOTES_v0.9.0.en.md) · [Chinese](RELEASE_NOTES_v0.9.0.md) | v0.9.0: optional model billing, shared allowances and image tools. |
@@ -57,6 +60,7 @@ This directory contains public documentation for the open-source BailingHub proj
57
60
  |---|---|
58
61
  | [ARCHITECTURE.en.md](ARCHITECTURE.en.md) | Architecture overview: layers, runtime path, boundaries, and extension points. |
59
62
  | [KERNEL_HOST_API.en.md](KERNEL_HOST_API.en.md) | Versioned high-level embedding API, managed lifecycle, mount paths, and artifact upgrade boundary. |
63
+ | [MODEL_PROCESS_RECOVERY.en.md](MODEL_PROCESS_RECOVERY.en.md) · [简体中文](MODEL_PROCESS_RECOVERY.md) | Opt-in process-crash/lost-acknowledgement regressions included in v0.9.2; historical Tag evidence stays separate. |
60
64
  | [KERNEL_HOST_API.md](KERNEL_HOST_API.md) | Chinese Kernel Host API guide. |
61
65
  | [PIPELINE.en.md](PIPELINE.en.md) | Runtime pipeline from trigger to dispatch, tools, audit, approval, and delivery. |
62
66
 
@@ -71,6 +75,7 @@ This directory contains public documentation for the open-source BailingHub proj
71
75
  | [SDK.en.md](SDK.en.md) | SDK guide for PHP, Node, Python, Java, Go, .NET, and any-language OpenAPI/HMAC integration. |
72
76
  | [CHANNELS.en.md](CHANNELS.en.md) | Inbound channel model and adapter expectations. |
73
77
  | [OPERATIONS.en.md](OPERATIONS.en.md) | Production topology, readiness, capacity, upgrades, backups, and recovery. |
78
+ | [DEPLOYMENT_DIAGNOSTICS.en.md](DEPLOYMENT_DIAGNOSTICS.en.md) · [Chinese](DEPLOYMENT_DIAGNOSTICS.md) | Read-only deployment doctor: public identities, explicit readiness, unknown/unchecked evidence and machine exit codes. |
74
79
  | [STREAMING.en.md](STREAMING.en.md) | Chat streaming protocol, reconnect behavior, canonical final result, and multi-replica boundary. |
75
80
  | [STREAMING.md](STREAMING.md) | Chinese chat streaming protocol. |
76
81
 
package/docs/README.md CHANGED
@@ -9,6 +9,9 @@
9
9
  | 文档 | 用途 |
10
10
  |---|---|
11
11
  | [IMPLEMENTATION_STATUS.md](IMPLEMENTATION_STATUS.md) · [English](IMPLEMENTATION_STATUS.en.md) | Core 能力归属、正式发行与主分支状态、公开证据和未覆盖范围。 |
12
+ | [RELEASE_NOTES_v0.9.2.md](RELEASE_NOTES_v0.9.2.md) · [English](RELEASE_NOTES_v0.9.2.en.md) | v0.9.2:安全安装、自动结算与原审批补续,含部署诊断与进程回归。 |
13
+ | [UPGRADE_v0.9.2.md](UPGRADE_v0.9.2.md) · [English](UPGRADE_v0.9.2.en.md) | 065/066显式迁移、配套仓储、原记录核对及回退限制。 |
14
+ | [CORE_RELIABILITY.md](CORE_RELIABILITY.md) · [English](CORE_RELIABILITY.en.md) | 安装凭据、公平结算维护、审批补续与合成验收边界。 |
12
15
  | [RELEASE_NOTES_v0.9.1.md](RELEASE_NOTES_v0.9.1.md) · [English](RELEASE_NOTES_v0.9.1.en.md) | v0.9.1:异步 usage 关闭修复、公开能力索引与通用安全治理。 |
13
16
  | [UPGRADE_v0.9.1.md](UPGRADE_v0.9.1.md) · [English](UPGRADE_v0.9.1.en.md) | 0.9.0 补丁升级、原请求核对、制品 manifest 与关闭验收;无新增 SQL/API。 |
14
17
  | [RELEASE_NOTES_v0.9.0.md](RELEASE_NOTES_v0.9.0.md) · [English](RELEASE_NOTES_v0.9.0.en.md) | v0.9.0:可选模型计费、统一套餐额度与文生图工具。 |
@@ -64,6 +67,7 @@
64
67
  | [ARCHITECTURE.md](ARCHITECTURE.md) | 当前架构的主说明:分层、核心运行链路、解耦边界和扩展方向。 |
65
68
  | [ARCHITECTURE.en.md](ARCHITECTURE.en.md) | English architecture overview. |
66
69
  | [KERNEL_HOST_API.md](KERNEL_HOST_API.md) | 完整 Core 的版本化高层嵌入 API、托管生命周期和升级边界。 |
70
+ | [MODEL_PROCESS_RECOVERY.md](MODEL_PROCESS_RECOVERY.md) · [English](MODEL_PROCESS_RECOVERY.en.md) | 当前源码的 opt-in 进程崩溃/确认丢失回归;不回写历史 Tag 验证。 |
67
71
  | [KERNEL_HOST_API.en.md](KERNEL_HOST_API.en.md) | English versioned Kernel Host API and lifecycle boundary. |
68
72
  | [PIPELINE.md](PIPELINE.md) | 一次任务从入口到执行、审计、送达的流水线。 |
69
73
  | [PIPELINE.en.md](PIPELINE.en.md) | English runtime pipeline. |
@@ -83,6 +87,7 @@
83
87
  | [CHANNELS.md](CHANNELS.md) | 入站渠道模型,当前包含企微接入。 |
84
88
  | [CHANNELS.en.md](CHANNELS.en.md) | English inbound channel model. |
85
89
  | [OPERATIONS.md](OPERATIONS.md) | 生产部署、多副本、健康检查、容量、备份与恢复。 |
90
+ | [DEPLOYMENT_DIAGNOSTICS.md](DEPLOYMENT_DIAGNOSTICS.md) · [English](DEPLOYMENT_DIAGNOSTICS.en.md) | 只读部署 doctor:公开身份核对、显式 readiness、未知与未检查状态及机器退出码。 |
86
91
  | [OPERATIONS.en.md](OPERATIONS.en.md) | English production operations guide. |
87
92
  | [STREAMING.md](STREAMING.md) | 网页聊天的真实增量输出协议:SSE 事件、断线重放、权威结果和多副本边界。 |
88
93
  | [STREAMING.en.md](STREAMING.en.md) | English chat streaming protocol and operations boundary. |
@@ -0,0 +1,45 @@
1
+ # v0.9.2: secure installation and persisted continuation
2
+
3
+ [简体中文](RELEASE_NOTES_v0.9.2.md)
4
+
5
+ Version date: 2026-10-13. A patch update from public Core 0.9.1.
6
+
7
+ A model result has returned, but settlement remains pending. An approval is recorded, but a temporary failure leaves the original job outside the queue. BailingHub 0.9.2 continues checking and recovering these persisted records without waiting for another request, and fixes credential generation when secure randomness fails during installation.
8
+
9
+ ## Fixes
10
+
11
+ ### Stop installation when secure randomness fails
12
+
13
+ When creating configuration, the installer generates its six default credentials independently through secure randomness. Missing OpenSSL, a failed producer or invalid output stops installation before writing a partial `.env` or starting services. Existing `.env` files are preserved, including changed administrator passwords. Operators need a working OpenSSL implementation; timestamps and digests are not randomness substitutes.
14
+
15
+ ### Advance asynchronous settlement without traffic
16
+
17
+ Reconciliation previously depended on requests. standalone now schedules an initial pass and subsequent passes every minute; managed Kernels use their first and subsequent existing `tick()` calls. Pages contain at most 50 records, advance by cursor and wrap at the end. Unpriceable or individually corrupt records no longer repeatedly occupy the first page and block later records.
18
+
19
+ Reconciliation uses the original request's saved metering, reference prices and unified multiplier. It does not read generated bodies, contact providers or redispatch models. Missing authoritative metering remains pending/unknown, rather than becoming an invented zero charge. Work for one owner shares an active pass, with database-failure backoff. Shutdown stops new maintenance and waits for started evidence writes; a timeout retains work for same-instance retry.
20
+
21
+ ### Persist continuation for the original approval decision
22
+
23
+ External callbacks and the console save the decision and continuation record in one transaction. Retrying the original `decision_id` can recover temporary auditing or queue failures; background maintenance also advances unfinished continuations. A saved decision whose continuation fails returns `503` and `decision_recorded=true / continuation_pending=true`. Do not create another approval for recovery.
24
+
25
+ Original-job queue admission and the decision marker are written atomically, with consumed-approval checks repeated inside the admission critical section. Lost queue acknowledgements, process reopening and completed subsequent runs cannot admit the job again for the same decision. Consumed approvals are not requeued; historical decisions without new continuation records are not backfilled. Denials only complete auditing. Direct Agent invocations still require the original Agent to explicitly resume the original `invocation_id`; approval does not start a Core model loop.
26
+
27
+ ## Additional diagnostics and public regressions
28
+
29
+ `npm run doctor -- --deployment --url <Core URL>` adds read-only deployment diagnostics. By default it checks `/health`, `/version` and local artifact identity. Only explicit `--readiness` asks the server to check its database and migration ledger. Diagnostics perform no upgrade, rollback or migration. Matching declarations do not establish artifact integrity, actual database identity or deployment acceptance; see [scope and exit codes](DEPLOYMENT_DIAGNOSTICS.en.md).
30
+
31
+ This release also ships actual child-process `SIGKILL` and lost MySQL COMMIT-acknowledgement model recovery regressions for the first time. They validate existing original-request recovery and settlement semantics, adding test coverage rather than automatic redispatch behavior. Approval acceptance also covers recovery in another PID, lost acknowledgements and concurrent continuation. See [model process recovery regressions](MODEL_PROCESS_RECOVERY.en.md) and [Core reliability regressions](CORE_RELIABILITY.en.md).
32
+
33
+ ## Who should upgrade
34
+
35
+ - **Core operators** using the installer, model billing or external/console approvals should upgrade and apply 065/066. Preserve configuration, databases, original requests and rollback artifacts first.
36
+ - **Embedded and custom-adapter developers** retain fair `tick()` calls and `close(drainMs)`, and supply matching continuation ledger methods plus `RuntimeStateStore.requeueApprovedJobOnce`. New decisions are explicitly unavailable without these implementations; they do not fall back to the old unrecoverable queue path.
37
+ - **Business-backend and client integrators** retain existing declarations, signature verification and final authorization. Approval retries retain the original decision identifier; result recovery retains the original invocation identifier. MCP / Agent Client SDK 0.7.0 and DSH 0.7.0 remain unchanged. ACC, independent Hosts and clients release separately and are not part of this Core patch.
38
+
39
+ ## Upgrade and verify
40
+
41
+ Relative to 0.9.1, this release adds `065_usage_reconciliation_scan.sql` and `066_approval_continuations.sql`. Apply all outstanding files through `npm run db:init` or the official explicit Kernel migration port. Runtime startup does not migrate automatically. Coordinate old writers and verify migration plus adapter support before starting the new version. The [upgrade guide](UPGRADE_v0.9.2.en.md) covers preserved data, original-ID checks, diagnostics and rollback.
42
+
43
+ After verifying artifact identity, migration ledger and health, check settlement without traffic, approval failure recovery and close draining in a dedicated test environment. Public regressions use isolated databases and synthetic providers; they do not establish live-provider or production business acceptance. Queue admission deduplication does not guarantee exactly-once external business effects.
44
+
45
+ [Upgrade guide](UPGRADE_v0.9.2.en.md) · [Full changelog](CHANGELOG.en.md) · [Capability and evidence index](IMPLEMENTATION_STATUS.en.md) · [Previous release](RELEASE_NOTES_v0.9.1.en.md)
@@ -0,0 +1,45 @@
1
+ # v0.9.2:安全安装与原记录补续
2
+
3
+ [English](RELEASE_NOTES_v0.9.2.en.md)
4
+
5
+ 版本日期:2026-10-13。相对公开 Core 0.9.1 的补丁更新。
6
+
7
+ 模型已经返回结果,但结算仍在 pending;审批已经批准,但一次临时故障让原任务停在队列外。百灵中枢(BailingHub)0.9.2 让这些持久记录在没有新请求的情况下继续核对和补续,并修复安装时安全随机源失败仍可能生成凭据的问题。
8
+
9
+ ## 修复了什么
10
+
11
+ ### 安全随机失败时停止安装
12
+
13
+ 新建配置时,默认六项凭据分别通过安全随机源生成。缺少 OpenSSL、随机命令失败或输出不合法时,安装器停止,不写半份 `.env`,不启动服务。已有 `.env` 保留,包括运营者修改的管理员密码。部署方需提供可用的 OpenSSL;不使用时间戳或摘要充当随机源。
14
+
15
+ ### 没有流量也推进异步结算
16
+
17
+ 过去依赖请求触发的核对,现在由 standalone 启动及每分钟维护自动推进;managed Kernel 由首个及后续既有 `tick()` 推进。每页最多 50 条,按游标前进并回绕,无法计价或单条损坏的记录不再反复占据首批、阻塞后面的记录。
18
+
19
+ 核对使用原请求已保存的计量、参考价格与统一倍率,不读取生成正文,不调用供应商或重派模型。缺少可靠计量继续保留 pending/unknown,不猜成零费用。同一 owner 的工作合并,数据库故障退避;关闭先停止新维护,再等待已开始的写账,超时保留同实例工作供重试。
20
+
21
+ ### 原审批决策可持久补续
22
+
23
+ 外部回调和控制台在同一事务保存决策及补续记录。审计或入队临时失败后,可使用原 `decision_id` 重试;后台维护也会推进未完成补续。决策已保存但补续失败返回 `503` 和 `decision_recorded=true / continuation_pending=true`,不要为恢复另造审批单。
24
+
25
+ 原任务入队与决策标记原子保存,并在入队临界区重验审批是否已消费。入队成功但确认丢失、进程重开或后续任务已经完成时,同一决策仍不会再次入队。审批已消费的记录不重排;没有新补续记录的历史决策不自动回填。拒绝仅补审计;Agent 直调仍由原 Agent 使用原 `invocation_id` 显式续执行,批准不会启动中枢模型循环。
26
+
27
+ ## 新增诊断与公开回归
28
+
29
+ `npm run doctor -- --deployment --url <Core URL>` 增加只读部署模式,默认核对 `/health`、`/version` 与本地制品身份。显式 `--readiness` 才让服务端检查数据库和迁移账本;诊断不执行升级、回滚或迁移。声明一致不能代替制品摘要、实际数据库身份或目标部署验收,详见[诊断范围与退出码](DEPLOYMENT_DIAGNOSTICS.md)。
30
+
31
+ 本版还首次发行实际子进程 `SIGKILL` 和 MySQL COMMIT 确认丢失的模型恢复专项。它验证已有原请求恢复和结算语义,属于测试覆盖新增,不是新的自动重派功能。审批专项也覆盖不同 PID 恢复、确认丢失和并发补续。见[模型进程恢复回归](MODEL_PROCESS_RECOVERY.md)与[Core 可靠性回归](CORE_RELIABILITY.md)。
32
+
33
+ ## 谁需要升级
34
+
35
+ - **Core 管理员**:使用安装器、模型计费或外部/控制台审批的部署,建议升级并应用 065/066;升级前保留配置、数据库、原请求与回滚制品。
36
+ - **嵌入式及自定义仓储开发者**:保留公平 `tick()` 与 `close(drainMs)`,配套 continuation ledger 方法和 `RuntimeStateStore.requeueApprovedJobOnce`。缺少配套实现时新审批决策明确 unavailable,不退回旧的不可靠入队方式。
37
+ - **业务后端及客户端接入方**:业务声明、验签和最终权限沿用既有契约;审批重试保留原决策标识,结果恢复保留原调用标识。MCP / Agent Client SDK 0.7.0、DSH 0.7.0 不变。ACC、独立 Host 与客户端各自发布,不包含在本次 Core 补丁中。
38
+
39
+ ## 升级与确认
40
+
41
+ 相对 0.9.1 新增 `065_usage_reconciliation_scan.sql` 与 `066_approval_continuations.sql`。通过 `npm run db:init` 或官方显式 Kernel 迁移入口应用全部未执行文件;运行时不自动迁移。先协调旧写入并核对迁移与仓储配套,再启动新版本。[升级指南](UPGRADE_v0.9.2.md)包含保留数据、原 ID 核对、诊断与回退步骤。
42
+
43
+ 确认新制品身份、迁移账本与健康状态后,在专用测试环境核对无流量结算、审批故障补续和关闭等待。公开回归使用隔离数据库与合成供应商;它们不代表真实供应商或生产业务已验收。队列准入去重也不等于外部业务效果恰好一次。
44
+
45
+ [升级指南](UPGRADE_v0.9.2.md) · [完整版本记录](CHANGELOG.md) · [能力与证据索引](IMPLEMENTATION_STATUS.md) · [上一版本](RELEASE_NOTES_v0.9.1.md)
@@ -0,0 +1,62 @@
1
+ # Core v0.9.2 patch upgrade guide
2
+
3
+ [简体中文](UPGRADE_v0.9.2.md)
4
+
5
+ Upgrade public Core 0.9.1 to 0.9.2 for installation secrets, asynchronous settlement maintenance and approval continuation fixes, plus read-only deployment diagnostics and process recovery regressions. MCP / Agent Client SDK and DSH remain at 0.7.0. This upgrade concerns Core; other components verify and release within their own projects.
6
+
7
+ ## Preserve data and coordinate writers
8
+
9
+ Back up the target database. Preserve configuration and credentials, attachment storage, original requests and approvals, previous artifacts and host persistence. Stop new work and coordinate all writers sharing the state database. Check original in-flight requests and saved decisions before draining and closing instances. Retain original `operation_id`, `invocation_id` and approval `decision_id`; do not replace recovery with a new request.
10
+
11
+ The 0.9.1 usage shutdown drain remains effective. New 0.9.2 maintenance writes also participate in close draining. After a timeout, wait and retry on the same instance; do not force-close stores or redispatch requests.
12
+
13
+ ## Select artifacts and migrate explicitly
14
+
15
+ Use formal `v0.9.2` source, npm packages or images. Verify version, source Tag/commit and artifact digest. Installer and prebuilt-image Compose defaults are updated to 0.9.2; existing `.env` files are preserved. Creating configuration requires working OpenSSL. Repair randomness failures before retrying installation.
16
+
17
+ Apply all outstanding files through the official migrator. For source installations:
18
+
19
+ ```bash
20
+ npm run db:init
21
+ ```
22
+
23
+ Embedded hosts use the explicit official `migrateBailingHubCoreSchema` port and recheck the complete `BAILINGHUB_CORE_ARTIFACT_V1` artifact manifest. Startup does not migrate automatically. The migrator skips recorded files; do not edit historical SQL or migration records manually.
24
+
25
+ | Migration added since 0.9.1 | Purpose |
26
+ | --- | --- |
27
+ | `065_usage_reconciliation_scan.sql` | Add the `(billing_state, updated_at, id)` paging index, without recalculating historical charges |
28
+ | `066_approval_continuations.sql` | Add the continuation table and `bz_jobs.approval_continuation_keys` for original-decision continuation and permanent admission markers, without backfilling historical decisions |
29
+
30
+ Apply 066 before enabling new approval paths. Failed continuation writes roll back the decision rather than leaving an orphaned decision. Earlier versions also apply all missing preceding migrations; see the [0.9.0 guide](UPGRADE_v0.9.0.en.md) for model billing upgrades.
31
+
32
+ ## Match adapters and callers
33
+
34
+ Upgrade official MySQL/JSONL state adapters together with the configuration approval ledger. JSONL serial writes support only one writer; multiple processes must not write the same file. Custom configuration adapters implement `decideWithContinuation`, `getContinuation`, `pendingContinuations`, `markContinuationAuditRecorded` and `completeContinuation`. Custom state adapters implement `RuntimeStateStore.requeueApprovedJobOnce` with matching atomic semantics. Unsupported new decisions return `approval_continuations_unavailable`, without falling back to the old queue path.
35
+
36
+ External retries of the same decision retain its original `decision_id`. A `503` with `decision_recorded=true / continuation_pending=true` means the decision was saved and continuation awaits recovery. Console retries retain the original approval. Historical decisions without new continuation records are not backfilled; consumed approvals are not requeued. Direct Agent invocations still require the local Agent to explicitly resume the original `invocation_id`; approval does not start a Core model loop.
37
+
38
+ Managed hosts continue fair calls to existing `tick()`. The first tick and subsequent minute-based maintenance advance pending settlement and approval continuation; standalone schedules these passes itself. No separate timer per Kernel is needed. Existing contracts continue to control pause, routing, tool permissions and final business authorization.
39
+
40
+ ## Verify the upgrade
41
+
42
+ 1. Check artifact identity, the target database's migration ledger and actual 065/066 structures. Verify `/health`, the console and existing business smoke checks.
43
+ 2. Use read-only deployment diagnostics for public identity and readiness. Read the exit code together with the unchecked scope:
44
+
45
+ ```bash
46
+ npm run --silent doctor -- --deployment --url http://127.0.0.1:18900 --readiness --json
47
+ ```
48
+
49
+ Default diagnostics only read health and version. `--readiness` asks the server to read its database and migration ledger. Diagnostics do not establish image digest or complete database identity, or perform upgrades; see [diagnostics](DEPLOYMENT_DIAGNOSTICS.en.md).
50
+ 3. In a dedicated test environment, retain a meterable original pending request and stop incoming traffic. Verify settlement in its original ledger without another provider dispatch. Records lacking authoritative pricing or metering remain pending/unknown. Check the shared USD allowance and multiplier; result complete does not mean billing settled.
51
+ 4. In a dedicated test environment, check a temporary audit or queue failure after approval. Retrying the original decision or waiting for maintenance should continue the original job. Lost queue acknowledgements, reopening or consumed approvals must not duplicate admission. Direct Agent calls still wait for explicit resume. Lost audit acknowledgements may produce repeated observations with the same `detail.continuation_id`, rather than another queue admission.
52
+ 5. Confirm maintenance drains during shutdown. A timeout retains same-instance work and dependencies for later retry. Do not delete ledgers, clear markers or replace invocation IDs.
53
+
54
+ See [Core reliability](CORE_RELIABILITY.en.md#regression-entry-points-and-limits) for isolated regression commands and [model process recovery](MODEL_PROCESS_RECOVERY.en.md) for actual `SIGKILL` and lost COMMIT-acknowledgement acceptance. These tests use dedicated databases and synthetic providers. Skips are not passes, and regressions do not replace target-deployment or live-business acceptance.
55
+
56
+ ## Rollback boundary
57
+
58
+ 065/066 are additive migrations. A code rollback retains continuation tables, `approval_continuation_keys`, original requests and ledgers. Do not delete markers and resubmit approvals. Returning to 0.9.1 loses this release's automatic maintenance, persisted continuation and admission deduplication guarantees. Stop decision and job writes, then reconcile saved decisions, queue state, markers and in-flight work before assessing compatibility and rollback.
59
+
60
+ Restoring an older backup also requires accounting for requests, charges and external effects after that backup. Queue deduplication does not guarantee exactly-once external effects, and restoring a backup does not undo business actions. Business services retain idempotency and final authorization.
61
+
62
+ [Release notes](RELEASE_NOTES_v0.9.2.en.md) · [Reliability contract](CORE_RELIABILITY.en.md) · [Compatibility policy](COMPATIBILITY.en.md)
@@ -0,0 +1,62 @@
1
+ # Core v0.9.2 补丁升级指南
2
+
3
+ [English](UPGRADE_v0.9.2.en.md)
4
+
5
+ 从公开 Core 0.9.1 升级到 0.9.2,修复安装凭据、异步结算维护与审批补续,并取得只读部署诊断和进程恢复回归。MCP / Agent Client SDK 与 DSH 继续使用 0.7.0。升级仅涉及 Core;其他组件按各自项目核对和发布。
6
+
7
+ ## 先保留数据,协调写入
8
+
9
+ 备份目标数据库,保留配置与凭据、附件存储、原请求及审批记录、旧制品和宿主持久记录。停止新工作并协调所有共用状态库的写入方;核对原在途请求与已经保存的决策,再排空和关闭实例。保留原 `operation_id`、`invocation_id` 与审批 `decision_id`,不以新请求代替恢复。
10
+
11
+ 0.9.1 的 usage 关闭等待继续有效。0.9.2 新增维护写账也纳入关闭等待;超时后在同一实例等待和重试,不据此强行关库或重新派发。
12
+
13
+ ## 选择制品并显式迁移
14
+
15
+ 使用正式 `v0.9.2` 源码、npm 包或镜像,核对版本、来源 Tag/提交与制品摘要。安装器和预构建镜像 Compose 默认版本同步为 0.9.2;已有 `.env` 不覆盖。新建配置需要可用的 OpenSSL,随机生成失败时先修复环境再重试。
16
+
17
+ 通过官方迁移器应用全部未执行文件,源码安装入口为:
18
+
19
+ ```bash
20
+ npm run db:init
21
+ ```
22
+
23
+ 嵌入式宿主使用官方 `migrateBailingHubCoreSchema` 显式入口,并重新核对 `BAILINGHUB_CORE_ARTIFACT_V1` 完整制品 manifest。运行时启动不自动迁移。已记账的迁移由迁移器跳过,不手工改写历史 SQL 或迁移账本。
24
+
25
+ | 相对 0.9.1 新增迁移 | 作用 |
26
+ | --- | --- |
27
+ | `065_usage_reconciliation_scan.sql` | 添加 `(billing_state, updated_at, id)` 分页索引,不重算历史费用 |
28
+ | `066_approval_continuations.sql` | 添加补续表和 `bz_jobs.approval_continuation_keys`,保存原决策补续及持久入队标记,不回填历史决策 |
29
+
30
+ 启用新审批入口前必须应用 066。补续事务写入失败会回滚决策,不能留下仅决策成功的孤立记录。更早版本还须应用全部缺少的前序迁移,模型计费升级另见 [0.9.0 指南](UPGRADE_v0.9.0.md)。
31
+
32
+ ## 仓储和调用方配套
33
+
34
+ 官方 MySQL/JSONL state 仓储与配置审批 ledger 一起升级。JSONL 的顺序写入仅支持一个 writer;不能用多个进程共同写同一文件。自定义配置仓储需提供 `decideWithContinuation`、`getContinuation`、`pendingContinuations`、`markContinuationAuditRecorded`、`completeContinuation`,自定义状态仓储需提供 `RuntimeStateStore.requeueApprovedJobOnce` 及配套原子语义。缺少支持时新决策返回 `approval_continuations_unavailable`,不回退旧入队路径。
35
+
36
+ 外部审批同一决策重试使用原 `decision_id`;`503` 的 `decision_recorded=true / continuation_pending=true` 表示决策已保存,补续待恢复。控制台重试原审批单。历史决策没有新补续记录时不自动回填;已消费审批不重排。Agent 直调仍由本地 Agent 使用原 `invocation_id` 显式 resume,批准不启动 Core 模型循环。
37
+
38
+ managed 宿主继续公平调用既有 `tick()`,首个 tick 和后续每分钟维护推进待结算与审批补续;standalone 自行安排这些维护。无需为每个 Kernel 增加独立定时器。暂停、路由、工具权限与业务最终授权仍由原契约控制。
39
+
40
+ ## 升级后如何确认
41
+
42
+ 1. 核对新制品身份、目标库的迁移账本和 065/066 实际结构;检查 `/health`、控制台与既有业务 smoke。
43
+ 2. 使用只读部署诊断核对公开身份和 readiness;退出码与未检查范围须一起读取:
44
+
45
+ ```bash
46
+ npm run --silent doctor -- --deployment --url http://127.0.0.1:18900 --readiness --json
47
+ ```
48
+
49
+ 默认诊断只读取健康与版本;`--readiness` 会让服务端只读访问数据库及迁移账本。诊断不会确认镜像 digest、完整数据库身份或执行升级,详见[诊断文档](DEPLOYMENT_DIAGNOSTICS.md)。
50
+ 3. 在专用测试环境保留一笔可计价的原 pending 请求,停止新流量,确认维护后原账本结算且没有第二次供应商派发;无法可靠计价的原记录仍为 pending/unknown。核对统一美元额度与倍率,不把结果 complete 等同于已 settled。
51
+ 4. 在专用测试环境核对批准后审计或入队暂时失败,重试原决策或等待维护能继续原任务;入队确认丢失、重开或审批已消费后不会重复入队。Agent 直调仍等待显式续执行。审计确认丢失可产生同 `detail.continuation_id` 的重复观察,不等于第二次队列准入。
52
+ 5. 停止时确认维护被排空。超时保留同实例的工作与依赖,等待后重试;不删账本、不清标记、不换调用 ID。
53
+
54
+ 隔离回归命令见 [Core 可靠性修复](CORE_RELIABILITY.md#回归入口与限制);实际 `SIGKILL` 与 COMMIT 确认丢失专项见 [模型进程恢复](MODEL_PROCESS_RECOVERY.md)。这些用例使用专用测试库和合成供应商,跳过不计为通过,也不替代目标部署或真实业务验收。
55
+
56
+ ## 回退边界
57
+
58
+ 065/066 是增量结构。代码回退保留补续表、`approval_continuation_keys`、原请求与账本;不要删除标记后重投审批。回退到 0.9.1 会失去本版自动维护、持久补续与入队去重保证。先停止决策和任务写入,核对已保存决策、队列、标记及在途工作,再评估兼容性和回退。
59
+
60
+ 恢复旧备份仍需核对备份之后的请求、扣费和外部业务效果。队列去重不保证外部业务恰好一次,备份恢复不撤销已经发生的业务动作。业务方继续维护幂等与最终权限。
61
+
62
+ [版本说明](RELEASE_NOTES_v0.9.2.md) · [可靠性契约](CORE_RELIABILITY.md) · [兼容策略](兼容性与升级.md)