feat(models): register protocols and evidence-bound capabilities

This commit is contained in:
Agent Workbench Dev
2026-10-31 21:56:41 +08:00
parent 299fb14234
commit 578cf88eca
9 changed files with 154 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
# 1.17 模型协议、流式执行与能力路由验收
基线299fb14/正式1.16.0,在feat/model-protocols-1.17开发。开发使用自有项目/loopback服务/数据与凭据;正式Provider与数据保持,真实模型工程与Purge收益单独待验。阶段未完整验收前不部署或宣称1.17已交付。
## A:协议与能力登记
新增Chat Completions/Responses协议登记和版本化能力声明。文本、工具、流式、视觉与语音分别显示声明、未知、不支持、已验证;后者绑定连接修订及凭据修订,客户端提交不能伪造。旧schema:1记录只读兼容,读取不迁移原记录,原DPAPI绑定仍使用原协议/接口/模型身份。流式开关默认关闭,必须先明确声明支持。
18/18相关检查通过,包含旧模型池/请求身份/导入事务/热升级以及新能力声明、失效、未知筛选和失败回滚。原TAP见[专项结果](model-protocols-a-specialists.txt)。本切片尚不代表Responses请求或流式已实现;它们在B/C独立验收。全阶段发行、UI与工程门槛仍待执行。
+5
View File
@@ -0,0 +1,5 @@
# 1.17 切片回顾
## A:能力来源与旧连接
保留原schema:1和默认Chat连接,新增的能力信息放在每个连接上。声明不能当成实测,实测必须跟随实际连接和凭据修订;未知视觉/音频保持未知,不从模型名猜测。原模型池/导入/热升级和能力专项18项通过,未访问正式Key或发送真实模型请求。B/C继续实现实际协议和流式,A通过不能代表它们已交付。
+26
View File
@@ -0,0 +1,26 @@
✔ schema1 connections remain readable without inventing observed capabilities or migrating original state (993.7387ms)
✔ protocol, unsupported capabilities and stream choice persist; client claims cannot forge verified evidence (1262.8972ms)
✔ ability evidence belongs to exact connection and credential revision; unknown and unsupported reject required routing (0.2789ms)
✔ invalid declarations and inconsistent stream settings reject before registry, revision and credentials mutate (1249.8472ms)
✔ model registry keeps original credentials/endpoint intact, rejects stale edits, and forgets only volatile keys on restart (1447.1195ms)
✔ config import previews exact revisions, keeps secrets volatile, syncs only when enabled and preserves manual edits on conflicts (1141.502ms)
✔ real HTTP pool fails over 429 to another model and never repeats completed tools; attempts seal actual request bytes and Run identity (3887.3408ms)
✔ pool rotation and weights select members on new Runs; disabled and missing credentials are excluded without requests (3709.6143ms)
✔ 401 blocks the credential revision; updating the key restores availability without leaking error echoes (1282.2837ms)
✔ queued request cancellation and in-flight disable release only owned leases and do not dispatch another HTTP request (807.0351ms)
✔ compiled model-center HTTP API persists public profiles, blocks forged origins, and local operations never invoke a model (1915.174ms)
✔ model registry disk failures restore routing, pool profiles and credential references without partial updates (633.2153ms)
✔ model selection and saved configuration commit together and failures preserve the original mode and endpoint (651.1629ms)
✔ configuration imports roll back the entire batch and retain one usable preview after validation or commit failure (615.3665ms)
✔ hot upgrade adopts a retained virtual data root without reopening SQLite or changing rows, Provider or routing (1435.7982ms)
✔ failed adoption restores the original virtual data-root name and original open database (857.4231ms)
✔ hot upgrade refreshes retained model and importer methods while preserving credential and routing objects (940.5107ms)
✔ hot upgrade refuses active probes and restores retained model methods if installation fails (841.6437ms)
ℹ tests 18
ℹ suites 0
ℹ pass 18
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 16212.7253