bailinghub 0.9.4 → 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 (334) 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/AGENT_CLIENT_QUICKSTART.en.md +1 -3
  6. package/docs/AGENT_CLIENT_QUICKSTART.md +1 -1
  7. package/docs/AGENT_CLIENT_RUNTIME_API.en.md +87 -2
  8. package/docs/AGENT_CLIENT_RUNTIME_API.md +36 -2
  9. package/docs/AGENT_KNOWLEDGE_API.en.md +77 -0
  10. package/docs/AGENT_KNOWLEDGE_API.md +86 -0
  11. package/docs/AGENT_TASK_CONTROL.md +4 -4
  12. package/docs/AGENT_TASK_CONTROL_FOUNDATION.md +1 -1
  13. package/docs/ARCHITECTURE.md +4 -0
  14. package/docs/CHANGELOG.en.md +24 -1
  15. package/docs/CHANGELOG.md +24 -1
  16. package/docs/COMPATIBILITY.en.md +27 -1
  17. package/docs/CONTRACT.en.md +1 -1
  18. package/docs/CONTRACT.md +1 -1
  19. package/docs/IMPLEMENTATION_STATUS.en.md +28 -15
  20. package/docs/IMPLEMENTATION_STATUS.md +28 -15
  21. package/docs/INDEPENDENT_VALIDATION.en.md +6 -4
  22. package/docs/INDEPENDENT_VALIDATION.md +6 -4
  23. package/docs/INTEGRATION_WALKTHROUGH.md +65 -0
  24. package/docs/MODEL_BILLING.en.md +2 -0
  25. package/docs/MODEL_BILLING.md +6 -2
  26. package/docs/MODEL_CONTINUATION.en.md +54 -0
  27. package/docs/MODEL_CONTINUATION.md +54 -0
  28. package/docs/MODEL_OUTPUT_BUDGET.en.md +69 -0
  29. package/docs/MODEL_OUTPUT_BUDGET.md +69 -0
  30. package/docs/OPERATIONS.en.md +16 -4
  31. package/docs/OPERATIONS.md +16 -4
  32. package/docs/QUICKSTART.md +1 -1
  33. package/docs/README.en.md +7 -0
  34. package/docs/README.md +7 -0
  35. package/docs/RELEASE_NOTES_NEXT.en.md +3 -3
  36. package/docs/RELEASE_NOTES_NEXT.md +3 -3
  37. package/docs/RELEASE_NOTES_v0.10.0.en.md +58 -0
  38. package/docs/RELEASE_NOTES_v0.10.0.md +58 -0
  39. package/docs/RELEASE_NOTES_v0.10.1.en.md +41 -0
  40. package/docs/RELEASE_NOTES_v0.10.1.md +41 -0
  41. package/docs/UPGRADE_PLAN.en.md +118 -0
  42. package/docs/UPGRADE_PLAN.md +124 -0
  43. package/docs/UPGRADE_v0.10.0.en.md +47 -0
  44. package/docs/UPGRADE_v0.10.0.md +47 -0
  45. package/docs/UPGRADE_v0.10.1.en.md +66 -0
  46. package/docs/UPGRADE_v0.10.1.md +66 -0
  47. package/docs//345/205/274/345/256/271/346/200/247/344/270/216/345/215/207/347/272/247.md +38 -22
  48. package/package.json +10 -5
  49. package/schemas/tool-definition.schema.json +13 -0
  50. package/scripts/check-doc-links.mjs +6 -0
  51. package/scripts/check-image-tags.sh +1 -1
  52. package/scripts/check-php-sdk-artifacts.mjs +152 -0
  53. package/scripts/check-php-sdk-artifacts.test.mjs +99 -0
  54. package/scripts/check-release-consistency.test.mjs +2 -2
  55. package/scripts/doctor-upgrade-plan.test.ts +205 -0
  56. package/scripts/doctor-upgrade-plan.ts +276 -0
  57. package/scripts/doctor.ts +4 -1
  58. package/scripts/e2e-console-approval-details.mjs +134 -0
  59. package/scripts/e2e-console-config-races.mjs +180 -0
  60. package/scripts/e2e-console-kb-audit.mjs +170 -0
  61. package/scripts/e2e-console-operations-audit.mjs +152 -0
  62. package/scripts/e2e-console-runtime-audit.mjs +179 -0
  63. package/scripts/e2e-console-settings-audit.mjs +125 -0
  64. package/scripts/e2e-console-troubleshooting-extra.mjs +267 -0
  65. package/scripts/e2e-console.mjs +476 -7
  66. package/scripts/install.sh +1 -1
  67. package/scripts/publish-images.sh +1 -1
  68. package/scripts/release-audit.mjs +9 -1
  69. package/scripts/sdk-declaration-contract-test.ts +34 -0
  70. package/scripts/sdk-p1-check.mjs +62 -26
  71. package/scripts/verify-github-repo.mjs +8 -0
  72. package/sdk/dotnet/Bailing.Connect/BailingConnect.cs +4 -4
  73. package/sdk/dotnet/README.md +8 -0
  74. package/sdk/dotnet/tests/Declaration/Declaration.csproj +11 -0
  75. package/sdk/dotnet/tests/Declaration/Program.cs +74 -0
  76. package/sdk/go/README.md +8 -0
  77. package/sdk/go/bailingconnect/connect.go +5 -5
  78. package/sdk/go/bailingconnect/declaration_test.go +107 -0
  79. package/sdk/java/README.md +13 -0
  80. package/sdk/java/src/main/java/com/bailing/connect/BailingConnect.java +4 -4
  81. package/sdk/java/tests/DeclarationTest.java +70 -0
  82. package/sdk/node/README.md +8 -0
  83. package/sdk/node/src/index.mjs +4 -4
  84. package/sdk/node/tests/declaration.test.mjs +41 -0
  85. package/sdk/php/README.md +16 -0
  86. package/sdk/php/src/Attributes/AiTool.php +4 -4
  87. package/sdk/php/src/SpecBuilder.php +8 -8
  88. package/sdk/php/tests/declaration-serialization.php +103 -0
  89. package/sdk/php7/README.md +14 -0
  90. package/sdk/php7/src/ToolDef.php +3 -3
  91. package/sdk/php7/src/ToolSpec.php +8 -13
  92. package/sdk/php7/tests/declaration-serialization.php +103 -0
  93. package/sdk/python/README.md +8 -0
  94. package/sdk/python/bailing_connect/__init__.py +6 -6
  95. package/sdk/python/tests/test_declaration.py +61 -0
  96. package/src/app/agent-client-runtime.test.ts +115 -2
  97. package/src/app/agent-client-runtime.ts +40 -11
  98. package/src/app/agent-knowledge.test.ts +171 -0
  99. package/src/app/agent-knowledge.ts +233 -0
  100. package/src/app/agent-tool-catalog-revision.test.ts +31 -0
  101. package/src/app/agent-tool-invocations.test.ts +7 -2
  102. package/src/app/agent-tool-invocations.ts +67 -7
  103. package/src/app/approval-continuations.test.ts +49 -1
  104. package/src/app/http.test.ts +16 -1
  105. package/src/app/http.ts +3 -3
  106. package/src/app/kernel-boot-recovery.mysql.test.ts +132 -0
  107. package/src/app/kernel-boot-recovery.test.ts +157 -0
  108. package/src/app/kernel.ts +12 -8
  109. package/src/app/readiness.mysql.test.ts +120 -0
  110. package/src/app/readiness.test.ts +111 -26
  111. package/src/app/readiness.ts +26 -22
  112. package/src/app/runtime-lifecycle.ts +34 -3
  113. package/src/app/tool-approvals.test.ts +83 -0
  114. package/src/app/tool-approvals.ts +25 -7
  115. package/src/app/tool-proxy-payload.test.ts +81 -0
  116. package/src/app/tool-proxy.ts +24 -2
  117. package/src/core/config/console-diagnostic-location.test.ts +36 -0
  118. package/src/core/config/console-form-guard.test.ts +69 -0
  119. package/src/core/config/console-task-location.test.ts +64 -0
  120. package/src/core/contracts/explicit-capability-values.test.ts +62 -0
  121. package/src/core/contracts/openapi-tools.ts +18 -7
  122. package/src/core/contracts/schema-readiness.ts +11 -0
  123. package/src/core/contracts/tool-annotations.ts +4 -4
  124. package/src/core/contracts/tool-definition.ts +26 -0
  125. package/src/core/contracts/tool-guidance.test.ts +77 -0
  126. package/src/core/contracts/tool-guidance.ts +31 -0
  127. package/src/core/contracts/tool-input-limits.ts +15 -0
  128. package/src/core/contracts/tools-idempotency.test.ts +90 -0
  129. package/src/core/contracts/tools.ts +52 -9
  130. package/src/core/runtime/agent-execution-memory.test.ts +64 -0
  131. package/src/core/runtime/agent-execution-memory.ts +63 -0
  132. package/src/core/state/state-contracts.ts +3 -0
  133. package/src/infrastructure/config/config-observability-ledger.ts +2 -0
  134. package/src/infrastructure/schema/schema-readiness.ts +29 -0
  135. package/src/infrastructure/state/state-mysql.ts +3 -0
  136. package/src/modules/usage/contracts.ts +7 -0
  137. package/src/modules/usage/http.ts +2 -0
  138. package/src/modules/usage/model-continuation.test.ts +109 -0
  139. package/src/modules/usage/model-gateway.ts +5 -1
  140. package/src/modules/usage/output-budget.mysql.test.ts +84 -0
  141. package/src/modules/usage/output-budget.test.ts +167 -0
  142. package/src/modules/usage/output-budget.ts +73 -0
  143. package/src/modules/usage/provider-stream.test.ts +22 -0
  144. package/src/modules/usage/provider.ts +2 -3
  145. package/src/modules/usage/repository.ts +6 -0
  146. package/src/modules/usage/test-harness.ts +4 -2
  147. package/src/routes/admin-approval-view.test.ts +109 -0
  148. package/src/routes/admin-approval-view.ts +36 -0
  149. package/src/routes/admin-readiness.test.ts +52 -0
  150. package/src/routes/admin-runtime-ux.test.ts +51 -0
  151. package/src/routes/admin-runtime-ux.ts +25 -0
  152. package/src/routes/admin-runtime.ts +36 -8
  153. package/src/routes/admin.ts +9 -0
  154. package/src/routes/agent-api.test.ts +80 -1
  155. package/src/routes/agent-api.ts +63 -4
  156. package/src/routes/agent-tool-detail.test.ts +140 -0
  157. package/src/routes/public-default.ts +1 -1
  158. package/src/services/kb-agent.test.ts +84 -0
  159. package/src/services/kb.ts +73 -0
  160. package/web/connect/bailing-connect-php.tgz +0 -0
  161. package/web/connect/bailing-connect-php7.tgz +0 -0
  162. package/web/console/assets/Accounts-CjIBO3sU.css +1 -0
  163. package/web/console/assets/Accounts-Dhyw-7wF.js +3 -0
  164. package/web/console/assets/AgentClients-BA0M26-I.css +1 -0
  165. package/web/console/assets/AgentClients-DWxb8-ko.js +1 -0
  166. package/web/console/assets/AgentTasks-DOyxANnx.css +1 -0
  167. package/web/console/assets/AgentTasks-DUHD4dzr.js +2 -0
  168. package/web/console/assets/Approvals-Brl-2uJq.css +1 -0
  169. package/web/console/assets/Approvals-CQx1YWxW.js +1 -0
  170. package/web/console/assets/Audit--QcdVlMh.js +1 -0
  171. package/web/console/assets/Audit-DAdmOnIs.css +1 -0
  172. package/web/console/assets/{BrandLockup-CffORQse.js → BrandLockup-DQcaW4Nt.js} +1 -1
  173. package/web/console/assets/Channels-DJJU3ksE.css +1 -0
  174. package/web/console/assets/Channels-cGS5WfQ-.js +105 -0
  175. package/web/console/assets/ChatEntries-BYpji27B.css +1 -0
  176. package/web/console/assets/ChatEntries-nh23Iz5O.js +7 -0
  177. package/web/console/assets/Clients-CX5EeYio.js +3 -0
  178. package/web/console/assets/Clients-CbZAou8E.css +1 -0
  179. package/web/console/assets/Cost-C6oQvz9P.css +1 -0
  180. package/web/console/assets/Cost-DOZfdNS9.js +1 -0
  181. package/web/console/assets/Credentials--aHs57yV.css +1 -0
  182. package/web/console/assets/Credentials-sy6W9Sac.js +1 -0
  183. package/web/console/assets/Diagnostics-CKs27Dnv.css +1 -0
  184. package/web/console/assets/Diagnostics-CyoM1XrZ.js +1 -0
  185. package/web/console/assets/Executors-2Upi6bOS.css +1 -0
  186. package/web/console/assets/Executors-BQqqiFwt.js +1 -0
  187. package/web/console/assets/HelpTip-DLlhaGQp.js +1 -0
  188. package/web/console/assets/HelpTip-bbDEyuqV.css +1 -0
  189. package/web/console/assets/Kb-5R3ce4UU.js +5 -0
  190. package/web/console/assets/Kb-BM_PYi11.css +1 -0
  191. package/web/console/assets/{Login-CGgLGTE1.js → Login-YKeUwdgo.js} +1 -1
  192. package/web/console/assets/Projects-DHwHrPT9.css +1 -0
  193. package/web/console/assets/Projects-Grgb6fOv.js +1 -0
  194. package/web/console/assets/Routes-DR_Yf02e.css +1 -0
  195. package/web/console/assets/Routes-DYgrXlRJ.js +138 -0
  196. package/web/console/assets/Runs-CwTddJJj.js +3 -0
  197. package/web/console/assets/Runs-D4FOvNfu.css +1 -0
  198. package/web/console/assets/Setup-Ca0b1d1-.css +1 -0
  199. package/web/console/assets/Setup-D_xUPNDq.js +1 -0
  200. package/web/console/assets/Shell-BTg8Vw_L.css +1 -0
  201. package/web/console/assets/Shell-Dfam2Uoj.js +1 -0
  202. package/web/console/assets/StorageBuckets-7QLBpV4a.css +1 -0
  203. package/web/console/assets/StorageBuckets-CP6e50wI.js +1 -0
  204. package/web/console/assets/SystemSettings-BRYKyJNa.js +1 -0
  205. package/web/console/assets/SystemSettings-HsXGx0aH.css +1 -0
  206. package/web/console/assets/SystemStatus-B-VfRsQd.css +1 -0
  207. package/web/console/assets/SystemStatus-CbPsDsGt.js +1 -0
  208. package/web/console/assets/Targets-1j4-g6rC.css +1 -0
  209. package/web/console/assets/Targets-C2LkR2AF.js +1 -0
  210. package/web/console/assets/Tools-C9HPJqJb.css +1 -0
  211. package/web/console/assets/Tools-C9JNJUS0.js +2 -0
  212. package/web/console/assets/Usage-D1Mv6vGY.js +1 -0
  213. package/web/console/assets/Usage-DMOzUsqh.css +1 -0
  214. package/web/console/assets/UsageAccess-77LmGCm6.js +1 -0
  215. package/web/console/assets/UsageAccess-C6ZGxEgJ.css +1 -0
  216. package/web/console/assets/{UsageHelp-CzS2gI40.js → UsageHelp-BmuiE1Ew.js} +1 -1
  217. package/web/console/assets/client-route-draft-DxZRxKPT.js +1 -0
  218. package/web/console/assets/console-location-Csv-xsnl.js +1 -0
  219. package/web/console/assets/form-guard-8GrFpry0.js +1 -0
  220. package/web/console/assets/{index-65JiiUr4.js → index-B_5UfiTw.js} +1 -1
  221. package/web/console/assets/index-MjZJEFIN.js +2 -0
  222. package/web/console/assets/{request-DKycpD7z.js → request-rqm6MT0s.js} +1 -1
  223. package/web/console/assets/runtime-feedback-gPfZVNvY.js +1 -0
  224. package/web/console/assets/{schema-SCiNxBlR.js → schema-o3mK4mid.js} +1 -1
  225. package/web/console/assets/task-page-location-DWiGtAln.js +1 -0
  226. package/web/console/assets/use-list-location-FvLFt0Tq.css +1 -0
  227. package/web/console/assets/use-list-location-cIPy2cKM.js +1 -0
  228. package/web/console/assets/use-unsaved-form-DScKD0h9.js +1 -0
  229. package/web/console/assets/{util-DZYfJ5Zo.js → util-B40VqOwl.js} +1 -1
  230. package/web/console/assets/{vendor-element-8cVcdt5T.js → vendor-element-BT8tHCFk.js} +1 -1
  231. package/web/console/assets/{vendor-mammoth-CnDA23N0.js → vendor-mammoth-CVIXVxTN.js} +1 -1
  232. package/web/console/assets/{vendor-vue-Co7x2FW6.js → vendor-vue-DhbG0vd4.js} +7 -7
  233. package/web/console/index.html +3 -3
  234. package/web-admin/package-lock.json +4 -4
  235. package/web-admin/package.json +1 -1
  236. package/web-admin/src/client-route-draft.ts +25 -0
  237. package/web-admin/src/components/AgentSetupPanel.vue +54 -41
  238. package/web-admin/src/components/HelpTip.vue +4 -1
  239. package/web-admin/src/components/ListLocationBar.vue +22 -0
  240. package/web-admin/src/components/NotificationOutboxPanel.vue +35 -7
  241. package/web-admin/src/console-entry.test.ts +26 -0
  242. package/web-admin/src/console-entry.ts +20 -0
  243. package/web-admin/src/console-location.ts +35 -0
  244. package/web-admin/src/form-guard.ts +35 -0
  245. package/web-admin/src/layout/Shell.vue +18 -65
  246. package/web-admin/src/onboarding-state.test.ts +174 -0
  247. package/web-admin/src/onboarding-state.ts +122 -0
  248. package/web-admin/src/pages/Accounts.vue +44 -24
  249. package/web-admin/src/pages/AgentClients.vue +47 -29
  250. package/web-admin/src/pages/AgentTasks.vue +57 -12
  251. package/web-admin/src/pages/Approvals.vue +105 -25
  252. package/web-admin/src/pages/Audit.vue +15 -6
  253. package/web-admin/src/pages/Channels.vue +136 -43
  254. package/web-admin/src/pages/ChatEntries.vue +96 -41
  255. package/web-admin/src/pages/Clients.vue +87 -26
  256. package/web-admin/src/pages/Cost.vue +15 -4
  257. package/web-admin/src/pages/Credentials.vue +63 -32
  258. package/web-admin/src/pages/Diagnostics.vue +103 -54
  259. package/web-admin/src/pages/Executors.vue +103 -40
  260. package/web-admin/src/pages/Kb.vue +278 -128
  261. package/web-admin/src/pages/Projects.vue +44 -16
  262. package/web-admin/src/pages/Routes.vue +168 -247
  263. package/web-admin/src/pages/Runs.vue +163 -91
  264. package/web-admin/src/pages/Setup.vue +182 -291
  265. package/web-admin/src/pages/StorageBuckets.vue +61 -25
  266. package/web-admin/src/pages/SystemSettings.vue +76 -51
  267. package/web-admin/src/pages/SystemStatus.vue +54 -30
  268. package/web-admin/src/pages/Targets.vue +45 -17
  269. package/web-admin/src/pages/Tools.vue +133 -68
  270. package/web-admin/src/pages/Usage.vue +64 -25
  271. package/web-admin/src/pages/UsageAccess.vue +11 -8
  272. package/web-admin/src/route-call-snippets.test.ts +82 -0
  273. package/web-admin/src/route-call-snippets.ts +178 -0
  274. package/web-admin/src/router.ts +11 -29
  275. package/web-admin/src/runtime-feedback.ts +43 -0
  276. package/web-admin/src/task-page-location.ts +66 -0
  277. package/web-admin/src/usage-output-budget.test.ts +26 -0
  278. package/web-admin/src/usage-output-budget.ts +46 -0
  279. package/web-admin/src/use-list-location.ts +24 -0
  280. package/web-admin/src/use-unsaved-form.ts +38 -0
  281. package/web-admin/tests/model-output-budget.browser.mjs +69 -0
  282. package/web/console/assets/Accounts-Bervi5JU.css +0 -1
  283. package/web/console/assets/Accounts-Dhj6PjXP.js +0 -3
  284. package/web/console/assets/AgentClients-CMy8StAH.js +0 -1
  285. package/web/console/assets/AgentClients-i52AI6YV.css +0 -1
  286. package/web/console/assets/AgentTasks-BsG850Il.css +0 -1
  287. package/web/console/assets/AgentTasks-DA1xZdmP.js +0 -2
  288. package/web/console/assets/Approvals-DIsd7R8N.js +0 -1
  289. package/web/console/assets/Approvals-DlTSHl_7.css +0 -1
  290. package/web/console/assets/Audit-AUDABLTX.js +0 -1
  291. package/web/console/assets/Audit-CSu6_3oD.css +0 -1
  292. package/web/console/assets/Channels-B8rjsM0S.js +0 -105
  293. package/web/console/assets/Channels-CCn0L1jg.css +0 -1
  294. package/web/console/assets/ChatEntries-DsYtcXN6.css +0 -1
  295. package/web/console/assets/ChatEntries-iZjJMEUZ.js +0 -7
  296. package/web/console/assets/Clients-CSHIsaWU.css +0 -1
  297. package/web/console/assets/Clients-CwgpGCSD.js +0 -3
  298. package/web/console/assets/Cost-B2tNxu71.js +0 -1
  299. package/web/console/assets/Cost-CjT39DSZ.css +0 -1
  300. package/web/console/assets/Credentials-BuwFB-fV.js +0 -1
  301. package/web/console/assets/Credentials-ioLP0qYN.css +0 -1
  302. package/web/console/assets/Diagnostics-Ya05PTDp.css +0 -1
  303. package/web/console/assets/Diagnostics-z5glms11.js +0 -1
  304. package/web/console/assets/Executors-Bc4SvjeH.js +0 -1
  305. package/web/console/assets/Executors-CjhEM54c.css +0 -1
  306. package/web/console/assets/HelpTip-CA6Bm7Nx.css +0 -1
  307. package/web/console/assets/HelpTip-Dtdt2tKR.js +0 -1
  308. package/web/console/assets/Kb-BRbRHxLy.js +0 -5
  309. package/web/console/assets/Kb-CzIzd9xr.css +0 -1
  310. package/web/console/assets/Projects-Bm8AjsNx.css +0 -1
  311. package/web/console/assets/Projects-CPWw3con.js +0 -1
  312. package/web/console/assets/Routes-CMIaE0Bx.js +0 -124
  313. package/web/console/assets/Routes-CyXV4Pba.css +0 -1
  314. package/web/console/assets/Runs-B8HuE700.js +0 -3
  315. package/web/console/assets/Runs-Bv6CV_Hk.css +0 -1
  316. package/web/console/assets/Setup-D7nxgn-9.css +0 -1
  317. package/web/console/assets/Setup-G8RKzliR.js +0 -1
  318. package/web/console/assets/Shell-DimHgraJ.js +0 -1
  319. package/web/console/assets/Shell-ykb-tUfo.css +0 -1
  320. package/web/console/assets/StorageBuckets-CVgpZRWY.css +0 -1
  321. package/web/console/assets/StorageBuckets-CiVYXIE2.js +0 -1
  322. package/web/console/assets/SystemSettings-BjiHyrXO.css +0 -1
  323. package/web/console/assets/SystemSettings-DF8sZNen.js +0 -1
  324. package/web/console/assets/SystemStatus-BlHywK13.js +0 -1
  325. package/web/console/assets/SystemStatus-I11I67rw.css +0 -1
  326. package/web/console/assets/Targets-BXaoPoAJ.js +0 -1
  327. package/web/console/assets/Targets-DTb5tn6z.css +0 -1
  328. package/web/console/assets/Tools-B22lNHXq.js +0 -2
  329. package/web/console/assets/Tools-DU8ei6sd.css +0 -1
  330. package/web/console/assets/Usage-C02EzoI2.js +0 -1
  331. package/web/console/assets/Usage-CAeDGjrb.css +0 -1
  332. package/web/console/assets/UsageAccess-CGGaWTuj.css +0 -1
  333. package/web/console/assets/UsageAccess-DOb-cyPE.js +0 -1
  334. package/web/console/assets/index-CK0ZCTZv.js +0 -2
