bailinghub 0.10.0 → 0.10.1

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 (59) hide show
  1. package/README.en.md +6 -6
  2. package/README.md +6 -6
  3. package/THIRD_PARTY_NOTICES.md +2 -2
  4. package/docker-compose.images.yml +2 -2
  5. package/docs/CHANGELOG.en.md +12 -1
  6. package/docs/CHANGELOG.md +12 -1
  7. package/docs/IMPLEMENTATION_STATUS.en.md +12 -3
  8. package/docs/IMPLEMENTATION_STATUS.md +12 -3
  9. package/docs/INDEPENDENT_VALIDATION.en.md +4 -4
  10. package/docs/INDEPENDENT_VALIDATION.md +4 -4
  11. package/docs/README.en.md +2 -0
  12. package/docs/README.md +2 -0
  13. package/docs/RELEASE_NOTES_v0.10.1.en.md +41 -0
  14. package/docs/RELEASE_NOTES_v0.10.1.md +41 -0
  15. package/docs/UPGRADE_v0.10.1.en.md +66 -0
  16. package/docs/UPGRADE_v0.10.1.md +66 -0
  17. package/package.json +5 -3
  18. package/scripts/check-doc-links.mjs +2 -0
  19. package/scripts/check-image-tags.sh +1 -1
  20. package/scripts/check-php-sdk-artifacts.mjs +152 -0
  21. package/scripts/check-php-sdk-artifacts.test.mjs +99 -0
  22. package/scripts/check-release-consistency.test.mjs +2 -2
  23. package/scripts/install.sh +1 -1
  24. package/scripts/publish-images.sh +1 -1
  25. package/scripts/release-audit.mjs +5 -1
  26. package/scripts/sdk-declaration-contract-test.ts +34 -0
  27. package/scripts/sdk-p1-check.mjs +62 -26
  28. package/scripts/verify-github-repo.mjs +4 -0
  29. package/sdk/dotnet/Bailing.Connect/BailingConnect.cs +4 -4
  30. package/sdk/dotnet/README.md +8 -0
  31. package/sdk/dotnet/tests/Declaration/Declaration.csproj +11 -0
  32. package/sdk/dotnet/tests/Declaration/Program.cs +74 -0
  33. package/sdk/go/README.md +8 -0
  34. package/sdk/go/bailingconnect/connect.go +5 -5
  35. package/sdk/go/bailingconnect/declaration_test.go +107 -0
  36. package/sdk/java/README.md +13 -0
  37. package/sdk/java/src/main/java/com/bailing/connect/BailingConnect.java +4 -4
  38. package/sdk/java/tests/DeclarationTest.java +70 -0
  39. package/sdk/node/README.md +8 -0
  40. package/sdk/node/src/index.mjs +4 -4
  41. package/sdk/node/tests/declaration.test.mjs +41 -0
  42. package/sdk/php/README.md +16 -0
  43. package/sdk/php/src/Attributes/AiTool.php +4 -4
  44. package/sdk/php/src/SpecBuilder.php +8 -8
  45. package/sdk/php/tests/declaration-serialization.php +103 -0
  46. package/sdk/php7/README.md +14 -0
  47. package/sdk/php7/src/ToolDef.php +3 -3
  48. package/sdk/php7/src/ToolSpec.php +8 -13
  49. package/sdk/php7/tests/declaration-serialization.php +103 -0
  50. package/sdk/python/README.md +8 -0
  51. package/sdk/python/bailing_connect/__init__.py +6 -6
  52. package/sdk/python/tests/test_declaration.py +61 -0
  53. package/src/core/contracts/explicit-capability-values.test.ts +62 -0
  54. package/src/core/contracts/openapi-tools.ts +2 -2
  55. package/src/core/contracts/tool-annotations.ts +4 -4
  56. package/web/connect/bailing-connect-php.tgz +0 -0
  57. package/web/connect/bailing-connect-php7.tgz +0 -0
  58. package/web-admin/package-lock.json +4 -4
  59. package/web-admin/package.json +1 -1
package/README.en.md CHANGED
@@ -29,13 +29,13 @@ You choose which business APIs become available. BailingHub connects the convers
29
29
  <img src="assets/readme-product-overview.en.svg" width="100%" alt="BailingHub connects conversational entry points to governed business capabilities while the business system remains the authority">
30
30
  </picture>
31
31
 
32
- ## v0.10.0: On-demand knowledge and clearer setup and diagnostics
32
+ ## v0.10.1: Preserve explicit false and low declarations
33
33
 
34
- Local agents can discover short hints, then read relevant knowledge and tool guidance only when needed. Existing clients and bundled chat retain their original context delivery. The console improves onboarding, invocation examples, unsaved-form protection, approval status and diagnostic return paths. Larger tool arguments use one bounded policy while preserving full approval arguments and original-call inspection.
34
+ Business-side SDK generators preserve explicit readonly, idempotency and risk values. Core gives explicit values precedence over the GET fallback. Unspecified fields remain omitted; non-readonly operations without risk still default to medium. PHP7/PHP8 packages gain per-file and actual-generator verification, with matching corrections in the other language generators.
35
35
 
36
- The component set is **Core 0.10.0 + MCP / Agent Client SDK 0.8.0 + DSH 0.8.0**. Optional model policies separate default output budgets, service ceilings, provider parameters and reasoning-budget scope; old services are not reconfigured automatically. There is **no new SQL relative to 0.9.4**; earlier upgrades still apply outstanding historical migrations. Client hosts own their task loops and continuation; the Hub does not automatically repeat model or business operations.
36
+ This patch is **Core 0.10.1**. ACC **1.0.6 / declaration version: 1**, MCP / Agent Client SDK **0.8.0** and DSH **0.8.0** remain unchanged. There is **no new SQL relative to 0.10.0**. Business owners should review regenerated declarations, especially explicit low write operations previously omitted and explicit false on GET. Approval, authentication and final business authority remain unchanged.
37
37
 
38
- [Release notes](docs/RELEASE_NOTES_v0.10.0.en.md) · [Upgrade guide](docs/UPGRADE_v0.10.0.en.md) · [Knowledge protocol](docs/AGENT_KNOWLEDGE_API.en.md) · [Previous release](docs/RELEASE_NOTES_v0.9.4.en.md)
38
+ [Release notes](docs/RELEASE_NOTES_v0.10.1.en.md) · [Upgrade guide](docs/UPGRADE_v0.10.1.en.md) · [Business integration](docs/INTEGRATION.en.md) · [Previous release](docs/RELEASE_NOTES_v0.10.0.en.md)
39
39
 
40
40
  ## Operate the System by Conversation
41
41
 
