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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-title-generation-timeout",
  4. "spec": "./test/e2e/conversation-session/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": [
  20. "Generate a concise title",
  21. "E2E_TITLE_SIDECAR_TIMEOUT"
  22. ]
  23. },
  24. "response": {
  25. "statusCode": 200,
  26. "statusMessage": "OK",
  27. "delayMs": 20000,
  28. "headers": {
  29. "content-type": "application/json; charset=utf-8"
  30. },
  31. "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\"}}"
  32. }
  33. },
  34. {
  35. "id": "title-generation-timeout-main-response",
  36. "description": "V01: 主回复快速完成,验证 title sidecar 独立慢回写,不阻塞主 turn idle。",
  37. "metadata": {
  38. "kind": "main",
  39. "timingPolicy": "fast-text",
  40. "source": "synthetic",
  41. "syntheticReason": "核心断言在 title sidecar 超时边界;主回复只需要稳定完成并暴露 marker。"
  42. },
  43. "maxMatches": 1,
  44. "match": {
  45. "method": "POST",
  46. "pathIncludes": "/messages",
  47. "bodyIncludes": [
  48. "E2E_TITLE_SIDECAR_TIMEOUT"
  49. ],
  50. "bodyExcludes": [
  51. "Generate a concise title",
  52. "CRITICAL: Respond with TEXT ONLY"
  53. ],
  54. "lastUserMessageIncludes": [
  55. "E2E_TITLE_SIDECAR_TIMEOUT"
  56. ]
  57. },
  58. "response": {
  59. "statusCode": 200,
  60. "statusMessage": "OK",
  61. "text": {
  62. "id": "upstream-e2e-title-generation-timeout-main",
  63. "inputTokens": 160,
  64. "outputTokens": 12,
  65. "text": "e2e-title-timeout-ok"
  66. }
  67. }
  68. }
  69. ]
  70. }