test: verify saved Claude route with one real identity preflight

This commit is contained in:
Agent Workbench Dev
2026-11-03 13:32:06 +08:00
parent 84b37fd636
commit 641c712b6e
41 changed files with 3964 additions and 1 deletions
+4
View File
@@ -159,3 +159,7 @@ docs/delivery-integrity-i-evidence/source-bytes/** binary
docs/delivery-integrity-i-release-identity.json -text
docs/delivery-integrity-i-offline.txt binary
docs/delivery-integrity-i-git-index.txt binary
docs/live-model-identity-j-evidence/** -text whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol
docs/live-model-identity-j-evidence/logs/** binary
docs/live-model-identity-j-offline.txt binary
+2
View File
@@ -1,5 +1,7 @@
# Agent Workbench项目执行规范
J已按用户选择完成现有apikey Claude单次真实预检:请求claude-opus-5-5,完整上游SSE标记gpt-6.1-sol;1请求/4334报告tokens/0未知/0工具,strict model_identity暂停,未启动新工程或Purge。原1.24.2/PID36552/Provider/凭据修订2保持,原70导出/3566工件/全部原表行经精确声明归一化核对;新增1项目/1会话/8记录/25事件及outbox、1尝试归属明确。原池/参数恢复,configRevision48→52、连接6→7→8,原缺省身份策略显式record/[]/空串。三次本机整表验收器首失败与更正保留;30份/190046字节新样本证据离线通过。见docs/LIVE-MODEL-IDENTITY-J-RESULTS.md。下一等待更正后的Claude连接或用户选定其它连接,另开单次预检;不自动重试J/E/H,不认证底层权重,1.25仍计划。下方旧数字保持历史含义。
I已本地交付:1.24.2/source1153e19a/候选20261103042107173,身份与原响应、审查后推进、无进展及原生审查暂停修复完成;179/179相关后端、两协议编译工程、实际Harness两协议32K/Chat16K、535输入独立重建22/22、三归档/便携及12安装/16+9安装UI通过。正式原PID36552/Provider和54项目/70会话/6078记录/12906事件/3566工件、原表每行/全导出/公开模型中心精确保持,原生窗口3项/网页及再次核对通过,9229关闭。1647份/87733455字节证据离线通过;浏览器JPEG误记PNG首失败/原件保持并附更正。见docs/QA-DELIVERY-INTEGRITY-I.md和docs/delivery-integrity-i-release-identity.json。下一docs/LIVE-RETEST-J-PLAN.md先严格有界身份预检,本轮真实请求0,旧E/H失败不续跑,原版Purge收益仍未证明,1.25保持计划。以下旧记录按当时时点理解。
H真实重新实测已完成:正式1.24.1六新例52请求/621416报告tokens/0未知,均未完整交付,3批模型提案审查应用、6次原检查审批;11开启/17关闭输入、原版两次apply及6原生进程退出核对通过。979份/42415779字节原件见docs/LIVE-RETEST-H-RESULTS.md,manifest 9c7b8980850802b444375875ab53f66937307b6fe81ffee06ae075b78916824e。重要补充:H52份请求claude-opus-5-5但上游原响应均标记gpt-6.1-sol;E52份原响应补审同样不一致。旧“实际Claude”表述仅证明配置/发送身份,底层型号未认证,不改写旧原件。身份检查明确拒绝,原字节/消费核验通过分别记录。原PID36552/Provider/hasKey=true/idle、原58导出/2850工件/每表原行/148原尝试保持,公开模型参数和原池恢复;当前54项目/70会话/6078记录/12906事件,追加全部归属H,9229关闭。下一先docs/LIVE-RETEST-H-REVIEW.md的请求/返回身份、应用后推进和重复观察修复;不续跑E/H失败,不扩大原预算,1.25保持计划。
+25
View File
@@ -0,0 +1,25 @@
# J:apikey Claude 真实连接预检
**已发出一次真实请求,型号核对未通过。** 固定使用用户选择的 `apikey` 连接,发送 `claude-opus-5-5`,上游完整 SSE 中的型号字段均为 `gpt-6.1-sol`。系统以 `model_identity` 暂停,未执行任何工具,未切换号池或重试。不能将该请求作为 Claude 工程能力的验收依据,也不能仅凭返回字段认证底层模型权重或判断代理原因。
| 项目 | 原始证据结果 |
| --- | --- |
| 运行版本 | 1.24.2,原宿主 PID 36552,原 Provider |
| 连接 | apikey,`https://api.apikey.fan`,Chat Completions / SSE |
| 请求 / 返回标识 | `claude-opus-5-5` / `gpt-6.1-sol` |
| 请求数 / 工具数 | 1 / 0 |
| 上游报告用量 | 输入 4307、输出 27、合计 4334 tokens,未知用量 0 |
| 封存预算 | 1 请求、256 输出、16000 累计 tokens、无重试或切池 |
| 原请求估算 | 输入 7360 + 输出预留 256,在原预算内 |
| 返回内容 | 精确回复本次唯一的 `OK <nonce>`,流完整结束 |
| 后续工程 / Purge | 均未启动;不报告真实交付或收益通过 |
请求原文 SHA-256:`0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28`。响应原文 SHA-256:`af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0`。请求、响应、消费账本和暂停原因互相绑定;不是根据模型自述判定身份。
已恢复原模型参数与“高性能”号池,原凭据修订仍为 2;未抽取、复制或重新保存 Key,未重启或升级正式宿主。原 70 个完整会话导出、3566 个工件字节及原会话/执行/事件行核对保持。本次增加 1 项目、1 会话、8 记录、25 事件及对应 outbox,唯一新增模型尝试属于本次会话。原项目位置因新增项目精确顺移一位。公开配置修订 48→52;连接修订 6→7→8。原缺省身份设置通过公开 API 恢复为等价的显式 `record` / 空映射 / 空依据,未宣称配置文件或修订字节完全相同。
整表审计保留三次本地验收器失败:漏列自有 outbox、把 sqlite_sequence 的增长游标误当稳定标识、错误要求兼容 config.json 的修订字节不变。按真实外键、唯一 events 计数器及原配置可精确重建的 SHA 修正后,全部原行与新增归属核验通过;没有因此重发模型请求或改写正式原记录。
新样本原件、驱动、原失败及复核收据见[证据清单](live-model-identity-j-evidence/manifest.json)。原用户全量基线留在本机 `.qa/live-retest-j`,公开封存仅包含其 SHA 和复核收据。运行 `node scripts/verify-live-model-identity-j.mjs` 可离线核对新样本原字节、型号差异、用量、预算、暂停与状态收据;不会访问模型或密钥,也不重建未公开的用户原数据。
下一步先在工作台“模型中心”修正 Claude 接口/协议/实际型号,或另选已保存连接。Key 只在工作台填写,告知连接名称即可。每个更正后的连接另开独立单次预检;通过后才按 [J 计划](LIVE-RETEST-J-PLAN.md)进入新 Node 工程交付。旧 E/H 和本次失败不自动续跑,原版 Purge 收益另验,1.25 继续保留计划。
+3 -1
View File
@@ -1,4 +1,6 @@
# J:I交付后的新真实样本计划(尚未执行)
# J:I交付后的新真实样本计划(单次身份预检未通过)
用户选择 apikey Claude 后已执行一次独立真实预检:请求 claude-opus-5-5,上游完整 SSE 标记 gpt-6.1-sol;1 请求/4334 报告 tokens/0 工具,严格暂停。原参数/号池与凭据保持,原状态核对完成;见[实测结果](LIVE-MODEL-IDENTITY-J-RESULTS.md)。下列工程与 Purge 尚未执行,需更正或新选连接后另开预检;不自动重试本样本。
1. 新开独立身份预检:冻结已配置连接和版本,严格核对请求/返回身份及来源;一请求、最多256输出、累计16000tokens、无重试或切池。输入估算超过原限即零发送拒绝。身份缺失、不一致、混合或中断立即停止,映射须有实际依据。凭据仅由原Provider使用。
2. 预检通过后先做一个新Node工程交付样本:封存原功能测试/源码/Git和受保护文件,固定32K上下文、最多8请求和90000tokens;读失败、实现、整批审查、显式续接、新检查审批、原测试/构建和Git均须原证据。监督只做审查/审批/确认,不能代替模型实现;预算到期保存失败,不追加提示续跑。实际请求仍逐次严格核对身份。
+2
View File
@@ -1,5 +1,7 @@
# 后续执行计划
J最新:用户指定 apikey Claude 的单次真实预检已结束,请求 claude-opus-5-5、返回 gpt-6.1-sol,4334 报告 tokens、0 工具,严格暂停并恢复原池/参数。原数据与所属新增核对完成,[结果与下一入口](LIVE-MODEL-IDENTITY-J-RESULTS.md)已记录,30份证据离线通过。更正或新选连接后另开首请求预检,通过才做新Node工程;当前工程/Purge未启动,旧失败不重试。以下段落按原历史时点理解。
当前 I 已完成:1.24.2身份/应用后推进/重复观察/原生审查暂停修复已本地交付,179相关回归、实际Harness、独立源码重建、便携和实际安装通过,正式原PID/Provider及全部原状态精确保持,原生窗口与旧网页回看通过。见[I验收](QA-DELIVERY-INTEGRITY-I.md)和[固定身份](delivery-integrity-i-release-identity.json)。下一按[J新样本计划](LIVE-RETEST-J-PLAN.md)先严格首请求身份预检,再新工程交付和单独Purge收益;旧失败不续跑,1.25仍保留。下列段落保留原历史时点。
当前接续:A–D可靠性及固定原版策略、E新六例52请求/621486报告tokens实测、F固定安装已完成相应范围;E仅Python交付、React与四原版对照未交付,收益未证明。F原PID/Provider与全部原状态精确保持,源码ZIP重建22/22、三归档和12组隔离安装通过,正式窗口因物理Escape停止未目视验收。先补该项,再按[效率修复计划](LIVE-DELIVERY-EFFICIENCY-PLAN.md)处理[原件已定位问题](LIVE-DELIVERY-EFFICIENCY-AUDIT.md);1.25及其它能力方案继续保留。当前身份见[固定安装](original-purge-release-identity.json)和[F验收](QA-ORIGINAL-PURGE-RELEASE-F.md),下方各“最新”段落按原历史时间理解。
@@ -0,0 +1,126 @@
[
{
"id": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"requestId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"connectionRevision": 7,
"credentialRevision": 2,
"poolId": null,
"poolRevision": 7,
"model": "claude-opus-5-5",
"protocol": "chat-completions",
"streaming": true,
"endpoint": "https://api.apikey.fan",
"ordinal": 1,
"status": "failed",
"startedAt": "2026-11-03T05:25:12.732Z",
"requestBytes": 20928,
"requirements": [
"text",
"tools"
],
"rejections": [],
"requestSha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"usageStatus": "reported",
"requestArtifactId": "3131da46-d3ae-43d8-a199-86b574bbeec2",
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamResponse": {
"httpStatus": 200,
"requestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"headers": {
"content-type": "text/event-stream",
"date": "Tue, 03 Nov 2026 05:25:15 GMT",
"x-request-id": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9"
}
},
"partial": {
"sequence": 24,
"bytes": 5612,
"textCharacters": 39,
"textPreview": "OK 64640876-aa7b-4952-b8f9-fe8b91f4e218",
"toolFragments": 0
},
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"stream": {
"bytes": 5612,
"capturedBytes": 5612,
"frames": 24,
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"terminal": true,
"terminalSeen": true,
"protocol": "chat-completions"
},
"responseArtifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"responseSha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"responseRedacted": false,
"diagnostic": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869
},
"reason": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"httpStatus": null,
"finishedAt": "2026-11-03T05:25:16.885Z"
}
]
@@ -0,0 +1,70 @@
{
"beforeSha256": "725f9d87bd6054952b1e484a84b539fb34528eafbaafcdfec0f423a65af8b5b4",
"afterSha256": "7ad38603775d043b74b18dad08e0716908d81a1ca388807fb40f9d2618a25422",
"setupSha256": "5d5213ed88f7074ba17a68f6a456d5fdc69ad192accacf6aea8fa966e7bb997a",
"originalSourceCommit": "84b37fd636c9968073f2444abb8233875bd25f4c",
"version": "1.24.2",
"pid": 36552,
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.2-win-x64-20261103042107173",
"originalCounts": {
"projects": 54,
"sessions": 70,
"records": 6078,
"events": 12906,
"artifacts": 3566,
"attempts": 200
},
"actualCounts": {
"projects": 55,
"sessions": 71,
"records": 6086,
"events": 12931,
"artifacts": 3570,
"attempts": 201
},
"originalSelection": {
"type": "pool",
"id": "68e30376-b799-445b-a858-db2dba9920a0"
},
"actualSelection": {
"type": "pool",
"id": "68e30376-b799-445b-a858-db2dba9920a0"
},
"originalConfig": {
"mode": "compatible",
"baseUrl": "https://jojocode.com/v1",
"model": "gpt-6.1-sol",
"contextLimit": 16000,
"maxSteps": 12,
"maxOutputTokens": 2048,
"maxRunDurationMs": 600000,
"maxRunTokens": 200000,
"maxTaskTokens": 1000000,
"configRevision": 48,
"modelResponseTimeoutMs": 300000,
"modelStreamIdleTimeoutMs": 120000
},
"originalPublicFiles": [
{
"path": "config.json",
"sha256": "e6d8236b99057d8d42cf2e473f0aca272c01a5ec9c07bfb64cf803395048bc3d"
},
{
"path": "projects.json",
"sha256": "36d3d38a9de4881d68abf5952aa9f811a71a90df72ed7cca89cb2ab42381bc30"
}
],
"actualPublicFiles": [
{
"path": "config.json",
"sha256": "ab554a6780124ab1788a53dc158a3c85e72f0142d6f62513017f11aa368c8ba3"
},
{
"path": "projects.json",
"sha256": "36d3d38a9de4881d68abf5952aa9f811a71a90df72ed7cca89cb2ab42381bc30"
}
],
"privateBaseline": ".qa/live-retest-j/before.json",
"privateAfter": ".qa/live-retest-j/after.json",
"excluded": "Original user registry and complete pre-existing user state payloads; only their SHA and actual verification receipts are published. Credentials never accessed."
}
@@ -0,0 +1,53 @@
{
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"name": "apikey",
"brand": "Claude 兼容代理",
"protocol": "chat-completions",
"model": "claude-opus-5-5",
"capabilitySchema": 1,
"capabilityDeclarations": {
"text": "supported",
"tools": "supported",
"streaming": "supported",
"vision": "unknown",
"audio": "unknown"
},
"streaming": true,
"modelIdentityPolicy": "require-match",
"modelIdentityAliases": [],
"modelIdentityAliasSource": "",
"baseUrl": "https://api.apikey.fan",
"enabled": true,
"requiresKey": true,
"contextLimit": 16000,
"maxOutputTokens": 2048,
"concurrency": 8,
"revision": 7,
"source": "manual",
"createdAt": "2026-10-31T16:36:46.574Z",
"updatedAt": "2026-11-03T05:25:12.680Z",
"hasKey": true,
"credentialRevision": 2,
"credentialStorage": "memory",
"savedCredential": {
"storage": "windows-user-dpapi",
"status": "source_changed",
"enabled": true,
"connectionRevision": 1,
"credentialRevision": 1,
"savedAt": "2026-10-31T16:36:46.853Z",
"message": "原保存块无法用于当前连接;重新填写后保存,或删除原保存。"
},
"status": "configured",
"activeRequests": 0,
"health": {
"state": "unverified"
},
"capabilities": {
"text": "protocol_declared",
"tools": "protocol_declared",
"streaming": "protocol_declared",
"vision": "unknown",
"audio": "unknown"
}
}
@@ -0,0 +1,53 @@
{
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"name": "apikey",
"brand": "Claude 兼容代理",
"protocol": "chat-completions",
"model": "claude-opus-5-5",
"capabilitySchema": 1,
"capabilityDeclarations": {
"text": "supported",
"tools": "supported",
"streaming": "supported",
"vision": "unknown",
"audio": "unknown"
},
"streaming": true,
"modelIdentityPolicy": "record",
"modelIdentityAliases": [],
"modelIdentityAliasSource": "",
"baseUrl": "https://api.apikey.fan",
"enabled": true,
"requiresKey": true,
"contextLimit": 16000,
"maxOutputTokens": 2048,
"concurrency": 8,
"revision": 8,
"source": "manual",
"createdAt": "2026-10-31T16:36:46.574Z",
"updatedAt": "2026-11-03T05:25:17.468Z",
"hasKey": true,
"credentialRevision": 2,
"credentialStorage": "memory",
"savedCredential": {
"storage": "windows-user-dpapi",
"status": "source_changed",
"enabled": true,
"connectionRevision": 1,
"credentialRevision": 1,
"savedAt": "2026-10-31T16:36:46.853Z",
"message": "原保存块无法用于当前连接;重新填写后保存,或删除原保存。"
},
"status": "configured",
"activeRequests": 0,
"health": {
"state": "unverified"
},
"capabilities": {
"text": "protocol_declared",
"tools": "protocol_declared",
"streaming": "protocol_declared",
"vision": "unknown",
"audio": "unknown"
}
}
@@ -0,0 +1,24 @@
{
"schema": 1,
"kind": "single-real-model-identity-preflight",
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"requestedModel": "claude-opus-5-5",
"endpoint": "https://api.apikey.fan",
"protocol": "chat-completions",
"modelIdentityPolicy": "require-match",
"aliases": [],
"maxRequests": 1,
"maxOutputTokens": 256,
"maxTaskTokens": 16000,
"contextLimit": 16000,
"maxDurationMs": 320000,
"maxAttempts": 1,
"poolSwitching": false,
"automaticReplay": false,
"engineeringImplementationSupplied": false,
"prompt": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"nonce": "64640876-aa7b-4952-b8f9-fe8b91f4e218",
"baselineSha256": "725f9d87bd6054952b1e484a84b539fb34528eafbaafcdfec0f423a65af8b5b4",
"originalIdentityDefaultAbsent": true,
"restoration": "Restore original parameters/selection through public APIs; absent identity settings become explicit equivalent record/[]/empty defaults. Preserve monotonic revisions and disclose this additive normalization."
}
@@ -0,0 +1,79 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { DatabaseSync } from 'node:sqlite';
import { digest, hash, canonical } from './desktop-f-state.mjs';
const root = path.resolve('.qa/live-retest-j');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const before = read('before.json'), after = read('after.json'), setup = read('setup.json');
const owned = read('owned.json'), result = read('result.json');
const db = new DatabaseSync('C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench/workbench.sqlite', { readOnly: true });
const checks = [], additions = [];
try {
db.exec('BEGIN');
for (const [name, old] of Object.entries(before.database.tables)) {
assert.equal(after.database.tables[name]?.schemaSha256, old.schemaSha256, name + ' original schema');
const current = db.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(r => !(name === 'metadata' && r.key === 'runtimeOwner'));
const oldIds = new Set(old.rows.map(r => r.id));
const key = (row, index) => row.id ?? row.key ?? row.seq ?? index;
let exact = 0, normalized = 0;
for (const originalRow of old.rows) {
const row = current.find((r, i) => key(r, i) === originalRow.id);
assert.ok(row, name + '/' + originalRow.id + ' retained');
if (digest(row) === originalRow.sha256) { exact++; continue; }
let normalizedRow;
if (name === 'projects') {
normalizedRow = { ...row, position: row.position - 1 };
} else if (name === 'metadata' && row.key === 'config') {
const actual = JSON.parse(row.value), original = setup.originalDiskConfig;
actual.configRevision = original.configRevision;
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelRegistry') {
const actual = JSON.parse(row.value), original = setup.originalRegistry;
actual.revision = original.revision;
const connection = actual.connections.find(c => c.id === setup.connection.id);
const previous = original.connections.find(c => c.id === setup.connection.id);
connection.revision = previous.revision; connection.updatedAt = previous.updatedAt;
for (const [field, defaultValue] of Object.entries({ modelIdentityPolicy: 'record', modelIdentityAliases: [], modelIdentityAliasSource: '' })) {
if (!Object.hasOwn(previous, field)) { assert.deepEqual(connection[field], defaultValue); delete connection[field]; }
}
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelAttempts') {
const actual = JSON.parse(row.value), added = actual.filter(a => a.sessionId === owned.session.id);
assert.equal(added.length, 1); assert.equal(added[0].id, read('attempts.json')[0].id);
assert.deepEqual(actual.filter(a => a.sessionId !== owned.session.id), setup.originalAttempts);
normalizedRow = { key: row.key, value: JSON.stringify(setup.originalAttempts) };
} else if (name === 'sqlite_sequence' && row.name === 'events') {
assert.equal(row.seq, after.eventCursor); normalizedRow = { ...row, seq: before.eventCursor };
} else assert.fail('Unexplained original change ' + name + '/' + originalRow.id);
assert.equal(digest(normalizedRow), originalRow.sha256, name + '/' + originalRow.id + ' exact after declared normalization');
normalized++;
}
for (const [index, row] of current.entries()) if (!oldIds.has(key(row, index))) {
if (name === 'projects') assert.equal(row.id, owned.project.id);
else if (name === 'sessions') assert.equal(row.id, owned.session.id);
else if (name === 'records' || name === 'events') assert.equal(row.session_id ?? row.sessionId, owned.session.id);
else assert.fail('Unexplained added row ' + name);
additions.push({ table: name, id: key(row, index), sha256: digest(row) });
}
checks.push({ table: name, original: old.count, current: current.length, exact, normalized });
}
db.exec('ROLLBACK');
} finally { db.close(); }
assert.equal(after.projects, before.projects + 1);
assert.equal(after.database.sessionIds.length, before.database.sessionIds.length + 1);
assert.deepEqual(after.persistent.files, before.persistent.files, 'Original public disk config/project files');
assert.equal(result.requests, 1); assert.equal(result.actualTools, 0);
const receipt = { passed: true, baselineSha256: hash(fs.readFileSync(path.join(root, 'before.json'))),
afterSha256: hash(fs.readFileSync(path.join(root, 'after.json'))), checks, additions,
declaredNormalizations: ['One owned project inserts at position 0; original project positions shift by exactly one.',
'Config/registry/connection revisions increase monotonically; original public values restored.',
'Previously absent identity defaults are explicitly record/[]/empty; original behavior restored.',
'Exactly one owned attempt appended; event sequence grows only by owned events.'],
originalExportsExact: before.exports.length, originalArtifactsExact: before.persistent.artifacts.length,
noCredentialAccess: true, noHostRestartOrActivation: true };
fs.writeFileSync(path.join(root, 'state-audit.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
console.log(JSON.stringify({ passed: true, checks, newRows: additions.length, originalExports: before.exports.length,
originalArtifacts: before.persistent.artifacts.length, requests: result.requests }));
@@ -0,0 +1,83 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { DatabaseSync } from 'node:sqlite';
import { digest, hash, canonical } from './desktop-f-state.mjs';
const root = path.resolve('.qa/live-retest-j');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const before = read('before.json'), after = read('after.json'), setup = read('setup.json');
const owned = read('owned.json'), result = read('result.json');
const db = new DatabaseSync('C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench/workbench.sqlite', { readOnly: true });
const checks = [], additions = [];
try {
db.exec('BEGIN');
for (const [name, old] of Object.entries(before.database.tables)) {
assert.equal(after.database.tables[name]?.schemaSha256, old.schemaSha256, name + ' original schema');
const current = db.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(r => !(name === 'metadata' && r.key === 'runtimeOwner'));
const oldIds = new Set(old.rows.map(r => r.id));
const key = (row, index) => row.id ?? row.key ?? row.seq ?? index;
let exact = 0, normalized = 0;
for (const originalRow of old.rows) {
const row = current.find((r, i) => key(r, i) === originalRow.id);
assert.ok(row, name + '/' + originalRow.id + ' retained');
if (digest(row) === originalRow.sha256) { exact++; continue; }
let normalizedRow;
if (name === 'projects') {
normalizedRow = { ...row, position: row.position - 1 };
} else if (name === 'metadata' && row.key === 'config') {
const actual = JSON.parse(row.value), original = setup.originalDiskConfig;
actual.configRevision = original.configRevision;
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelRegistry') {
const actual = JSON.parse(row.value), original = setup.originalRegistry;
actual.revision = original.revision;
const connection = actual.connections.find(c => c.id === setup.connection.id);
const previous = original.connections.find(c => c.id === setup.connection.id);
connection.revision = previous.revision; connection.updatedAt = previous.updatedAt;
for (const [field, defaultValue] of Object.entries({ modelIdentityPolicy: 'record', modelIdentityAliases: [], modelIdentityAliasSource: '' })) {
if (!Object.hasOwn(previous, field)) { assert.deepEqual(connection[field], defaultValue); delete connection[field]; }
}
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelAttempts') {
const actual = JSON.parse(row.value), added = actual.filter(a => a.sessionId === owned.session.id);
assert.equal(added.length, 1); assert.equal(added[0].id, read('attempts.json')[0].id);
assert.deepEqual(actual.filter(a => a.sessionId !== owned.session.id), setup.originalAttempts);
normalizedRow = { key: row.key, value: JSON.stringify(setup.originalAttempts) };
} else if (name === 'sqlite_sequence' && row.name === 'events') {
assert.equal(row.seq, after.eventCursor); normalizedRow = { ...row, seq: before.eventCursor };
} else assert.fail('Unexplained original change ' + name + '/' + originalRow.id);
assert.equal(digest(normalizedRow), originalRow.sha256, name + '/' + originalRow.id + ' exact after declared normalization');
normalized++;
}
for (const [index, row] of current.entries()) if (!oldIds.has(key(row, index))) {
if (name === 'projects') assert.equal(row.id, owned.project.id);
else if (name === 'sessions') assert.equal(row.id, owned.session.id);
else if (name === 'records' || name === 'events') assert.equal(row.session_id ?? row.sessionId, owned.session.id);
else if (name === 'outbox') {
const event = db.prepare('SELECT session_id FROM events WHERE seq=?').get(row.seq);
assert.equal(event?.session_id, owned.session.id, 'Outbox references an owned event');
}
else assert.fail('Unexplained added row ' + name);
additions.push({ table: name, id: key(row, index), sha256: digest(row) });
}
checks.push({ table: name, original: old.count, current: current.length, exact, normalized });
}
db.exec('ROLLBACK');
} finally { db.close(); }
assert.equal(after.projects, before.projects + 1);
assert.equal(after.database.sessionIds.length, before.database.sessionIds.length + 1);
assert.deepEqual(after.persistent.files, before.persistent.files, 'Original public disk config/project files');
assert.equal(result.requests, 1); assert.equal(result.actualTools, 0);
const receipt = { passed: true, baselineSha256: hash(fs.readFileSync(path.join(root, 'before.json'))),
afterSha256: hash(fs.readFileSync(path.join(root, 'after.json'))), checks, additions,
declaredNormalizations: ['One owned project inserts at position 0; original project positions shift by exactly one.',
'Config/registry/connection revisions increase monotonically; original public values restored.',
'Previously absent identity defaults are explicitly record/[]/empty; original behavior restored.',
'Exactly one owned attempt appended; event sequence grows only by owned events.'],
originalExportsExact: before.exports.length, originalArtifactsExact: before.persistent.artifacts.length,
noCredentialAccess: true, noHostRestartOrActivation: true };
fs.writeFileSync(path.join(root, 'state-audit.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
console.log(JSON.stringify({ passed: true, checks, newRows: additions.length, originalExports: before.exports.length,
originalArtifacts: before.persistent.artifacts.length, requests: result.requests }));
@@ -0,0 +1,84 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { DatabaseSync } from 'node:sqlite';
import { digest, hash, canonical } from './desktop-f-state.mjs';
const root = path.resolve('.qa/live-retest-j');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const before = read('before.json'), after = read('after.json'), setup = read('setup.json');
const owned = read('owned.json'), result = read('result.json');
const db = new DatabaseSync('C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench/workbench.sqlite', { readOnly: true });
const checks = [], additions = [];
try {
db.exec('BEGIN');
for (const [name, old] of Object.entries(before.database.tables)) {
assert.equal(after.database.tables[name]?.schemaSha256, old.schemaSha256, name + ' original schema');
const current = db.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(r => !(name === 'metadata' && r.key === 'runtimeOwner'));
const oldIds = new Set(old.rows.map(r => r.id));
const key = (row, index) => row.id ?? row.key ?? row.seq ?? index;
let exact = 0, normalized = 0;
for (const originalRow of old.rows) {
if (name === 'sqlite_sequence') { assert.equal(current.length, 1); assert.equal(current[0].name, 'events'); }
const row = name === 'sqlite_sequence' ? current[0] : current.find((r, i) => key(r, i) === originalRow.id);
assert.ok(row, name + '/' + originalRow.id + ' retained');
if (digest(row) === originalRow.sha256) { exact++; continue; }
let normalizedRow;
if (name === 'projects') {
normalizedRow = { ...row, position: row.position - 1 };
} else if (name === 'metadata' && row.key === 'config') {
const actual = JSON.parse(row.value), original = setup.originalDiskConfig;
actual.configRevision = original.configRevision;
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelRegistry') {
const actual = JSON.parse(row.value), original = setup.originalRegistry;
actual.revision = original.revision;
const connection = actual.connections.find(c => c.id === setup.connection.id);
const previous = original.connections.find(c => c.id === setup.connection.id);
connection.revision = previous.revision; connection.updatedAt = previous.updatedAt;
for (const [field, defaultValue] of Object.entries({ modelIdentityPolicy: 'record', modelIdentityAliases: [], modelIdentityAliasSource: '' })) {
if (!Object.hasOwn(previous, field)) { assert.deepEqual(connection[field], defaultValue); delete connection[field]; }
}
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelAttempts') {
const actual = JSON.parse(row.value), added = actual.filter(a => a.sessionId === owned.session.id);
assert.equal(added.length, 1); assert.equal(added[0].id, read('attempts.json')[0].id);
assert.deepEqual(actual.filter(a => a.sessionId !== owned.session.id), setup.originalAttempts);
normalizedRow = { key: row.key, value: JSON.stringify(setup.originalAttempts) };
} else if (name === 'sqlite_sequence' && row.name === 'events') {
assert.equal(row.seq, after.eventCursor); normalizedRow = { ...row, seq: before.eventCursor };
} else assert.fail('Unexplained original change ' + name + '/' + originalRow.id);
assert.equal(digest(normalizedRow), originalRow.sha256, name + '/' + originalRow.id + ' exact after declared normalization');
normalized++;
}
for (const [index, row] of current.entries()) if (name !== 'sqlite_sequence' && !oldIds.has(key(row, index))) {
if (name === 'projects') assert.equal(row.id, owned.project.id);
else if (name === 'sessions') assert.equal(row.id, owned.session.id);
else if (name === 'records' || name === 'events') assert.equal(row.session_id ?? row.sessionId, owned.session.id);
else if (name === 'outbox') {
const event = db.prepare('SELECT session_id FROM events WHERE seq=?').get(row.seq);
assert.equal(event?.session_id, owned.session.id, 'Outbox references an owned event');
}
else assert.fail('Unexplained added row ' + name);
additions.push({ table: name, id: key(row, index), sha256: digest(row) });
}
checks.push({ table: name, original: old.count, current: current.length, exact, normalized });
}
db.exec('ROLLBACK');
} finally { db.close(); }
assert.equal(after.projects, before.projects + 1);
assert.equal(after.database.sessionIds.length, before.database.sessionIds.length + 1);
assert.deepEqual(after.persistent.files, before.persistent.files, 'Original public disk config/project files');
assert.equal(result.requests, 1); assert.equal(result.actualTools, 0);
const receipt = { passed: true, baselineSha256: hash(fs.readFileSync(path.join(root, 'before.json'))),
afterSha256: hash(fs.readFileSync(path.join(root, 'after.json'))), checks, additions,
declaredNormalizations: ['One owned project inserts at position 0; original project positions shift by exactly one.',
'Config/registry/connection revisions increase monotonically; original public values restored.',
'Previously absent identity defaults are explicitly record/[]/empty; original behavior restored.',
'Exactly one owned attempt appended; event sequence grows only by owned events.'],
originalExportsExact: before.exports.length, originalArtifactsExact: before.persistent.artifacts.length,
noCredentialAccess: true, noHostRestartOrActivation: true };
fs.writeFileSync(path.join(root, 'state-audit.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
console.log(JSON.stringify({ passed: true, checks, newRows: additions.length, originalExports: before.exports.length,
originalArtifacts: before.persistent.artifacts.length, requests: result.requests }));
@@ -0,0 +1,96 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { DatabaseSync } from 'node:sqlite';
import { digest, hash, canonical } from './desktop-f-state.mjs';
const root = path.resolve('.qa/live-retest-j');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const before = read('before.json'), after = read('after.json'), setup = read('setup.json');
const owned = read('owned.json'), result = read('result.json');
const db = new DatabaseSync('C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench/workbench.sqlite', { readOnly: true });
const checks = [], additions = [];
try {
db.exec('BEGIN');
for (const [name, old] of Object.entries(before.database.tables)) {
assert.equal(after.database.tables[name]?.schemaSha256, old.schemaSha256, name + ' original schema');
const current = db.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(r => !(name === 'metadata' && r.key === 'runtimeOwner'));
const oldIds = new Set(old.rows.map(r => r.id));
const key = (row, index) => row.id ?? row.key ?? row.seq ?? index;
let exact = 0, normalized = 0;
for (const originalRow of old.rows) {
if (name === 'sqlite_sequence') { assert.equal(current.length, 1); assert.equal(current[0].name, 'events'); }
const row = name === 'sqlite_sequence' ? current[0] : current.find((r, i) => key(r, i) === originalRow.id);
assert.ok(row, name + '/' + originalRow.id + ' retained');
if (digest(row) === originalRow.sha256) { exact++; continue; }
let normalizedRow;
if (name === 'projects') {
normalizedRow = { ...row, position: row.position - 1 };
} else if (name === 'metadata' && row.key === 'config') {
const actual = JSON.parse(row.value), original = setup.originalDiskConfig;
actual.configRevision = original.configRevision;
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelRegistry') {
const actual = JSON.parse(row.value), original = setup.originalRegistry;
actual.revision = original.revision;
const connection = actual.connections.find(c => c.id === setup.connection.id);
const previous = original.connections.find(c => c.id === setup.connection.id);
connection.revision = previous.revision; connection.updatedAt = previous.updatedAt;
for (const [field, defaultValue] of Object.entries({ modelIdentityPolicy: 'record', modelIdentityAliases: [], modelIdentityAliasSource: '' })) {
if (!Object.hasOwn(previous, field)) { assert.deepEqual(connection[field], defaultValue); delete connection[field]; }
}
assert.deepEqual(canonical(actual), canonical(original));
normalizedRow = { key: row.key, value: JSON.stringify(original) };
} else if (name === 'metadata' && row.key === 'modelAttempts') {
const actual = JSON.parse(row.value), added = actual.filter(a => a.sessionId === owned.session.id);
assert.equal(added.length, 1); assert.equal(added[0].id, read('attempts.json')[0].id);
assert.deepEqual(actual.filter(a => a.sessionId !== owned.session.id), setup.originalAttempts);
normalizedRow = { key: row.key, value: JSON.stringify(setup.originalAttempts) };
} else if (name === 'sqlite_sequence' && row.name === 'events') {
assert.equal(row.seq, after.eventCursor); normalizedRow = { ...row, seq: before.eventCursor };
} else assert.fail('Unexplained original change ' + name + '/' + originalRow.id);
assert.equal(digest(normalizedRow), originalRow.sha256, name + '/' + originalRow.id + ' exact after declared normalization');
normalized++;
}
for (const [index, row] of current.entries()) if (name !== 'sqlite_sequence' && !oldIds.has(key(row, index))) {
if (name === 'projects') assert.equal(row.id, owned.project.id);
else if (name === 'sessions') assert.equal(row.id, owned.session.id);
else if (name === 'records' || name === 'events') assert.equal(row.session_id ?? row.sessionId, owned.session.id);
else if (name === 'outbox') {
const event = db.prepare('SELECT session_id FROM events WHERE seq=?').get(row.seq);
assert.equal(event?.session_id, owned.session.id, 'Outbox references an owned event');
}
else assert.fail('Unexplained added row ' + name);
additions.push({ table: name, id: key(row, index), sha256: digest(row) });
}
checks.push({ table: name, original: old.count, current: current.length, exact, normalized });
}
db.exec('ROLLBACK');
} finally { db.close(); }
assert.equal(after.projects, before.projects + 1);
assert.equal(after.database.sessionIds.length, before.database.sessionIds.length + 1);
const actualDiskConfigBytes = fs.readFileSync('C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench/config.json');
assert.equal(hash(actualDiskConfigBytes), after.persistent.files.find(f => f.path === 'config.json').sha256);
const actualDiskConfig = JSON.parse(actualDiskConfigBytes);
const diskConfigRevisions = { original: setup.originalDiskConfig.configRevision, actual: actualDiskConfig.configRevision };
assert.ok(diskConfigRevisions.actual > diskConfigRevisions.original);
actualDiskConfig.configRevision = setup.originalDiskConfig.configRevision;
assert.deepEqual(canonical(actualDiskConfig), canonical(setup.originalDiskConfig));
assert.equal(hash(JSON.stringify(setup.originalDiskConfig, null, 2)), before.persistent.files.find(f => f.path === 'config.json').sha256,
'Reconstructed original compatibility export exactly matches the pre-test byte SHA');
for (const file of before.persistent.files.filter(f => f.path !== 'config.json')) {
assert.deepEqual(after.persistent.files.find(f => f.path === file.path), file);
}
assert.equal(result.requests, 1); assert.equal(result.actualTools, 0);
const receipt = { passed: true, baselineSha256: hash(fs.readFileSync(path.join(root, 'before.json'))),
afterSha256: hash(fs.readFileSync(path.join(root, 'after.json'))), checks, additions,
declaredNormalizations: ['One owned project inserts at position 0; original project positions shift by exactly one.',
'Config/registry/connection revisions increase monotonically; original public values restored.',
'Previously absent identity defaults are explicitly record/[]/empty; original behavior restored.',
'Exactly one owned attempt appended; event sequence grows only by owned events.'],
diskConfigRevisions, compatibilityExport: 'Exact original-byte SHA reconstructed; only monotonic configRevision 48 to 52 differs.',
originalExportsExact: before.exports.length, originalArtifactsExact: before.persistent.artifacts.length,
noCredentialAccess: true, noHostRestartOrActivation: true };
fs.writeFileSync(path.join(root, 'state-audit.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
console.log(JSON.stringify({ passed: true, checks, newRows: additions.length, originalExports: before.exports.length,
originalArtifacts: before.persistent.artifacts.length, requests: result.requests }));
@@ -0,0 +1,62 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { DatabaseSync } from 'node:sqlite';
import { snapshotPersistentData } from '../src/core/desktop/install-manager.mjs';
export const hash = bytes => createHash('sha256').update(bytes).digest('hex');
export const canonical = value => Array.isArray(value) ? value.map(canonical) : value && typeof value === 'object' ? Object.fromEntries(Object.keys(value).sort().map(key => [key, canonical(value[key])])) : value;
export const digest = value => hash(JSON.stringify(canonical(value)));
export function databaseSnapshot(dataRoot) {
const database = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true }); database.exec('BEGIN');
try {
assert.equal(database.prepare('PRAGMA quick_check').get().quick_check, 'ok');
const tables = {};
for (const { name, sql } of database.prepare("SELECT name,sql FROM sqlite_schema WHERE type='table' ORDER BY name").all()) {
assert.match(name, /^[a-z_]+$/);
const rows = database.prepare('SELECT * FROM "' + name + '" ORDER BY rowid').all().filter(row => !(name === 'metadata' && row.key === 'runtimeOwner'));
tables[name] = { count: rows.length, schemaSha256: hash(sql), sha256: digest(rows), rows: rows.map((row, index) => ({ id: row.id ?? row.key ?? row.seq ?? index, ...(row.kind ? { kind: row.kind } : {}), sha256: digest(row) })) };
}
const sessionIds = database.prepare('SELECT id FROM sessions ORDER BY id').all().map(row => row.id);
const owner = database.prepare("SELECT value FROM metadata WHERE key='runtimeOwner'").get();
return { tables, sessionIds, ownerSha256: owner ? digest(owner) : null, scope: 'Every original table schema and row field hashed, excluding only runtimeOwner lifecycle metadata. No row payload or credential is returned.' };
} finally { database.exec('ROLLBACK'); database.close(); }
}
export async function publicSnapshot(url, dataRoot) {
const healthResponse = await fetch(url + '/api/health', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(healthResponse.status, 200);
const health = await healthResponse.json(), bootResponse = await fetch(url + '/api/bootstrap', { headers: { Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.equal(bootResponse.status, 200);
const bootstrap = await bootResponse.json(); const token = bootstrap.token;
const api = async route => { const response = await fetch(url + '/api' + route, { headers: { 'X-Workbench-Token': token, Connection: 'close' }, signal: AbortSignal.timeout(20000) }); assert.ok(response.ok, route + ': HTTP ' + response.status); return response.json(); };
const database = databaseSnapshot(dataRoot), exports = [];
for (const id of database.sessionIds) {
const report = await api('/sessions/' + id + '/export');
exports.push({ id, project: digest(report.project), session: digest(report.session), execution: digest(report.execution) });
}
const center = await api('/model-center');
// This is the documented public model-center view; Provider's private map and
// API key are never accessed. Only this public object is retained for schema-aware comparison.
const modelCenter = structuredClone(center);
return { observedAt: new Date().toISOString(), version: health.version, pid: health.pid, runtimeRoot: bootstrap.runtimeRoot,
configSha256: digest(bootstrap.config), projectsSha256: digest(bootstrap.projects), sessionsSha256: digest(bootstrap.sessions), modelCenterSha256: digest(modelCenter), modelCenter,
projects: bootstrap.projects.length, visibleSessions: bootstrap.sessions.length, hasKey: !!bootstrap.config.hasKey,
active: bootstrap.sessions.filter(value => ['running', 'awaiting_approval', 'stopping'].includes(value.status)).map(value => ({ id: value.id, status: value.status })),
storage: bootstrap.storage, eventCursor: bootstrap.eventCursor, database, exports, persistent: snapshotPersistentData(dataRoot),
scope: 'Read-only public state, every original session export digest, original table/row/schema hashes and every original artifact byte hash. No credential extraction, model probe, execution or mutation.' };
}
export function compareOriginalState(before, after, { modelCenterSchemaChange = false } = {}) {
for (const field of ['pid', 'hasKey', 'configSha256', 'projectsSha256', 'sessionsSha256', 'eventCursor']) assert.deepEqual(after[field], before[field], field);
assert.deepEqual(canonical(after.database.tables), canonical(before.database.tables), 'All original table schemas and every persistent row');
assert.deepEqual(after.database.sessionIds, before.database.sessionIds); assert.deepEqual(after.exports, before.exports);
assert.deepEqual(after.persistent, before.persistent, 'Every original artifact byte, persistent row and public disk config');
if (modelCenterSchemaChange) {
const original = structuredClone(before.modelCenter), next = structuredClone(after.modelCenter);
// 1.15 changes only the public explanatory text about optional DPAPI storage.
// Existing IDs, routes, revisions, credentials-present bits and all original attempts remain exact.
assert.match(next.storage.restart, /临时凭据.*已明确本机加密保存/);
next.storage.restart = original.storage.restart;
assert.deepEqual(next, original, 'Original public model center, except versioned storage explanation');
return { modelCenterChange: { path: '/storage/restart', original: before.modelCenter.storage.restart, actual: after.modelCenter.storage.restart }, originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact' };
}
assert.equal(after.modelCenterSha256, before.modelCenterSha256);
return { originalRows: 'exact', originalExports: 'exact', originalArtifactBytes: 'exact', originalModelCenter: 'exact' };
}
@@ -0,0 +1,208 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { randomUUID } from 'node:crypto';
import { execFileSync } from 'node:child_process';
import { DatabaseSync } from 'node:sqlite';
import { publicSnapshot, hash, digest, canonical } from './desktop-f-state.mjs';
const root = path.resolve('.qa/live-retest-j');
const origin = 'http://127.0.0.1:4318';
const dataRoot = 'C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench';
const connectionId = '09b0293b-faad-45c3-832d-7c8b615813aa';
assert.equal(fs.existsSync(root), false, 'Do not overwrite or replay a real sample.');
fs.mkdirSync(root);
const save = (name, value) => fs.writeFileSync(path.join(root, name), JSON.stringify(value, null, 2) + '\n', { flag: 'wx' });
const boot = await (await fetch(origin + '/api/bootstrap')).json();
const api = async (route, input) => {
const response = await fetch(origin + '/api' + route, {
method: input === undefined ? 'GET' : 'POST',
headers: { 'X-Workbench-Token': boot.token, 'Content-Type': 'application/json', Connection: 'close' },
...(input === undefined ? {} : { body: JSON.stringify(input) }), signal: AbortSignal.timeout(30000),
});
const value = await response.json();
assert.ok(response.ok, route + ': ' + (value.error ?? response.status));
return value;
};
const readMeta = name => {
const db = new DatabaseSync(path.join(dataRoot, 'workbench.sqlite'), { readOnly: true });
try { return JSON.parse(db.prepare('SELECT value FROM metadata WHERE key=?').get(name).value); }
finally { db.close(); }
};
const attemptsBefore = readMeta('modelAttempts');
const registryBefore = readMeta('modelRegistry');
const configBefore = readMeta('config');
const release = JSON.parse(fs.readFileSync('docs/delivery-integrity-i-release-identity.json'));
assert.equal(boot.version, '1.24.2');
assert.equal(boot.runtimeRoot, release.installedRuntimeRoot);
const host = await api('/host/status');
assert.equal(host.activity.active, false);
assert.equal(host.identity.pid, 36552);
const before = await publicSnapshot(origin, dataRoot);
assert.deepEqual(before.active, []);
const centerBefore = await api('/model-center');
const original = centerBefore.connections.find(c => c.id === connectionId);
assert.equal(original.name, 'apikey');
assert.equal(original.model, 'claude-opus-5-5');
assert.equal(original.protocol, 'chat-completions');
assert.equal(original.hasKey, true);
assert.equal(original.enabled, true);
const installedManifest = JSON.parse(fs.readFileSync(path.join(boot.runtimeRoot, 'MANIFEST.json')));
const runtimeFiles = installedManifest.files.filter(f => f.path.startsWith('dist-') || f.path === 'package.json');
assert.ok(runtimeFiles.length >= 22);
for (const file of runtimeFiles) assert.equal(hash(fs.readFileSync(path.join(boot.runtimeRoot, file.path))), file.sha256, file.path);
save('before.json', before);
save('setup.json', { version: boot.version, pid: before.pid, runtime: boot.runtimeRoot, connection: original,
originalConfig: boot.config, originalSelection: centerBefore.selected, originalRegistry: registryBefore,
originalAttempts: attemptsBefore, originalDiskConfig: configBefore,
sourceCommit: execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8', windowsHide: true }).trim(),
runtimeFiles, startedAt: new Date().toISOString(), keyHandling: 'Original Provider only; no credential extraction, copy, decryption, or restart.' });
const nonce = randomUUID();
save('contract.json', { schema: 1, kind: 'single-real-model-identity-preflight', connectionId,
requestedModel: original.model, endpoint: original.baseUrl, protocol: original.protocol,
modelIdentityPolicy: 'require-match', aliases: [], maxRequests: 1, maxOutputTokens: 256,
maxTaskTokens: 16000, contextLimit: 16000, maxDurationMs: 320000, maxAttempts: 1,
poolSwitching: false, automaticReplay: false, engineeringImplementationSupplied: false,
prompt: '这是独立连接身份预检,不是工程任务。只回复 OK ' + nonce + ',不要调用工具、读写文件或执行命令。',
nonce, baselineSha256: hash(fs.readFileSync(path.join(root, 'before.json'))),
originalIdentityDefaultAbsent: !Object.hasOwn(original, 'modelIdentityPolicy'),
restoration: 'Restore original parameters/selection through public APIs; absent identity settings become explicit equivalent record/[]/empty defaults. Preserve monotonic revisions and disclose this additive normalization.' });
const fields = ['id', 'name', 'brand', 'model', 'protocol', 'baseUrl', 'enabled', 'requiresKey', 'streaming',
'capabilityDeclarations', 'nativeParameters', 'outputTokenField', 'contextLimit', 'maxOutputTokens', 'concurrency',
'modelIdentityPolicy', 'modelIdentityAliases', 'modelIdentityAliasSource'];
const connectionInput = value => Object.fromEntries(fields.filter(k => Object.hasOwn(value, k)).map(k => [k, value[k]]));
let configured, project, session, state, result, configurationChanged = false;
const observedStatuses = [];
try {
configured = await api('/model-center/connections', { ...connectionInput(original), revision: original.revision,
modelIdentityPolicy: 'require-match', modelIdentityAliases: [], modelIdentityAliasSource: '' });
configurationChanged = true;
assert.equal(configured.hasKey, true);
assert.equal(configured.credentialRevision, original.credentialRevision);
await api('/config', { ...boot.config, maxSteps: 1, maxOutputTokens: 256, contextLimit: 16000,
maxRunTokens: 16000, maxTaskTokens: 16000, maxRunDurationMs: 320000 });
await api('/model-center/select', { type: 'connection', id: connectionId });
const frozenCenter = await api('/model-center');
assert.deepEqual(frozenCenter.selected, { type: 'connection', id: connectionId });
save('connection-frozen.json', configured);
const projectRoot = path.join(root, 'identity-only');
fs.mkdirSync(projectRoot);
fs.writeFileSync(path.join(projectRoot, 'README.md'), '# Isolated identity preflight\nNo engineering task or commands are authorized in this sample.\n', { flag: 'wx' });
project = await api('/projects', { root: projectRoot });
session = await api('/sessions', { projectId: project.id });
save('owned.json', { project, session });
const contract = JSON.parse(fs.readFileSync(path.join(root, 'contract.json')));
await api('/sessions/' + session.id + '/messages', { content: contract.prompt });
const deadline = Date.now() + 340000;
while (true) {
state = await api('/sessions/' + session.id);
const attempts = readMeta('modelAttempts').filter(a => !attemptsBefore.some(old => old.id === a.id));
assert.ok(attempts.length <= 1, 'Never dispatch more than the sealed single request.');
for (const attempt of attempts) {
assert.equal(attempt.sessionId, session.id);
assert.equal(attempt.connectionId, connectionId);
assert.equal(attempt.ordinal, 1);
}
const progress = { status: state.status, attempts: attempts.length,
identity: attempts[0]?.modelIdentity?.status ?? null, reportedTokens: attempts[0]?.usage?.total_tokens ?? null };
if (!observedStatuses.length || JSON.stringify(progress) !== JSON.stringify(observedStatuses.at(-1))) {
observedStatuses.push(progress); console.log(JSON.stringify(progress));
}
if (!['running', 'stopping'].includes(state.status)) break;
assert.ok(Date.now() < deadline, 'Single-request preflight deadline reached; do not retry.');
await new Promise(resolve => setTimeout(resolve, 500));
}
const attempts = readMeta('modelAttempts').filter(a => !attemptsBefore.some(old => old.id === a.id));
save('attempts.json', attempts);
save('session.json', state);
save('session-export.json', await api('/sessions/' + session.id + '/export'));
const captures = [];
for (const attempt of attempts) for (const kind of ['request', 'response']) {
const id = attempt[kind + 'ArtifactId'];
if (!id) continue;
let content = '', page, offset = 0;
do { page = await api('/artifacts/' + id + '?session=' + session.id + '&offset=' + offset + '&limit=16000');
content += page.content; offset += page.content.length;
} while (page.truncated);
assert.equal(hash(content), page.sha256, 'Captured original artifact SHA');
const file = kind + (kind === 'request' ? '.json' : attempt.streaming ? '.sse' : '.txt');
fs.writeFileSync(path.join(root, file), content, { flag: 'wx' });
captures.push({ kind, file, id, sha256: page.sha256, bytes: Buffer.byteLength(content) });
if (kind === 'request') {
const body = JSON.parse(content);
assert.equal(body.model, original.model);
assert.equal(body.max_tokens ?? body.max_completion_tokens, 256);
assert.equal(hash(JSON.stringify(body)), attempt.requestSha256);
} else assert.equal(page.sha256, attempt.responseSha256);
}
const attempt = attempts[0];
const usage = state.execution.task?.usage;
const actualTools = state.execution.progress.totalTools;
const identityPassed = attempts.length === 1 && attempt.status === 'completed'
&& attempt.modelIdentity?.status === 'matched' && attempt.modelIdentity.complete === true
&& attempt.modelIdentity.policy === 'require-match' && attempt.responseRedacted === false
&& captures.length === 2 && attempt.usageStatus === 'reported' && attempt.usage?.total_tokens <= 16000
&& actualTools === 0;
result = { identityPassed, engineeringTestAllowed: identityPassed,
testedAt: new Date().toISOString(), version: boot.version, pid: before.pid, connectionId,
connectionName: original.name, requestedModel: original.model, reportedModels: attempt?.modelIdentity?.reportedModels ?? [],
identityStatus: attempt?.modelIdentity?.status ?? 'not-dispatched', sessionId: session.id,
taskId: state.execution.task?.id, sessionStatus: state.status, stopReason: state.failure?.kind ?? state.execution.runs?.at(-1)?.stopReason,
requests: attempts.length, usageStatus: attempt?.usageStatus ?? 'not_dispatched', usage: attempt?.usage ?? null,
taskUsage: usage, actualTools, captures,
noRetry: attempts.length <= 1, noPoolSwitch: attempts.every(a => a.connectionId === connectionId && !a.poolId),
reportedIdentifierOnly: true, modelWeightsAuthenticated: false, realEngineeringDeliveryTested: false,
purgeBenefitTested: false, observedStatuses };
save('result.json', result);
console.log(JSON.stringify(result));
} catch (error) {
save('driver-error.json', { name: error.name, message: error.message, stack: error.stack, at: new Date().toISOString() });
throw error;
} finally {
if (session) {
const live = await api('/sessions/' + session.id);
if (['running', 'stopping', 'awaiting_approval'].includes(live.status)) await api('/sessions/' + session.id + '/stop', {});
}
assert.equal((await api('/host/status')).activity.active, false, 'Do not override another active task.');
if (configurationChanged) {
const current = (await api('/model-center')).connections.find(c => c.id === connectionId);
assert.equal(current.revision, configured.revision, 'Do not overwrite a user connection edit.');
const restored = await api('/model-center/connections', { ...connectionInput(original), revision: current.revision,
modelIdentityPolicy: original.modelIdentityPolicy ?? 'record', modelIdentityAliases: original.modelIdentityAliases ?? [],
modelIdentityAliasSource: original.modelIdentityAliasSource ?? '' });
assert.equal(restored.hasKey, true);
assert.equal(restored.credentialRevision, original.credentialRevision);
await api('/config', boot.config);
await api('/model-center/select', centerBefore.selected);
save('connection-restored.json', restored);
}
const after = await publicSnapshot(origin, dataRoot);
save('after.json', after);
assert.equal(after.pid, before.pid); assert.equal(after.version, before.version);
assert.equal(after.runtimeRoot, before.runtimeRoot); assert.equal(after.hasKey, before.hasKey); assert.deepEqual(after.active, []);
for (const item of before.exports) assert.deepEqual(after.exports.find(e => e.id === item.id), item, 'Original session export ' + item.id);
const artifactMap = new Map(after.persistent.artifacts.map(a => [a.path, a]));
for (const artifact of before.persistent.artifacts) assert.deepEqual(artifactMap.get(artifact.path), artifact, 'Original artifact bytes ' + artifact.path);
for (const name of ['records', 'events', 'outbox', 'sessions']) {
const rows = new Map(after.database.tables[name].rows.map(r => [r.id, r]));
for (const row of before.database.tables[name].rows) assert.deepEqual(rows.get(row.id), row, 'Original ' + name + '/' + row.id);
}
const restoredBoot = await api('/bootstrap');
const restoredConfig = { ...restoredBoot.config }; restoredConfig.configRevision = boot.config.configRevision;
assert.deepEqual(canonical(restoredConfig), canonical(boot.config));
assert.deepEqual(after.modelCenter.selected, centerBefore.selected);
assert.deepEqual(after.modelCenter.pools, centerBefore.pools);
const afterAttempts = readMeta('modelAttempts');
for (const attempt of attemptsBefore) assert.deepEqual(afterAttempts.find(a => a.id === attempt.id), attempt, 'Original attempt ' + attempt.id);
save('restoration.json', { passed: true, pid: after.pid, version: after.version, hasKey: after.hasKey, runtimeRoot: after.runtimeRoot,
originalExports: before.exports.length, originalArtifactFiles: before.persistent.artifacts.length,
originalAttempts: attemptsBefore.length, addedAttempts: afterAttempts.length - attemptsBefore.length,
originalRowsExact: ['records', 'events', 'outbox', 'sessions'], originalSelectionRestored: true,
originalConfigRestoredExceptMonotonicRevision: true, originalCredentialRevision: original.credentialRevision,
restoredCredentialRevision: after.modelCenter.connections.find(c => c.id === connectionId).credentialRevision,
publicIdentityDefaultMadeExplicit: !Object.hasOwn(original, 'modelIdentityPolicy'),
afterSha256: hash(fs.readFileSync(path.join(root, 'after.json'))) });
console.log(JSON.stringify({ restorationPassed: true, requests: afterAttempts.length - attemptsBefore.length,
originalExports: before.exports.length, originalArtifactFiles: before.persistent.artifacts.length }));
}
@@ -0,0 +1,60 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { hash } from './desktop-f-state.mjs';
const root = path.resolve('.qa/live-retest-j'), dest = path.resolve('docs/live-model-identity-j-evidence');
assert.equal(fs.existsSync(dest), false, 'Never overwrite sealed evidence.');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const result = read('result.json'), before = read('before.json'), after = read('after.json'), setup = read('setup.json');
assert.equal(result.requests, 1); assert.equal(result.identityPassed, false);
assert.equal(read('state-audit.json').passed, true); assert.equal(read('restoration.json').passed, true);
const pending = new Map(), entries = [];
function put(relative, raw) {
assert.equal(pending.has(relative), false); assert.equal(relative.split('/').includes('..'), false);
pending.set(relative, raw); entries.push({ path: relative, bytes: raw.length, sha256: hash(raw) });
}
const copy = (relative, file) => put(relative, fs.readFileSync(file));
const json = (relative, value) => put(relative, Buffer.from(JSON.stringify(value, null, 2) + '\n'));
for (const name of ['contract.json', 'owned.json', 'connection-frozen.json', 'connection-restored.json',
'attempts.json', 'result.json', 'request.json', 'response.sse', 'session.json', 'session-export.json', 'restoration.json', 'state-audit.json']) {
copy(name, path.join(root, name));
}
json('baseline-summary.json', {
beforeSha256: hash(fs.readFileSync(path.join(root, 'before.json'))), afterSha256: hash(fs.readFileSync(path.join(root, 'after.json'))),
setupSha256: hash(fs.readFileSync(path.join(root, 'setup.json'))), originalSourceCommit: setup.sourceCommit,
version: before.version, pid: before.pid, runtimeRoot: before.runtimeRoot,
originalCounts: { projects: before.projects, sessions: before.database.sessionIds.length,
records: before.database.tables.records.count, events: before.database.tables.events.count,
artifacts: before.persistent.artifacts.length, attempts: setup.originalAttempts.length },
actualCounts: { projects: after.projects, sessions: after.database.sessionIds.length,
records: after.database.tables.records.count, events: after.database.tables.events.count,
artifacts: after.persistent.artifacts.length, attempts: setup.originalAttempts.length + result.requests },
originalSelection: setup.originalSelection, actualSelection: after.modelCenter.selected,
originalConfig: setup.originalDiskConfig,
originalPublicFiles: before.persistent.files, actualPublicFiles: after.persistent.files,
privateBaseline: '.qa/live-retest-j/before.json', privateAfter: '.qa/live-retest-j/after.json',
excluded: 'Original user registry and complete pre-existing user state payloads; only their SHA and actual verification receipts are published. Credentials never accessed.',
});
json('runtime-identity.json', { version: setup.version, pid: setup.pid, runtime: setup.runtime,
sourceCommit: JSON.parse(fs.readFileSync('docs/delivery-integrity-i-release-identity.json')).sourceCommit,
experimentStartCommit: setup.sourceCommit, runtimeFiles: setup.runtimeFiles,
scope: 'Exact installed runtime input SHAs checked before dispatch; original host/Provider retained, no activation.' });
for (const name of ['preflight-j.mjs', 'audit-j-state.mjs', 'audit-j-state-first.mjs',
'audit-j-state-second.mjs', 'audit-j-state-third.mjs', 'desktop-f-state.mjs', 'seal-j.mjs']) copy('drivers/' + name, '.qa/' + name);
for (const [from, to] of [['preflight-j.log', 'preflight-output.txt'], ['audit-j-state.log', 'state-audit-first-failure.txt'],
['audit-j-state-v2.log', 'state-audit-second-failure.txt'], ['audit-j-state-v3.log', 'state-audit-third-failure.txt'],
['audit-j-state-v4.log', 'state-audit-passed.txt']]) copy('logs/' + to, '.qa/' + from);
copy('drivers/verify-live-model-identity-j.mjs', 'scripts/verify-live-model-identity-j.mjs');
const list = entries.sort((a, b) => a.path.localeCompare(b.path));
const manifest = { schemaVersion: 1, slice: 'live-model-identity-j', createdAt: new Date().toISOString(),
version: '1.24.2', sourceCommit: JSON.parse(fs.readFileSync('docs/delivery-integrity-i-release-identity.json')).sourceCommit,
requests: 1, reportedTokens: result.usage.total_tokens, identityPassed: false, engineeringTested: false, purgeBenefitTested: false,
count: list.length, bytes: list.reduce((n, e) => n + e.bytes, 0), entries: list,
scope: 'One actual configured apikey Claude-route request. Upstream identifier mismatch preserved; no authentication of model weights, no engineering/Purge claim, no credential export.' };
fs.mkdirSync(dest);
for (const [relative, raw] of pending) {
const target = path.join(dest, relative); fs.mkdirSync(path.dirname(target), { recursive: true }); fs.writeFileSync(target, raw, { flag: 'wx' });
}
fs.writeFileSync(path.join(dest, 'manifest.json'), JSON.stringify(manifest, null, 2) + '\n', { flag: 'wx' });
console.log(JSON.stringify({ passed: true, files: manifest.count, bytes: manifest.bytes,
manifestSha256: hash(fs.readFileSync(path.join(dest, 'manifest.json'))), requests: 1, reportedTokens: result.usage.total_tokens }));
@@ -0,0 +1,94 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fileURLToPath } from 'node:url';
// Offline verification only. This script never opens a model connection or reads credentials.
const repo = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const root = path.join(repo, 'docs/live-model-identity-j-evidence');
const sha = value => createHash('sha256').update(value).digest('hex');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const manifest = read('manifest.json');
const listed = new Set();
for (const file of manifest.entries) {
assert.equal(path.posix.isAbsolute(file.path), false);
assert.equal(file.path.includes('\\'), false);
assert.equal(file.path.split('/').includes('..'), false);
assert.equal(listed.has(file.path), false); listed.add(file.path);
const bytes = fs.readFileSync(path.join(root, file.path));
assert.equal(bytes.length, file.bytes, file.path + ' length');
assert.equal(sha(bytes), file.sha256, file.path + ' original bytes');
}
const actual = [];
function walk(relative = '') {
for (const entry of fs.readdirSync(path.join(root, relative), { withFileTypes: true })) {
const name = path.posix.join(relative, entry.name);
if (entry.isDirectory()) walk(name);
else { assert.ok(entry.isFile(), 'Only regular evidence files'); if (name !== 'manifest.json') actual.push(name); }
}
}
walk(); assert.deepEqual(actual.sort(), [...listed].sort());
assert.equal(manifest.count, listed.size);
assert.equal(manifest.bytes, manifest.entries.reduce((n, f) => n + f.bytes, 0));
const contract = read('contract.json'), result = read('result.json'), attempts = read('attempts.json');
const state = read('session.json'), exported = read('session-export.json');
const requestBytes = fs.readFileSync(path.join(root, 'request.json'));
const request = JSON.parse(requestBytes);
const response = fs.readFileSync(path.join(root, 'response.sse'));
assert.equal(contract.maxRequests, 1); assert.equal(contract.maxAttempts, 1);
assert.equal(contract.maxOutputTokens, 256); assert.equal(contract.maxTaskTokens, 16000);
assert.equal(contract.modelIdentityPolicy, 'require-match'); assert.deepEqual(contract.aliases, []);
assert.equal(contract.poolSwitching, false); assert.equal(contract.automaticReplay, false);
assert.equal(attempts.length, 1);
const attempt = attempts[0];
assert.equal(attempt.connectionId, contract.connectionId); assert.equal(attempt.poolId, null);
assert.equal(attempt.ordinal, 1); assert.equal(attempt.requestSha256, sha(JSON.stringify(request)));
assert.equal(attempt.responseSha256, sha(response)); assert.equal(attempt.responseRedacted, false);
assert.equal(request.model, contract.requestedModel); assert.equal(request.model, 'claude-opus-5-5');
assert.equal(request.max_tokens ?? request.max_completion_tokens, 256); assert.equal(request.stream, true);
const data = response.toString('utf8').split(/\r?\n/).filter(line => line.startsWith('data:')).map(line => line.slice(5).trim());
assert.equal(data.at(-1), '[DONE]');
const packets = data.filter(line => line !== '[DONE]').map(line => JSON.parse(line));
const models = [...new Set(packets.filter(p => Object.hasOwn(p, 'model')).map(p => p.model))];
assert.deepEqual(models, ['gpt-6.1-sol']); assert.notEqual(request.model, models[0]);
const rawUsage = packets.findLast(p => p.usage)?.usage;
const usage = Object.fromEntries(['prompt_tokens', 'completion_tokens', 'total_tokens'].map(key => [key, rawUsage[key]]));
assert.deepEqual(rawUsage.prompt_tokens_details, { cache_write_tokens: 4304 });
assert.deepEqual(usage, attempt.usage);
assert.equal(usage.prompt_tokens + usage.completion_tokens, usage.total_tokens);
assert.equal(usage.total_tokens, 4334); assert.ok(usage.total_tokens <= contract.maxTaskTokens);
assert.equal(packets.flatMap(p => p.choices ?? []).flatMap(c => c.delta?.tool_calls ?? []).length, 0);
const answer = packets.flatMap(p => p.choices ?? []).map(c => c.delta?.content ?? '').join('');
assert.equal(answer, 'OK ' + contract.nonce);
assert.equal(state.status, 'paused'); assert.equal(state.execution.run.stopReason, 'model_identity');
assert.equal(state.execution.progress.totalTools, 0); assert.equal(state.execution.accountedTaskTokens, 4334);
assert.deepEqual(state.execution.run.budget, { maxSteps: 1, maxDurationMs: 320000, maxTokens: 16000, maxTaskTokens: 16000 });
const consumption = state.execution.run.consumption;
assert.equal(consumption.length, 1); assert.equal(consumption[0].attemptId, attempt.id);
assert.deepEqual(consumption[0].usage, usage); assert.deepEqual(consumption[0].modelIdentity.reportedModels, models);
assert.equal(consumption[0].modelIdentity.policy, 'require-match'); assert.equal(consumption[0].modelIdentity.complete, true);
assert.equal(consumption[0].modelIdentity.status, 'mismatch');
assert.equal(consumption[0].modelIdentity.responseSource.sha256, sha(response));
assert.ok(consumption[0].localEstimate.inputTokens + consumption[0].localEstimate.outputTokens <= contract.maxTaskTokens);
assert.equal(attempt.status, 'failed'); assert.equal(attempt.diagnostic.kind, 'model_identity');
assert.equal(attempt.diagnostic.retryable, false); assert.equal(attempt.diagnostic.failoverAllowed, false);
assert.equal(result.identityPassed, false); assert.equal(result.engineeringTestAllowed, false);
assert.equal(result.realEngineeringDeliveryTested, false); assert.equal(result.purgeBenefitTested, false);
assert.equal(result.modelWeightsAuthenticated, false); assert.deepEqual(result.usage, usage);
assert.equal(exported.session.id, state.id); assert.deepEqual(exported.execution, state.execution);
for (const capture of result.captures) assert.equal(capture.sha256, sha(fs.readFileSync(path.join(root, capture.file))));
const restoration = read('restoration.json'), audit = read('state-audit.json'), baseline = read('baseline-summary.json');
assert.equal(restoration.passed, true); assert.equal(audit.passed, true);
assert.equal(restoration.pid, 36552); assert.equal(restoration.addedAttempts, 1);
assert.equal(restoration.originalExports, 70); assert.equal(restoration.originalArtifactFiles, 3566);
assert.equal(restoration.originalCredentialRevision, restoration.restoredCredentialRevision);
assert.equal(restoration.originalSelectionRestored, true);
assert.equal(audit.baselineSha256, baseline.beforeSha256); assert.equal(audit.afterSha256, baseline.afterSha256);
for (const table of audit.checks) assert.equal(table.exact + table.normalized, table.original);
assert.equal(audit.additions.length, 60);
assert.deepEqual(audit.diskConfigRevisions, { original: 48, actual: 52 });
console.log(JSON.stringify({ passed: true, files: manifest.count, bytes: manifest.bytes, requests: 1,
requestedModel: request.model, reportedModels: models, identityPassed: false, reportedTokens: usage.total_tokens,
engineeringTested: false, purgeBenefitTested: false,
scope: 'Offline original-artifact and receipt consistency. No model request; no authentication of supplier model weights or reconstruction of excluded private original user data.' }));
@@ -0,0 +1,92 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fileURLToPath } from 'node:url';
// Offline verification only. This script never opens a model connection or reads credentials.
const repo = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const root = path.join(repo, 'docs/live-model-identity-j-evidence');
const sha = value => createHash('sha256').update(value).digest('hex');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const manifest = read('manifest.json');
const listed = new Set();
for (const file of manifest.entries) {
assert.equal(path.posix.isAbsolute(file.path), false);
assert.equal(file.path.includes('\\'), false);
assert.equal(file.path.split('/').includes('..'), false);
assert.equal(listed.has(file.path), false); listed.add(file.path);
const bytes = fs.readFileSync(path.join(root, file.path));
assert.equal(bytes.length, file.bytes, file.path + ' length');
assert.equal(sha(bytes), file.sha256, file.path + ' original bytes');
}
const actual = [];
function walk(relative = '') {
for (const entry of fs.readdirSync(path.join(root, relative), { withFileTypes: true })) {
const name = path.posix.join(relative, entry.name);
if (entry.isDirectory()) walk(name);
else { assert.ok(entry.isFile(), 'Only regular evidence files'); if (name !== 'manifest.json') actual.push(name); }
}
}
walk(); assert.deepEqual(actual.sort(), [...listed].sort());
assert.equal(manifest.count, listed.size);
assert.equal(manifest.bytes, manifest.entries.reduce((n, f) => n + f.bytes, 0));
const contract = read('contract.json'), result = read('result.json'), attempts = read('attempts.json');
const state = read('session.json'), exported = read('session-export.json');
const requestBytes = fs.readFileSync(path.join(root, 'request.json'));
const request = JSON.parse(requestBytes);
const response = fs.readFileSync(path.join(root, 'response.sse'));
assert.equal(contract.maxRequests, 1); assert.equal(contract.maxAttempts, 1);
assert.equal(contract.maxOutputTokens, 256); assert.equal(contract.maxTaskTokens, 16000);
assert.equal(contract.modelIdentityPolicy, 'require-match'); assert.deepEqual(contract.aliases, []);
assert.equal(contract.poolSwitching, false); assert.equal(contract.automaticReplay, false);
assert.equal(attempts.length, 1);
const attempt = attempts[0];
assert.equal(attempt.connectionId, contract.connectionId); assert.equal(attempt.poolId, null);
assert.equal(attempt.ordinal, 1); assert.equal(attempt.requestSha256, sha(JSON.stringify(request)));
assert.equal(attempt.responseSha256, sha(response)); assert.equal(attempt.responseRedacted, false);
assert.equal(request.model, contract.requestedModel); assert.equal(request.model, 'claude-opus-5-5');
assert.equal(request.max_tokens ?? request.max_completion_tokens, 256); assert.equal(request.stream, true);
const data = response.toString('utf8').split(/\r?\n/).filter(line => line.startsWith('data:')).map(line => line.slice(5).trim());
assert.equal(data.at(-1), '[DONE]');
const packets = data.filter(line => line !== '[DONE]').map(line => JSON.parse(line));
const models = [...new Set(packets.filter(p => Object.hasOwn(p, 'model')).map(p => p.model))];
assert.deepEqual(models, ['gpt-6.1-sol']); assert.notEqual(request.model, models[0]);
const usage = packets.findLast(p => p.usage)?.usage;
assert.deepEqual(usage, attempt.usage);
assert.equal(usage.prompt_tokens + usage.completion_tokens, usage.total_tokens);
assert.equal(usage.total_tokens, 4334); assert.ok(usage.total_tokens <= contract.maxTaskTokens);
assert.equal(packets.flatMap(p => p.choices ?? []).flatMap(c => c.delta?.tool_calls ?? []).length, 0);
const answer = packets.flatMap(p => p.choices ?? []).map(c => c.delta?.content ?? '').join('');
assert.equal(answer, 'OK ' + contract.nonce);
assert.equal(state.status, 'paused'); assert.equal(state.execution.run.stopReason, 'model_identity');
assert.equal(state.execution.progress.totalTools, 0); assert.equal(state.execution.accountedTaskTokens, 4334);
assert.deepEqual(state.execution.run.budget, { maxSteps: 1, maxDurationMs: 320000, maxTokens: 16000, maxTaskTokens: 16000 });
const consumption = state.execution.run.consumption;
assert.equal(consumption.length, 1); assert.equal(consumption[0].attemptId, attempt.id);
assert.deepEqual(consumption[0].usage, usage); assert.deepEqual(consumption[0].modelIdentity.reportedModels, models);
assert.equal(consumption[0].modelIdentity.policy, 'require-match'); assert.equal(consumption[0].modelIdentity.complete, true);
assert.equal(consumption[0].modelIdentity.status, 'mismatch');
assert.equal(consumption[0].modelIdentity.responseSource.sha256, sha(response));
assert.ok(consumption[0].localEstimate.inputTokens + consumption[0].localEstimate.outputTokens <= contract.maxTaskTokens);
assert.equal(attempt.status, 'failed'); assert.equal(attempt.diagnostic.kind, 'model_identity');
assert.equal(attempt.diagnostic.retryable, false); assert.equal(attempt.diagnostic.failoverAllowed, false);
assert.equal(result.identityPassed, false); assert.equal(result.engineeringTestAllowed, false);
assert.equal(result.realEngineeringDeliveryTested, false); assert.equal(result.purgeBenefitTested, false);
assert.equal(result.modelWeightsAuthenticated, false); assert.deepEqual(result.usage, usage);
assert.equal(exported.session.id, state.id); assert.deepEqual(exported.execution, state.execution);
for (const capture of result.captures) assert.equal(capture.sha256, sha(fs.readFileSync(path.join(root, capture.file))));
const restoration = read('restoration.json'), audit = read('state-audit.json'), baseline = read('baseline-summary.json');
assert.equal(restoration.passed, true); assert.equal(audit.passed, true);
assert.equal(restoration.pid, 36552); assert.equal(restoration.addedAttempts, 1);
assert.equal(restoration.originalExports, 70); assert.equal(restoration.originalArtifactFiles, 3566);
assert.equal(restoration.originalCredentialRevision, restoration.restoredCredentialRevision);
assert.equal(restoration.originalSelectionRestored, true);
assert.equal(audit.baselineSha256, baseline.beforeSha256); assert.equal(audit.afterSha256, baseline.afterSha256);
for (const table of audit.checks) assert.equal(table.exact + table.normalized, table.original);
assert.equal(audit.additions.length, 60);
assert.deepEqual(audit.diskConfigRevisions, { original: 48, actual: 52 });
console.log(JSON.stringify({ passed: true, files: manifest.count, bytes: manifest.bytes, requests: 1,
requestedModel: request.model, reportedModels: models, identityPassed: false, reportedTokens: usage.total_tokens,
engineeringTested: false, purgeBenefitTested: false,
scope: 'Offline original-artifact and receipt consistency. No model request; no authentication of supplier model weights or reconstruction of excluded private original user data.' }));
@@ -0,0 +1,4 @@
{"status":"running","attempts":1,"identity":null,"reportedTokens":null}
{"status":"paused","attempts":1,"identity":"mismatch","reportedTokens":4334}
{"identityPassed":false,"engineeringTestAllowed":false,"testedAt":"2026-11-03T05:25:16.918Z","version":"1.24.2","pid":36552,"connectionId":"09b0293b-faad-45c3-832d-7c8b615813aa","connectionName":"apikey","requestedModel":"claude-opus-5-5","reportedModels":["gpt-6.1-sol"],"identityStatus":"mismatch","sessionId":"cbe1632b-1121-4fec-920c-938af76313ab","taskId":"d0b98fdd-b70a-4865-b797-346ec6f271a2","sessionStatus":"paused","stopReason":"model_identity","requests":1,"usageStatus":"reported","usage":{"prompt_tokens":4307,"completion_tokens":27,"total_tokens":4334},"taskUsage":{"requests":1,"inputTokens":4307,"outputTokens":27,"totalTokens":4334,"unknownRequests":0,"estimatedUnknownTokens":0},"actualTools":0,"captures":[{"kind":"request","file":"request.json","id":"3131da46-d3ae-43d8-a199-86b574bbeec2","sha256":"0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28","bytes":20928},{"kind":"response","file":"response.sse","id":"b33dcb19-fce2-45a6-9f0e-4e5193a1e195","sha256":"af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0","bytes":5612}],"noRetry":true,"noPoolSwitch":true,"reportedIdentifierOnly":true,"modelWeightsAuthenticated":false,"realEngineeringDeliveryTested":false,"purgeBenefitTested":false,"observedStatuses":[{"status":"running","attempts":1,"identity":null,"reportedTokens":null},{"status":"paused","attempts":1,"identity":"mismatch","reportedTokens":4334}]}
{"restorationPassed":true,"requests":1,"originalExports":70,"originalArtifactFiles":3566}
@@ -0,0 +1,15 @@
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Unexplained added row outbox
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/audit-j-state.mjs:58:19 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: undefined,
operator: 'fail',
diff: 'simple'
}
Node.js v24.22.1
@@ -0,0 +1 @@
{"passed":true,"checks":[{"table":"events","original":12906,"current":12931,"exact":12906,"normalized":0},{"table":"metadata","original":6,"current":6,"exact":3,"normalized":3},{"table":"outbox","original":12906,"current":12931,"exact":12906,"normalized":0},{"table":"projects","original":54,"current":55,"exact":0,"normalized":54},{"table":"records","original":6078,"current":6086,"exact":6078,"normalized":0},{"table":"sessions","original":70,"current":71,"exact":70,"normalized":0},{"table":"sqlite_sequence","original":1,"current":1,"exact":0,"normalized":1}],"newRows":60,"originalExports":70,"originalArtifacts":3566,"requests":1}
@@ -0,0 +1,15 @@
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: sqlite_sequence/12906 retained
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/audit-j-state.mjs:22:14 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '==',
diff: 'simple'
}
Node.js v24.22.1
@@ -0,0 +1,46 @@
node:internal/modules/run_main:107
triggerUncaughtException(
^
AssertionError [ERR_ASSERTION]: Original public disk config/project files
+ actual - expected
[
{
path: 'config.json',
+ sha256: 'ab554a6780124ab1788a53dc158a3c85e72f0142d6f62513017f11aa368c8ba3'
- sha256: 'e6d8236b99057d8d42cf2e473f0aca272c01a5ec9c07bfb64cf803395048bc3d'
},
{
path: 'projects.json',
sha256: '36d3d38a9de4881d68abf5952aa9f811a71a90df72ed7cca89cb2ab42381bc30'
}
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/.qa/audit-j-state.mjs:72:8 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: [
{
path: 'config.json',
sha256: 'ab554a6780124ab1788a53dc158a3c85e72f0142d6f62513017f11aa368c8ba3'
},
{
path: 'projects.json',
sha256: '36d3d38a9de4881d68abf5952aa9f811a71a90df72ed7cca89cb2ab42381bc30'
}
],
expected: [
{
path: 'config.json',
sha256: 'e6d8236b99057d8d42cf2e473f0aca272c01a5ec9c07bfb64cf803395048bc3d'
},
{
path: 'projects.json',
sha256: '36d3d38a9de4881d68abf5952aa9f811a71a90df72ed7cca89cb2ab42381bc30'
}
],
operator: 'deepStrictEqual',
diff: 'simple'
}
Node.js v24.22.1
@@ -0,0 +1,152 @@
{
"schemaVersion": 1,
"slice": "live-model-identity-j",
"createdAt": "2026-11-03T05:30:22.718Z",
"version": "1.24.2",
"sourceCommit": "1153e19a4c02b613c1737f03bee3c486637b60d5",
"requests": 1,
"reportedTokens": 4334,
"identityPassed": false,
"engineeringTested": false,
"purgeBenefitTested": false,
"count": 27,
"bytes": 177554,
"entries": [
{
"path": "attempts.json",
"bytes": 4805,
"sha256": "ac4806eb71566715d15f3b55fdea5d32f06814d13339ac5165ad24b6fd1eb21b"
},
{
"path": "baseline-summary.json",
"bytes": 2243,
"sha256": "b08b0b2974b2a4a9342c28d5b3898371f907120dfe4acc727cec1eb2683be57a"
},
{
"path": "connection-frozen.json",
"bytes": 1434,
"sha256": "ce9400452937d6479dc723e0eac8fdef0ec74e7aa9f1eab6ebb85ea0ed186c21"
},
{
"path": "connection-restored.json",
"bytes": 1427,
"sha256": "256ac8024df09562720feb5762ab831987d0861059fce6c729ef844059e83c01"
},
{
"path": "contract.json",
"bytes": 1123,
"sha256": "0aa3af56f3da5a7ea5d67bb1933341d0ba6700af51cc28fa5d7de21864355e51"
},
{
"path": "drivers/audit-j-state-first.mjs",
"bytes": 5753,
"sha256": "20329e5060b5ba4a0d701a20b6b181cfce09ab1c1640390a37d0d9b851b2237d"
},
{
"path": "drivers/audit-j-state-second.mjs",
"bytes": 5984,
"sha256": "b18d42debf1e4e3b39d01b70443672f9bd1e9ac29748529a99aa5e648e83d31b"
},
{
"path": "drivers/audit-j-state-third.mjs",
"bytes": 6172,
"sha256": "0e1b51ef44da79dad9e7b5be27a047f9d78e621fb42c8276704179c968f45b8f"
},
{
"path": "drivers/audit-j-state.mjs",
"bytes": 7270,
"sha256": "8eff38a7cf82b4158a4192ed0cd7299af443884ddd390515029a93835113a2c1"
},
{
"path": "drivers/desktop-f-state.mjs",
"bytes": 5932,
"sha256": "6cf41ebd2ce55fe6fe3175948e9b964fac99975aca3132420a83b1d122e08b0b"
},
{
"path": "drivers/preflight-j.mjs",
"bytes": 14340,
"sha256": "fc56d6cf4fa4f597f445412b46e7668186de8db99dba7523f99135ac04f50705"
},
{
"path": "drivers/seal-j.mjs",
"bytes": 5202,
"sha256": "4d62d0a2326d1d0e971e9cabbde3f8638879d8ec269ab54589adf00d11ee6922"
},
{
"path": "drivers/verify-live-model-identity-j.mjs",
"bytes": 6936,
"sha256": "16583b9851899e4c5f578801eeca93256833b4bbb9735d084327907ed6633c94"
},
{
"path": "logs/preflight-output.txt",
"bytes": 1653,
"sha256": "710baba707a1161a90be695d6514f70439b0c8fdd0f9d05f2f240950bc471710"
},
{
"path": "logs/state-audit-first-failure.txt",
"bytes": 398,
"sha256": "03a20fae63d36f6bb8908f89a28c3b8cbaeefe28e4f17a0bd865807fbf67b3f3"
},
{
"path": "logs/state-audit-passed.txt",
"bytes": 638,
"sha256": "a20ff3f0660491164893e2b1444520006f8c4a9e3a4d506a21dc4a48f592c087"
},
{
"path": "logs/state-audit-second-failure.txt",
"bytes": 393,
"sha256": "43261d82e9d378f7004ef0aa07184b1ad0c6c76215fb63717ba3b7a475e52aba"
},
{
"path": "logs/state-audit-third-failure.txt",
"bytes": 1280,
"sha256": "21fc73d1cba3f543d3a1945f5821121e0448619758f43dd2a5f086ce950031a7"
},
{
"path": "owned.json",
"bytes": 1762,
"sha256": "f071d851f7e2bc53208e5b81d2fac36bb715691709023a739ffc0536e021696d"
},
{
"path": "request.json",
"bytes": 20928,
"sha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28"
},
{
"path": "response.sse",
"bytes": 5612,
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0"
},
{
"path": "restoration.json",
"bytes": 706,
"sha256": "0bb2f988d7f6f876c554fa3f104f2864b1a06b94906a170f9b2b7ec4a3c54faf"
},
{
"path": "result.json",
"bytes": 1777,
"sha256": "4032c245b7ec542021f0b87ae71fc47775d08ec5a10b7521641d3aa32333e03a"
},
{
"path": "runtime-identity.json",
"bytes": 4096,
"sha256": "08ef2118ddd368997a2b14d5217db28e81e120effd16c304dfeda7c4941b451e"
},
{
"path": "session-export.json",
"bytes": 29662,
"sha256": "37c7ccf956cb76df6e66a58363ea01b763031a5abcf6ff00baa6a18a16c76591"
},
{
"path": "session.json",
"bytes": 28604,
"sha256": "e991a83350823ede05c5d89e2016cabab2be6b22d94407dee12bf6364e0a3856"
},
{
"path": "state-audit.json",
"bytes": 11424,
"sha256": "f98e94c0525521d16d9ce1a6cce1ef40a3b9367d34726aa23d69a7c6e69b9f8b"
}
],
"scope": "One actual configured apikey Claude-route request. Upstream identifier mismatch preserved; no authentication of model weights, no engineering/Purge claim, no credential export."
}
@@ -0,0 +1,171 @@
{
"schemaVersion": 1,
"slice": "live-model-identity-j",
"createdAt": "2026-11-03T05:30:22.718Z",
"version": "1.24.2",
"sourceCommit": "1153e19a4c02b613c1737f03bee3c486637b60d5",
"requests": 1,
"reportedTokens": 4334,
"identityPassed": false,
"engineeringTested": false,
"purgeBenefitTested": false,
"count": 30,
"bytes": 190046,
"entries": [
{
"path": "attempts.json",
"bytes": 4805,
"sha256": "ac4806eb71566715d15f3b55fdea5d32f06814d13339ac5165ad24b6fd1eb21b"
},
{
"path": "baseline-summary.json",
"bytes": 2243,
"sha256": "b08b0b2974b2a4a9342c28d5b3898371f907120dfe4acc727cec1eb2683be57a"
},
{
"path": "connection-frozen.json",
"bytes": 1434,
"sha256": "ce9400452937d6479dc723e0eac8fdef0ec74e7aa9f1eab6ebb85ea0ed186c21"
},
{
"path": "connection-restored.json",
"bytes": 1427,
"sha256": "256ac8024df09562720feb5762ab831987d0861059fce6c729ef844059e83c01"
},
{
"path": "contract.json",
"bytes": 1123,
"sha256": "0aa3af56f3da5a7ea5d67bb1933341d0ba6700af51cc28fa5d7de21864355e51"
},
{
"path": "drivers/audit-j-state-first.mjs",
"bytes": 5753,
"sha256": "20329e5060b5ba4a0d701a20b6b181cfce09ab1c1640390a37d0d9b851b2237d"
},
{
"path": "drivers/audit-j-state-second.mjs",
"bytes": 5984,
"sha256": "b18d42debf1e4e3b39d01b70443672f9bd1e9ac29748529a99aa5e648e83d31b"
},
{
"path": "drivers/audit-j-state-third.mjs",
"bytes": 6172,
"sha256": "0e1b51ef44da79dad9e7b5be27a047f9d78e621fb42c8276704179c968f45b8f"
},
{
"path": "drivers/audit-j-state.mjs",
"bytes": 7270,
"sha256": "8eff38a7cf82b4158a4192ed0cd7299af443884ddd390515029a93835113a2c1"
},
{
"path": "drivers/desktop-f-state.mjs",
"bytes": 5932,
"sha256": "6cf41ebd2ce55fe6fe3175948e9b964fac99975aca3132420a83b1d122e08b0b"
},
{
"path": "drivers/preflight-j.mjs",
"bytes": 14340,
"sha256": "fc56d6cf4fa4f597f445412b46e7668186de8db99dba7523f99135ac04f50705"
},
{
"path": "drivers/seal-j.mjs",
"bytes": 5202,
"sha256": "4d62d0a2326d1d0e971e9cabbde3f8638879d8ec269ab54589adf00d11ee6922"
},
{
"path": "drivers/verify-live-model-identity-j-v2.mjs",
"bytes": 7142,
"sha256": "54ecbabcd3a9683052ee54cf517d4d88cdd3fe65cf028b6b95b1713ed8fbaf26"
},
{
"path": "drivers/verify-live-model-identity-j.mjs",
"bytes": 6936,
"sha256": "16583b9851899e4c5f578801eeca93256833b4bbb9735d084327907ed6633c94"
},
{
"path": "logs/preflight-output.txt",
"bytes": 1653,
"sha256": "710baba707a1161a90be695d6514f70439b0c8fdd0f9d05f2f240950bc471710"
},
{
"path": "logs/state-audit-first-failure.txt",
"bytes": 398,
"sha256": "03a20fae63d36f6bb8908f89a28c3b8cbaeefe28e4f17a0bd865807fbf67b3f3"
},
{
"path": "logs/state-audit-passed.txt",
"bytes": 638,
"sha256": "a20ff3f0660491164893e2b1444520006f8c4a9e3a4d506a21dc4a48f592c087"
},
{
"path": "logs/state-audit-second-failure.txt",
"bytes": 393,
"sha256": "43261d82e9d378f7004ef0aa07184b1ad0c6c76215fb63717ba3b7a475e52aba"
},
{
"path": "logs/state-audit-third-failure.txt",
"bytes": 1280,
"sha256": "21fc73d1cba3f543d3a1945f5821121e0448619758f43dd2a5f086ce950031a7"
},
{
"path": "manifest-initial.json",
"bytes": 4814,
"sha256": "d7945de09926d93476b59f2d1c60247bf23c68343b4ae79e978bd9cecc1cfb96"
},
{
"path": "offline-verifier-correction.json",
"bytes": 536,
"sha256": "5b96ecc7fe157e796cbbccd4ef42b934cdd0e69e9d697710369e12a4acf7d13a"
},
{
"path": "owned.json",
"bytes": 1762,
"sha256": "f071d851f7e2bc53208e5b81d2fac36bb715691709023a739ffc0536e021696d"
},
{
"path": "request.json",
"bytes": 20928,
"sha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28"
},
{
"path": "response.sse",
"bytes": 5612,
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0"
},
{
"path": "restoration.json",
"bytes": 706,
"sha256": "0bb2f988d7f6f876c554fa3f104f2864b1a06b94906a170f9b2b7ec4a3c54faf"
},
{
"path": "result.json",
"bytes": 1777,
"sha256": "4032c245b7ec542021f0b87ae71fc47775d08ec5a10b7521641d3aa32333e03a"
},
{
"path": "runtime-identity.json",
"bytes": 4096,
"sha256": "08ef2118ddd368997a2b14d5217db28e81e120effd16c304dfeda7c4941b451e"
},
{
"path": "session-export.json",
"bytes": 29662,
"sha256": "37c7ccf956cb76df6e66a58363ea01b763031a5abcf6ff00baa6a18a16c76591"
},
{
"path": "session.json",
"bytes": 28604,
"sha256": "e991a83350823ede05c5d89e2016cabab2be6b22d94407dee12bf6364e0a3856"
},
{
"path": "state-audit.json",
"bytes": 11424,
"sha256": "f98e94c0525521d16d9ce1a6cce1ef40a3b9367d34726aa23d69a7c6e69b9f8b"
}
],
"scope": "One actual configured apikey Claude-route request. Upstream identifier mismatch preserved; no authentication of model weights, no engineering/Purge claim, no credential export.",
"additiveCorrection": {
"initialManifestSha256": "d7945de09926d93476b59f2d1c60247bf23c68343b4ae79e978bd9cecc1cfb96",
"receipt": "offline-verifier-correction.json"
}
}
@@ -0,0 +1,8 @@
{
"beforeFirstOfflineRun": true,
"originalVerifierRetained": "drivers/verify-live-model-identity-j.mjs",
"currentVerifier": "drivers/verify-live-model-identity-j-v2.mjs",
"currentSha256": "54ecbabcd3a9683052ee54cf517d4d88cdd3fe65cf028b6b95b1713ed8fbaf26",
"reason": "Raw SSE usage includes prompt_tokens_details.cache_write_tokens; compare the three normalized accounting totals and separately assert the retained raw detail. Original request, response, accounting and initial manifest unchanged.",
"realRequestsAdded": 0
}
@@ -0,0 +1,66 @@
{
"project": {
"id": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only",
"name": "identity-only",
"addedAt": "2026-11-03T05:25:12.697Z"
},
"session": {
"id": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"title": "新任务",
"status": "idle",
"createdAt": "2026-11-03T05:25:12.699Z",
"updatedAt": "2026-11-03T05:25:12.700Z",
"messages": [],
"events": [],
"changes": [],
"approvals": [],
"failure": null,
"lastFailure": null,
"compactions": 0,
"estimatedTokens": 0,
"usage": null,
"archived": false,
"revision": 1,
"eventSeq": 12907,
"inputAttachments": [],
"execution": {
"schemaVersion": 1,
"task": null,
"run": null,
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"workspaces": [],
"runs": [],
"progress": {
"totalTools": 0,
"completedTools": 0,
"requiresVerification": []
},
"artifacts": [],
"checks": [],
"browsingTabs": [],
"browsingActions": [],
"previewPlans": [],
"previewJobs": [],
"mcpJobs": [],
"taskPlans": [],
"taskProofs": [],
"researchTargets": [],
"researchJobs": [],
"engineJobs": [],
"browserPlans": [],
"browserJobs": [],
"contextPlans": [],
"changeSets": [],
"plans": [],
"deliveries": [],
"deliveryPlans": [],
"accountedTaskTokens": 0
}
}
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,48 @@
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"OK"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":" "},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"646"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"408"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"76"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"-aa"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"7"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"b"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"-"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"495"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"2"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"-b"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"8"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"f"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"9"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"-fe"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"8b"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"91f"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"4e"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":"218"},"finish_reason":null}],"service_tier":"auto"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[{"index":0,"delta":{"content":""},"finish_reason":"stop"}],"service_tier":"default"}
data: {"id":"resp_043168a8990631a9016ae9703aef4c81958fa7c244b3eb7e30","object":"chat.completion.chunk","created":1793683515,"model":"gpt-6.1-sol","choices":[],"usage":{"prompt_tokens":4307,"completion_tokens":27,"total_tokens":4334,"prompt_tokens_details":{"cache_write_tokens":4304}},"service_tier":"default"}
data: [DONE]
@@ -0,0 +1,23 @@
{
"passed": true,
"pid": 36552,
"version": "1.24.2",
"hasKey": true,
"runtimeRoot": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.2-win-x64-20261103042107173",
"originalExports": 70,
"originalArtifactFiles": 3566,
"originalAttempts": 200,
"addedAttempts": 1,
"originalRowsExact": [
"records",
"events",
"outbox",
"sessions"
],
"originalSelectionRestored": true,
"originalConfigRestoredExceptMonotonicRevision": true,
"originalCredentialRevision": 2,
"restoredCredentialRevision": 2,
"publicIdentityDefaultMadeExplicit": true,
"afterSha256": "7ad38603775d043b74b18dad08e0716908d81a1ca388807fb40f9d2618a25422"
}
@@ -0,0 +1,70 @@
{
"identityPassed": false,
"engineeringTestAllowed": false,
"testedAt": "2026-11-03T05:25:16.918Z",
"version": "1.24.2",
"pid": 36552,
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"connectionName": "apikey",
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"identityStatus": "mismatch",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"sessionStatus": "paused",
"stopReason": "model_identity",
"requests": 1,
"usageStatus": "reported",
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"taskUsage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"actualTools": 0,
"captures": [
{
"kind": "request",
"file": "request.json",
"id": "3131da46-d3ae-43d8-a199-86b574bbeec2",
"sha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"bytes": 20928
},
{
"kind": "response",
"file": "response.sse",
"id": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"bytes": 5612
}
],
"noRetry": true,
"noPoolSwitch": true,
"reportedIdentifierOnly": true,
"modelWeightsAuthenticated": false,
"realEngineeringDeliveryTested": false,
"purgeBenefitTested": false,
"observedStatuses": [
{
"status": "running",
"attempts": 1,
"identity": null,
"reportedTokens": null
},
{
"status": "paused",
"attempts": 1,
"identity": "mismatch",
"reportedTokens": 4334
}
]
}
@@ -0,0 +1,120 @@
{
"version": "1.24.2",
"pid": 36552,
"runtime": "C:\\Users\\wangy\\AppData\\Local\\Programs\\AgentWorkbench\\versions\\Agent-Workbench-1.24.2-win-x64-20261103042107173",
"sourceCommit": "1153e19a4c02b613c1737f03bee3c486637b60d5",
"experimentStartCommit": "84b37fd636c9968073f2444abb8233875bd25f4c",
"runtimeFiles": [
{
"path": "dist-client/.vite/manifest.json",
"bytes": 652,
"sha256": "d407b09b768c0efea5c8a535d871c971696cb3ab54be3796550b29684089322e"
},
{
"path": "dist-client/assets/approval-presentation-Chut4EFA.js",
"bytes": 226796,
"sha256": "b4a80f4ac13a05b25dd3f4736fa9ca7650678c2570abec634d7495812cdbee46"
},
{
"path": "dist-client/assets/desktop-D5c7pnby.js",
"bytes": 395624,
"sha256": "095a345453fbb13171d79a5b62b6da578712c2ba8458b597507bd956a85fe8df"
},
{
"path": "dist-client/assets/desktop-Dffbqse1.css",
"bytes": 166014,
"sha256": "b37128d9ad1b80825a90d005732727b169d96e2b0af167f58f9fdcebf1e3af36"
},
{
"path": "dist-client/assets/mobile-4zqcwTeD.js",
"bytes": 27187,
"sha256": "bb6f277677c82a1926e14ce670f684430e5af199f90c765acda692c38b912085"
},
{
"path": "dist-client/assets/mobile-joLHctQw.css",
"bytes": 12387,
"sha256": "fe2dd1892f0bf852ceebedd4d3b3221b4cf274b502c47dedfcd3d7a8410ad5b1"
},
{
"path": "dist-client/favicon.svg",
"bytes": 268,
"sha256": "538fa42445dfd8e78135717e2f30dada6d790d5c05b9011ae7a9bf80d416ae1d"
},
{
"path": "dist-client/index.html",
"bytes": 597,
"sha256": "560bc28e00093598a457a65bc1141fa24065be5a8e340736e343a049531a68c0"
},
{
"path": "dist-client/mobile-assets.json",
"bytes": 115,
"sha256": "15a3599ce215392e52962d67b9ebf3b810c2989a3b21383fbda26a339ffb615d"
},
{
"path": "dist-client/mobile-icon.svg",
"bytes": 307,
"sha256": "2241a24a26e67e2587614819d7860575e76bdaf9e2c3de6abeb58538d3f2b81c"
},
{
"path": "dist-client/mobile-sw.js",
"bytes": 1160,
"sha256": "be22f478b0a2ec71b3485ba8dbb59155f944e1855807d28a3971e6c3f153cd4e"
},
{
"path": "dist-client/mobile-touch-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-client/mobile.html",
"bytes": 842,
"sha256": "5ff7e1d8e4db93e6013e59c75ac16680636f282fb71d7d0ebb930802ebcf18d7"
},
{
"path": "dist-client/mobile.webmanifest",
"bytes": 372,
"sha256": "1d2a9bf8216aadce8fc47de1e236c4c7adda60ce96609133ee7e19e361b4673b"
},
{
"path": "dist-client/workbench-icon.ico",
"bytes": 1095,
"sha256": "f1879074e45f01c480ad9bf50b818637cc60ad56526056c886f808a4812d7b0c"
},
{
"path": "dist-client/workbench-icon.png",
"bytes": 1073,
"sha256": "120b1168132b7664af0b159de8fea1ac0a2aead3a43ae0e2ae11833d97a09d6e"
},
{
"path": "dist-desktop/main.cjs",
"bytes": 81902,
"sha256": "61088f334467d14e691a3340a7a847458873401ba5e9b441b145508107f31830"
},
{
"path": "dist-desktop/preload.cjs",
"bytes": 823,
"sha256": "5bcc6b7b54da171d1b5fa833abac31248fe10254e6afaf61da03c4ef6a0b8d2c"
},
{
"path": "dist-server/host-launcher.mjs",
"bytes": 30221,
"sha256": "280b6116fa955f5d32e237e129f89d60a4805d0e0dd23a3efee41cad35d33250"
},
{
"path": "dist-server/hot-upgrade.mjs",
"bytes": 4089492,
"sha256": "28ef56c892655371263fc984bc2a8aaf6e6b371f1cea4903523d56e9cf329713"
},
{
"path": "dist-server/install-manager.mjs",
"bytes": 76574,
"sha256": "00d1e95670c1fbfa5a79d8aacef62463056526b07364d43ce73cfb180f39e676"
},
{
"path": "dist-server/server.mjs",
"bytes": 4087256,
"sha256": "b046fe5da8dbf76bed77a4c3f2ac8e2e556de2153cb89b64f58a4e9d12b2caec"
}
],
"scope": "Exact installed runtime input SHAs checked before dispatch; original host/Provider retained, no activation."
}
@@ -0,0 +1,761 @@
{
"schemaVersion": 1,
"executionSchemaVersion": 1,
"exportedAt": "2026-11-03T05:25:16.914Z",
"project": {
"id": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only",
"name": "identity-only",
"addedAt": "2026-11-03T05:25:12.697Z"
},
"session": {
"id": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"title": "这是独立连接身份预检,不是工程任务。只回复 OK 646",
"status": "paused",
"createdAt": "2026-11-03T05:25:12.699Z",
"updatedAt": "2026-11-03T05:25:16.897Z",
"messages": [
{
"id": "215b9ff6-1045-42ab-a509-ab77532e94b9",
"role": "user",
"content": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"createdAt": "2026-11-03T05:25:12.709Z"
},
{
"id": "17baf540-cc48-4f73-8322-5194dd6c8c83",
"role": "system",
"content": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"createdAt": "2026-11-03T05:25:16.890Z"
}
],
"providerMessages": [
{
"role": "user",
"content": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。"
}
],
"events": [
{
"id": "93069203-96a0-4add-a35d-bce90d780893",
"createdAt": "2026-11-03T05:25:12.741Z",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model",
"source": "model_connection",
"label": "模型连接失败",
"phase": "failed",
"startedAt": "2026-11-03T05:25:12.741Z",
"contextPlanId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"attempts": 1,
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"modelAttemptId": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"actualModel": "claude-opus-5-5",
"output": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"stream": {
"status": "incomplete",
"protocol": "chat-completions",
"sequence": 24,
"bytes": 5612,
"textCharacters": 39,
"textPreview": "OK 64640876-aa7b-4952-b8f9-fe8b91f4e218",
"toolFragments": 0
},
"diagnostic": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869
},
"durationMs": 4131,
"finishedAt": "2026-11-03T05:25:16.888Z"
},
{
"id": "f8281305-0920-4983-841e-ab1ff973d3c3",
"createdAt": "2026-11-03T05:25:16.893Z",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "error",
"source": "model_connection",
"label": "模型返回型号需要核对",
"phase": "failed",
"output": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"diagnostic": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869,
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179"
}
}
],
"changes": [],
"approvals": [],
"failure": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869,
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"messageId": "17baf540-cc48-4f73-8322-5194dd6c8c83"
},
"lastFailure": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869,
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179"
},
"compactions": 0,
"estimatedTokens": 7360,
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"archived": false,
"revision": 25,
"eventSeq": 12931,
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"recoveryNotice": null,
"executionMode": "compatible"
},
"execution": {
"schemaVersion": 1,
"task": {
"schemaVersion": 1,
"id": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"goal": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"instructions": [],
"constraints": [],
"acceptance": [],
"status": "paused",
"previousTaskId": null,
"createdAt": "2026-11-03T05:25:12.705Z",
"updatedAt": "2026-11-03T05:25:16.897Z",
"activeRunId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"usage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"budget": {
"maxTokens": 16000
},
"verification": {
"status": "not_configured",
"checkJobId": null
},
"origin": "workbench",
"contract": {
"schemaVersion": 1,
"goal": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"kind": "general",
"checks": "unspecified"
},
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"stagnation": null
},
"run": {
"schemaVersion": 1,
"id": "5935a58d-8feb-44d7-a3ca-640ade787179",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"engine": "workbench",
"status": "paused",
"startedAt": "2026-11-03T05:25:12.706Z",
"finishedAt": "2026-11-03T05:25:16.897Z",
"resumeOf": null,
"model": {
"mode": "compatible",
"baseUrl": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"contextLimit": 16000,
"maxOutputTokens": 256,
"configRevision": 50,
"modelResponseTimeoutMs": 300000,
"modelStreamIdleTimeoutMs": 120000,
"protocol": "chat-completions",
"streaming": true,
"nativeParameters": {},
"routing": {
"type": "connection",
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"revision": 7,
"strategy": "round-robin",
"sticky": true,
"maxAttempts": 1,
"queueTimeoutMs": 15000,
"members": [
{
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"name": "apikey",
"brand": "Claude 兼容代理",
"protocol": "chat-completions",
"model": "claude-opus-5-5",
"capabilitySchema": 1,
"capabilityDeclarations": {
"text": "supported",
"tools": "supported",
"streaming": "supported",
"vision": "unknown",
"audio": "unknown"
},
"streaming": true,
"modelIdentityPolicy": "require-match",
"modelIdentityAliases": [],
"modelIdentityAliasSource": "",
"baseUrl": "https://api.apikey.fan",
"enabled": true,
"requiresKey": true,
"contextLimit": 16000,
"maxOutputTokens": 2048,
"concurrency": 8,
"revision": 7,
"source": "manual",
"createdAt": "2026-10-31T16:36:46.574Z",
"updatedAt": "2026-11-03T05:25:12.680Z",
"weight": 1,
"credentialRevision": 2
}
]
}
},
"budget": {
"maxSteps": 1,
"maxDurationMs": 320000,
"maxTokens": 16000,
"maxTaskTokens": 16000
},
"usage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"steps": 1,
"toolCalls": 0,
"stopReason": "model_identity",
"checkpoint": {
"stepId": "5e28692c-1428-47b5-be73-1f7948627672",
"completedToolIds": [],
"pendingToolIds": [],
"requiresVerification": []
},
"origin": "workbench",
"purpose": "execution",
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"currentContextPlanId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"consumption": [
{
"attemptId": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"requestId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"connectionName": "apikey",
"model": "claude-opus-5-5",
"endpoint": "https://api.apikey.fan",
"protocol": "chat-completions",
"startedAt": "2026-11-03T05:25:12.741Z",
"finishedAt": "2026-11-03T05:25:16.874Z",
"outcome": "failed",
"usageStatus": "reported",
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"localEstimate": {
"schemaVersion": 1,
"inputTokens": 7360,
"outputTokens": 256,
"requestSha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"requestBytes": 20928,
"estimateMethod": "utf8-third-plus-framing-v1"
},
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"estimatedUnknownTokens": 0
}
]
},
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"workspaces": [],
"runs": [
{
"id": "5935a58d-8feb-44d7-a3ca-640ade787179",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"status": "paused",
"startedAt": "2026-11-03T05:25:12.706Z",
"finishedAt": "2026-11-03T05:25:16.897Z",
"steps": 1,
"toolCalls": 0,
"usage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"stopReason": "model_identity",
"model": {
"mode": "compatible",
"baseUrl": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"contextLimit": 16000,
"maxOutputTokens": 256,
"configRevision": 50,
"modelResponseTimeoutMs": 300000,
"modelStreamIdleTimeoutMs": 120000,
"protocol": "chat-completions",
"streaming": true,
"nativeParameters": {},
"routing": {
"type": "connection",
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"revision": 7,
"strategy": "round-robin",
"sticky": true,
"maxAttempts": 1,
"queueTimeoutMs": 15000,
"members": [
{
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"name": "apikey",
"brand": "Claude 兼容代理",
"protocol": "chat-completions",
"model": "claude-opus-5-5",
"capabilitySchema": 1,
"capabilityDeclarations": {
"text": "supported",
"tools": "supported",
"streaming": "supported",
"vision": "unknown",
"audio": "unknown"
},
"streaming": true,
"modelIdentityPolicy": "require-match",
"modelIdentityAliases": [],
"modelIdentityAliasSource": "",
"baseUrl": "https://api.apikey.fan",
"enabled": true,
"requiresKey": true,
"contextLimit": 16000,
"maxOutputTokens": 2048,
"concurrency": 8,
"revision": 7,
"source": "manual",
"createdAt": "2026-10-31T16:36:46.574Z",
"updatedAt": "2026-11-03T05:25:12.680Z",
"weight": 1,
"credentialRevision": 2
}
]
}
},
"budget": {
"maxSteps": 1,
"maxDurationMs": 320000,
"maxTokens": 16000,
"maxTaskTokens": 16000
},
"resumeOf": null,
"purpose": "execution",
"consumption": [
{
"attemptId": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"requestId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"connectionName": "apikey",
"model": "claude-opus-5-5",
"endpoint": "https://api.apikey.fan",
"protocol": "chat-completions",
"startedAt": "2026-11-03T05:25:12.741Z",
"finishedAt": "2026-11-03T05:25:16.874Z",
"outcome": "failed",
"usageStatus": "reported",
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"localEstimate": {
"schemaVersion": 1,
"inputTokens": 7360,
"outputTokens": 256,
"requestSha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"requestBytes": 20928,
"estimateMethod": "utf8-third-plus-framing-v1"
},
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"estimatedUnknownTokens": 0
}
],
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
}
}
],
"progress": {
"totalTools": 0,
"completedTools": 0,
"requiresVerification": []
},
"artifacts": [
{
"id": "cfbbcec6-18bf-4086-994e-305321a522de",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model-request",
"mediaType": "application/json",
"sha256": "639b156897fc82cbcbedfd4dbbdb1b07a960a6f1d6cdaa857c68e7d4bbb2813c",
"bytes": 29389,
"relative": "63/639b156897fc82cbcbedfd4dbbdb1b07a960a6f1d6cdaa857c68e7d4bbb2813c.blob",
"createdAt": "2026-11-03T05:25:12.725Z",
"status": "stored"
},
{
"id": "de3b4bca-b0b4-44af-83da-6f0cca3466bc",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "context-plan",
"mediaType": "application/json",
"sha256": "69686781e9eaf4737b8d35340a960a0283e7c6a8d88dbf3f649c59d8a538aa9c",
"bytes": 2093,
"relative": "69/69686781e9eaf4737b8d35340a960a0283e7c6a8d88dbf3f649c59d8a538aa9c.blob",
"createdAt": "2026-11-03T05:25:12.728Z",
"status": "stored"
},
{
"id": "3131da46-d3ae-43d8-a199-86b574bbeec2",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model-attempt-request",
"mediaType": "application/json",
"sha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"bytes": 20928,
"relative": "08/0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28.blob",
"createdAt": "2026-11-03T05:25:12.734Z",
"status": "stored"
},
{
"id": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model-stream-response",
"mediaType": "text/event-stream",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"bytes": 5612,
"relative": "af/af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0.blob",
"createdAt": "2026-11-03T05:25:16.868Z",
"status": "stored"
}
],
"checks": [],
"browsingTabs": [],
"browsingActions": [],
"previewPlans": [],
"previewJobs": [],
"mcpJobs": [],
"taskPlans": [],
"taskProofs": [],
"researchTargets": [],
"researchJobs": [],
"engineJobs": [],
"browserPlans": [],
"browserJobs": [],
"contextPlans": [
{
"schemaVersion": 1,
"id": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"stepId": "5e28692c-1428-47b5-be73-1f7948627672",
"requestIndex": 1,
"status": "failed",
"createdAt": "2026-11-03T05:25:12.725Z",
"finishedAt": "2026-11-03T05:25:16.888Z",
"requestSha256": "639b156897fc82cbcbedfd4dbbdb1b07a960a6f1d6cdaa857c68e7d4bbb2813c",
"requestBytes": 29389,
"estimatedInputTokens": 7360,
"requestArtifactId": "cfbbcec6-18bf-4086-994e-305321a522de",
"tokenReservation": {
"schemaVersion": 1,
"method": "observed-route-max-v1",
"overheadTokens": 0,
"reservedTokens": 7616,
"routes": [
{
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"model": "claude-opus-5-5",
"protocol": "chat-completions",
"endpoint": "https://api.apikey.fan",
"localInputTokens": 7360,
"outputReservation": 256,
"inputRatio": 1,
"observedOutputTokens": 256,
"observedTotalFloor": 0,
"reservedTokens": 7616,
"sources": []
}
]
},
"maxBudgetAttempts": 2,
"estimateMethod": "maximum-wire-variant-utf8-v1",
"beforeInputTokens": 7360,
"beforeBytes": 29389,
"budget": {
"contextLimit": 16000,
"outputReservation": 256,
"safetyTokens": 1600,
"inputBudget": 14144,
"targetInputTokens": 14144,
"runRemainingTokens": 16000,
"taskRemainingTokens": 16000,
"limitingReason": "context_limit"
},
"mandatoryInputTokens": 7360,
"nextReadFixedInputTokens": 7360,
"workingRetentionTokens": 0,
"workingRetentionPolicyVersion": 1,
"originalMessages": 1,
"retainedMessages": 1,
"archivedGroups": 0,
"retainedGroups": [
0
],
"historyIndexArtifactId": null,
"historyIndexSha256": null,
"actualUsage": null,
"workingSetArtifactId": null,
"workingSetSha256": null,
"workingSetEntries": 0,
"workingSetViewVersion": 2,
"latestToolsArtifactId": null,
"latestToolsSha256": null,
"latestToolsEntries": 0,
"projectMemoryArtifactId": null,
"projectMemorySha256": null,
"projectMemoryEntries": 0,
"skillCatalogArtifactId": null,
"skillCatalogSha256": null,
"skillCatalogEntries": 0,
"mcpCatalogArtifactId": null,
"mcpCatalogSha256": null,
"mcpCatalogEntries": 0,
"requestAttempts": 1,
"responseSha256": null,
"source": "workbench",
"artifactId": "de3b4bca-b0b4-44af-83da-6f0cca3466bc",
"error": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。"
}
],
"changeSets": [],
"plans": [],
"deliveries": [],
"deliveryPlans": [],
"accountedTaskTokens": 4334
}
}
@@ -0,0 +1,745 @@
{
"id": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"title": "这是独立连接身份预检,不是工程任务。只回复 OK 646",
"status": "paused",
"createdAt": "2026-11-03T05:25:12.699Z",
"updatedAt": "2026-11-03T05:25:16.897Z",
"messages": [
{
"id": "215b9ff6-1045-42ab-a509-ab77532e94b9",
"role": "user",
"content": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"createdAt": "2026-11-03T05:25:12.709Z"
},
{
"id": "17baf540-cc48-4f73-8322-5194dd6c8c83",
"role": "system",
"content": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"createdAt": "2026-11-03T05:25:16.890Z"
}
],
"events": [
{
"id": "93069203-96a0-4add-a35d-bce90d780893",
"createdAt": "2026-11-03T05:25:12.741Z",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model",
"source": "model_connection",
"label": "模型连接失败",
"phase": "failed",
"startedAt": "2026-11-03T05:25:12.741Z",
"contextPlanId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"attempts": 1,
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"modelAttemptId": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"actualModel": "claude-opus-5-5",
"output": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"stream": {
"status": "incomplete",
"protocol": "chat-completions",
"sequence": 24,
"bytes": 5612,
"textCharacters": 39,
"textPreview": "OK 64640876-aa7b-4952-b8f9-fe8b91f4e218",
"toolFragments": 0
},
"diagnostic": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869
},
"durationMs": 4131,
"finishedAt": "2026-11-03T05:25:16.888Z"
},
{
"id": "f8281305-0920-4983-841e-ab1ff973d3c3",
"createdAt": "2026-11-03T05:25:16.893Z",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "error",
"source": "model_connection",
"label": "模型返回型号需要核对",
"phase": "failed",
"output": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"diagnostic": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869,
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179"
}
}
],
"changes": [],
"approvals": [],
"failure": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869,
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"messageId": "17baf540-cc48-4f73-8322-5194dd6c8c83"
},
"lastFailure": {
"endpoint": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"route": "/chat/completions",
"attempt": 1,
"attemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"source": "model_connection",
"origin": "local",
"stage": "model_identity",
"kind": "model_identity",
"title": "模型返回型号需要核对",
"message": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。",
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"retryable": false,
"failoverAllowed": false,
"outcome": "failed",
"occurredAt": "2026-11-03T05:25:16.870Z",
"attempts": 1,
"wireAttemptId": "9b73ab52-1911-49e4-a742-54e00c2fe271",
"upstreamRequestId": "225f0a8c-60e6-4fca-a8f8-2baeabf3238b, 3e0f36b5-5266-4d1b-b9f0-cd75ae32edb9",
"retryDecision": "stream_not_replayed",
"remainingWaitBudgetMs": 295869,
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179"
},
"compactions": 0,
"estimatedTokens": 7360,
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"archived": false,
"revision": 25,
"eventSeq": 12931,
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"recoveryNotice": null,
"executionMode": "compatible",
"inputAttachments": [],
"execution": {
"schemaVersion": 1,
"task": {
"schemaVersion": 1,
"id": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"goal": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"instructions": [],
"constraints": [],
"acceptance": [],
"status": "paused",
"previousTaskId": null,
"createdAt": "2026-11-03T05:25:12.705Z",
"updatedAt": "2026-11-03T05:25:16.897Z",
"activeRunId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"usage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"budget": {
"maxTokens": 16000
},
"verification": {
"status": "not_configured",
"checkJobId": null
},
"origin": "workbench",
"contract": {
"schemaVersion": 1,
"goal": "这是独立连接身份预检,不是工程任务。只回复 OK 64640876-aa7b-4952-b8f9-fe8b91f4e218,不要调用工具、读写文件或执行命令。",
"kind": "general",
"checks": "unspecified"
},
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"stagnation": null
},
"run": {
"schemaVersion": 1,
"id": "5935a58d-8feb-44d7-a3ca-640ade787179",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"engine": "workbench",
"status": "paused",
"startedAt": "2026-11-03T05:25:12.706Z",
"finishedAt": "2026-11-03T05:25:16.897Z",
"resumeOf": null,
"model": {
"mode": "compatible",
"baseUrl": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"contextLimit": 16000,
"maxOutputTokens": 256,
"configRevision": 50,
"modelResponseTimeoutMs": 300000,
"modelStreamIdleTimeoutMs": 120000,
"protocol": "chat-completions",
"streaming": true,
"nativeParameters": {},
"routing": {
"type": "connection",
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"revision": 7,
"strategy": "round-robin",
"sticky": true,
"maxAttempts": 1,
"queueTimeoutMs": 15000,
"members": [
{
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"name": "apikey",
"brand": "Claude 兼容代理",
"protocol": "chat-completions",
"model": "claude-opus-5-5",
"capabilitySchema": 1,
"capabilityDeclarations": {
"text": "supported",
"tools": "supported",
"streaming": "supported",
"vision": "unknown",
"audio": "unknown"
},
"streaming": true,
"modelIdentityPolicy": "require-match",
"modelIdentityAliases": [],
"modelIdentityAliasSource": "",
"baseUrl": "https://api.apikey.fan",
"enabled": true,
"requiresKey": true,
"contextLimit": 16000,
"maxOutputTokens": 2048,
"concurrency": 8,
"revision": 7,
"source": "manual",
"createdAt": "2026-10-31T16:36:46.574Z",
"updatedAt": "2026-11-03T05:25:12.680Z",
"weight": 1,
"credentialRevision": 2
}
]
}
},
"budget": {
"maxSteps": 1,
"maxDurationMs": 320000,
"maxTokens": 16000,
"maxTaskTokens": 16000
},
"usage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"steps": 1,
"toolCalls": 0,
"stopReason": "model_identity",
"checkpoint": {
"stepId": "5e28692c-1428-47b5-be73-1f7948627672",
"completedToolIds": [],
"pendingToolIds": [],
"requiresVerification": []
},
"origin": "workbench",
"purpose": "execution",
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"currentContextPlanId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"consumption": [
{
"attemptId": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"requestId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"connectionName": "apikey",
"model": "claude-opus-5-5",
"endpoint": "https://api.apikey.fan",
"protocol": "chat-completions",
"startedAt": "2026-11-03T05:25:12.741Z",
"finishedAt": "2026-11-03T05:25:16.874Z",
"outcome": "failed",
"usageStatus": "reported",
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"localEstimate": {
"schemaVersion": 1,
"inputTokens": 7360,
"outputTokens": 256,
"requestSha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"requestBytes": 20928,
"estimateMethod": "utf8-third-plus-framing-v1"
},
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"estimatedUnknownTokens": 0
}
]
},
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
},
"workspaces": [],
"runs": [
{
"id": "5935a58d-8feb-44d7-a3ca-640ade787179",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"status": "paused",
"startedAt": "2026-11-03T05:25:12.706Z",
"finishedAt": "2026-11-03T05:25:16.897Z",
"steps": 1,
"toolCalls": 0,
"usage": {
"requests": 1,
"inputTokens": 4307,
"outputTokens": 27,
"totalTokens": 4334,
"unknownRequests": 0,
"estimatedUnknownTokens": 0
},
"stopReason": "model_identity",
"model": {
"mode": "compatible",
"baseUrl": "https://api.apikey.fan",
"model": "claude-opus-5-5",
"contextLimit": 16000,
"maxOutputTokens": 256,
"configRevision": 50,
"modelResponseTimeoutMs": 300000,
"modelStreamIdleTimeoutMs": 120000,
"protocol": "chat-completions",
"streaming": true,
"nativeParameters": {},
"routing": {
"type": "connection",
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"revision": 7,
"strategy": "round-robin",
"sticky": true,
"maxAttempts": 1,
"queueTimeoutMs": 15000,
"members": [
{
"id": "09b0293b-faad-45c3-832d-7c8b615813aa",
"name": "apikey",
"brand": "Claude 兼容代理",
"protocol": "chat-completions",
"model": "claude-opus-5-5",
"capabilitySchema": 1,
"capabilityDeclarations": {
"text": "supported",
"tools": "supported",
"streaming": "supported",
"vision": "unknown",
"audio": "unknown"
},
"streaming": true,
"modelIdentityPolicy": "require-match",
"modelIdentityAliases": [],
"modelIdentityAliasSource": "",
"baseUrl": "https://api.apikey.fan",
"enabled": true,
"requiresKey": true,
"contextLimit": 16000,
"maxOutputTokens": 2048,
"concurrency": 8,
"revision": 7,
"source": "manual",
"createdAt": "2026-10-31T16:36:46.574Z",
"updatedAt": "2026-11-03T05:25:12.680Z",
"weight": 1,
"credentialRevision": 2
}
]
}
},
"budget": {
"maxSteps": 1,
"maxDurationMs": 320000,
"maxTokens": 16000,
"maxTaskTokens": 16000
},
"resumeOf": null,
"purpose": "execution",
"consumption": [
{
"attemptId": "9550294b-aeb5-466f-81f1-00ee4d04fd06",
"requestId": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"connectionName": "apikey",
"model": "claude-opus-5-5",
"endpoint": "https://api.apikey.fan",
"protocol": "chat-completions",
"startedAt": "2026-11-03T05:25:12.741Z",
"finishedAt": "2026-11-03T05:25:16.874Z",
"outcome": "failed",
"usageStatus": "reported",
"usage": {
"prompt_tokens": 4307,
"completion_tokens": 27,
"total_tokens": 4334
},
"localEstimate": {
"schemaVersion": 1,
"inputTokens": 7360,
"outputTokens": 256,
"requestSha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"requestBytes": 20928,
"estimateMethod": "utf8-third-plus-framing-v1"
},
"modelIdentity": {
"schemaVersion": 1,
"requestedModel": "claude-opus-5-5",
"reportedModels": [
"gpt-6.1-sol"
],
"status": "mismatch",
"complete": true,
"invalidIdentifiers": false,
"policy": "require-match",
"scope": "Identifiers in the outgoing request and upstream response; neither equal identifiers nor a declared mapping authenticate model weights.",
"responseSource": {
"artifactId": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"scope": "sse-stream"
}
},
"estimatedUnknownTokens": 0
}
],
"workspaceIdentity": {
"kind": "local-project",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"root": "D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\live-retest-j\\identity-only"
}
}
],
"progress": {
"totalTools": 0,
"completedTools": 0,
"requiresVerification": []
},
"artifacts": [
{
"id": "cfbbcec6-18bf-4086-994e-305321a522de",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model-request",
"mediaType": "application/json",
"sha256": "639b156897fc82cbcbedfd4dbbdb1b07a960a6f1d6cdaa857c68e7d4bbb2813c",
"bytes": 29389,
"relative": "63/639b156897fc82cbcbedfd4dbbdb1b07a960a6f1d6cdaa857c68e7d4bbb2813c.blob",
"createdAt": "2026-11-03T05:25:12.725Z",
"status": "stored"
},
{
"id": "de3b4bca-b0b4-44af-83da-6f0cca3466bc",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "context-plan",
"mediaType": "application/json",
"sha256": "69686781e9eaf4737b8d35340a960a0283e7c6a8d88dbf3f649c59d8a538aa9c",
"bytes": 2093,
"relative": "69/69686781e9eaf4737b8d35340a960a0283e7c6a8d88dbf3f649c59d8a538aa9c.blob",
"createdAt": "2026-11-03T05:25:12.728Z",
"status": "stored"
},
{
"id": "3131da46-d3ae-43d8-a199-86b574bbeec2",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model-attempt-request",
"mediaType": "application/json",
"sha256": "0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28",
"bytes": 20928,
"relative": "08/0820d369158abe498f72811970cc6667ff49579394ecf10c7fa3b8b4bde67b28.blob",
"createdAt": "2026-11-03T05:25:12.734Z",
"status": "stored"
},
{
"id": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"kind": "model-stream-response",
"mediaType": "text/event-stream",
"sha256": "af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0",
"bytes": 5612,
"relative": "af/af7ed87879b9a8af76850f26c4274a4684a72c19900c8c46a4c5e83b97dab6e0.blob",
"createdAt": "2026-11-03T05:25:16.868Z",
"status": "stored"
}
],
"checks": [],
"browsingTabs": [],
"browsingActions": [],
"previewPlans": [],
"previewJobs": [],
"mcpJobs": [],
"taskPlans": [],
"taskProofs": [],
"researchTargets": [],
"researchJobs": [],
"engineJobs": [],
"browserPlans": [],
"browserJobs": [],
"contextPlans": [
{
"schemaVersion": 1,
"id": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"sessionId": "cbe1632b-1121-4fec-920c-938af76313ab",
"projectId": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"taskId": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"runId": "5935a58d-8feb-44d7-a3ca-640ade787179",
"stepId": "5e28692c-1428-47b5-be73-1f7948627672",
"requestIndex": 1,
"status": "failed",
"createdAt": "2026-11-03T05:25:12.725Z",
"finishedAt": "2026-11-03T05:25:16.888Z",
"requestSha256": "639b156897fc82cbcbedfd4dbbdb1b07a960a6f1d6cdaa857c68e7d4bbb2813c",
"requestBytes": 29389,
"estimatedInputTokens": 7360,
"requestArtifactId": "cfbbcec6-18bf-4086-994e-305321a522de",
"tokenReservation": {
"schemaVersion": 1,
"method": "observed-route-max-v1",
"overheadTokens": 0,
"reservedTokens": 7616,
"routes": [
{
"connectionId": "09b0293b-faad-45c3-832d-7c8b615813aa",
"model": "claude-opus-5-5",
"protocol": "chat-completions",
"endpoint": "https://api.apikey.fan",
"localInputTokens": 7360,
"outputReservation": 256,
"inputRatio": 1,
"observedOutputTokens": 256,
"observedTotalFloor": 0,
"reservedTokens": 7616,
"sources": []
}
]
},
"maxBudgetAttempts": 2,
"estimateMethod": "maximum-wire-variant-utf8-v1",
"beforeInputTokens": 7360,
"beforeBytes": 29389,
"budget": {
"contextLimit": 16000,
"outputReservation": 256,
"safetyTokens": 1600,
"inputBudget": 14144,
"targetInputTokens": 14144,
"runRemainingTokens": 16000,
"taskRemainingTokens": 16000,
"limitingReason": "context_limit"
},
"mandatoryInputTokens": 7360,
"nextReadFixedInputTokens": 7360,
"workingRetentionTokens": 0,
"workingRetentionPolicyVersion": 1,
"originalMessages": 1,
"retainedMessages": 1,
"archivedGroups": 0,
"retainedGroups": [
0
],
"historyIndexArtifactId": null,
"historyIndexSha256": null,
"actualUsage": null,
"workingSetArtifactId": null,
"workingSetSha256": null,
"workingSetEntries": 0,
"workingSetViewVersion": 2,
"latestToolsArtifactId": null,
"latestToolsSha256": null,
"latestToolsEntries": 0,
"projectMemoryArtifactId": null,
"projectMemorySha256": null,
"projectMemoryEntries": 0,
"skillCatalogArtifactId": null,
"skillCatalogSha256": null,
"skillCatalogEntries": 0,
"mcpCatalogArtifactId": null,
"mcpCatalogSha256": null,
"mcpCatalogEntries": 0,
"requestAttempts": 1,
"responseSha256": null,
"source": "workbench",
"artifactId": "de3b4bca-b0b4-44af-83da-6f0cca3466bc",
"error": "请求与返回型号不一致。本次响应及用量已保留,工具未执行;核对连接或型号映射后显式续接。"
}
],
"changeSets": [],
"plans": [],
"deliveries": [],
"deliveryPlans": [],
"accountedTaskTokens": 4334
}
}
@@ -0,0 +1,373 @@
{
"passed": true,
"baselineSha256": "725f9d87bd6054952b1e484a84b539fb34528eafbaafcdfec0f423a65af8b5b4",
"afterSha256": "7ad38603775d043b74b18dad08e0716908d81a1ca388807fb40f9d2618a25422",
"checks": [
{
"table": "events",
"original": 12906,
"current": 12931,
"exact": 12906,
"normalized": 0
},
{
"table": "metadata",
"original": 6,
"current": 6,
"exact": 3,
"normalized": 3
},
{
"table": "outbox",
"original": 12906,
"current": 12931,
"exact": 12906,
"normalized": 0
},
{
"table": "projects",
"original": 54,
"current": 55,
"exact": 0,
"normalized": 54
},
{
"table": "records",
"original": 6078,
"current": 6086,
"exact": 6078,
"normalized": 0
},
{
"table": "sessions",
"original": 70,
"current": 71,
"exact": 70,
"normalized": 0
},
{
"table": "sqlite_sequence",
"original": 1,
"current": 1,
"exact": 0,
"normalized": 1
}
],
"additions": [
{
"table": "events",
"id": "762d156b-9ba9-4abd-8f55-e35e1ff6595d",
"sha256": "4376c68db390b000e18c26ed09bbf6983d974f144722250073caf83ec2c8c8b3"
},
{
"table": "events",
"id": "32ba1365-3008-44ec-932e-d2eff63cbd73",
"sha256": "10a01e07928673e370c83d1c357ea1b5299a6ff48a7fbe038beed0b3f2279e89"
},
{
"table": "events",
"id": "7b6ed74c-1c5c-4dad-af44-8148d38558cd",
"sha256": "64850345b9d42b57d77d175f70bce61f36cb3b6f8bb4f6705aa0e270d4c010ea"
},
{
"table": "events",
"id": "c662e40c-6d4d-4903-bb15-51be8c5f061c",
"sha256": "d307ea4e7ed736ecc89d527805631d8e0299c94fd45b3eaf4aa0b55b31d1572e"
},
{
"table": "events",
"id": "ecf0e735-0c38-4e40-980d-0c503fa6f070",
"sha256": "40e97d1089f87e08d01e2cb92e7da877b5078a3e399b77882daeeb65af0c6f7a"
},
{
"table": "events",
"id": "bf0685db-2f10-469b-920d-4da0d64ca1cc",
"sha256": "dba78ef4abed0231a735ff2db13905e5c4d0773f2ca69dfc1deb54f454651276"
},
{
"table": "events",
"id": "e450e338-8801-4831-a38e-01f622c5d944",
"sha256": "61ba0906dac5d217db04d8e5397167b856a0482b1bc164820e575695f712fc35"
},
{
"table": "events",
"id": "a99f15f3-7b7f-4901-ad10-953269effd76",
"sha256": "050f20b710d0b380bf596618bd3862c686c78f7c398734cde66933840d8b5c21"
},
{
"table": "events",
"id": "efbdffc9-b3af-4c52-aab7-fea1fe558001",
"sha256": "7de9b59f7e1881522152e55610f74def6b235b590af401bdb2e601c7351d8277"
},
{
"table": "events",
"id": "8e03758d-799b-4490-a3d4-638f5a701ab6",
"sha256": "deeba4d6fb136417d7c737f8261c8db53dccb809010f6431f3419e74f5e3a322"
},
{
"table": "events",
"id": "98530687-ff83-48ae-9e51-c815b00874a0",
"sha256": "6cab52f7c7d5a96f530c5a10d69ec6a20a35c38721f9a35f21ea703b8d919395"
},
{
"table": "events",
"id": "3668f860-a248-4938-93ea-b555d1671a84",
"sha256": "a8dbf7272f9fff19466dd2f5e316580977ccae18275322d62f4b50feb86e0627"
},
{
"table": "events",
"id": "1e177d2b-56c6-4d96-b441-8dd137747f61",
"sha256": "943c3c60e33e47c5e4222c051ab9cf3ab3d3b5ef4672bcb0eeff04bf8bd4fb60"
},
{
"table": "events",
"id": "be96ef02-9b70-49bb-8c5d-71c85a88c008",
"sha256": "4b7e9e6cf8c2cc2cdb7748b0b066df21905f1842fc3d95d0d82020faa3d28102"
},
{
"table": "events",
"id": "fc7e8d19-bb3a-408a-8bfd-7f846678a2f9",
"sha256": "12caadfa9eb8de109fedf70845b51fccf89da96b4a47b578e27db950d6abf83f"
},
{
"table": "events",
"id": "657925a5-24c0-4410-afd5-ec1e4f1b3e5a",
"sha256": "04e39be98c4323b056f806a82e9e6fc2586a866d0e0bc2b987633747d99cfe6b"
},
{
"table": "events",
"id": "2ef175cf-72b6-4713-84a5-a911d9a5cd35",
"sha256": "1a505c12e02deb17257238280acac2a715fc09717f8f43229e1cf97a28d4fa7e"
},
{
"table": "events",
"id": "867f13c0-a348-4802-a959-e4aa346ba475",
"sha256": "01df600329ddaf4c4c0cecf71dd35d86e0d682c450517445eca5d6418d741172"
},
{
"table": "events",
"id": "d7e17744-21ca-4b0d-b6b0-fe691466deec",
"sha256": "0295e90e23262f9030f2f289048362739a3be9de99b8a4a465ca4b5ec10d7d21"
},
{
"table": "events",
"id": "eb76199d-013e-4ca4-a296-67788589e5ff",
"sha256": "985036878c1191f9997418e31480c9081e55ad07172e06690a1839ede21d40ba"
},
{
"table": "events",
"id": "10bf7db7-15c4-41ac-a725-9f89e6526d5f",
"sha256": "8e457f8cf66d998ee671c810b6007d1163b22642e2bbc3ed79c6ac1a7fa12c41"
},
{
"table": "events",
"id": "cb13dee7-be1d-4576-88b1-2ff3ffef3730",
"sha256": "db3608c28499147f265fe430072f21b707a6f9f6f1a8db7ce2b1971382bbc4af"
},
{
"table": "events",
"id": "a22821f0-ca40-463c-b2f0-866cffac5d11",
"sha256": "e3a299b18934aaafc9f6b6b1583b9a81ec61d22b14f2027b63178a8d951dc0d0"
},
{
"table": "events",
"id": "32d3e237-12f9-4f0d-9abf-351b35800f22",
"sha256": "f22af9bb80ce0650d141db0fe8df821fb0c51b2f086ad846b68ee80e42f306eb"
},
{
"table": "events",
"id": "30e8b6cf-04c6-40a1-a9e6-440cfc680249",
"sha256": "095fd2159a6009ec2c8a983ff023d728c0ce22af6990de8df3edf7441206ba0b"
},
{
"table": "outbox",
"id": 12907,
"sha256": "e68cf027412c0300bdeb9175d3d63bd6ee97772ca171762b594084b686eb5e32"
},
{
"table": "outbox",
"id": 12908,
"sha256": "264124f7c9fbb32804878961563be9cc1a3142b8cbb036205bda56b794f2051a"
},
{
"table": "outbox",
"id": 12909,
"sha256": "a9ec81cfddbe55b7cb37363d5d4f5310acaaeba85a56e32258d6956d6bb9de94"
},
{
"table": "outbox",
"id": 12910,
"sha256": "435eee3504c37ff3187dd4b1cfb085e74a85aa4a600638f4b98424e81b2cb3b8"
},
{
"table": "outbox",
"id": 12911,
"sha256": "5e01af4e4993a71b0391193cf26c1e81791c313f7a209725c09e66bb364b59e7"
},
{
"table": "outbox",
"id": 12912,
"sha256": "2187929253f5e8b47f1e0519882fcd5e9c6cf6038e903a55ea2f23d7bee38b7a"
},
{
"table": "outbox",
"id": 12913,
"sha256": "9b90ba647809c9a8841ae22796a79df46f1d9673b3d1c957a55918df8d4b8038"
},
{
"table": "outbox",
"id": 12914,
"sha256": "ba3c0a65bac5ce32087330a68eacc737d2ae3b52cad6c70d6aeeface009d013d"
},
{
"table": "outbox",
"id": 12915,
"sha256": "6800b13d1cdb8e3dc367b618206cb0beffd76dbc5debd97c3bf0b305a99a5198"
},
{
"table": "outbox",
"id": 12916,
"sha256": "f093af3340f7f3f1a7b3860e872cafd85c395d88174cec3c5f70adddfe3d0e75"
},
{
"table": "outbox",
"id": 12917,
"sha256": "9f80c6292c5a93d08fdd5b682edde8654f37b442964d0f6a94a1e6f216430421"
},
{
"table": "outbox",
"id": 12918,
"sha256": "dbc90b406a5178c2aeec9eff6ae7d8d6886c663d82e8d34e9d1f070ed4f06b6a"
},
{
"table": "outbox",
"id": 12919,
"sha256": "9318a0249c1d083b4ed5dd4b7ef6961c9b90c69e9f3373bfc0c455534006a4cf"
},
{
"table": "outbox",
"id": 12920,
"sha256": "bf279dc12a039cb5ba2b48183ebe4156dd3b503a674255276a33c5dae2e881a0"
},
{
"table": "outbox",
"id": 12921,
"sha256": "d4b2fc60dafe1d3a870d3902fba99cfaf3fa194a70fe49f427dffbc9fc27281c"
},
{
"table": "outbox",
"id": 12922,
"sha256": "b3022635fc4830e97a4faa2b94903bc9035d83192565266c6eaa85218d8e9f94"
},
{
"table": "outbox",
"id": 12923,
"sha256": "d45263f4e35ccc6868d7fd7ab0f232f07f2fcfeb5c41149038e5567e3609487b"
},
{
"table": "outbox",
"id": 12924,
"sha256": "a288385d92257c3b5f39620c7f1ebc82415596fd0b9e3cdd2c9862119313972c"
},
{
"table": "outbox",
"id": 12925,
"sha256": "3d0e24a5deca553e6eb7c068b05986c6f44b4b27b8b6ca9a8d060ace50930cc5"
},
{
"table": "outbox",
"id": 12926,
"sha256": "910bb2b5dfcb703f0726952171ea33ca69ba8e9c96c1cd0ed5aeb308df3b7692"
},
{
"table": "outbox",
"id": 12927,
"sha256": "695c6f416758626876ffb95edb4fc169afd45bf2d9cee6d8e7c4fa2e38146b72"
},
{
"table": "outbox",
"id": 12928,
"sha256": "d0956a4db35b7b4d7dcd9da7dfe3bd2b4220e1c86bd5137cb0b834f7c6376ccb"
},
{
"table": "outbox",
"id": 12929,
"sha256": "a7d52b0d7037f6be2ee2fa553a020e925c83c6a1656cb87952891f24f0a3b8a3"
},
{
"table": "outbox",
"id": 12930,
"sha256": "fa45c53dd085583a1febd8ec10e7f08f61c91e528061e3967e8aaf299d4fc73e"
},
{
"table": "outbox",
"id": 12931,
"sha256": "2d02dbce4b8ab0f0e604a0cd3c2d410f9279663ccc76fc99d75c589d907e7ec5"
},
{
"table": "projects",
"id": "f2a2b315-ef15-47d5-8cc5-b7ab55421d7e",
"sha256": "8449745ea4a92d21a7c0a9a5330c57bd8152d764f555cf563a7b1643e4878d7b"
},
{
"table": "records",
"id": "d0b98fdd-b70a-4865-b797-346ec6f271a2",
"sha256": "0fecd25253bf56bb02d1d882f88099a157de2010f9bfc6c54d1a116d246fb739"
},
{
"table": "records",
"id": "5935a58d-8feb-44d7-a3ca-640ade787179",
"sha256": "1ea46766bcd533c80e3ab01f00f3bdb338df725237c87b74c78a17b2efdede0a"
},
{
"table": "records",
"id": "5e28692c-1428-47b5-be73-1f7948627672",
"sha256": "5a40e2097510727340e16c2f7036d1d9a5b640800127e9feac424e1c14370a6d"
},
{
"table": "records",
"id": "cfbbcec6-18bf-4086-994e-305321a522de",
"sha256": "48f6abd5b465bd1360feee613e72d36f96b3dfd75c3afa84a6d37b2b2fe2cce3"
},
{
"table": "records",
"id": "de3b4bca-b0b4-44af-83da-6f0cca3466bc",
"sha256": "c1a0f1a357908f29d29992a9c54a38415779ddccf5d5f13c3b3a05b84478a216"
},
{
"table": "records",
"id": "f19640de-deed-4f52-ae6b-0374f8d71abc",
"sha256": "4948a2cb5c06cf2629e5c1489a831c5ecc6320d272bc8ed274af8b2952d4bd43"
},
{
"table": "records",
"id": "3131da46-d3ae-43d8-a199-86b574bbeec2",
"sha256": "4ab282bbd0f9da1a2f4ca3e92364148ea9f2267e0b66ffcfd96c0c3bdaab2d60"
},
{
"table": "records",
"id": "b33dcb19-fce2-45a6-9f0e-4e5193a1e195",
"sha256": "3c27fa1d871f6e31c9785ac02b1d7076e0e5d6d476091f464a09fdf7607f26f0"
},
{
"table": "sessions",
"id": "cbe1632b-1121-4fec-920c-938af76313ab",
"sha256": "04544b5a130b42acba19bc8da68c225be0cb96f16c1b6191778d1bd95e4ce2ac"
}
],
"declaredNormalizations": [
"One owned project inserts at position 0; original project positions shift by exactly one.",
"Config/registry/connection revisions increase monotonically; original public values restored.",
"Previously absent identity defaults are explicitly record/[]/empty; original behavior restored.",
"Exactly one owned attempt appended; event sequence grows only by owned events."
],
"diskConfigRevisions": {
"original": 48,
"actual": 52
},
"compatibilityExport": "Exact original-byte SHA reconstructed; only monotonic configRevision 48 to 52 differs.",
"originalExportsExact": 70,
"originalArtifactsExact": 3566,
"noCredentialAccess": true,
"noHostRestartOrActivation": true
}
+1
View File
@@ -0,0 +1 @@
{"passed":true,"files":30,"bytes":190046,"requests":1,"requestedModel":"claude-opus-5-5","reportedModels":["gpt-6.1-sol"],"identityPassed":false,"reportedTokens":4334,"engineeringTested":false,"purgeBenefitTested":false,"scope":"Offline original-artifact and receipt consistency. No model request; no authentication of supplier model weights or reconstruction of excluded private original user data."}
+13
View File
@@ -1,5 +1,9 @@
# 汇总发现
## 当前 J:apikey 线路仍存在请求/返回身份差异
用户指定 apikey Claude 的独立新样本中,封存请求模型为 claude-opus-5-5,完整 SSE 为 gpt-6.1-sol;单次4307+27=4334报告tokens,严格门禁在工具执行前暂停。接口能回复唯一 nonce,但不能用于认证 Claude 能力或模型权重。已恢复原状态并独立核对全部原行和原70导出/3566工件;更正连接前不做工程/Purge。raw usage 额外包含 cache_write_tokens4304,离线验证器按三项规范化总量核对并单独核对原详细字段;初封存源码/清单保持,加法更正,不把缓存报告解释为收益。
## I 范围与起点
已确认HTTP成功之前没有保存完整成功原响应(仅错误或SSE捕获);I-A为JSON成功也保存原响应,身份与工件SHA/所属会话绑定,严格拒绝仍保留实际usage。ModelHub需保存每次消费的modelIdentity及映射修订来源,旧记录缺失字段保留历史未知。G同轮批次交接已存在;B/C应以现有working-set和readProgress实现为准,避免重复建设。
@@ -998,3 +1002,12 @@ G最终回顾:正式升级的多轮verify-current/verify-candidate分别包含
I正式交付完成:源码1153e19a/候选20261103042107173,179/179相关回归,最后只涉及前端诊断标题与UI入口的修正已重建/回看;Chat/Responses编译工程各3组、实际Harness两协议32K/Chat16K各5组通过。535源码ZIP输入离线重建22/22、三归档、便携新身份3组/交付3组、12实际安装及安装副本16+9组通过。正式1.24.2保留PID36552/Provider、54项目/70会话/6078记录/12906事件/3566工件及每表原行/全导出/公开模型中心精确一致;原生窗口3项和原浏览器标签回看及随后再次核对通过,9229关闭。实际升级790338ms,主要耗于反复清单/目录核对,后续性能研究保留完整性约束。真实配置模型请求0,原版Purge收益未证明;J新有界预检/工程/独立收益计划已记录。
最终证据首离线核对拦下浏览器JPEG误标PNG,原图、原MIME收据和首manifest完全保留;附同字节JPG、更正及首失败后,1647份/87733455字节离线通过,最终manifest beb9301faaef990178ec6bbdae4401ba17f9cd9f01f982af6e8cec9b276d85ad。原生截图均用真实JPEG格式;不把更正后的结果倒写到首轮。恢复网页时CUA旧连接连续不可用,重新初始化后成功;原网页仅刷新,无草稿/任务改写,首次初始化短暂1.10默认显示稳定后实际为1.24.2。原生首次最小化经activate后回看,启动发现延迟按实际窗口重新选择。未重装或重跑已完成产品流程。
## J 接续:用户选定 apikey Claude
单次真实预检已返回:请求 claude-opus-5-5,SSE 全部型号字段为 gpt-6.1-sol,4307 输入/27 输出/4334 报告 tokens,0 工具,严格策略已暂停。原公开参数与号池已恢复(原缺省身份策略显式记录为等价 record/[]/空串,修订单调递增)。原 70 导出/3566 工件/原会话和执行行已核对保持。补充整表审计首轮发现验收器漏列自有 outbox 追加行,未把未分类行当通过;保留首失败并按实际 outbox 关联核对后复验,不重发模型请求。
整表审计第二轮将 sqlite_sequence 的可增长 seq 误当稳定行标识而拒绝;已保留脚本/日志,改为仅该表按唯一 events 名称定位并严格核对 seq 等于新事件游标后逆算旧值。两次均是本机只读验收器失败,没有重发模型或改变正式记录。
第三轮整表已完成后,额外“兼容 config.json 全字节不变”的错误断言拒绝。实际仅 configRevision 48→52;按真实 atomicJson 序列化重建的原配置 SHA 精确为测试前 e6d8236b99057d8d42cf2e473f0aca272c01a5ec9c07bfb64cf803395048bc3d。第四轮只为该已证明的修订单调增长增加精确归一化,projects.json 仍要求原字节一致;保留全部首失败,未改写磁盘或降低未知差异检查。
用户要求先核对已有 apikey(请求 claude-opus-5-5)。上一阶段没有真实调用;本轮先新建有界身份预检,不读取或复制 Provider 凭据。旧 E/H 返回身份不一致不能证明本次线路状态。本轮批读历史记录的首输出超过上限,已改为精确文件/短段;PowerShell 未展开路径通配符的 rg 查询报错,后续使用实际目录和 -g。
+7
View File
@@ -1,5 +1,9 @@
# 统一执行进度
## 当前 J:单次真实身份预检结束
apikey 请求 claude-opus-5-5,上游标记 gpt-6.1-sol;1 请求/4334 报告 tokens/0 工具,系统以 model_identity 暂停。原 PID36552/Provider/凭据保持,70 原导出/3566 原工件及原表行核对完成;原池/参数恢复,公开修订与等价默认身份字段如实记录。30 份/190046 字节新证据离线通过;未启动工程或 Purge。首三次整表验收器失败和首次封存中离线脚本 raw usage 比较修正均追加保留,不重发真实请求。详见 docs/LIVE-MODEL-IDENTITY-J-RESULTS.md。
## I 修复启动
I-C修复后10/10、构建通过。编译宿主Chat完整交付3组/7次自有请求通过:原3失败→两文件提案/批次审查→显式同Task续接→直接采用当前SHA/失效检查快照重新计划/审批→原3通过与构建→Git预览及显式确认,仅两文件提交、原用户暂存/工作区保持,报告逐尝试身份matched。首验证器误把plan_checks的id读成plan_id,在第二请求失败,原日志/样本保存;修正验证器后新隔离例通过,产品没有以该失败修改检查契约。真正模型与Purge收益尚未新测。
@@ -1523,3 +1527,6 @@ I正式交付完成:源码1153e19a/候选20261103042107173,179/179相关回
最终证据首离线核对拦下浏览器JPEG误标PNG,原图、原MIME收据和首manifest完全保留;附同字节JPG、更正及首失败后,1647份/87733455字节离线通过,最终manifest beb9301faaef990178ec6bbdae4401ba17f9cd9f01f982af6e8cec9b276d85ad。原生截图均用真实JPEG格式;不把更正后的结果倒写到首轮。恢复网页时CUA旧连接连续不可用,重新初始化后成功;原网页仅刷新,无草稿/任务改写,首次初始化短暂1.10默认显示稳定后实际为1.24.2。原生首次最小化经activate后回看,启动发现延迟按实际窗口重新选择。未重装或重跑已完成产品流程。
I本地索引1648份/88426738字节批量原字节核对通过。首次cached diff检查指出封存编译依赖原尾空格及原app.mjs末空行;不修剪原件,只将本版source-bytes标记binary。J普通计划文档末尾多空行已修正。重新diff和原字节核对后进行最终证据提交,不修改已安装载荷或正式数据。
## J:真实连接预检开始
已接收用户选择“先核对现有 apikey Claude 连接”。先按 docs/LIVE-RETEST-J-PLAN.md 封存正式基线和新契约,再单次发送;尚未发出真实请求。Provider 和原始密钥保持在原进程,测试不抽取凭据、不重启服务。
+94
View File
@@ -0,0 +1,94 @@
import fs from 'node:fs';
import path from 'node:path';
import assert from 'node:assert/strict';
import { createHash } from 'node:crypto';
import { fileURLToPath } from 'node:url';
// Offline verification only. This script never opens a model connection or reads credentials.
const repo = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const root = path.join(repo, 'docs/live-model-identity-j-evidence');
const sha = value => createHash('sha256').update(value).digest('hex');
const read = name => JSON.parse(fs.readFileSync(path.join(root, name)));
const manifest = read('manifest.json');
const listed = new Set();
for (const file of manifest.entries) {
assert.equal(path.posix.isAbsolute(file.path), false);
assert.equal(file.path.includes('\\'), false);
assert.equal(file.path.split('/').includes('..'), false);
assert.equal(listed.has(file.path), false); listed.add(file.path);
const bytes = fs.readFileSync(path.join(root, file.path));
assert.equal(bytes.length, file.bytes, file.path + ' length');
assert.equal(sha(bytes), file.sha256, file.path + ' original bytes');
}
const actual = [];
function walk(relative = '') {
for (const entry of fs.readdirSync(path.join(root, relative), { withFileTypes: true })) {
const name = path.posix.join(relative, entry.name);
if (entry.isDirectory()) walk(name);
else { assert.ok(entry.isFile(), 'Only regular evidence files'); if (name !== 'manifest.json') actual.push(name); }
}
}
walk(); assert.deepEqual(actual.sort(), [...listed].sort());
assert.equal(manifest.count, listed.size);
assert.equal(manifest.bytes, manifest.entries.reduce((n, f) => n + f.bytes, 0));
const contract = read('contract.json'), result = read('result.json'), attempts = read('attempts.json');
const state = read('session.json'), exported = read('session-export.json');
const requestBytes = fs.readFileSync(path.join(root, 'request.json'));
const request = JSON.parse(requestBytes);
const response = fs.readFileSync(path.join(root, 'response.sse'));
assert.equal(contract.maxRequests, 1); assert.equal(contract.maxAttempts, 1);
assert.equal(contract.maxOutputTokens, 256); assert.equal(contract.maxTaskTokens, 16000);
assert.equal(contract.modelIdentityPolicy, 'require-match'); assert.deepEqual(contract.aliases, []);
assert.equal(contract.poolSwitching, false); assert.equal(contract.automaticReplay, false);
assert.equal(attempts.length, 1);
const attempt = attempts[0];
assert.equal(attempt.connectionId, contract.connectionId); assert.equal(attempt.poolId, null);
assert.equal(attempt.ordinal, 1); assert.equal(attempt.requestSha256, sha(JSON.stringify(request)));
assert.equal(attempt.responseSha256, sha(response)); assert.equal(attempt.responseRedacted, false);
assert.equal(request.model, contract.requestedModel); assert.equal(request.model, 'claude-opus-5-5');
assert.equal(request.max_tokens ?? request.max_completion_tokens, 256); assert.equal(request.stream, true);
const data = response.toString('utf8').split(/\r?\n/).filter(line => line.startsWith('data:')).map(line => line.slice(5).trim());
assert.equal(data.at(-1), '[DONE]');
const packets = data.filter(line => line !== '[DONE]').map(line => JSON.parse(line));
const models = [...new Set(packets.filter(p => Object.hasOwn(p, 'model')).map(p => p.model))];
assert.deepEqual(models, ['gpt-6.1-sol']); assert.notEqual(request.model, models[0]);
const rawUsage = packets.findLast(p => p.usage)?.usage;
const usage = Object.fromEntries(['prompt_tokens', 'completion_tokens', 'total_tokens'].map(key => [key, rawUsage[key]]));
assert.deepEqual(rawUsage.prompt_tokens_details, { cache_write_tokens: 4304 });
assert.deepEqual(usage, attempt.usage);
assert.equal(usage.prompt_tokens + usage.completion_tokens, usage.total_tokens);
assert.equal(usage.total_tokens, 4334); assert.ok(usage.total_tokens <= contract.maxTaskTokens);
assert.equal(packets.flatMap(p => p.choices ?? []).flatMap(c => c.delta?.tool_calls ?? []).length, 0);
const answer = packets.flatMap(p => p.choices ?? []).map(c => c.delta?.content ?? '').join('');
assert.equal(answer, 'OK ' + contract.nonce);
assert.equal(state.status, 'paused'); assert.equal(state.execution.run.stopReason, 'model_identity');
assert.equal(state.execution.progress.totalTools, 0); assert.equal(state.execution.accountedTaskTokens, 4334);
assert.deepEqual(state.execution.run.budget, { maxSteps: 1, maxDurationMs: 320000, maxTokens: 16000, maxTaskTokens: 16000 });
const consumption = state.execution.run.consumption;
assert.equal(consumption.length, 1); assert.equal(consumption[0].attemptId, attempt.id);
assert.deepEqual(consumption[0].usage, usage); assert.deepEqual(consumption[0].modelIdentity.reportedModels, models);
assert.equal(consumption[0].modelIdentity.policy, 'require-match'); assert.equal(consumption[0].modelIdentity.complete, true);
assert.equal(consumption[0].modelIdentity.status, 'mismatch');
assert.equal(consumption[0].modelIdentity.responseSource.sha256, sha(response));
assert.ok(consumption[0].localEstimate.inputTokens + consumption[0].localEstimate.outputTokens <= contract.maxTaskTokens);
assert.equal(attempt.status, 'failed'); assert.equal(attempt.diagnostic.kind, 'model_identity');
assert.equal(attempt.diagnostic.retryable, false); assert.equal(attempt.diagnostic.failoverAllowed, false);
assert.equal(result.identityPassed, false); assert.equal(result.engineeringTestAllowed, false);
assert.equal(result.realEngineeringDeliveryTested, false); assert.equal(result.purgeBenefitTested, false);
assert.equal(result.modelWeightsAuthenticated, false); assert.deepEqual(result.usage, usage);
assert.equal(exported.session.id, state.id); assert.deepEqual(exported.execution, state.execution);
for (const capture of result.captures) assert.equal(capture.sha256, sha(fs.readFileSync(path.join(root, capture.file))));
const restoration = read('restoration.json'), audit = read('state-audit.json'), baseline = read('baseline-summary.json');
assert.equal(restoration.passed, true); assert.equal(audit.passed, true);
assert.equal(restoration.pid, 36552); assert.equal(restoration.addedAttempts, 1);
assert.equal(restoration.originalExports, 70); assert.equal(restoration.originalArtifactFiles, 3566);
assert.equal(restoration.originalCredentialRevision, restoration.restoredCredentialRevision);
assert.equal(restoration.originalSelectionRestored, true);
assert.equal(audit.baselineSha256, baseline.beforeSha256); assert.equal(audit.afterSha256, baseline.afterSha256);
for (const table of audit.checks) assert.equal(table.exact + table.normalized, table.original);
assert.equal(audit.additions.length, 60);
assert.deepEqual(audit.diskConfigRevisions, { original: 48, actual: 52 });
console.log(JSON.stringify({ passed: true, files: manifest.count, bytes: manifest.bytes, requests: 1,
requestedModel: request.model, reportedModels: models, identityPassed: false, reportedTokens: usage.total_tokens,
engineeringTested: false, purgeBenefitTested: false,
scope: 'Offline original-artifact and receipt consistency. No model request; no authentication of supplier model weights or reconstruction of excluded private original user data.' }));
+10
View File
@@ -1,5 +1,9 @@
# Agent Workbench:核心代理能力研究与产品计划
## 当前 J:真实连接身份已核对,工程待新连接
用户选择 apikey Claude,已完成单次真实预检:请求 claude-opus-5-5 / 返回 gpt-6.1-sol,1 请求、4334 报告 tokens、0 工具,严格暂停。原状态复核、30 份新证据离线核对与报告完成,原参数/号池已恢复。见 docs/LIVE-MODEL-IDENTITY-J-RESULTS.md;下一只在更正或新选连接的独立预检通过后做 Node 工程,当前工程/Purge 未测。以下 I 及更早任务按历史时点理解。
## 当前优先 I:H 实测问题修复与回顾
用户已授权继续推进并及时回顾。基线410b3478,先身份、再应用后推进、再重复观察;沿用planning-with-files及product-ui-ux,不开启子代理。正式服务/原Provider/内存凭据保持,H/E失败与原件不改写。
@@ -725,3 +729,9 @@ F收尾:57d075e修正独立编译QA路径,6d09ac8封存差异;202610302320
最终封存外部日志预检拒绝后一次性核对36个引用:三份卸载日志原SHA均精确对应当前文件前缀,各追加199字节,均为卸载成功/移除完成/无需重启/日志关闭四行。保留原收据SHA,分别抽取并散列证明原前缀、封存完整终结日志和第三次原失败;未把变化日志当原字节相同,未重新卸载或重跑安装/升级。其它引用原SHA一致。
## J:apikey Claude 单次真实身份预检
- [complete] 用户选择现有 apikey Claude 连接;封存 1.24.2 正式状态和新样本契约。
- [complete] 原 Provider/单条连接,严格身份策略,实际一请求、256 输出限、16000 累计 tokens 限;返回不一致即停,无重试/切池/工具。
- [complete] 原请求/响应、4334 用量、SHA、报告与离线核对完成;原公开参数和池恢复,原会话/工件与全部表行核对完成。
- [pending] 型号核对未通过,新 Node 工程和 Purge 未启动;下一需更正或新选连接。旧 E/H/J 不自动续跑。