{
  "schemaVersion": 1,
  "kind": "active-memory-ab-case",
  "id": "clean-half-step",
  "draft": true,
  "notGold": true,
  "gold": false,
  "review": "pending",
  "annotationSource": "synthetic-proxy",
  "interference": "off",
  "title": "半步边界：tool/call 没有结果就 deferred，不推进游标",
  "annotationNotes": "合成代理标注：throughSeq 停在 tool/call 上，之后的事件属于“尚未到达”，必须被排除在固定快照之外。",
  "snapshot": {
    "domain": "coding",
    "throughSeq": 3,
    "pendingCheck": true,
    "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": "这条要记住：写记忆前必须重新核对父 binding 的 domain 和开关，父会话切库时剩余提交一律拒绝。"
            }
          ]
        }
      },
      {
        "type": "assistant/message",
        "at": "2026-10-30T02:00:00.000Z",
        "data": {
          "message": {
            "content": [
              {
                "type": "text",
                "text": "先读一下 binding 现状。"
              },
              {
                "type": "tool-call",
                "toolCallId": "c1",
                "name": "read",
                "arguments": {
                  "path": "lib/state.js"
                }
              }
            ]
          }
        }
      },
      {
        "type": "tool/call",
        "at": "2026-10-30T02:00:12.000Z",
        "toolCallId": "c1",
        "name": "read",
        "arguments": {
          "path": "lib/state.js"
        }
      },
      {
        "type": "tool/result",
        "at": "2026-10-30T02:00:24.000Z",
        "toolCallId": "c1",
        "data": {
          "message": {
            "isError": false,
            "content": [
              {
                "type": "text",
                "text": "binding: domain=coding，私有层开启，全局只读。"
              }
            ]
          }
        }
      },
      {
        "type": "assistant/message",
        "at": "2026-10-30T02:00:24.000Z",
        "data": {
          "message": {
            "content": [
              {
                "type": "text",
                "text": "读到绑定信息了。"
              }
            ]
          }
        }
      },
      {
        "type": "step/end",
        "at": "2026-10-30T02:00:00.000Z",
        "step": 1
      },
      {
        "type": "turn/end",
        "at": "2026-10-30T02:00:36.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": "先停一下，等我确认。"
            }
          ]
        }
      },
      {
        "type": "assistant/message",
        "at": "2026-10-30T02:01:00.000Z",
        "data": {
          "message": {
            "content": [
              {
                "type": "text",
                "text": "好，停在这里。"
              }
            ]
          }
        }
      },
      {
        "type": "turn/end",
        "at": "2026-10-30T02:01:30.000Z"
      }
    ]
  },
  "labels": {
    "expected": [
      {
        "id": "mem-ab-half-rebind-check",
        "class": "decision",
        "sourceSeq": 1,
        "note": "写入前重验父 binding，切库就拒绝剩余提交"
      }
    ],
    "mainProactive": [],
    "userReminders": []
  },
  "expect": {
    "deferredAtLeast": 1,
    "uncoveredLabelIds": [
      "mem-ab-half-rebind-check"
    ]
  }
}
