conversation-session-v4-rewind-files.json 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-v4-rewind-files",
  4. "spec": "./test/e2e/conversation-session/editing/conversation-session-v4-rewind-files.test.ts",
  5. "providerFixtures": [
  6. "./test/e2e/fixtures/upstream/common.json",
  7. "./test/e2e/fixtures/upstream/conversation-session/conversation-session-v4-rewind-files.json"
  8. ],
  9. "fileFixtures": [
  10. {
  11. "path": "v4-rewind-files-e2e/safe.txt",
  12. "source": "created-by-helper",
  13. "description": "PV4-21 测试内创建 safe-before,Write 后由组合 rewind 恢复。"
  14. },
  15. {
  16. "path": "v4-rewind-files-e2e/conflict.txt",
  17. "source": "created-by-helper",
  18. "description": "PV4-22 测试内创建并外部修改,验证 blocked 与降级。"
  19. }
  20. ],
  21. "requests": [
  22. {
  23. "id": "v4-rewind-files-title",
  24. "description": "PV4-21/22 文件 rewind case-local 标题响应。",
  25. "kind": "common",
  26. "source": "synthetic",
  27. "timingPolicy": "fast-text",
  28. "syntheticReason": "标题不参与 workspace rewind 语义,用通用 marker 隔离两条 case。"
  29. },
  30. {
  31. "id": "v4-rewind-files-safe-read",
  32. "description": "PV4-21 先 Read safe.txt,建立 Write 前 read state。",
  33. "kind": "main",
  34. "source": "synthetic",
  35. "timingPolicy": "fast-text",
  36. "syntheticReason": "固定产生可安全回滚的已有文件 checkpoint。"
  37. },
  38. {
  39. "id": "v4-rewind-files-safe-write",
  40. "description": "PV4-21 Write safe.txt 并产生安全 checkpoint。",
  41. "kind": "main",
  42. "source": "synthetic",
  43. "timingPolicy": "fast-text",
  44. "syntheticReason": "实际改文件,供组合 rewind 恢复 beforeContent。"
  45. },
  46. {
  47. "id": "v4-rewind-files-safe-final",
  48. "description": "PV4-21 文件写入后的原分支回复。",
  49. "kind": "main",
  50. "source": "synthetic",
  51. "timingPolicy": "fast-text",
  52. "syntheticReason": "给 branch cut 提供可见旧回复证据。"
  53. },
  54. {
  55. "id": "v4-rewind-files-safe-edited",
  56. "description": "PV4-21 文件恢复 + branch cut 后的编辑回复。",
  57. "kind": "main",
  58. "source": "synthetic",
  59. "timingPolicy": "fast-text",
  60. "syntheticReason": "确认组合命令只重发编辑后 intent。"
  61. },
  62. {
  63. "id": "v4-rewind-files-conflict-read",
  64. "description": "PV4-22 先 Read conflict.txt,建立 checkpoint。",
  65. "kind": "main",
  66. "source": "synthetic",
  67. "timingPolicy": "fast-text",
  68. "syntheticReason": "后续外部改写将使 preview 返回 external_modified。"
  69. },
  70. {
  71. "id": "v4-rewind-files-conflict-write",
  72. "description": "PV4-22 Write conflict.txt 并产生 checkpoint。",
  73. "kind": "main",
  74. "source": "synthetic",
  75. "timingPolicy": "fast-text",
  76. "syntheticReason": "在 edit 前由测试外部改写,触发 fail-closed。"
  77. },
  78. {
  79. "id": "v4-rewind-files-conflict-final",
  80. "description": "PV4-22 外部修改前的原分支回复。",
  81. "kind": "main",
  82. "source": "synthetic",
  83. "timingPolicy": "fast-text",
  84. "syntheticReason": "blocked 期间必须继续可见。"
  85. },
  86. {
  87. "id": "v4-rewind-files-conflict-edited",
  88. "description": "PV4-22 仅重置对话降级命令的回复。",
  89. "kind": "main",
  90. "source": "synthetic",
  91. "timingPolicy": "fast-text",
  92. "syntheticReason": "证明新 commandId preserve 只发起一次新请求。"
  93. }
  94. ]
  95. }