conversation-session-title-generation-timeout.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-title-generation-timeout",
  4. "spec": "./test/e2e/conversation-session/task-management/conversation-session-title-generation-timeout.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "title-generation-timeout-delayed-title",
  8. "description": "V01: 首条消息以 skill markdown link 开头,session_title sidecar 响应慢于旧 15s timeout,但应在 60s 内完成并回写标题。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "controlled-stream",
  12. "source": "synthetic",
  13. "syntheticReason": "真实 provider title 延迟不可控;该 case 需要稳定制造 15s 之后、60s 之前才返回的标题响应。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["Generate a concise title", "E2E_TITLE_SIDECAR_TIMEOUT"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "statusMessage": "OK",
  24. "delayMs": 20000,
  25. "headers": {
  26. "content-type": "application/json; charset=utf-8"
  27. },
  28. "body": "{\"id\":\"upstream-e2e-title-generation-timeout-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"e2e-case-lifecycle 技能说明\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}"
  29. }
  30. },
  31. {
  32. "id": "title-generation-timeout-main-response",
  33. "description": "V01: 主回复快速完成,验证 title sidecar 独立慢回写,不阻塞主 turn idle。",
  34. "metadata": {
  35. "kind": "main",
  36. "timingPolicy": "fast-text",
  37. "source": "synthetic",
  38. "syntheticReason": "核心断言在 title sidecar 超时边界;主回复只需要稳定完成并暴露 marker。"
  39. },
  40. "maxMatches": 1,
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/messages",
  44. "bodyIncludes": ["E2E_TITLE_SIDECAR_TIMEOUT"],
  45. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  46. "lastUserMessageIncludes": ["E2E_TITLE_SIDECAR_TIMEOUT"]
  47. },
  48. "response": {
  49. "statusCode": 200,
  50. "statusMessage": "OK",
  51. "text": {
  52. "id": "upstream-e2e-title-generation-timeout-main",
  53. "inputTokens": 160,
  54. "outputTokens": 12,
  55. "text": "e2e-title-timeout-ok"
  56. }
  57. }
  58. }
  59. ]
  60. }