@@ -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,29 @@ 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
+
36
+ ## v0.10.0 - On-demand Agent knowledge and clearer configuration
37
+
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).
39
+
40
+ - Add Agent-only knowledge capabilities/search/read with explicit `knowledge_delivery: on_demand`. Hints/references remain authority-, revision-, expiry- and size-bound. Existing clients retain inline delivery; bundled chat/embed/widget knowledge assembly is unchanged.
41
+ - Keep short tool descriptions and add named guidance reads, actual truncation markers and explicit discovery statistics. Preserve standard summary/description/ACC examples; separate discovery revisions from frozen execution fingerprints. Bounded authorization-execution summaries remain reference_only, not user-level long-term memory.
42
+ - Align serialized tool-argument UTF-8 capacity to 1 MiB and tool-call HTTP envelopes to 2 MiB, with matching independent MCP/SDK checks. Oversize replies keep pre-dispatch status and safe counts. Full approval arguments remain; notifications preview them and the console must load them completely before approval. Authority/signatures/idempotency and business limits stay effective.
43
+ - Optional model policies separate default, service ceiling, provider parameter and reasoning/answer scope. Old services are not opted in automatically. Parameter/ceiling errors are explicit; original operations stay intact. Clarify host continuation versus original-request recovery without Hub retries or repeated tools.
44
+ - Improve onboarding, invocation examples, permission text, approval continuation/rerun, unsaved forms and diagnostic/filter/tab restoration. Place routine help behind question marks while retaining visible risks/errors; fix stale responses and login-password autofill into configuration forms.
45
+ - Add read-only artifact/ledger upgrade planning; include boot recovery in Kernel shutdown drain; inspect actual state/configuration pools and complete migration digests for readiness. Custom MySQL stores without schemaReadinessDb now fail closed. Update the Vite safety floor and dependency notices.
46
+ - No new SQL from 0.9.4; old migrations/migrator stay unchanged. Earlier sources still follow their original upgrade chain. Coordinate explicit configuration/client fallback during rollback without deleting operations, approvals or unknown outcomes. Synthetic regressions and isolated consumers do not establish acceptance of every vendor, host product, real business or long-term runtime. ACC, independent Hosts and clients are not deployed by a Core release.
47
+
25
48
  ## v0.9.4 - DOCX dependency remediation and durable notifications
