conversation-session-virtual-project-mentions.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-virtual-project-mentions",
  4. "spec": "./test/e2e/conversation-session/projects/conversation-session-virtual-project-mentions.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "virtual-project-mentions-title-sidecar",
  8. "description": "本例标题旁路响应,防止 strict replay 依赖 legacy fixture。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "运行时证据显示 session_title 旁路缺少 fixture;固定标题响应隔离标题生成,主用例不验证标题内容。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "headers": {
  23. "content-type": "application/json; charset=utf-8"
  24. },
  25. "body": "{\"id\":\"msg_virtual-project-mentions-title-sidecar\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"E2E regression task\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"output_tokens\":8}}"
  26. }
  27. },
  28. {
  29. "id": "vp14-existing-task",
  30. "description": "Persisted task used by project mention discovery",
  31. "metadata": {
  32. "kind": "main",
  33. "source": "synthetic",
  34. "timingPolicy": "fast-text",
  35. "syntheticReason": "A fixed reply creates one real persisted task for composer project mentions; model generation quality is outside this case."
  36. },
  37. "maxMatches": 1,
  38. "match": {
  39. "method": "POST",
  40. "lastUserMessageIncludes": ["E2E_VP14_HISTORY"],
  41. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  42. },
  43. "response": {
  44. "statusCode": 200,
  45. "text": {
  46. "id": "vp14-history",
  47. "inputTokens": 80,
  48. "outputTokens": 12,
  49. "text": "E2E_VP14_READY"
  50. }
  51. }
  52. }
  53. ]
  54. }