zizi f76c3cd04a docs(架构): 归档R2历史留痕并清理过程计划与实施分期标签
- 归档并收敛 R2 历史留痕至 docs/实现回顾/R2改造历史留痕.md,删除已退出生命周期的改造计划、旧文件处置及验证过程文档
- 现行测试用例身份收敛至 tests/用例清单.json(1358条扁平登记),适配 conftest、索引维护与测试执行验证
- 清理源码、配置、SQL迁移头、测试夹具及规则文档中的 Wxx 实施分期标签与过时过程描述
- 同步重新打包构建资源清单,通过全量离线测试、模块边界、类型检查与索引双向强核验
2026-09-16 19:09:14 +08:00

221 lines
4.5 KiB
JSON
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.

{
"schema_version": "muse-fixture-dsh-events-v1",
"来源": "脱敏合成会话;依据 framework/adapters/dsh/normalization.py 的解析形状;不含真实 prompt/response/凭据",
"合同": "docs/系统架构/新版设计/接口契约/任务工具与事件.md;文件设计/测试与夹具.md#file-f36d7c5280a14732",
"输入格式": "DSH 明文 JSONL 会话逐行对象数组(此处合并为数组保存)",
"session": [
{
"type": "session",
"id": "dsh-syn-session-0001"
},
{
"type": "request/header",
"data": {
"header": {
"config": {
"provider": "synthetic-provider",
"model": "synthetic-model-a"
}
}
}
},
{
"type": "turn/start",
"data": {
"turn": 1
}
},
{
"type": "assistant/chunk",
"data": {
"turn": 1,
"step": 1,
"chunk": {
"type": "text",
"text": "第一"
}
}
},
{
"type": "assistant/chunk",
"data": {
"turn": 1,
"step": 1,
"chunk": {
"type": "text",
"text": "回合。"
}
}
},
{
"type": "assistant/chunk",
"data": {
"turn": 1,
"step": 1,
"chunk": {
"type": "finish",
"reason": {
"kind": "stop"
}
}
}
},
{
"type": "assistant/message",
"data": {
"turn": 1,
"step": 1,
"message": {
"source": {
"provider": "synthetic-provider",
"model": "synthetic-model-a"
},
"content": [
{
"type": "text",
"text": "第一回合。"
}
]
},
"usage": {
"inputTokens": 50,
"outputTokens": 6,
"costUsd": 0.0002
}
}
},
{
"type": "tool/call",
"data": {
"callId": "call-syn-0001",
"name": "query_planning",
"arguments": "{\"work_id\": \"work-syn-0001\"}"
}
},
{
"type": "tool/result",
"data": {
"message": {
"source": {
"callId": "call-syn-0001"
},
"content": [
{
"type": "text",
"text": "合成工具结果"
}
]
}
}
},
{
"type": "tool/call",
"data": {
"callId": "call-syn-0002",
"name": "query_facts",
"arguments": "{\"as_of\": \"synthetic\"}"
}
},
{
"type": "tool/result",
"data": {
"message": {
"source": {
"callId": "call-syn-0002"
},
"content": [
{
"type": "text",
"text": "合成失败",
"isError": true
}
]
}
}
},
{
"type": "turn/end",
"data": {
"turn": 1,
"reason": {
"kind": "stop"
}
}
},
{
"type": "turn/start",
"data": {
"turn": 2
}
},
{
"type": "assistant/chunk",
"data": {
"turn": 2,
"step": 1,
"chunk": {
"type": "text",
"text": "中断前"
}
}
},
{
"type": "assistant/error",
"data": {
"turn": 2,
"step": 1,
"error": {
"code": "synthetic_upstream_error"
}
}
},
{
"type": "turn/end",
"data": {
"turn": 2,
"reason": {
"kind": "error"
}
}
},
{
"type": "custom/experiment",
"data": {
"note": "合成未知事件类型"
}
}
],
"expected_normalization": {
"session_id": "dsh-syn-session-0001",
"model_calls": [
{
"actual_model_id": "synthetic-provider/synthetic-model-a",
"stop_reason": "stop",
"usage": {
"inputTokens": 50,
"outputTokens": 6,
"costUsd": 0.0002
},
"cost_usd": 0.0002
}
],
"tool_calls": [
{
"tool_call_id": "call-syn-0001",
"name": "query_planning",
"is_error": false
},
{
"tool_call_id": "call-syn-0002",
"name": "query_facts",
"is_error": true
}
],
"turns": 2,
"unknown_event_types": [
"custom/experiment"
],
"final_text": "第一回合。",
"失败回合": "turn 2 以 reason.kind=error 结束:kind=turn, phase=failed"
}
}