{
  "schemaVersion": 1,
  "kind": "active-memory-ab-case",
  "id": "clean-duplicate-reread",
  "draft": true,
  "notGold": true,
  "gold": false,
  "review": "pending",
  "annotationSource": "synthetic-proxy",
  "interference": "off",
  "title": "重复读与已写条目：整段前缀重放会再次提议同一条",
  "annotationNotes": "合成代理标注：主模型已自己写入一条，后台检查再遇到它只能算重复，不能算新增覆盖；两次相同轮询结果去重后只算 1 个工作单元。",
  "snapshot": {
    "domain": "coding",
    "idleAtSnapshotEndMinutes": 20,
    "lastInjectedAt": null,
    "events": [
      {
        "type": "turn/start",
        "at": "2026-10-30T02:00:00.000Z"
      },
      {
        "type": "user/message",
        "at": "2026-10-30T02:00:00.000Z",
        "data": {
          "source": {
            "kind": "user"
          },
          "content": [
            {
              "type": "text",
              "text": "我把滚动窗口那个想法否掉了：宿主 seed 必须从 0 连续，窗口化不是改个计数能做到的。这条记一下。"
            }
          ]
        }
      },
      {
        "type": "assistant/message",
        "at": "2026-10-30T02:00:00.000Z",
        "data": {
          "message": {
            "content": [
              {
                "type": "text",
                "text": "记下了：不做窗口化 seed，等宿主给官方 windowed seed 再说。"
              },
              {
                "type": "tool-call",
                "toolCallId": "c1",
                "name": "memu_remember",
                "arguments": {
                  "memoryId": "mem-ab-dup-no-window"
                }
              }
            ]
          }
        }
      },
      {
        "type": "tool/call",
        "at": "2026-10-30T02:00:00.000Z",
        "toolCallId": "c1",
        "name": "memu_remember",
        "arguments": {
          "memoryId": "mem-ab-dup-no-window"
        }
      },
      {
        "type": "tool/result",
        "at": "2026-10-30T02:00:00.000Z",
        "toolCallId": "c1",
        "data": {
          "message": {
            "isError": false,
            "content": [
              {
                "type": "text",
                "text": "saved: mem-ab-dup-no-window"
              }
            ]
          }
        }
      },
      {
        "type": "step/end",
        "at": "2026-10-30T02:00:00.000Z",
        "step": 1
      },
      {
        "type": "turn/end",
        "at": "2026-10-30T02:00:30.000Z"
      },
      {
        "type": "turn/start",
        "at": "2026-10-30T02:01:00.000Z"
      },
      {
        "type": "user/message",
        "at": "2026-10-30T02:01:00.000Z",
        "data": {
          "source": {
            "kind": "user"
          },
          "content": [
            {
              "type": "text",
              "text": "另外，检查凭证里要带上 snapshot 摘要和 scope generation，不然重启后没法判断是不是同一份快照。"
            }
          ]
        }
      },
      {
        "type": "assistant/message",
        "at": "2026-10-30T02:01:00.000Z",
        "data": {
          "message": {
            "content": [
              {
                "type": "text",
                "text": "明白，凭证固定带四样：fromSeq、throughSeq、snapshotSha256、scopeGeneration。"
              }
            ]
          }
        }
      },
      {
        "type": "tool/result",
        "at": "2026-10-30T02:01:00.000Z",
        "toolCallId": "c2",
        "data": {
          "message": {
            "isError": false,
            "content": [
              {
                "type": "text",
                "text": "polling: no change"
              }
            ]
          }
        }
      },
      {
        "type": "tool/result",
        "at": "2026-10-30T02:01:00.000Z",
        "toolCallId": "c3",
        "data": {
          "message": {
            "isError": false,
            "content": [
              {
                "type": "text",
                "text": "polling: no change"
              }
            ]
          }
        }
      },
      {
        "type": "step/end",
        "at": "2026-10-30T02:01:00.000Z",
        "step": 2
      },
      {
        "type": "turn/end",
        "at": "2026-10-30T02:20:00.000Z"
      }
    ]
  },
  "labels": {
    "expected": [
      {
        "id": "mem-ab-dup-no-window",
        "class": "decision",
        "sourceSeq": 1,
        "note": "不做窗口化 seed，等宿主支持"
      },
      {
        "id": "mem-ab-dup-credential-fields",
        "class": "decision",
        "sourceSeq": 7,
        "note": "凭证必须带快照摘要与 scope generation"
      }
    ],
    "mainProactive": [
      "mem-ab-dup-no-window"
    ],
    "userReminders": []
  },
  "expect": {
    "minBackgroundChecks": 1,
    "duplicatesReproposedAtLeast": 1,
    "coveredLabelIds": [
      "mem-ab-dup-no-window",
      "mem-ab-dup-credential-fields"
    ]
  }
}