26
49
 
27
50
  Version date: 2026-10-15. A patch from Core 0.9.3; MCP / Agent Client SDK 0.7.0 and DSH 0.7.0 remain unchanged. See [release notes](RELEASE_NOTES_v0.9.4.en.md) and the [upgrade guide](UPGRADE_v0.9.4.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,29 @@
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
+
29
+ ## v0.10.0 - 智能体知识按需读取与配置体验改进
30
+
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)。
32
+
33
+ - 新增 Agent 专用知识 capabilities/search/read 与显式 `knowledge_delivery: on_demand`,提示与引用读取受当前授权、修订、有效期和大小约束;旧客户端保持 inline,自带 chat/embed/widget 的知识装配不变。
34
+ - 工具目录保留短说明,新增按名指导读取、实际截断标记与明确发现统计;指导保留标准 summary/description/ACC 示例,发现修订与冻结执行指纹分开。授权执行摘要有界标注 reference_only,不扩展为用户长期记忆。
35
+ - 工具 arguments JSON 统一 UTF-8 上限 1 MiB、工具调用 HTTP 信封 2 MiB;MCP/SDK 独立限额配套。超限保留派发前状态与非敏感大小标量;完整审批参数保留,通知仅预览,完整读取前不能批准,原授权/签名/幂等及业务限制不变。
36
+ - 可选模型预算区分默认值、服务上限、供应商参数和思考/答案 scope;旧服务不自动启用。明确参数不匹配与超限拒绝,保留原 operation。补齐宿主续段与原请求恢复说明;中枢不自动重试或重做工具。
37
+ - 后台改善首次接入、调用代码、权限文案、审批续办/重跑、未保存保护、诊断定位与筛选/页签恢复;常规说明收拢到问号,风险和错误仍可见,修复迟到响应和登录密码自动填充配置表单。
38
+ - 只读升级计划比较明确制品与脱敏账本;Kernel 启动恢复纳入关闭排空;readiness 校验真实 state/configuration 池与完整摘要。自定义 MySQL store 缺 `schemaReadinessDb` 现在失败关闭。Vite 安全版本下限与依赖说明同步。
39
+ - 相对 0.9.4 无新 SQL,旧迁移和迁移器保持;更早来源仍应用原升级链。新显式配置与客户端协商需协调回退,不删除旧请求/审批/unknown。合成回归与隔离消费不等于所有供应商、宿主产品、实际业务或长期稳定性验收;ACC、独立 Host 和客户端不随 Core 自动部署。
40
+
18
41
  ## v0.9.4 - DOCX 依赖修复与通知持久化
