Files
Agent-Workbench/docs/model-protocols-f-release-evidence/038-protocol-b-diagnostic.tap
T
2026-11-01 00:19:52 +08:00

63 lines
7.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
✖ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (1300.0842ms)
✖ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (1644.0479ms)
▶ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool
✔ Reject {"id":"resp_owned","status":"incomplete","output":[{"type":"function_call","id":"fc_partial","call_i (1223.1276ms)
✔ Reject {"id":"resp_owned","status":"failed","output":[{"type":"function_call","id":"fc_failed","call_id":"f (1155.7996ms)
✔ Reject {"id":"resp_owned","status":"completed","output":[{"type":"function_call","id":"fc_bad","call_id":"" (1156.3402ms)
✔ Reject {"id":"resp_owned","status":"completed","output":[{"type":"computer_call","id":"not-supported"}],"us (1245.1388ms)
✔ Responses incomplete, failed, missing call identity and unsupported hosted outputs never dispatch a tool (4781.2321ms)
✔ wire adapter preserves tool IDs but never passes Responses-private Items to Chat or another endpoint (0.1672ms)
✔ connection JSON import accepts explicit Responses protocol and continues to reject unknown protocols without reading client sessions (582.8269ms)
ℹ tests 9
ℹ suites 0
ℹ pass 7
ℹ fail 2
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 8429.7815
✖ failing tests:
test at tests\model-protocols.test.mjs:20:1
✖ Responses executes one original tool through Runtime, carries encrypted Items, reports raw usage and seals exact wire bytes (1300.0842ms)
AssertionError [ERR_ASSERTION]: [{"id":"eb2e2af2-1bb6-4a23-bd69-bf3a92a58822","createdAt":"2026-10-31T14:05:31.890Z","taskId":"dfa2f733-60b0-4508-8fde-5d3bc2cabe63","runId":"b972b72a-3780-4e3c-aaad-b108aab9b9a5","kind":"model","source":"model_connection","label":"模型连接失败","phase":"failed","startedAt":"2026-10-31T14:05:31.890Z","contextPlanId":"ab822b86-8f30-496f-8e9e-27f72e9d736f","attempts":1,"connectionId":"0139bf69-e3c5-4538-b87b-682f69dbee68","modelAttemptId":"e5e0efbe-0584-4c67-b081-85594720bc0a","actualModel":"owned-model","output":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","diagnostic":{"endpoint":"http://127.0.0.1:49780/v1","model":"owned-model","route":"/responses","id":"caf45034-3f5a-454e-978e-272997785ea8","source":"model_connection","stage":"model_request","kind":"service","httpStatus":500,"attempts":1,"occurredAt":"2026-10-31T14:05:31.963Z","retryable":true,"title":"模型服务暂时无法处理请求","message":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","detail":"Invalid status code: completed","suggestion":"稍后重试,或检查模型服务状态。"},"durationMs":73,"finishedAt":"2026-10-31T14:05:31.963Z"},{"id":"55d20da0-da5b-478d-9dc3-7ad228c5b038","createdAt":"2026-10-31T14:05:32.098Z","taskId":"dfa2f733-60b0-4508-8fde-5d3bc2cabe63","runId":"b972b72a-3780-4e3c-aaad-b108aab9b9a5","kind":"error","source":"model_connection","label":"模型服务暂时无法处理请求","phase":"failed","output":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","diagnostic":{"endpoint":"http://127.0.0.1:49780/v1","model":"owned-model","route":"/responses","id":"caf45034-3f5a-454e-978e-272997785ea8","source":"model_connection","stage":"model_request","kind":"service","httpStatus":500,"attempts":1,"occurredAt":"2026-10-31T14:05:31.963Z","retryable":true,"title":"模型服务暂时无法处理请求","message":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","detail":"Invalid status code: completed","suggestion":"稍后重试,或检查模型服务状态。","runId":"b972b72a-3780-4e3c-aaad-b108aab9b9a5"}}]
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/model-protocols.test.mjs:27:10)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:615:9)
at async Test.run (node:internal/test_runner/test:1409:7)
at async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}
test at tests\model-protocols.test.mjs:44:1
✖ mixed-protocol pool keeps both actual variants and changes route on 429 without re-executing completed tools (1644.0479ms)
AssertionError [ERR_ASSERTION]: [{"id":"b575895d-06b3-4f3f-9a65-4ed464bccd8a","createdAt":"2026-10-31T14:05:33.156Z","taskId":"c6865d55-03f8-403f-a2a2-d30f1fbbe818","runId":"4e58ce5b-c759-4de6-9e30-fb7e4c88aef7","kind":"model","source":"model_connection","label":"正在切换模型池连接","phase":"retrying","startedAt":"2026-10-31T14:05:33.156Z","contextPlanId":"be7b5e07-478b-4680-882b-9b35820fa634","attempts":2,"connectionId":"e338e924-e116-42e6-8faf-e8a3b7a8eacc","modelAttemptId":"c170d220-136d-467d-96d7-8314435888fd","output":"第 2 次请求失败,将自动重试(最多 3 次)。","diagnostic":{"endpoint":"http://127.0.0.1:49783/v1","model":"owned-model","route":"/responses","id":"bd9519fd-aac8-4015-9b73-cb8cda81bdb0","source":"model_connection","stage":"model_request","kind":"service","httpStatus":500,"attempts":1,"occurredAt":"2026-10-31T14:05:33.411Z","retryable":true,"title":"模型服务暂时无法处理请求","message":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","detail":"Invalid status code: completed","suggestion":"稍后重试,或检查模型服务状态。"},"durationMs":39,"finishedAt":"2026-10-31T14:05:33.411Z"},{"id":"57c56608-b583-4b20-bf63-3dc8b0a684b4","createdAt":"2026-10-31T14:05:33.539Z","taskId":"c6865d55-03f8-403f-a2a2-d30f1fbbe818","runId":"4e58ce5b-c759-4de6-9e30-fb7e4c88aef7","kind":"error","source":"model_connection","label":"模型服务暂时无法处理请求","phase":"failed","output":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","diagnostic":{"endpoint":"http://127.0.0.1:49783/v1","model":"owned-model","route":"/responses","id":"bd9519fd-aac8-4015-9b73-cb8cda81bdb0","source":"model_connection","stage":"model_request","kind":"service","httpStatus":500,"attempts":1,"occurredAt":"2026-10-31T14:05:33.411Z","retryable":true,"title":"模型服务暂时无法处理请求","message":"模型服务暂时无法处理请求(HTTP 500)。 Invalid status code: completed","detail":"Invalid status code: completed","suggestion":"稍后重试,或检查模型服务状态。","runId":"4e58ce5b-c759-4de6-9e30-fb7e4c88aef7"}}]
+ actual - expected
+ 'failed'
- 'completed'
at TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/model-protocols.test.mjs:51:10)
at runNextTicks (node:internal/process/task_queues:65:5)
at process.processTimers (node:internal/timers:615:9)
at async Test.run (node:internal/test_runner/test:1409:7)
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 'failed',
expected: 'completed',
operator: 'strictEqual',
diff: 'simple'
}