@@ -125,7 +125,7 @@ To explore before installing, use the [online experience](https://trial.bailingh
125
125
  To run the complete disposable loop locally:
126
126
 
127
127
  ```bash
128
- git clone --branch v0.10.0 --depth 1 https://github.com/bailinghub/bailinghub.git
128
+ git clone --branch v0.10.1 --depth 1 https://github.com/bailinghub/bailinghub.git
129
129
  cd bailinghub
130
130
  export BAILING_TOKEN="${BAILING_TOKEN:-$(openssl rand -hex 32)}"
131
131
  docker compose up --build
@@ -214,7 +214,7 @@ Run separate BailingHub deployments for mutually isolated organizations. A `clie
214
214
  - [HTTP Contract](docs/CONTRACT.en.md) — stable network and identity boundaries.
215
215
  - [Architecture](docs/ARCHITECTURE.en.md) — runtime layers and dependency direction.
216
216
  - [English Documentation Map](docs/README.en.md) — the complete public documentation index.
217
- - [Changelog](docs/CHANGELOG.en.md) and [v0.10.0](docs/RELEASE_NOTES_v0.10.0.en.md) — current release changes and upgrade notes.
217
+ - [Changelog](docs/CHANGELOG.en.md) and [v0.10.1](docs/RELEASE_NOTES_v0.10.1.en.md) — current release changes and upgrade notes.
218
218
 
219
219
  ## Feedback and Ecosystem
220
220
 
package/README.md CHANGED
@@ -27,13 +27,13 @@
27
27
 
28
28
  在线体验环境只用于了解产品和配置方式。请勿上传生产凭据、敏感数据或接入真实业务;正式使用请自行部署开源版。
29
29
 
30
- ## v0.10.0:按需读取知识,更清楚地配置与排障
30
+ ## v0.10.1:明确声明的 false 和 low 不再丢失
31
31
 
32
- 本地智能体查一个能力时,可以先看简短提示,再按需读取相关知识与工具指导;旧客户端和自带聊天继续原有装配方式。控制台改善首次接入、调用示例、草稿保护、审批状态与排障返回路径;较大的工具参数使用统一有界限制,保留完整审批参数和原调用核对。
32
+ 业务侧 SDK 生成声明时保留显式只读、幂等与风险值;Core 消费时让显式值优先于 GET 缺省信号。未设置字段继续省略,非只读操作未设置 risk 时仍为 medium。PHP7/PHP8 配套包增加逐文件与实际生成器校验,其他语言生成器同步修正。
33
33
 
34
- 配套为 **Core 0.10.0 + MCP / Agent Client SDK 0.8.0 + DSH 0.8.0**。新模型策略将默认输出预算、服务上限、供应商参数和思考预算语义分开;旧服务不自动改配置。相对 0.9.4 **没有新增 SQL**,更早版本仍按原升级链应用缺失迁移。客户端负责自己的任务循环与续段,中枢不自动重试模型或重做业务操作。
34
+ 本轮为 **Core 0.10.1** 补丁;ACC 规范 **1.0.6 / 声明 version: 1**、MCP / Agent Client SDK **0.8.0**、DSH **0.8.0** 保持。相对 0.10.0 **无新增 SQL**。业务负责人应核对重新生成的声明,尤其是此前被省略的显式 low 写操作和 GET 的显式 false;审批、鉴权与最终业务权限不变。
35
35
 
36
- [版本说明](docs/RELEASE_NOTES_v0.10.0.md) · [升级指南](docs/UPGRADE_v0.10.0.md) · [知识协议](docs/AGENT_KNOWLEDGE_API.md) · [上一版本](docs/RELEASE_NOTES_v0.9.4.md)
36
+ [版本说明](docs/RELEASE_NOTES_v0.10.1.md) · [升级指南](docs/UPGRADE_v0.10.1.md) · [业务接入](docs/第三方对接指南.md) · [上一版本](docs/RELEASE_NOTES_v0.10.0.md)
37
37
 
38
38
  ## 适合哪些团队
39
39
 
@@ -115,7 +115,7 @@
115
115
  在本机启动中枢、MySQL、Demo 业务系统、工具源、路由和接入方:
116
116
 
117
117
  ```bash
118
- git clone --branch v0.10.0 --depth 1 https://github.com/bailinghub/bailinghub.git
118
+ git clone --branch v0.10.1 --depth 1 https://github.com/bailinghub/bailinghub.git
119
119
  cd bailinghub
120
120
  export BAILING_TOKEN="${BAILING_TOKEN:-$(openssl rand -hex 32)}"
121
121
  docker compose up --build
@@ -199,7 +199,7 @@ BailingHub Core 是独立服务,只通过稳定网络契约与业务系统协
199
199
  | 集中开启本地智能体与工具 | [四步配置指南](docs/LOCAL_AGENT_SETUP.md) · [系统说明](docs/AGENT_SYSTEM_INFO.md) |
200
200
  | 查 API 与边界契约 | [HTTP 契约](docs/CONTRACT.md) · [Client API](docs/CLIENT_API.md) |
201
201
  | 理解架构与长期取舍 | [架构](docs/ARCHITECTURE.md) · [项目愿景](VISION.md) |
202
- | 查看版本变化 | [CHANGELOG](docs/CHANGELOG.md) · [v0.10.0](docs/RELEASE_NOTES_v0.10.0.md) |
202
+ | 查看版本变化 | [CHANGELOG](docs/CHANGELOG.md) · [v0.10.1](docs/RELEASE_NOTES_v0.10.1.md) |
203
203
 
204
204
  完整中英文文档地图见 [docs/README.md](docs/README.md)。公共 API、SDK、Schema、Docker Demo 与代码标识保持语言中立。
205
205
 
@@ -152,7 +152,7 @@ The package license texts and copyright notices remain in the installed package
152
152
  | Console | [typescript](https://www.npmjs.com/package/typescript) | 5.9.3 | Apache-2.0 | runtime |
153
153
  | Console | [underscore](https://www.npmjs.com/package/underscore) | 1.13.8 | MIT | runtime |
154
154
  | Console | [util-deprecate](https://www.npmjs.com/package/util-deprecate) | 1.0.2 | MIT | runtime |
155
- | Console | [vite](https://www.npmjs.com/package/vite) | 6.4.4 | MIT | build/test |
155
+ | Console | [vite](https://www.npmjs.com/package/vite) | 6.4.5 | MIT | build/test |
156
156
  | Console | [vue](https://www.npmjs.com/package/vue) | 3.5.43 | MIT | runtime |
157
157
  | Console | [vue-component-type-helpers](https://www.npmjs.com/package/vue-component-type-helpers) | 3.3.4 | MIT | runtime |
158
158
  | Console | [vue-demi](https://www.npmjs.com/package/vue-demi) | 0.14.10 | MIT | runtime |
@@ -209,7 +209,7 @@ The package license texts and copyright notices remain in the installed package
209
209
  | Hub | [duck](https://www.npmjs.com/package/duck) | 0.1.12 | BSD | runtime |
210
210
  | Hub | [esbuild](https://www.npmjs.com/package/esbuild) | 0.28.1 | MIT | runtime |
211
211
  | Hub | [fast-deep-equal](https://www.npmjs.com/package/fast-deep-equal) | 3.1.3 | MIT | build/test |
212
- | Hub | [fast-uri](https://www.npmjs.com/package/fast-uri) | 3.1.8 | BSD-3-Clause | build/test |
212
+ | Hub | [fast-uri](https://www.npmjs.com/package/fast-uri) | 3.1.9 | BSD-3-Clause | build/test |
213
213
  | Hub | [fsevents](https://www.npmjs.com/package/fsevents) | 2.3.2 | MIT | build/test |
214
214
  | Hub | [fsevents](https://www.npmjs.com/package/fsevents) | 2.3.3 | MIT | runtime |
215
215
  | Hub | [generate-function](https://www.npmjs.com/package/generate-function) | 2.3.1 | MIT | runtime |
@@ -18,7 +18,7 @@ services:
18
18
  retries: 30
19
19
 
20
20
  demo-business:
21
- image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.10.0}
21
+ image: ${BAILING_DEMO_BUSINESS_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailing-demo-business:0.10.1}
22
22
  environment:
23
23
  DEMO_HOST: 0.0.0.0
24
24
  DEMO_PORT: 19080
@@ -29,7 +29,7 @@ services:
29
29
  - "${BAILING_DEMO_PUBLIC_PORT:-19080}:19080"
30
30
 
31
31
  bailinghub:
32
- image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.10.0}
32
+ image: ${BAILINGHUB_IMAGE:-crpi-xm97pbcjrmf5in3s.cn-shanghai.personal.cr.aliyuncs.com/bailinghub/bailinghub:0.10.1}
33
33
  depends_on:
34
34
  mysql:
35
35
  condition: service_healthy
@@ -12,7 +12,7 @@ For the current integration contract, use:
12
12
 
13
13
  ## Recording Rules
14
14
 
15
- Lead each release with a familiar business-assistant or enterprise-service scenario: the previous problem, changed behavior, affected users and developers, upgrade steps, observable checks and limits. Keep English and Chinese facts aligned and distinguish additions, fixes and existing features. See [the release scenario notes](RELEASE_NOTES_v0.9.4.en.md).
15
+ Lead each release with a familiar business-assistant or enterprise-service scenario: the previous problem, changed behavior, affected users and developers, upgrade steps, observable checks and limits. Keep English and Chinese facts aligned and distinguish additions, fixes and existing features. See [the release scenario notes](RELEASE_NOTES_v0.10.1.en.md).
16
16
 
17
17
  Each public version should describe:
18
18
 
@@ -22,6 +22,17 @@ Each public version should describe:
22
22
  - validation commands;
23
23
  - related docs.
24
24
 
25
+ ## v0.10.1 - Explicit business declarations and Core precedence
26
+
27
+ Version date: 2026-11-05. A patch relative to Core 0.10.0; ACC 1.0.6 / declaration version: 1 remain unchanged. MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 have no separate upgrade in this release. [Release notes](RELEASE_NOTES_v0.10.1.en.md), [upgrade guide](UPGRADE_v0.10.1.en.md).
28
+
29
+ - Seven business-side generators—PHP7/PHP8, Node.js, Python, Go, Java and .NET—preserve explicit readonly/idempotent true/false and low/medium/high risk. Unspecified fields stay omitted; writes are not assigned low globally.
30
+ - Core preserves boolean false and gives explicit readonly/idempotency precedence over GET defaults. Explicit risk wins; otherwise risk derives from the resolved readonly value. GET readonly=false with risk omitted becomes medium; unspecified non-readonly POST remains medium.
31
+ - Update both PHP tgz packages and add complete file-set, per-file SHA-256 and source/extracted-generator verification. Add 24 readonly/risk cases plus independent idempotency checks per generator, PHP approval/subject preservation and matching Core consumption checks.
32
+ - Review full declaration diffs during upgrades. Explicit low writes may change from previously incorrect medium to low, and GET false changes effective interpretation. PHP8 risk is nullable; see the upgrade guide for other intermediate defaults. Verify source, packages, Core and downstream acceptance separately.
33
+ - Apply bounded development/build patches to fast-uri 3.1.9 and Vite 6.4.5 for release audit gates, without inferring a production vulnerability or observed exploit.
34
+ - No new SQL from 0.10.0. Authentication, approval, final business authority, metering and original-request recovery rules are unchanged. Do not rewrite historical invocations, automatically replay business or automatically deploy downstreams. Rollback must consider the old generator/consumer misinterpretation together.
35
+
25
36
  ## v0.10.0 - On-demand Agent knowledge and clearer configuration
26
37
 
27
38
  Release date: 2026-10-22. A compatible feature release relative to public Core 0.9.4. MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 upgrade independently. [Release notes](RELEASE_NOTES_v0.10.0.en.md), [upgrade guide](UPGRADE_v0.10.0.en.md).
package/docs/CHANGELOG.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## 记录规则
7
7
 
8
- 每次先用业务助手、企业服务等通用场景说明原问题与本版行为,再按使用者、业务后端与客户端开发者交代升级影响。中英文使用同一事实,新增能力、修复和已有能力分别标明;参考[本版场景说明](RELEASE_NOTES_v0.9.4.md)。
8
+ 每次先用业务助手、企业服务等通用场景说明原问题与本版行为,再按使用者、业务后端与客户端开发者交代升级影响。中英文使用同一事实,新增能力、修复和已有能力分别标明;参考[本版场景说明](RELEASE_NOTES_v0.10.1.md)。
9
9
 
10
10
  每个公开版本至少说明:
11
11
 
@@ -15,6 +15,17 @@
15
15
  - **验证方式**:部署方如何确认该版本运行正常;
16
16
  - **相关文档**:对应的契约、指南或示例。
17
17
 
18
+ ## v0.10.1 - 业务声明显式值与 Core 消费优先级修复
19
+
20
+ 版本日期:2026-11-05。相对 Core 0.10.0 的补丁;ACC 1.0.6 / 声明 version: 1 不变,MCP / Agent Client SDK 0.8.0 与 DSH 0.8.0 本轮不另行升级。[版本说明](RELEASE_NOTES_v0.10.1.md)、[升级指南](UPGRADE_v0.10.1.md)。
21
+
22
+ - PHP7/PHP8、Node.js、Python、Go、Java、.NET 七种业务侧生成器保留显式 readonly/idempotent true/false 及 risk low/medium/high;未设置保持省略,不为全部写接口补 low。
23
+ - Core 保留 boolean false,显式只读性和幂等提示优先于 GET 缺省信号;显式 risk 优先,否则按解析后的只读性推导风险。GET readonly=false 且 risk 未设为 medium;未设置的非只读 POST 仍为 medium。
24
+ - 两种 PHP tgz 配套更新并增加文件集合、逐文件 SHA-256、源码/解包实际生成器检查。新增各生成器24组合风险/只读回归与独立幂等回归,PHP另核审批/主体保留,Core核同一声明消费。
25
+ - 升级应审阅全量声明差异,显式 low 的写操作可能从此前错误的 medium 恢复为 low;GET false 也会改变有效解释。PHP8 risk 属性为 nullable,其他中间对象缺省表示见升级指南。源码、实际包、Core 和接入方验收分别核对。
26
+ - 限定开发/构建依赖 fast-uri 3.1.9、Vite 6.4.5 通过发行审计门禁;不据此宣称发生生产漏洞或实际利用。
27
+ - 相对 0.10.0 无新增 SQL,认证、审批、业务最终授权、计量及原请求恢复规则不变。不改写历史 invocation、自动重放业务或自动部署下游;回退需同时核对旧生成器及消费者的错误解释风险。
28
+
18
29
  ## v0.10.0 - 智能体知识按需读取与配置体验改进
19
30
 
20
31
  版本日期:2026-10-22。相对公开 Core 0.9.4 的兼容功能版;配套 MCP / Agent Client SDK 0.8.0、DSH 0.8.0 独立升级。[版本说明](RELEASE_NOTES_v0.10.0.md)、[升级指南](UPGRADE_v0.10.0.md)。
@@ -6,10 +6,10 @@ This index separates **ownership, release availability, public evidence, and lim
6
6
 
7
7
  ## Version and evidence conventions
8
8
 
9
- - Formal release baseline: [v0.10.0](https://github.com/bailinghub/bailinghub/releases/tag/v0.10.0), with the [v0.10.0 source Tag](https://github.com/bailinghub/bailinghub/tree/v0.10.0). The table's mechanisms are included in this release; versioned fixes retain their first-release identities. This does not mean that every optional feature is enabled by a default installation.
9
+ - Formal release baseline: [v0.10.1](https://github.com/bailinghub/bailinghub/releases/tag/v0.10.1), with the [v0.10.1 source Tag](https://github.com/bailinghub/bailinghub/tree/v0.10.1). The table's mechanisms are included in this release; versioned fixes retain their first-release identities. This does not mean that every optional feature is enabled by a default installation.
10
10
  - Historical baseline: [v0.9.0](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.0), commit [`dae5260ede6565080d21e94ae63d52f3a7d23556`](https://github.com/bailinghub/bailinghub/tree/dae5260ede6565080d21e94ae63d52f3a7d23556). Its asynchronous shutdown gap remains documented below. Verify source, npm, images, and deployments separately; updated documentation does not fix old artifacts.
11
11
  - Test links identify **public test source and the conditions it checks**, not passing runs newly produced by this page. Unit tests, simulated provider responses, MySQL integration tests, and the complete demo have different scopes. Skipped or unexecuted tests are not passing evidence, and do not make an existing mechanism a planned feature.
12
- - Use the [v0.10.0 release notes](RELEASE_NOTES_v0.10.0.en.md) and [upgrade guide](UPGRADE_v0.10.0.en.md) for release contents and prerequisites. Compatible clients, application migrations, provider credentials, storage, and business authorization still require their own configuration and acceptance.
12
+ - Use the [v0.10.1 release notes](RELEASE_NOTES_v0.10.1.en.md) and [upgrade guide](UPGRADE_v0.10.1.en.md) for release contents and prerequisites. Compatible clients, application migrations, provider credentials, storage, and business authorization still require their own configuration and acceptance.
13
13
 
14
14
  ## Ownership and release availability
15
15
 
@@ -17,6 +17,7 @@ Core defaults to one organization's management and audit domain. Clients, routes
17
17
 
18
18
  | Capability and owner | Release availability | Public implementation and evidence | Scope and limitations |
19
19
  |---|---|---|---|
20
+ | Explicit declaration values: business SDKs serialize; Core resolves precedence | Corrected in Core v0.10.1 | [Generator/Core upgrade](UPGRADE_v0.10.1.en.md); [Core matrix](../src/core/contracts/explicit-capability-values.test.ts); [PHP7 generator matrix](../sdk/php7/tests/declaration-serialization.php) / [PHP8 generator matrix](../sdk/php/tests/declaration-serialization.php); [actual archive verifier](../scripts/check-php-sdk-artifacts.mjs) | Explicit false and low are retained; omitted values retain their defaults. Review changed effective risk and refresh declarations. Source tests do not prove a downstream package or deployment was updated. |
20
21
  | Declarations, tool discovery, and governed calls: Core parses/governs; the business system executes | Included in Core v0.10.0 | [Tool model](TOOLS_MODEL.en.md); [tool-index source](../src/services/tools-index.ts) / [tests](../src/services/tools-index.test.ts); [execution governance tests](../src/core/runtime/execution-runtime.test.ts) | Discoverability is not permission to call. The receiving API must verify the signature and recheck the subject, tenant, permissions, and business state. A declaration cannot create authority the caller did not have. |
21
22
  | Agent Auth: Core binds client sessions; the business authorization page supplies trusted identity | Included in Core v0.10.0 | [Agent Auth contract](AGENT_AUTH_API.en.md); [route source](../src/routes/agent-auth.ts); [lifecycle HTTP tests](../src/routes/agent-auth-lifecycle-http.test.ts) / [race tests](../src/infrastructure/config/config-agent-auth-lifecycle-race.test.ts) | PKCE, authorization binding, refresh, and revocation are implemented. They do not replace business login, role management, or final authorization, or let the model choose a trusted principal through text. |
22
23
  | Agent Client Runtime: Core exposes workspaces, turns, discovery, and tool invocation | Included in Core v0.10.0 | [Runtime API](AGENT_CLIENT_RUNTIME_API.en.md); [runtime source](../src/app/agent-client-runtime.ts) / [tests](../src/app/agent-client-runtime.test.ts); [invocation tests](../src/app/agent-tool-invocations.test.ts) | The local Agent host owns model selection, its reasoning loop, and tool orchestration. Core's existing `/run` pipeline is a separate public integration path; the two must not be presented as one client execution mode. |
@@ -40,7 +41,7 @@ Simulated provider responses establish adapter/protocol behavior for the specifi
40
41
 
41
42
  ### Public demo and independent reproduction task
42
43
 
43
- The [Docker demo](DEMO.en.md) and [independent validation task](INDEPENDENT_VALIDATION.en.md) provide a public path from installing v0.10.0 through smoke checks and `npm run demo:e2e`. Orders, tickets, refunds, and failure tools use repository demo data. Real model keys, customer APIs, and production credentials are unnecessary.
44
+ The [Docker demo](DEMO.en.md) and [independent validation task](INDEPENDENT_VALIDATION.en.md) provide a public path from installing v0.10.1 through smoke checks and `npm run demo:e2e`. Orders, tickets, refunds, and failure tools use repository demo data. Real model keys, customer APIs, and production credentials are unnecessary.
44
45
 
45
46
  The task requires concrete results for service startup, console access, anonymous-preview boundaries, smoke checks, and the complete business loop. The README's images and animation show that same public fixture, not customer adoption. Publishing a task card does not establish that an external developer completed it. Reports should retain the actual version, environment, checks, and failure scope.
46
47
 
@@ -91,3 +92,11 @@ Core v0.9.4 adds [DOCX dependency remediation](DOCX_DEPENDENCY.en.md) and [durab
91
92
  ## Core v0.10.0 compatible additions and fixes
92
93
 
93
94
  This release adds [Agent on-demand knowledge](AGENT_KNOWLEDGE_API.en.md), [named tool guidance](AGENT_CLIENT_RUNTIME_API.en.md) and [explicit model budgets](MODEL_OUTPUT_BUDGET.en.md), with console onboarding, draft protection and diagnostics improvements. Old clients retain inline delivery, old model configuration is not changed automatically and bundled chat context stays intact. Larger arguments remain bounded with full approvals and original-call deduplication. [Host continuation](MODEL_CONTINUATION.en.md) is a client responsibility, not a new Hub model loop. The [upgrade guide](UPGRADE_v0.10.0.en.md) covers read-only planning and actual-resource readiness; there is no new SQL from 0.9.4.
95
+
96
+ ## Core v0.10.1 explicit-value correction and package evidence
97
+
98
+ Seven business-side SDK generators preserve explicit readonly/idempotent true/false and low/medium/high risk; unspecified fields remain omitted. Core preserves boolean false and applies explicit values before the GET fallback. See the [release notes](RELEASE_NOTES_v0.10.1.en.md) and [upgrade guide](UPGRADE_v0.10.1.en.md). ACC remains at 1.0.6 with declaration version: 1; MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 do not receive a separate release for this patch.
99
+
100
+ The [PHP7](../sdk/php7/tests/declaration-serialization.php) and [PHP8](../sdk/php/tests/declaration-serialization.php) drivers run the actual builders and JSON serialization across 24 readonly/risk combinations, six idempotency combinations and preserved approval/subject requirements. The [Core regression](../src/core/contracts/explicit-capability-values.test.ts) checks consumer precedence; [PHP package verification](../scripts/check-php-sdk-artifacts.mjs) compares complete file sets, per-file hashes and actual regressions against extracted packages. These links identify reproducible checks, not a claim that every runtime, production deployment or downstream business has passed them.
101
+
102
+ The correction changes the interpretation of declarations previously discarded or overridden: explicit low writes may move from medium to low, GET readonly=false defaults to medium when risk is omitted, and GET idempotent=false is retained. Business owners review their declarations, including custom readers of intermediate SDK objects such as nullable PHP8 risk. Updating only one side does not repair the other side. Preserve original invocation and approval records; do not replay business for acceptance. The patch adds no SQL or new authority. Old version guarantees remain unchanged.
@@ -6,10 +6,10 @@
6
6
 
7
7
  ## 版本与阅读口径
8
8
 
9
- - 正式发行基线:[v0.10.0](https://github.com/bailinghub/bailinghub/releases/tag/v0.10.0),对应 [v0.10.0 源码 Tag](https://github.com/bailinghub/bailinghub/tree/v0.10.0)。下表机制均包含在该版本中,各次修复仍标注首次发行版本;不代表默认安装后已启用所有可选功能。
9
+ - 正式发行基线:[v0.10.1](https://github.com/bailinghub/bailinghub/releases/tag/v0.10.1),对应 [v0.10.1 源码 Tag](https://github.com/bailinghub/bailinghub/tree/v0.10.1)。下表机制均包含在该版本中,各次修复仍标注首次发行版本;不代表默认安装后已启用所有可选功能。
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.10.0 说明](RELEASE_NOTES_v0.10.0.md) 和 [升级指南](UPGRADE_v0.10.0.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
12
+ - 版本发行内容与升级前提以 [v0.10.1 说明](RELEASE_NOTES_v0.10.1.md) 和 [升级指南](UPGRADE_v0.10.1.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
13
13
 
14
14
  ## 能力归属与发行状态
15
15
 
@@ -17,6 +17,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
17
17
 
18
18
  | 能力与责任方 | 发行状态 | 公开实现与证据入口 | 范围与限制 |
19
19
  |---|---|---|---|
20
+ | 声明显式值:业务 SDK 序列化,Core 解析优先级 | Core v0.10.1 修复 | [生成器/消费者升级](UPGRADE_v0.10.1.md);[Core 矩阵](../src/core/contracts/explicit-capability-values.test.ts);[PHP7 生成矩阵](../sdk/php7/tests/declaration-serialization.php) / [PHP8 生成矩阵](../sdk/php/tests/declaration-serialization.php);[实际归档校验](../scripts/check-php-sdk-artifacts.mjs) | 显式 false 与 low 保留,未设置字段遵循原缺省。需核对有效风险变化并刷新声明;源码测试不证明下游包或部署已经更新。 |
20
21
  | 能力声明、工具发现、受控调用:Core 解析和治理,业务系统执行 | Core v0.10.0 已包含 | [工具模型](TOOLS_MODEL.md);[工具索引源码](../src/services/tools-index.ts) / [测试](../src/services/tools-index.test.ts);[执行治理测试](../src/core/runtime/execution-runtime.test.ts) | 工具可发现不等于当前调用获准。业务接口还需验签,并重新检查主体、租户、权限和业务状态;声明不能赋予调用方原本没有的权力。 |
21
22
  | Agent Auth:Core 绑定客户端会话,业务授权页提供可信身份 | Core v0.10.0 已包含 | [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
23
  | Agent Client Runtime:Core 提供工作区、turn、搜索和工具调用接口 | Core v0.10.0 已包含 | [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` 管线是另一种公开接入路径,不能把两者混为同一客户端执行模式。 |
@@ -40,7 +41,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
40
41
 
41
42
  ### 公开 demo 与独立复现任务卡
42
43
 
43
- [Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.10.0 安装、基础体检到 `npm run demo:e2e` 的公开路径。其订单、工单、退款和故障工具均为仓库 demo 数据;不需要真实模型 Key、客户接口或生产凭据。
44
+ [Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.10.1 安装、基础体检到 `npm run demo:e2e` 的公开路径。其订单、工单、退款和故障工具均为仓库 demo 数据;不需要真实模型 Key、客户接口或生产凭据。
44
45
 
45
46
  任务卡要求记录服务、控制台、匿名预览边界、基础体检和完整业务闭环的具体结果。README 的 demo 图像与动画展示同一公开样例,不能当作客户采用证据。任务卡存在也不意味着已有外部开发者完成验证;报告结果应保留验证者实际版本、环境、检查项和失败范围。
46
47
 
@@ -91,3 +92,11 @@ Core v0.9.4 新增 [DOCX 依赖处置](DOCX_DEPENDENCY.md)与[通知持久化](N
91
92
  ## Core v0.10.0 的兼容新增与修复
92
93
 
93
94
  本版新增[Agent 知识按需协议](AGENT_KNOWLEDGE_API.md)、[工具按名指导](AGENT_CLIENT_RUNTIME_API.md)和[显式模型预算](MODEL_OUTPUT_BUDGET.md),并改善后台首次接入、草稿保护与排障。旧客户端保持 inline、旧模型配置不自动改变,自带聊天装配保持。大参数仍有界、完整审批与原调用防重保留;[宿主续段](MODEL_CONTINUATION.md)由客户端实现,不是中枢新增自动模型循环。只读升级计划与真实资源 readiness 见[升级指南](UPGRADE_v0.10.0.md),相对 0.9.4 无新增 SQL。
95
+
96
+ ## Core v0.10.1 的显式值修复与配套包证据
97
+
98
+ 七种业务侧 SDK 生成器保留显式 readonly/idempotent true/false 和 risk low/medium/high,未设置字段继续省略;Core 保留 boolean false,显式值优先于 GET 缺省信号。见[版本说明](RELEASE_NOTES_v0.10.1.md)和[升级指南](UPGRADE_v0.10.1.md)。ACC 保持 1.0.6 / 声明 version: 1,MCP / Agent Client SDK 0.8.0 与 DSH 0.8.0 不因本补丁另行发行。
99
+
100
+ [PHP7](../sdk/php7/tests/declaration-serialization.php)与[PHP8](../sdk/php/tests/declaration-serialization.php)通过实际 builder 和 JSON 序列化检查24种风险/只读组合、6种幂等组合以及审批/主体要求保留;[Core 回归](../src/core/contracts/explicit-capability-values.test.ts)检查消费者优先级。[PHP 配套包校验](../scripts/check-php-sdk-artifacts.mjs)比较完整文件集合、逐文件摘要,并对真实解包内容运行同一回归。这些链接提供可复现检查,不代表每个运行环境、生产部署或下游业务已经通过验收。
101
+
102
+ 修复会改变此前被丢弃或覆盖的声明解释:显式 low 的写操作可能从 medium 恢复为 low,GET readonly=false 且 risk 未设置为 medium,GET idempotent=false 得以保留。业务负责人应审阅自己的声明,并核对直接读取 SDK 中间对象的代码,例如 PHP8 nullable risk。只更新一侧无法修复另一侧;保留原调用和审批记录,不为验收重放业务。本补丁不新增 SQL 或业务权力,不回写旧版本保证。
@@ -9,7 +9,7 @@ After the demo, use the [business integration walkthrough (Chinese)](INTEGRATION
9
9
  ## Scope
10
10
 
11
11
  - Target: the open-source BailingHub Docker demo;
12
- - Stable baseline: `v0.10.0`;
12
+ - Stable baseline: `v0.10.1`;
13
13
  - Data: the bundled demo orders, tickets, refunds, and failure probe;
14
14
  - Expected time: about 20 minutes after images and dependencies are available;
15
15
  - Not required: a real model key, production API, production credential, or real business data.
@@ -34,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
34
34
  cd "$HOME/bailinghub"
35
35
  ```
36
36
 
37
- The installer pulls the official `v0.10.0` 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.
37
+ The installer pulls the official `v0.10.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.
38
38
 
39
39
  If the default directory is already in use, choose a new empty directory instead of overwriting an existing deployment:
40
40
 
@@ -48,7 +48,7 @@ cd "$HOME/bailinghub-validation"
48
48
  ### Path B: local source reproduction
49
49
 
50
50
  ```bash
51
- git clone --depth 1 --branch v0.10.0 https://github.com/bailinghub/bailinghub.git
51
+ git clone --depth 1 --branch v0.10.1 https://github.com/bailinghub/bailinghub.git
52
52
  cd bailinghub
53
53
  git rev-parse HEAD
54
54
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -169,7 +169,7 @@ After the core task passes, you may continue with:
169
169
  - [Trusted rich rendering and chat reliability](RELEASE_NOTES_v0.1.15.en.md).
170
170
  - [Bounded tool runtime and resilient semantic retrieval](RELEASE_NOTES_v0.1.16.en.md).
171
171
  - [Composable Core and Kernel Host API v1](RELEASE_NOTES_v0.3.0.en.md).
172
- - [Current stable release notes](RELEASE_NOTES_v0.10.0.en.md).
172
+ - [Current stable release notes](RELEASE_NOTES_v0.10.1.en.md).
173
173
 
174
174
  Select the relevant track in the same Issue form and disclose whether you received direct maintainer assistance.
175
175
 
@@ -9,7 +9,7 @@
9
9
  ## 验证范围
10
10
 
11
11
  - 验证对象:BailingHub 开源版 Docker demo;
12
- - 稳定基线:`v0.10.0`;
12
+ - 稳定基线:`v0.10.1`;
13
13
  - 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
14
14
  - 预计用时:镜像和依赖下载完成后约 20 分钟;
15
15
  - 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
@@ -34,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
34
34
  cd "$HOME/bailinghub"
35
35
  ```
36
36
 
37
- 脚本默认拉取 `v0.10.0` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
37
+ 脚本默认拉取 `v0.10.1` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
38
38
 
39
39
  如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
40
40
 
@@ -48,7 +48,7 @@ cd "$HOME/bailinghub-validation"
48
48
  ### 路径 B:本地源码复现
49
49
 
50
50
  ```bash
51
- git clone --depth 1 --branch v0.10.0 https://github.com/bailinghub/bailinghub.git
51
+ git clone --depth 1 --branch v0.10.1 https://github.com/bailinghub/bailinghub.git
52
52
  cd bailinghub
53
53
  git rev-parse HEAD
54
54
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -169,7 +169,7 @@ docker compose exec -T bailinghub npm run demo:e2e
169
169
  - [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
170
170
  - [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
171
171
  - [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
172
- - [当前稳定版发布说明](RELEASE_NOTES_v0.10.0.md)。
172
+ - [当前稳定版发布说明](RELEASE_NOTES_v0.10.1.md)。
173
173
 
174
174
  扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
175
175
 
package/docs/README.en.md CHANGED
@@ -6,6 +6,8 @@ This directory contains public documentation for the open-source BailingHub proj
6
6
 
7
7
  | Document | Purpose |
8
8
  |---|---|
9
+ | [RELEASE_NOTES_v0.10.1.en.md](RELEASE_NOTES_v0.10.1.en.md) · [Chinese](RELEASE_NOTES_v0.10.1.md) | v0.10.1: explicit declaration values, Core precedence and companion-package verification. |
10
+ | [UPGRADE_v0.10.1.en.md](UPGRADE_v0.10.1.en.md) · [Chinese](UPGRADE_v0.10.1.md) | No new SQL; generator/consumer pairing, full declaration diffs and rollback boundaries. |
9
11
  | [RELEASE_NOTES_v0.10.0.en.md](RELEASE_NOTES_v0.10.0.en.md) · [Chinese](RELEASE_NOTES_v0.10.0.md) | v0.10.0: on-demand knowledge, console consistency, larger arguments and model budgets. |
10
12
  | [UPGRADE_v0.10.0.en.md](UPGRADE_v0.10.0.en.md) · [Chinese](UPGRADE_v0.10.0.md) | No new SQL from 0.9.4; readiness, client pairing, explicit policies and rollback. |
11
13
  | [AGENT_KNOWLEDGE_API.en.md](AGENT_KNOWLEDGE_API.en.md) · [Chinese](AGENT_KNOWLEDGE_API.md) | Agent-only knowledge hints, search, authorized references and bounded reads. |
package/docs/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  | 文档 | 用途 |
10
10
  |---|---|
11
+ | [RELEASE_NOTES_v0.10.1.md](RELEASE_NOTES_v0.10.1.md) · [English](RELEASE_NOTES_v0.10.1.en.md) | v0.10.1:声明显式值保留、Core 优先级与实际配套包校验。 |
12
+ | [UPGRADE_v0.10.1.md](UPGRADE_v0.10.1.md) · [English](UPGRADE_v0.10.1.en.md) | 无新增 SQL;生成器/消费者配套、全量声明差异及回退边界。 |
11
13
  | [RELEASE_NOTES_v0.10.0.md](RELEASE_NOTES_v0.10.0.md) · [English](RELEASE_NOTES_v0.10.0.en.md) | v0.10.0:知识按需读取、后台交互、大参数与模型预算。 |
12
14
  | [UPGRADE_v0.10.0.md](UPGRADE_v0.10.0.md) · [English](UPGRADE_v0.10.0.en.md) | 相对 0.9.4 无新 SQL;readiness、配套客户端、显式策略与回退边界。 |
13
15
  | [AGENT_KNOWLEDGE_API.md](AGENT_KNOWLEDGE_API.md) · [English](AGENT_KNOWLEDGE_API.en.md) | 智能体专用的知识提示、搜索、受授权引用与有界分页读取。 |
@@ -0,0 +1,41 @@
1
+ # Core v0.10.1: Preserve explicit business risk and execution declarations
2
+
3
+ [简体中文](RELEASE_NOTES_v0.10.1.md)
4
+
5
+ A business service explicitly marked a POST operation as low risk, but its generated declaration omitted `risk.level`. A GET explicitly marked as non-readonly was still consumed as readonly. Core 0.10.1 fixes lost explicit values in business-side SDK generators and distinguishes an omitted boolean from `false` when Core consumes declarations.
6
+
7
+ This is a patch relative to Core 0.10.0. **The ACC specification remains at 1.0.6 and declarations retain `version: 1`; MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 have no separate upgrade in this release.** The affected generators live in the Core repository and are business-provider SDKs, not those independent client packages. There are no new SQL migrations, authentication protocols or business-permission endpoints relative to 0.10.0.
8
+
9
+ ## Corrected behavior
10
+
11
+ Seven SDK generators—PHP 7.3 builder, PHP 8 attributes, Node.js, Python, Go, Java and .NET—preserve explicit `readonly: false/true`, `idempotent: false/true` and `risk.level: low/medium/high`. Unspecified fields remain omitted; write operations are not assigned low risk globally.
12
+
13
+ Core preserves explicit boolean false and uses the existing GET fallback only when the field is unspecified. Effective risk uses an explicit risk value first, then the resolved readonly value. The HTTP method cannot override an explicit non-readonly declaration a second time.
14
+
15
+ | Declaration | Interpretation after the fix |
16
+ | --- | --- |
17
+ | GET with readonly and risk omitted | Existing readonly and low defaults |
18
+ | GET with `readonly: false`, risk omitted | Non-readonly and medium |
19
+ | POST with readonly and risk omitted | Existing non-readonly and medium defaults |
20
+ | POST with explicit `risk: low` | Low is retained; existing approval, subject and business authorization requirements remain independent |
21
+ | GET with explicit `idempotent: false` | The non-idempotent hint is retained instead of being overridden by GET |
22
+
23
+ **This correction can change the effective interpretation of declarations previously omitted or overridden incorrectly.** Business owners must confirm that explicit low and false values match the operation. In particular, a write operation previously interpreted as medium because low was omitted now retains its declared low risk. This requires review rather than being treated as a cosmetic change.
24
+
25
+ ## Distribution and validation
26
+
27
+ Both PHP tgz companion packages are updated with the Core artifacts. A new verifier compares the complete source/archive file sets, file contents and SHA-256 values, then runs actual generator tests against both source and extracted packages. Missing files, unexpected files, digest differences and failing regressions fail the check. PHP7 retains PHP 7.3 syntax; the attribute-based package still requires PHP 8.1 or later.
28
+
29
+ Generator regressions cover all 24 combinations of GET/POST, readonly omitted/false/true and risk omitted/low/medium/high, plus explicit and omitted idempotency values. Core regressions check precedence and effective risk. PHP tests also verify that explicit low does not remove approval or subject requirements. These tests use synthetic capabilities and do not execute business operations or replace an integrator's declaration review.
30
+
31
+ PHP8 `AiTool::$risk` changes from the default `'low'` to a nullable string with default `null`; Java also uses null for unspecified risk, .NET uses the empty string, and Node.js/Python no longer fill unspecified risk with low. Custom code reading intermediate tool objects must handle the unspecified state. See the [upgrade guide](UPGRADE_v0.10.1.en.md).
32
+
33
+ The release also updates the bounded development/build dependencies to `fast-uri 3.1.9` and `Vite 6.4.5` to satisfy release audit gates. This dependency maintenance does not establish that a production exploit or production vulnerability occurred.
34
+
35
+ ## Upgrade boundaries
36
+
37
+ Operators update Core and the business-side SDK, regenerate and review declarations, then refresh tool sources. **An SDK-only upgrade cannot fix an old Core overriding explicit GET false; a Core-only upgrade cannot recover fields already discarded by an old generator.** Integrations using hand-written OpenAPI or another runtime must check declaration contents and consumer behavior separately.
38
+
39
+ Business authorization, signatures, approval conditions, original-request recovery and metering rules are outside this change. Do not replay business requests for acceptance or rewrite saved original invocations and approved arguments. A public release does not automatically upgrade any existing deployment, private Host or downstream system.
40
+
41
+ [Upgrade guide](UPGRADE_v0.10.1.en.md) · [Business-side SDKs](SDK.en.md) · [Changelog](CHANGELOG.en.md) · [Previous release](RELEASE_NOTES_v0.10.0.en.md)
@@ -0,0 +1,41 @@
1
+ # Core v0.10.1:保留业务系统明确声明的风险与执行语义
2
+
3
+ [English](RELEASE_NOTES_v0.10.1.en.md)
4
+
5
+ 业务后端明确把一个 POST 操作标为低风险,导出的声明却省略了 `risk.level`;另一个 GET 明确标为非只读,消费时仍被当作只读。Core 0.10.1 修复业务接入 SDK 的显式值丢失,并让 Core 在读取声明时正确区分“未设置”和 `false`。
6
+
7
+ 这是相对 Core 0.10.0 的补丁。**ACC 规范仍为 1.0.6,声明仍为 `version: 1`;MCP / Agent Client SDK 0.8.0、DSH 0.8.0 本轮不另行升级。** 本次修复的是 Core 仓库内的业务侧声明生成器及消费逻辑,不是这些独立客户端包。相对 0.10.0 无新增 SQL、认证协议或业务权限接口。
8
+
9
+ ## 修复行为
10
+
11
+ PHP 7.3 builder、PHP 8 注解版、Node.js、Python、Go、Java、.NET 七种 SDK 生成器保留显式 `readonly: false/true`、`idempotent: false/true` 及 `risk.level: low/medium/high`。未设置的字段继续省略,不为所有写接口补上 low。
12
+
13
+ Core 读取布尔值时保留 `false`,只在字段未设置时使用 GET 的原缺省信号。有效风险先采用显式 risk,否则依据已经解析的只读性推导;HTTP 方法不能再次覆盖显式非只读声明。
14
+
15
+ | 声明 | 修复后的解释 |
16
+ | --- | --- |
17
+ | GET,未设置 readonly 和 risk | 保持只读、low 的缺省解释 |
18
+ | GET,`readonly: false`,未设置 risk | 非只读、medium |
19
+ | POST,未设置 readonly 和 risk | 保持非只读、medium |
20
+ | POST,显式 `risk: low` | 保留 low;既有审批、主体和业务授权要求继续独立生效 |
21
+ | GET,显式 `idempotent: false` | 保留非幂等提示,不被 GET 缺省覆盖 |
22
+
23
+ **修复会改变此前被错误省略或覆盖的声明的有效解释。** 业务负责人应确认显式 low 和 false 确实符合接口行为。特别是原先因 low 丢失而被解释成 medium 的写操作,更新后会恢复为声明的 low;不能把此变化视为无需核对的文本整理。
24
+
25
+ ## 分发与验证
26
+
27
+ 两个 PHP tgz 配套包随 Core 制品更新。新增验包工具比较 SDK 源码与归档的完整文件集合、逐文件内容和 SHA-256,再针对源码及解包目录分别运行实际生成器测试;缺文件、额外文件、摘要不一致或回归失败都不能通过。PHP7 保持 7.3 语法,PHP8 版要求仍为 PHP 8.1 及以上。
28
+
29
+ 各生成器新增 GET/POST × readonly 未设置/false/true × risk 未设置/low/medium/high 的 24 组合回归,另测幂等显式值与缺省值。Core 回归检查字段优先级和有效风险;PHP 回归还核对显式 low 不删除审批与主体要求。验证使用合成能力,不调用真实业务,也不能替代接入方自己的声明审阅。
30
+
31
+ PHP8 的 `AiTool::$risk` 从默认 `'low'` 改为可空字符串、默认 `null`;Java 的未设置 risk 也为 null,.NET 使用空字符串,Node.js/Python 不再把未设置值补成 low。读取中间工具对象的自定义代码应处理未设置状态,详见[升级指南](UPGRADE_v0.10.1.md)。
32
+
33
+ 本版同时将限定的开发/构建依赖更新到 `fast-uri 3.1.9` 与 `Vite 6.4.5`,用于通过本次发行审计门禁。该依赖维护本身不构成已发现生产利用或生产漏洞的结论。
34
+
35
+ ## 升级边界
36
+
37
+ 部署方更新 Core 与业务侧 SDK、重新生成和核对声明,再刷新工具源。**只换 SDK 不能修复旧 Core 对 GET 显式 false 的覆盖;只换 Core 也无法恢复旧生成器已经丢失的字段。** 对使用现成 OpenAPI 文件或其他 runtime 的接入方,分别核对声明内容和消费者行为。
38
+
39
+ 原业务授权、签名、审批条件、原请求恢复和计量规则不在本次修改范围。不要为验收重放原业务,也不要改写已保存的原调用或批准参数。公开发行不代表任何现有部署、私有 Host 或下游系统已自动升级。
40
+
41
+ [升级指南](UPGRADE_v0.10.1.md) · [业务接入](第三方对接指南.md) · [CHANGELOG](CHANGELOG.md) · [上一版本](RELEASE_NOTES_v0.10.0.md)
@@ -0,0 +1,66 @@
1
+ # Core v0.10.1 Upgrade Guide
2
+
3
+ [简体中文](UPGRADE_v0.10.1.md)
4
+
5
+ This guide covers Core 0.10.0 → 0.10.1 and the matching business-side declaration SDK updates. ACC remains at specification release 1.0.6 with declaration `version: 1`; MCP / Agent Client SDK and DSH do not receive separate versions for this patch. Earlier Core installations must also follow the [0.10.0 upgrade guide](UPGRADE_v0.10.0.en.md) and their historical migration chain.
6
+
7
+ ## 1. Pin identities and retain original evidence
8
+
9
+ Record source/target tags, exact commits and package or image digests. For business SDKs, retain the previous file manifest, candidate package SHA-256 and generated declaration. An unchanged filename or the label “PHP7” does not establish artifact identity.
10
+
11
+ Follow the existing deployment procedure to back up configuration, databases/JSONL, migration history, original operations/invocations and approvals. Stop new admissions and drain accepted work. Relative to 0.10.0 there is **no new SQL and no change to historical SQL or the migrator**; do not manually edit migration history. Keep old artifacts and declarations for comparison and controlled rollback.
12
+
13
+ ## 2. Have business owners review declaration differences
14
+
15
+ Generators retain explicit risk, readonly and idempotent values previously omitted. Rebuild declarations outside production and compare individual operations:
16
+
17
+ - **Non-readonly POST with explicit low**: previously it could become medium when the field was discarded. It now retains the author's explicit low value. Confirm that the label is appropriate; do not set every write operation to low to eliminate differences.
18
+ - **GET with explicit readonly=false**: it now remains non-readonly and defaults to medium when risk is omitted. Review whether the operation modifies business state and whether GET accurately represents its interface.
19
+ - **GET with explicit idempotent=false**: the hint is preserved. Callers must not rely on the old assumption that every GET is idempotent. This is not a promise of automatic retries or exactly-once execution.
20
+ - **Unspecified fields**: remain omitted. Existing defaults for unspecified GET readonly and non-readonly POST medium risk are unchanged.
21
+ - **Approval and authority**: explicit low does not remove `approval.required`, `approval.when`, subject requirements or final business-system authorization. Retain and inspect these rules rather than bypassing approval because a risk value changed.
22
+
23
+ JSON, ETags, declaration digests and tool-discovery revisions may change. Refresh tool sources and client discovery through the existing workflow, using the new declaration for new calls. Preserve original invocation identities, frozen arguments and approvals; handle revision conflicts through the existing preparation/recovery process. Do not rewrite history or automatically replay business operations.
24
+
25
+ ## 3. Generator compatibility
26
+
27
+ | SDK | Intermediate representation of unspecified risk | Integration impact |
28
+ | --- | --- | --- |
29
+ | PHP7 | No option is added unless `ToolDef::risk()` is called | Method signatures and PHP 7.3 compatibility remain; explicit boolean false is preserved |
30
+ | PHP8 | `AiTool::$risk` is `?string`, default `null` | Constructor parameter names/order are unchanged; custom property readers must handle null |
31
+ | Node.js | Unspecified risk is no longer filled with `'low'` | Custom readers of `tool()` objects must handle unspecified values |
32
+ | Python | Unspecified risk is no longer filled with `'low'` | Custom readers of intermediate dictionaries must handle unspecified values |
33
+ | Go | Empty string means unspecified; booleans remain pointers | Struct types are unchanged; nonempty explicit risk and pointed boolean values are retained |
34
+ | Java | `Tool.risk` defaults to `null` | Direct field readers must handle null; readonly/idempotent remain nullable Boolean values |
35
+ | .NET | `Tool.Risk` defaults to the empty string | The string type is retained; empty means omitted, and booleans remain nullable |
36
+
37
+ These are business-provider SDKs, not a requirement to replace MCP / Agent Client SDK 0.8.0 or DSH 0.8.0. Projects using another consumer must verify its precedence separately. Passing the ACC reference checker alone does not establish end-to-end business acceptance.
38
+
39
+ ## 4. Companion packages and acceptance
40
+
41
+ Obtain `web/connect/bailing-connect-php7.tgz` or `bailing-connect-php.tgz` from the same release identity and compare its SHA-256 with the release manifest. From the source checkout:
42
+
43
+ ```bash
44
+ node scripts/check-php-sdk-artifacts.mjs
45
+ # Use a real PHP 7.3 binary to check PHP7 source and extracted package:
46
+ node scripts/check-php-sdk-artifacts.mjs --sdk php7 --php /path/to/php7.3
47
+ ```
48
+
49
+ The verifier checks complete file sets, per-file SHA-256 and actual generator regressions, not just file existence. Both drivers also accept an extracted SDK root as their first argument:
50
+
51
+ ```bash
52
+ php sdk/php7/tests/declaration-serialization.php /path/to/bailing-connect-php7
53
+ php sdk/php/tests/declaration-serialization.php /path/to/bailing-connect-php
54
+ ```
55
+
56
+ Check all 24 risk/readonly combinations, six idempotency combinations, preservation of approval/subject requirements with explicit low, and Core's readonly/idempotent/risk interpretation of the same declarations. Start with synthetic interfaces. Integrators review the full declaration diff for their systems without executing real writes for upgrade acceptance. After deployment, separately verify the exact version and `/health/ready`; synthetic regressions do not replace deployment or business acceptance.
57
+
58
+ Validate Core and generators together. If only one side can be updated, record the remaining unfixed layer explicitly. Do not conceal it by dropping false, changing HTTP methods or globally relabeling risk.
59
+
60
+ ## 5. Dependency maintenance and rollback
61
+
62
+ The release applies bounded development/build patches to `fast-uri 3.1.9` and `Vite 6.4.5`. Keep the lockfiles and run the relevant build and dependency audits. These changes add no business protocol and do not establish that production was attacked.
63
+
64
+ Before rollback, stop admissions, drain work and retain new records and declaration revisions. Old SDKs discard the explicit values again, and old Core overrides explicit GET false again; rollback is not merely a version-number change. Verify the old generated declarations and consumer together in isolation, disabling ambiguous capabilities if necessary while preserving operator review. Do not delete approvals, unknown outcomes, original calls or ledgers. Restoring a backup cannot undo external business effects.
65
+
66
+ [Release notes](RELEASE_NOTES_v0.10.1.en.md) · [Compatibility policy](COMPATIBILITY.en.md) · [Operations](OPERATIONS.en.md)
@@ -0,0 +1,66 @@
1
+ # Core v0.10.1 升级指南
2
+
3
+ [English](UPGRADE_v0.10.1.en.md)
4
+
5
+ 本指南面向 Core 0.10.0 → 0.10.1,以及业务侧声明生成 SDK 的配套更新。ACC 规范 1.0.6 与声明 `version: 1` 不变,MCP / Agent Client SDK、DSH 不因本补丁另行发版。更早的 Core 来源仍按[0.10.0 升级指南](UPGRADE_v0.10.0.md)及原迁移链核对。
6
+
7
+ ## 1. 固定身份与保留原材料
8
+
9
+ 记录源/目标 Tag、精确提交、运行包或镜像摘要;业务 SDK 另外保存原文件清单、候选包 SHA-256 和更新前的生成声明。不要以文件名相同或“都是 PHP7”代替制品核对。
10
+
11
+ Core 升级按原部署流程备份配置、数据库/JSONL、迁移账本、原 operation/invocation 与审批记录,停止新接单并排空。相对 0.10.0 **无新增 SQL,也不修改历史 SQL 或迁移器**;不需要手写迁移账本。保留原制品与声明用于差异分析和受控回退。
12
+
13
+ ## 2. 业务负责人核对声明差异
14
+
15
+ 生成器现在保留过去省略的显式 risk、readonly 和 idempotent。先在非生产环境重建声明,逐条比较变化:
16
+
17
+ - **显式 low 的非只读 POST**:此前可能因字段丢失而得到 medium;现在按原作者的明确声明得到 low。确认该标注确实合理;不要为消除差异把所有写操作设为 low。
18
+ - **GET + 显式 readonly=false**:现在保持非只读;未声明 risk 时为 medium。检查它是否真的修改业务状态,以及 GET 的接口设计是否符合业务实际。
19
+ - **GET + 显式 idempotent=false**:现在保留该提示。核对调用方不得依赖旧的 GET 一律幂等推断;这不是自动重试或恰好一次执行的承诺。
20
+ - **未设置字段**:继续省略,GET 的原只读缺省及非只读 POST 的 medium 缺省不变。
21
+ - **审批与授权**:显式 low 不会删除 `approval.required`、`approval.when`、主体要求或业务系统最终权限。保留这些规则并核对配置,不因风险值变化绕过审批。
22
+
23
+ JSON、ETag、声明摘要和工具发现修订可能变化。按原流程刷新工具源与客户端发现结果,只为新的调用使用新声明;原 invocation、冻结参数和审批记录保持原身份,修订不匹配按既有准备/恢复流程处理。不要改写历史记录或自动重放业务。
24
+
25
+ ## 3. 生成器兼容性
26
+
27
+ | SDK | 未设置 risk 的中间表示 | 接入注意 |
28
+ | --- | --- | --- |
29
+ | PHP7 | `ToolDef` 未调用 risk 时不创建该选项 | 方法签名不变,继续兼容 PHP 7.3;显式 boolean false 不再丢失 |
30
+ | PHP8 | `AiTool::$risk` 是 `?string`,默认 `null` | 构造参数顺序/名称不变;直接读取该属性的自定义代码需接受 null |
31
+ | Node.js | 未设置值不再补成 `'low'` | 自行读取 `tool()` 返回对象的代码应处理未设置状态 |
32
+ | Python | 未设置值不再补成 `'low'` | 自行读取中间字典的代码应处理未设置状态 |
33
+ | Go | 空字符串表示未设置;布尔字段仍为指针 | 原结构类型不变,非空显式 risk 与 bool 指针值均保留 |
34
+ | Java | `Tool.risk` 默认 `null` | 直接读取字段的代码应处理 null;readonly/idempotent 仍为可空 Boolean |
35
+ | .NET | `Tool.Risk` 默认空字符串 | 保持 string 类型,空字符串表示省略;布尔字段仍可空 |
36
+
37
+ 这些是业务侧 SDK,不要求对 MCP / Agent Client SDK 0.8.0 或 DSH 0.8.0 做版本替换。使用其他消费者的项目需独立验证其优先级;不能仅凭 ACC 参考检查器通过就宣称整条业务链已验收。
38
+
39
+ ## 4. 配套包与验收
40
+
41
+ 从同一发行身份取得 `web/connect/bailing-connect-php7.tgz` 或 `bailing-connect-php.tgz`,核对发布清单中的包 SHA-256。源码检出后可运行:
42
+
43
+ ```bash
44
+ node scripts/check-php-sdk-artifacts.mjs
45
+ # 使用实际 PHP 7.3 可执行程序核对 PHP7 源码及解包内容:
46
+ node scripts/check-php-sdk-artifacts.mjs --sdk php7 --php /path/to/php7.3
47
+ ```
48
+
49
+ 验包工具检查完整文件集合、逐文件 SHA-256 和真实生成器回归,不只验证文件存在。两侧 driver 也支持把解包根目录作为第一个参数:
50
+
51
+ ```bash
52
+ php sdk/php7/tests/declaration-serialization.php /path/to/bailing-connect-php7
53
+ php sdk/php/tests/declaration-serialization.php /path/to/bailing-connect-php
54
+ ```
55
+
56
+ 分别核对:24种风险/只读组合、6种幂等组合、显式 low 不删除审批/主体,以及 Core 消费相同声明后的 readonly、idempotent、risk。先用合成接口确认;接入方审阅自己的全量声明差异,不为升级验收执行真实写业务。部署后另核精确版本与 `/health/ready`,合成回归不代替部署或实际业务验收。
57
+
58
+ Core 与生成器应配套验证。若暂时只能更新其中一层,明确记录尚未修复的另一层;不要通过省略 false、改 HTTP 方法或统一调整风险来掩盖缺口。
59
+
60
+ ## 5. 依赖维护与回退
61
+
62
+ 本版对开发/构建链中的 `fast-uri 3.1.9`、`Vite 6.4.5` 做限定补丁更新;保持安装锁文件,运行相应构建与依赖审计。它们不是新的业务协议,也不表示已经证实生产受到攻击。
63
+
64
+ 回退前停止新接单、排空并保存新产生的记录及声明修订。旧 SDK 会再次省略相应显式值,旧 Core 会再次覆盖 GET 的显式 false;因此回退不是仅换版本号。应在隔离环境核对旧生成声明与旧消费者组合,必要时停用有歧义的能力,保留人工核查路径。不要删除审批、unknown 状态、原调用或账本;恢复备份不能撤销已经发生的外部业务动作。
65
+
66
+ [版本说明](RELEASE_NOTES_v0.10.1.md) · [兼容策略](兼容性与升级.md) · [运维](OPERATIONS.md)