19
42
 
20
43
  版本日期:2026-10-15。相对 Core 0.9.3 的补丁;MCP / Agent Client SDK 0.7.0、DSH 0.7.0 不变。[版本说明](RELEASE_NOTES_v0.9.4.md)、[升级指南](UPGRADE_v0.9.4.md)。
@@ -1,5 +1,13 @@
1
1
  # Compatibility And Upgrade Policy
2
2
 
3
+ ## Core 0.10.0 compatible extensions
4
+
5
+ Pair Core 0.10.0 with MCP / Agent Client SDK 0.8.0 and DSH 0.8.0 for optional Agent knowledge, tool guidance and explicit model-output policies. No new SQL is added relative to public 0.9.4. Existing clients retain inline delivery and old model policies are not changed automatically. Readiness now checks actual state/configuration resources and full migration digests; custom MySQL stores must expose `schemaReadinessDb` or fail closed. See the [0.10.0 upgrade guide](UPGRADE_v0.10.0.en.md) for configuration rollback and independent-consumer boundaries.
6
+
7
+ ## Current 0.9.x upgrade path
8
+
9
+ Core 0.9.2, 0.9.3 and 0.9.4 add migrations 065/066, 067 and 068 respectively. **A patch does not imply no schema migration or a restart-only upgrade.** Read the [0.9.2](UPGRADE_v0.9.2.en.md), [0.9.3](UPGRADE_v0.9.3.en.md) and [0.9.4](UPGRADE_v0.9.4.en.md) guides for the selected path. Preserve original jobs, approvals, notifications and migration records. Historical pairing notes below do not replace the target-version guide.
10
+
3
11
  ## Core 0.9.1 patch upgrade
4
12
 
5
13
  Relative to 0.9.0, this patch fixes asynchronous usage shutdown and updates public documentation/general security governance. There are no new APIs, SQL, plan rules, or client features. SDK 0.7.0 / DSH 0.7.0 remain unchanged. Old-version close returning does not establish that usage work has finished. Reconcile original requests before replacing artifacts; retry a new-version usage-drain timeout on the original instance. See the [0.9.1 upgrade guide](UPGRADE_v0.9.1.en.md).
@@ -14,6 +22,8 @@ BailingHub follows SemVer for public releases.
14
22
 
15
23
  Before `1.0.0`, the project may still adjust public contracts, but breaking changes must be documented clearly in release notes and changelog entries.
16
24
 
25
+ Version numbers express compatibility intent, not deployment effort. Compatible bug fixes may require additive migrations. New optional features may require explicit capability negotiation or paired clients. Before 1.0, incompatible adjustments still require an explicit migration path; 1.0 must define its stable API and support/deprecation policy before those commitments take effect. After 1.0, incompatible public API changes require a major version.
26
+
17
27
  ## Stable Public Surfaces
18
28
 
19
29
  The following surfaces should be treated as public:
@@ -33,6 +43,11 @@ The following surfaces should be treated as public:
33
43
  - New non-null columns must have defaults.
34
44
  - Avoid destructive operations such as drop, rename, or type changes in minor versions.
35
45
  - Use transition windows for major schema changes.
46
+ - Keep necessary data backfills in separate numbered migrations; additive DDL can still lock tables or need capacity planning.
47
+ - Unknown ledger entries and checksum conflicts fail closed. Do not remove ledger rows to bypass validation.
48
+ - `npm run db:init` migrates only `state.mysql`. A separate MySQL configuration store requires the official `migrateBailingHubCoreSchema` entry point as well. Migrate a shared database only once, never concurrently. JSONL state needs no SQL migration, but a MySQL configuration store still does. Startup does not run migrations.
49
+
50
+ See [SQL rules](../sql/README.md) and [Kernel Host API](KERNEL_HOST_API.en.md). An additive schema does not establish that an older artifact accepts the new ledger or durable state.
36
51
 
37
52
  ## File-Level Customization
38
53
 
@@ -48,10 +63,21 @@ When public contracts change, update together:
48
63
  - changelog;
49
64
  - smoke or contract tests.
50
65
 
66
+ Use distinct names for incompatible semantics and, where safe, a transition window spanning at least one complete minor release. State deprecation/removal versions and the actual diagnostic entry point. This is a change policy, not evidence that every existing deprecated field already emits a warning. Security fixes that cannot safely accept both forms must document an alternative migration procedure.
67
+
51
68
  ## Upgrade Goal
52
69
 
53
70
  Operators should be able to upgrade the open-source core without losing local secrets, runtime state, or deployment-specific customization.
54
71
 
72
+ 1. Pin current and target commits/artifact digests and read every applicable upgrade guide; do not update a running checkout from a floating branch.
73
+ 2. Identify state/configuration databases, JSONL, attachments and local configuration. Keep consistent backups and old artifacts, and test the intended restoration set in isolation.
74
+ 3. Stop admission and coordinate all writers sharing those stores. Drain accepted work and reconcile original calls, approvals and notification receipts. A timeout or unknown result must not become a replacement business write.
75
+ 4. Validate the target manifest and each complete database ledger, then explicitly run the official migrator for each distinct MySQL store.
76
+ 5. Check artifact identity, readiness, permissions, approvals, notification recovery, clients and receiver deduplication before restoring admission. No `BREAKING` heading does not mean no migration work.
77
+ 6. Test rollback compatibility first. Never delete migration rows, task-enforcement markers or notification records to make old code start. Restoring a database cannot undo external business effects.
78
+
79
+ The [read-only upgrade planner](UPGRADE_PLAN.en.md) compares explicitly supplied artifacts and sanitized ledger snapshots. Offline comparison is not a live database check, proof of restorable backups or rollout approval.
80
+
55
81
  ## Instance Branding And Platform-Managed Upgrades
56
82
 
57
83
  The instance name, browser title, metadata, logo, favicon, and login copy use the
@@ -133,6 +159,6 @@ Resolve existing URL providers one at a time:
133
159
  4. `signed_required` is `protected` only when the signed primary request returns 2xx and unsigned plus invalid-signature probes each return 401/403/404. A negative 2xx is `public`; redirects, 429, 5xx, and network errors are `inconclusive`. A 404 on the signed primary request is a failure, not protection evidence.
134
160
  5. Confirm `Cache-Control: private, no-store` and verify that reverse proxies or CDNs cannot cache or rewrite a protected catalog.
135
161
 
136
- Refresh failures preserve the previous cache. Each request is bounded to 10 seconds and the successful primary response is limited to 5 MiB. The safest application rollback is to restore the old code while keeping the additive columns and migration ledger; the old version ignores them. Use the full pre-upgrade database snapshot only for a coordinated rollback with the old application. Do not delete the ledger entry or drop the columns independently.
162
+ Refresh failures preserve the previous cache. Each request is bounded to 10 seconds and the successful primary response is limited to 5 MiB. Preserve the 053 columns, historical configuration and ledger during rollback, but first test whether the specific old artifact accepts that ledger and data. Nullable columns alone do not establish compatibility. Restore a pre-upgrade snapshot only as a consistent set with the old application, and reconcile subsequent external effects. Do not delete the ledger entry or drop the columns independently.
137
163
 
138
164
  This policy governs catalog discovery only. It does not change ACC, tool-call signatures, route allowlists, approvals, idempotency, or final business authorization.
@@ -1,6 +1,6 @@
1
1
  # HTTP Contract
2
2
 
3
- Unreleased additive candidate: [task control](AGENT_TASK_CONTROL.en.md) defines separate task schemas, trusted turn binding and administrator controls. It requires paired capability negotiation and does not change the stable business authorization or approval semantics below.
3
+ Available as an optional capability since Core 0.8.0, [task control](AGENT_TASK_CONTROL.en.md) defines separate task schemas, trusted turn binding and administrator controls. It requires paired capability negotiation and does not change the stable business authorization or approval semantics below.
4
4
 
5
5
  > Current contract: `bailing.contract.v2.14`. This is the only network boundary between a business system and BailingHub.
6
6
 
package/docs/CONTRACT.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 百灵中枢 · 边界契约
2
2
 
3
- 未发布增量:[任务控制候选](AGENT_TASK_CONTROL.md)新增独立任务 schema、受信 turn 绑定和管理员控制接口,须成套协商启用;不改变下面稳定业务契约的权限或审批含义。
3
+ Core 0.8.0 起提供的可选[任务控制](AGENT_TASK_CONTROL.md)新增独立任务 schema、受信 turn 绑定和管理员控制接口,须成套协商启用;不改变下面稳定业务契约的权限或审批含义。
4
4
 
5
5
  > 当前契约:`bailing.contract.v2.14`。这是业务系统与中枢之间唯一的网络边界。
6
6
 
@@ -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.9.4](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.4), with the [v0.9.4 source Tag](https://github.com/bailinghub/bailinghub/tree/v0.9.4). 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.9.4 release notes](RELEASE_NOTES_v0.9.4.en.md) and [upgrade guide](UPGRADE_v0.9.4.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,18 +17,19 @@ 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
- | Declarations, tool discovery, and governed calls: Core parses/governs; the business system executes | Included in Core v0.9.4 | [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
- | Agent Auth: Core binds client sessions; the business authorization page supplies trusted identity | Included in Core v0.9.4 | [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
- | Agent Client Runtime: Core exposes workspaces, turns, discovery, and tool invocation | Included in Core v0.9.4 | [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. |
23
- | Approvals, original invocation snapshots, and read-only receipts: Core governs; the business system owns the outcome | Included in Core v0.9.4 | [Receipts versus recovery](INVOCATION_RECEIPTS.md); [invocation source](../src/app/agent-tool-invocations.ts) / [tests](../src/app/agent-tool-invocations.test.ts); [approval-ledger tests](../src/infrastructure/config/config-approval-ledger.test.ts) | Reading an original receipt differs from resume, which may continue execution. Unknown outcomes do not permit replaying a write, and missing historical arguments must not be invented. Approval does not prove business success or guarantee rollback of a distributed business transaction. |
24
- | Cross-turn task controls: Core persists original members, write-call allowance, and concurrency occupancy | Included in Core v0.9.4 (introduced in v0.8.0) | [Task control contract](AGENT_TASK_CONTROL.en.md); [runtime source](../src/core/runtime/agent-task-control.ts) / [tests](../src/core/runtime/agent-task-control.test.ts); [MySQL journal integration tests](../src/infrastructure/config/config-agent-task-control-journal-mysql.test.ts) | These controls govern business invocations, not model-turn subscriptions. Write-call counts are not refund amounts, successful transactions, or Tokens. Pause/cancel cannot undo a permitted or completed business effect. |
25
- | Visible conversation audit: the client explicitly uploads; Core validates members and persists events | Included in Core v0.9.4 | [Conversation audit contract](AGENT_CONVERSATION_AUDIT.en.md); [runtime tests](../src/core/runtime/agent-conversation-audit.test.ts) | Hidden reasoning is not collected. Membership confirmation and a write API do not prove all history was uploaded. Audit archives do not merge authorization, sessions, or runtime memory. Cross-binding use retains the same-Hub and individual-identity boundaries. |
26
- | Current-thread context and optional rolling summaries: Core route/thread mechanisms | Included in Core v0.9.4 | [Memory configuration/rendering](../src/core/runtime/memory.ts); [thread injection source](../src/core/runtime/memory-runtime.ts) / [tests](../src/core/runtime/memory-runtime.test.ts); [summary tests](../src/core/runtime/summary-runtime.test.ts) | Summaries are disabled by default and still read from the original thread when enabled. This is not a complete user-level memory system across new conversations. Visible audit archives do not automatically enter model context. |
27
- | Attachment space: the host supplies approved images; Core uploads and returns usable URLs | Included in Core v0.9.4 (introduced in v0.8.0) | [Image attachment contract](GENERATED_ARTIFACTS.en.md); [artifact source](../src/app/agent-artifacts.ts) / [tests](../src/app/agent-artifacts.test.ts) | The first increment accepts PNG/JPEG/WebP, not documents or video. Operators configure storage and retention. Core cannot read the client's filesystem. Uploading an image and changing a business record with its URL are separate actions. |
28
- | Optional model gateway and USD allowance settlement: Core connects/meters; the client host orchestrates | Included in Core v0.9.4 | [Model billing contract](MODEL_BILLING.en.md); [gateway source](../src/modules/usage/model-gateway.ts); [model-gateway MySQL tests](../src/modules/usage/model-gateway.mysql.test.ts); [ledger unit tests](../src/modules/usage/billing-ledger.test.ts) | Shared USD allowances use a uniform multiplier and separate periodic price from allowance. They do not restore turn/step billing. Reference prices are not provider invoices; raw Tokens are not the allowance denominator. Missing authoritative usage does not permit inventing Tokens or fees. |
29
- | Model-tool directory, text-to-image, and original-request lookup: optional Core gateway extensions | Included in Core v0.9.4 | [Tool-description source](../src/modules/usage/model-tools.ts) / [tests](../src/modules/usage/model-tools.test.ts); [provider adapter tests](../src/modules/usage/model-tool-provider.test.ts); [asynchronous-image MySQL tests](../src/modules/usage/model-tool-gateway.mysql.test.ts) | Executable adapters include Alibaba-compatible Images, native DashScope, and OpenRouter Images. A video, voice, or custom-service directory declaration does not provide an execution adapter. The completion/shutdown boundary is described below. |
30
- | Kernel Host API, explicit migrations, and managed lifecycle: Core provides an embedding entry point; the Host manages processes and isolation | Included in Core v0.9.4 | [Kernel Host API](KERNEL_HOST_API.en.md); [Kernel source](../src/app/kernel.ts) / [tests](../src/app/kernel.test.ts); [artifact-manifest tests](../src/kernel-api/v1/artifact.test.ts); [migration tests](../src/infrastructure/schema/core-schema-migrator.test.ts) | Separate MySQL schemas/runtimeRoots, trusted instanceKeys, explicit migrations, and Host-owned tick/close calls are prerequisites. The API does not provide tenant signup, platform plans, cluster directories, or multi-replica upgrade orchestration. The optional usage gateway is not the Host's platform billing product. |
31
- | Installation, smoke checks, and optional operational metrics: Core provides entry points; operators configure and accept deployments | Included in Core v0.9.4 | [Quickstart](QUICKSTART.en.md); [installer](../scripts/install.sh); [smoke script](../scripts/smoke.ts); [OpenMetrics tests](../src/core/observability/openmetrics.test.ts); [independent reproduction task](INDEPENDENT_VALIDATION.en.md) | A health response does not establish that all business operations/providers are available. Metrics require explicit enablement and access protection. Installation/diagnostic entry points do not establish continuous monitoring, staffed alerts, or acceptance of a particular deployment. |
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. |
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. |
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. |
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. |
24
+ | Approvals, original invocation snapshots, and read-only receipts: Core governs; the business system owns the outcome | Included in Core v0.10.0 | [Receipts versus recovery](INVOCATION_RECEIPTS.md); [invocation source](../src/app/agent-tool-invocations.ts) / [tests](../src/app/agent-tool-invocations.test.ts); [approval-ledger tests](../src/infrastructure/config/config-approval-ledger.test.ts) | Reading an original receipt differs from resume, which may continue execution. Unknown outcomes do not permit replaying a write, and missing historical arguments must not be invented. Approval does not prove business success or guarantee rollback of a distributed business transaction. |
25
+ | Cross-turn task controls: Core persists original members, write-call allowance, and concurrency occupancy | Included in Core v0.10.0 (introduced in v0.8.0) | [Task control contract](AGENT_TASK_CONTROL.en.md); [runtime source](../src/core/runtime/agent-task-control.ts) / [tests](../src/core/runtime/agent-task-control.test.ts); [MySQL journal integration tests](../src/infrastructure/config/config-agent-task-control-journal-mysql.test.ts) | These controls govern business invocations, not model-turn subscriptions. Write-call counts are not refund amounts, successful transactions, or Tokens. Pause/cancel cannot undo a permitted or completed business effect. |
26
+ | Visible conversation audit: the client explicitly uploads; Core validates members and persists events | Included in Core v0.10.0 | [Conversation audit contract](AGENT_CONVERSATION_AUDIT.en.md); [runtime tests](../src/core/runtime/agent-conversation-audit.test.ts) | Hidden reasoning is not collected. Membership confirmation and a write API do not prove all history was uploaded. Audit archives do not merge authorization, sessions, or runtime memory. Cross-binding use retains the same-Hub and individual-identity boundaries. |
27
+ | Current-thread context and optional rolling summaries: Core route/thread mechanisms | Included in Core v0.10.0 | [Memory configuration/rendering](../src/core/runtime/memory.ts); [thread injection source](../src/core/runtime/memory-runtime.ts) / [tests](../src/core/runtime/memory-runtime.test.ts); [summary tests](../src/core/runtime/summary-runtime.test.ts) | Summaries are disabled by default and still read from the original thread when enabled. This is not a complete user-level memory system across new conversations. Visible audit archives do not automatically enter model context. |
28
+ | Attachment space: the host supplies approved images; Core uploads and returns usable URLs | Included in Core v0.10.0 (introduced in v0.8.0) | [Image attachment contract](GENERATED_ARTIFACTS.en.md); [artifact source](../src/app/agent-artifacts.ts) / [tests](../src/app/agent-artifacts.test.ts) | The first increment accepts PNG/JPEG/WebP, not documents or video. Operators configure storage and retention. Core cannot read the client's filesystem. Uploading an image and changing a business record with its URL are separate actions. |
29
+ | Optional model gateway and USD allowance settlement: Core connects/meters; the client host orchestrates | Included in Core v0.10.0 | [Model billing contract](MODEL_BILLING.en.md); [gateway source](../src/modules/usage/model-gateway.ts); [model-gateway MySQL tests](../src/modules/usage/model-gateway.mysql.test.ts); [ledger unit tests](../src/modules/usage/billing-ledger.test.ts) | Shared USD allowances use a uniform multiplier and separate periodic price from allowance. They do not restore turn/step billing. Reference prices are not provider invoices; raw Tokens are not the allowance denominator. Missing authoritative usage does not permit inventing Tokens or fees. |
30
+ | Model-tool directory, text-to-image, and original-request lookup: optional Core gateway extensions | Included in Core v0.10.0 | [Tool-description source](../src/modules/usage/model-tools.ts) / [tests](../src/modules/usage/model-tools.test.ts); [provider adapter tests](../src/modules/usage/model-tool-provider.test.ts); [asynchronous-image MySQL tests](../src/modules/usage/model-tool-gateway.mysql.test.ts) | Executable adapters include Alibaba-compatible Images, native DashScope, and OpenRouter Images. A video, voice, or custom-service directory declaration does not provide an execution adapter. The completion/shutdown boundary is described below. |
31
+ | Kernel Host API, explicit migrations, and managed lifecycle: Core provides an embedding entry point; the Host manages processes and isolation | Included in Core v0.10.0 | [Kernel Host API](KERNEL_HOST_API.en.md); [Kernel source](../src/app/kernel.ts) / [tests](../src/app/kernel.test.ts); [artifact-manifest tests](../src/kernel-api/v1/artifact.test.ts); [migration tests](../src/infrastructure/schema/core-schema-migrator.test.ts) | Separate MySQL schemas/runtimeRoots, trusted instanceKeys, explicit migrations, and Host-owned tick/close calls are prerequisites. The API does not provide tenant signup, platform plans, cluster directories, or multi-replica upgrade orchestration. The optional usage gateway is not the Host's platform billing product. |
32
+ | Installation, smoke checks, and optional operational metrics: Core provides entry points; operators configure and accept deployments | Included in Core v0.10.0 | [Quickstart](QUICKSTART.en.md); [installer](../scripts/install.sh); [smoke script](../scripts/smoke.ts); [OpenMetrics tests](../src/core/observability/openmetrics.test.ts); [independent reproduction task](INDEPENDENT_VALIDATION.en.md) | A health response does not establish that all business operations/providers are available. Metrics require explicit enablement and access protection. Installation/diagnostic entry points do not establish continuous monitoring, staffed alerts, or acceptance of a particular deployment. |
32
33
 
33
34
  ## What the public validation paths establish
34
35
 
@@ -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.9.4 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
 
@@ -87,3 +88,15 @@ The [HTTP and notification fixes](CORE_RELIABILITY.en.md#core-v093-http-and-noti
87
88
  ## Core v0.9.4 dependency and notification changes
88
89
 
89
90
  Core v0.9.4 adds [DOCX dependency remediation](DOCX_DEPENDENCY.en.md) and [durable notifications](NOTIFICATION_DURABILITY.en.md), including bundled console management and incremental migration 068. Public source and synthetic tests cover built-in persistence and recovery, not actual receipt in every deployment. Webhook receivers deduplicate stable event IDs; native uncertain receipt requires operator verification. Historical v0.9.3 evidence is unchanged, and independent consumers require their own upgrades. See the [upgrade guide](UPGRADE_v0.9.4.en.md).
91
+
92
+ ## Core v0.10.0 compatible additions and fixes
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.9.4](https://github.com/bailinghub/bailinghub/releases/tag/v0.9.4),对应 [v0.9.4 源码 Tag](https://github.com/bailinghub/bailinghub/tree/v0.9.4)。下表机制均包含在该版本中,各次修复仍标注首次发行版本;不代表默认安装后已启用所有可选功能。
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.9.4 说明](RELEASE_NOTES_v0.9.4.md) 和 [升级指南](UPGRADE_v0.9.4.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
12
+ - 版本发行内容与升级前提以 [v0.10.1 说明](RELEASE_NOTES_v0.10.1.md) 和 [升级指南](UPGRADE_v0.10.1.md) 为准。适配客户端、应用迁移、模型凭据、存储和具体业务授权仍需各自配置、验证。
13
13
 
14
14
  ## 能力归属与发行状态
15
15
 
@@ -17,18 +17,19 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
17
17
 
18
18
  | 能力与责任方 | 发行状态 | 公开实现与证据入口 | 范围与限制 |
19
19
  |---|---|---|---|
20
- | 能力声明、工具发现、受控调用:Core 解析和治理,业务系统执行 | Core v0.9.4 已包含 | [工具模型](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.4 已包含 | [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.4 已包含 | [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.4 已包含 | [只读回执与恢复](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.4 已包含(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.4 已包含 | [对话审计契约](AGENT_CONVERSATION_AUDIT.md);[运行面测试](../src/core/runtime/agent-conversation-audit.test.ts) | 不采集隐藏推理。确认成员和具备写接口不证明宿主已上传全部历史;审计归档不合并业务授权、会话或运行时记忆。跨绑定仍受同一中枢及各自身份边界约束。 |
26
- | 当前线程上下文和可选滚动摘要:Core 的路由/线程机制 | Core v0.9.4 已包含 | [记忆配置与渲染](../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.4 已包含(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.4 已包含 | [模型计费契约](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.4 已包含 | [工具描述源码](../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.4 已包含 | [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.4 已包含 | [快速开始](QUICKSTART.md);[安装脚本](../scripts/install.sh);[体检脚本](../scripts/smoke.ts);[OpenMetrics 测试](../src/core/observability/openmetrics.test.ts);[独立复现任务卡](INDEPENDENT_VALIDATION.md) | 健康响应不证明全部业务或供应商可用。指标端点需显式启用并保护访问;有安装/诊断入口不等于已建立持续监控、告警值守或完成特定部署验收。 |
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 保留,未设置字段遵循原缺省。需核对有效风险变化并刷新声明;源码测试不证明下游包或部署已经更新。 |
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) | 工具可发现不等于当前调用获准。业务接口还需验签,并重新检查主体、租户、权限和业务状态;声明不能赋予调用方原本没有的权力。 |
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、授权绑定、刷新和撤销有公开实现;不接管业务系统的登录、角色管理或最终授权,也不允许模型从文本指定可信主体。 |
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` 管线是另一种公开接入路径,不能把两者混为同一客户端执行模式。 |
24
+ | 审批、原调用快照和只读回执:Core 治理,业务系统保留执行结果 | Core v0.10.0 已包含 | [只读回执与恢复](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 分开。未知结果不构成重发写操作的许可;没有历史参数时不能补造。审批本身不证明业务已成功,也不是分布式业务事务的回滚保证。 |
25
+ | 跨轮任务控制:Core 持久化原成员、写调用预算与并发占用 | Core v0.10.0 已包含(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 数;暂停/取消不能撤回已放行或已完成的业务效果。 |
26
+ | 可见对话审计:客户端显式上传,Core 校验成员和保存事件 | Core v0.10.0 已包含 | [对话审计契约](AGENT_CONVERSATION_AUDIT.md);[运行面测试](../src/core/runtime/agent-conversation-audit.test.ts) | 不采集隐藏推理。确认成员和具备写接口不证明宿主已上传全部历史;审计归档不合并业务授权、会话或运行时记忆。跨绑定仍受同一中枢及各自身份边界约束。 |
27
+ | 当前线程上下文和可选滚动摘要:Core 的路由/线程机制 | Core v0.10.0 已包含 | [记忆配置与渲染](../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) | 摘要默认关闭,启用后仍按原线程读取。它不是完整的用户级跨新会话长期记忆模块;公开的可见对话审计也不会自动变成模型上下文。 |
28
+ | 附件空间:宿主提供获准图片,Core 上传并返回可用 URL | Core v0.10.0 已包含(v0.8.0 引入) | [图片附件契约](GENERATED_ARTIFACTS.md);[附件源码](../src/app/agent-artifacts.ts) / [测试](../src/app/agent-artifacts.test.ts) | 首期 PNG/JPEG/WebP,不接受文档或视频。存储和保留策略需运营者配置;Core 不能读取客户端文件系统。上传图片与使用 URL 改变业务是两个独立动作。 |
29
+ | 可选模型网关与美元额度结算:Core 接入、计量,客户端宿主编排 | Core v0.10.0 已包含 | [模型计费契约](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 或费用。 |
30
+ | 模型工具目录、文生图和原请求核对:Core 的可选网关扩展 | Core v0.10.0 已包含 | [工具描述源码](../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。视频、语音或自定义服务的目录声明不等于存在可执行适配器;异步完成与关闭边界见下文。 |
31
+ | Kernel Host API、显式迁移和托管生命周期:Core 提供稳定嵌入入口,Host 管理进程与隔离 | Core v0.10.0 已包含 | [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 的平台计费产品。 |
32
+ | 安装、体检与可选运维指标:Core 提供入口,部署者配置和验收 | Core v0.10.0 已包含 | [快速开始](QUICKSTART.md);[安装脚本](../scripts/install.sh);[体检脚本](../scripts/smoke.ts);[OpenMetrics 测试](../src/core/observability/openmetrics.test.ts);[独立复现任务卡](INDEPENDENT_VALIDATION.md) | 健康响应不证明全部业务或供应商可用。指标端点需显式启用并保护访问;有安装/诊断入口不等于已建立持续监控、告警值守或完成特定部署验收。 |
32
33
 
33
34
  ## 公开验证能说明什么
34
35
 
@@ -40,7 +41,7 @@ Core 默认是一个组织的管理与审计域。不同 Client、route 或工
40
41
 
41
42
  ### 公开 demo 与独立复现任务卡
42
43
 
43
- [Docker Demo](DEMO.md) 与 [独立验证任务卡](INDEPENDENT_VALIDATION.md) 提供从 v0.9.4 安装、基础体检到 `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
 
@@ -87,3 +88,15 @@ Core v0.9.1 增加了每个 `UsageRepository` 独立拥有的 [后台工作登
87
88
  ## Core v0.9.4 的依赖与通知修复
88
89
 
89
90
  Core v0.9.4 新增 [DOCX 依赖处置](DOCX_DEPENDENCY.md)与[通知持久化](NOTIFICATION_DURABILITY.md),包含自带控制台管理入口和增量迁移 068。公开源码和合成测试覆盖内置持久化与恢复,不证明各部署的真实收件;Webhook 接收方按稳定事件 ID 去重,原生未知送达须人工核对。不改变 v0.9.3 的历史证据,独立消费者仍需各自升级。见[升级指南](UPGRADE_v0.9.4.md)。
91
+
92
+ ## Core v0.10.0 的兼容新增与修复
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 或业务权力,不回写旧版本保证。
@@ -4,10 +4,12 @@ This task answers one narrow question: **can a developer who is new to BailingHu
4
4
 
5
5
  It is not certification, a benchmark, or evidence of production adoption. Passing means that the public installation path and demo governance loop were independently reproducible. It does not mean that the validator connected BailingHub to a real business system.
6
6
 
7
+ After the demo, use the [business integration walkthrough (Chinese)](INTEGRATION_WALKTHROUGH.md) for a non-production API you control: one read, one approved write, permission changes, changed approval parameters, unknown outcomes and restart. Record time, blockers and maintainer assistance separately from independent success.
8
+
7
9
  ## Scope
8
10
 
9
11
  - Target: the open-source BailingHub Docker demo;
10
- - Stable baseline: `v0.9.4`;
12
+ - Stable baseline: `v0.10.1`;
11
13
  - Data: the bundled demo orders, tickets, refunds, and failure probe;
12
14
  - Expected time: about 20 minutes after images and dependencies are available;
13
15
  - Not required: a real model key, production API, production credential, or real business data.
@@ -32,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
34
  cd "$HOME/bailinghub"
33
35
  ```
34
36
 
35
- The installer pulls the official `v0.9.4` 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.
36
38
 
37
39
  If the default directory is already in use, choose a new empty directory instead of overwriting an existing deployment:
38
40
 
@@ -46,7 +48,7 @@ cd "$HOME/bailinghub-validation"
46
48
  ### Path B: local source reproduction
47
49
 
48
50
  ```bash
49
- git clone --depth 1 --branch v0.9.4 https://github.com/bailinghub/bailinghub.git
51
+ git clone --depth 1 --branch v0.10.1 https://github.com/bailinghub/bailinghub.git
50
52
  cd bailinghub
51
53
  git rev-parse HEAD
52
54
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +169,7 @@ After the core task passes, you may continue with:
167
169
  - [Trusted rich rendering and chat reliability](RELEASE_NOTES_v0.1.15.en.md).
168
170
  - [Bounded tool runtime and resilient semantic retrieval](RELEASE_NOTES_v0.1.16.en.md).
169
171
  - [Composable Core and Kernel Host API v1](RELEASE_NOTES_v0.3.0.en.md).
170
- - [Current stable release notes](RELEASE_NOTES_v0.9.4.en.md).
172
+ - [Current stable release notes](RELEASE_NOTES_v0.10.1.en.md).
171
173
 
172
174
  Select the relevant track in the same Issue form and disclose whether you received direct maintainer assistance.
173
175
 
@@ -4,10 +4,12 @@
4
4
 
5
5
  它不是认证、性能测试或生产采用证明。跑通本任务只说明公开安装路径和 demo 治理链路可以被独立复现;不代表验证者已把 BailingHub 接入真实业务。
6
6
 
7
+ 完成 Demo 后,如需检验接入自己系统的难度,继续使用[非作者业务接入走查](INTEGRATION_WALKTHROUGH.md):覆盖一读一审批写、权限变化、审批改参、结果不明及重启,逐步记录耗时、阻塞和维护者帮助等级。
8
+
7
9
  ## 验证范围
8
10
 
9
11
  - 验证对象:BailingHub 开源版 Docker demo;
10
- - 稳定基线:`v0.9.4`;
12
+ - 稳定基线:`v0.10.1`;
11
13
  - 数据范围:仓库自带的 demo 订单、工单、退款和故障工具;
12
14
  - 预计用时:镜像和依赖下载完成后约 20 分钟;
13
15
  - 不需要:真实大模型 Key、生产 API、生产凭据或真实业务数据。
@@ -32,7 +34,7 @@ curl -fsSL https://www.bailinghub.com/install.sh | sh
32
34
  cd "$HOME/bailinghub"
33
35
  ```
34
36
 
35
- 脚本默认拉取 `v0.9.4` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
37
+ 脚本默认拉取 `v0.10.1` 官方镜像,生成随机 Token 与后台密码,启动服务并自动运行基础体检。首次管理员只在数据库管理员表为空时创建;对同一持久化数据库进行重启、升级、容器重建或重新安装,不会覆盖已经修改的管理员密码。可选 `/metrics` 端点默认关闭,不影响基础验证。请保留终端输出中的版本、安装模式、耗时和“常用命令”,但不要把密码或 Token 写入反馈。新安装 Docker 后,当前非 root 会话通常仍需使用脚本打印的 `sudo docker compose ...` 命令;重新登录后 Docker 组权限才可能生效。
36
38
 
37
39
  如果默认目录已被占用,请使用一个新的空目录,不要覆盖现有部署:
38
40
 
@@ -46,7 +48,7 @@ cd "$HOME/bailinghub-validation"
46
48
  ### 路径 B:本地源码复现
47
49
 
48
50
  ```bash
49
- git clone --depth 1 --branch v0.9.4 https://github.com/bailinghub/bailinghub.git
51
+ git clone --depth 1 --branch v0.10.1 https://github.com/bailinghub/bailinghub.git
50
52
  cd bailinghub
51
53
  git rev-parse HEAD
52
54
  export BAILING_TOKEN="$(openssl rand -hex 32)"
@@ -167,7 +169,7 @@ docker compose exec -T bailinghub npm run demo:e2e
167
169
  - [可信富内容渲染与聊天可靠性](RELEASE_NOTES_v0.1.15.md)。
168
170
  - [工具运行时收敛与语义检索韧性](RELEASE_NOTES_v0.1.16.md)。
169
171
  - [可组合 Core 与 Kernel Host API v1](RELEASE_NOTES_v0.3.0.md)。
170
- - [当前稳定版发布说明](RELEASE_NOTES_v0.9.4.md)。
172
+ - [当前稳定版发布说明](RELEASE_NOTES_v0.10.1.md)。
171
173
 
172
174
  扩展验证请在同一 Issue 模板中选择对应路径,并说明是否获得过维护者的直接帮助。
173
175
 
@@ -0,0 +1,65 @@
1
+ # 非作者业务接入走查
2
+
3
+ 这份清单用于检验公开文档能否让此前不熟悉项目的开发者完成接入。先完成[独立 Demo 验证](INDEPENDENT_VALIDATION.md),再用自己有权操作的非生产 API 跑通一项读取与一项需审批的写操作。Demo 成功、维护者代做和真实业务接入分别记录。
4
+
5
+ ## 准备与记录方式
6
+
7
+ - 固定 Core 版本、提交或镜像摘要,以及所用 SDK/客户端版本。未发布源码必须标明候选身份,不能用版本字段代替提交号。
8
+ - 使用独立测试环境、合成数据和可撤销的小范围测试操作;不连接生产写接口、不使用真实退款。
9
+ - 业务方提供两个精确 operationId 及各自的 scope、现有权限判断、审批决策入口,以及查询原业务操作结果的方法。AI 或浏览器输入不能决定租户和操作主体。
10
+ - 选一个入口即可:业务后端调用、网页 Widget 或本地 Agent。仅在该入口需要模型时提供测试模型;不用先安装全部适配器。
11
+ - 预留半天作为首次走查时间盒;时间用完仍阻塞就记录问题,不通过维护者代做来记为“独立成功”。环境下载耗时与实际操作耗时分开。
12
+ - 每步记录 `PASS / FAIL / BLOCKED / NOT_RUN / NOT_APPLICABLE`、耗时、文档入口、期望与实际、脱敏错误码和关联 ID。`NOT_APPLICABLE` 要写理由,不算通过。
13
+
14
+ 帮助等级:`H0` 只用公开资料;`H1` 获得文档定位提示;`H2` 获得环境或接入方案指导;`H3` 维护者直接改配置/代码或代操作。失败后帮助继续推进可以,但应分别保留帮助前后的结果。
15
+
16
+ ## A. 全新安装与 Demo
17
+
18
+ 按[独立验证任务卡](INDEPENDENT_VALIDATION.md)选择安装路径并完成五项检查,记录首个阻塞点。确认匿名预览不继承后台身份。自动 Demo 的通过不代替后面的自有 API 和负向检查。
19
+
20
+ ## B. 自有非生产 API:一读一写
21
+
22
+ | 步骤 | 操作 | 通过时应留下的证据 |
23
+ | --- | --- | --- |
24
+ | B1 选定业务边界 | 选择一项查询和一项需审批的写接口,明确成功、拒绝、重复调用与结果不明时的处理 | 两个 operationId 及独立精确 scope、合成对象、业务方权限/幂等规则说明 |
25
+ | B2 声明和验签 | 按 [SDK 与业务契约](CONTRACT.md)发布能力清单,接入签名校验及既有业务权限判断 | 无签名、错误签名、无主体或无权限请求被业务端拒绝;不要用 `authorize = true` 替代授权 |
26
+ | B3 注册与限权 | 注册工具源,核对清单访问策略;路由 `allow` 填上述 scope(不是 operationId),主体由可信后端提供 | 核对最终目录只有目标工具;若共享 scope 带入其他工具,先拆测试声明或专用工具源。目录可见不等于业务授权通过 |
27
+ | B4 查询 | 从选定入口查询合成对象,并对照业务接口结果 | 原 run/job/trace 与业务请求关联、查询结果一致 |
28
+ | B5 待审批 | 发起一次受审批的写操作,先不批准 | 审批意图与冻结参数;业务端写入计数仍为零 |
29
+ | B6 批准与核对 | 由有权限的人批准;按所选入口的续办语义继续原操作 | 原审批、原调用与业务记录对应,只有获批参数被执行;通知或模型总结不能替代业务记录 |
30
+ | B7 可解释性 | 请接入者仅用控制台/公开接口解释这次操作是谁发起、为何允许、审批了什么、最终结果如何 | 能找到原 trace/调用与业务结果,记录缺失或难懂的信息 |
31
+
32
+ 参考:[快速开始第 9 步](QUICKSTART.md)、[Agent 接入](AGENT_CLIENT_QUICKSTART.md)、[Agent Runtime](AGENT_CLIENT_RUNTIME_API.md)。本地 Agent 的只读 receipt 与有副作用的 resume 分开;不要把 resume 当轮询。
33
+
34
+ ## C. 隔离负向场景
35
+
36
+ 每个场景使用新的合成测试对象,并在业务端记录实际写入次数。异常只注入测试接口;不通过更换请求 ID、授权或重建任务掩盖失败。
37
+
38
+ | 场景 | 操作 | 应有结果 |
39
+ | --- | --- | --- |
40
+ | C1 拒绝审批 | 为另一项合成写请求拒绝审批,再从原入口核对状态 | 业务写入为零,拒绝可追踪 |
41
+ | C2 批准后改参 | 在隔离调用夹具中尝试把获批请求的金额/对象或其他受审批参数改掉 | 修改不能复用原批准;业务端不得执行未获批参数。没有可控调用夹具则记 BLOCKED,不宣称已测 |
42
+ | C3 权限变化 | 清单可见后撤销该测试主体的业务权限,再发起调用 | 业务端最终授权拒绝;目录缓存不能提供执行权限 |
43
+ | C4a 业务确认丢失 | 测试业务端已接收写入,但让响应在抵达 Hub 前丢失;核对原调用和业务记录 | 按入口契约呈现结果不明(Agent receipt 为 `reconciliation_required`),保留原调用直到有证据核定;不得自动创建替代写。普通 5xx 演示不等于此场景 |
44
+ | C4b 客户端确认丢失 | Core 已持久保存结果,但客户端未收到响应;通过只读 receipt 核对原调用 | 返回已保存的结果(成功调用为 `executed`),业务写入次数不增加;不能把客户端超时直接当作 Core 结果未知 |
45
+ | C5 重复请求 | 对一个已确认的逻辑操作按该接口规定重试同一请求/幂等键 | 实际业务副作用不重复;明确区分 Hub 原调用恢复和业务自身幂等保障 |
46
+ | C6 停止与恢复 | 在测试任务/审批有记录时正常停止,再使用同一存储启动并核对原 ID | 状态和关联保留,已完成业务不因重启重复执行;正常重启不冒充 SIGKILL 验证 |
47
+
48
+ 若选用本地 Agent,可按 [任务控制](AGENT_TASK_CONTROL.md)追加暂停、跨轮写额度和撤销成员场景;它们是选定能力的扩展,不能替代 B/C 的业务权限检查。
49
+
50
+ ## 收口与反馈模板
51
+
52
+ ```text
53
+ 验证者角色(是否参与过项目实现):
54
+ 日期 / 环境 / Core 提交或镜像摘要 / SDK 与入口版本:
55
+ 轨道:Demo / 自有非生产 API
56
+ 目标操作与授权范围(脱敏):
57
+ 步骤编号 / 状态 / 耗时 / 帮助等级:
58
+ 所用公开文档:
59
+ 期望 / 实际 / 首个阻塞点:
60
+ 脱敏错误码、关联 ID、业务端实际写入次数:
61
+ 能否在无维护者代做的情况下重复完成:
62
+ 尚未测试的场景及原因:
63
+ ```
64
+
65
+ 保留失败记录,修复后重跑原阻塞步骤及相关上下游。反馈可用[独立验证 Issue 模板](https://github.com/bailinghub/bailinghub/issues/new?template=independent_validation.yml),但不上传密钥、完整配置、个人信息或业务正文。两位开发者能复现也只证明相应版本、入口和环境;性能、升级恢复及长期运行仍需各自的证据。
@@ -56,6 +56,8 @@ Persist the original `operation_id` locally. Missing responses, offline reopenin
56
56
 
57
57
  Responses expose `result_state`, `billing_state`, `response`, raw `usage` (possibly absent), `raw_usage`, `reference_cost_usd`, `billed_usd` and `overage_usd`. `billing_rate` includes plan revision, multiplier and price snapshot. Results have bounded retention; `response_expired` does not authorize re-dispatch.
58
58
 
59
+ For chat, `result_state=complete` means the provider exchange was saved, not that the answer or Agent task is complete. Native finish reasons, partial text, reasoning and tool calls remain in `bailing.provider-response.v1` for the host adapter. Explicit output-budget cutoff differs from transport uncertainty; Core never generates another request automatically. See [output budgets](MODEL_OUTPUT_BUDGET.en.md) and [host continuation/recovery](MODEL_CONTINUATION.en.md).
60
+
59
61
  Trusted backends retain the existing identity-exchange entry point. `model_access: token_gateway` identifies plan-scoped credentials, not a legacy Token allowance mode; `service` remains restricted to one model. Identity, business authority, fixed session scope, approvals and business-call archives remain independent and are not expanded by a plan.
60
62
 
61
63
  Console endpoints use `/admin/api/usage/billing/`. Business backends can use `/usage/v1/external/billing/plans` and `/accounts/{id}/summary|grant|control`, retaining source ownership, permissions and idempotent grants.