{
  "scope": "Shared synthetic tool-call progression mutations and expected outcomes; no runtime execution",
  "cases": [
    {
      "name": "partial capture",
      "fixture": "tool-call-partial.session.json",
      "edits": [],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {},
            "arguments_status": "partial"
          }
        },
        "closed_calls": {}
      }
    },
    {
      "name": "completion and late result",
      "fixture": "tool-call-completed.session.json",
      "edits": [],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "select completed version only",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-complete",
            "result-late"
          ]
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "unlinked duplicate invocation",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "supersedes"
          ],
          "remove": true
        }
      ],
      "error": "duplicate call identity"
    },
    {
      "name": "amendment changed invocation ID",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "data",
            "call_id"
          ],
          "value": "call-other"
        }
      ],
      "error": "call amendment changed invocation"
    },
    {
      "name": "amendment changed tool",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "data",
            "tool_id"
          ],
          "value": "other-tool"
        }
      ],
      "error": "call amendment changed invocation"
    },
    {
      "name": "amendment changed actor",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "actor_id"
          ],
          "value": "person"
        }
      ],
      "error": "call amendment changed actor or execution"
    },
    {
      "name": "amendment dropped execution",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "execution_id"
          ],
          "remove": true
        }
      ],
      "error": "call amendment changed actor or execution"
    },
    {
      "name": "amendment changed execution",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "executions",
            "1"
          ],
          "value": {
            "id": "run-other",
            "participant_id": "agent",
            "status": "unknown",
            "context_ids": [
              "context-1",
              "context-completed"
            ]
          }
        },
        {
          "path": [
            "events",
            "2",
            "execution_id"
          ],
          "value": "run-other"
        }
      ],
      "error": "call amendment changed actor or execution"
    },
    {
      "name": "completed predecessor cannot be retried by amendment",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "1",
            "data",
            "arguments_status"
          ],
          "value": "complete"
        }
      ],
      "error": "completed call cannot be amended"
    },
    {
      "name": "partial knowledge cannot regress to unknown",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "data",
            "arguments_status"
          ],
          "value": "unknown"
        }
      ],
      "error": "call argument knowledge regressed"
    },
    {
      "name": "external-only predecessor is not verifiable",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "supersedes"
          ],
          "value": {
            "session_id": "session-call-progression",
            "capture_id": "capture-call-partial",
            "event_id": "call-partial"
          }
        }
      ],
      "error": "call amendment requires local predecessor"
    },
    {
      "name": "missing local predecessor",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "supersedes",
            "event_id"
          ],
          "value": "absent"
        }
      ],
      "error": "missing local event reference"
    },
    {
      "name": "wrong predecessor kind",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "supersedes",
            "event_id"
          ],
          "value": "e1"
        }
      ],
      "error": "invalid supersession"
    },
    {
      "name": "future predecessor",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "1",
            "supersedes"
          ],
          "value": {
            "event_id": "call-complete"
          }
        }
      ],
      "error": "invalid supersession"
    },
    {
      "name": "conflicting selected amendments",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "4"
          ],
          "value": {
            "id": "alternative-complete",
            "sequence": 4,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-complete",
            "alternative-complete",
            "result-late"
          ]
        }
      ],
      "error": "conflicting selected call versions"
    },
    {
      "name": "separate branches select separate amendments",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "4"
          ],
          "value": {
            "id": "alternative-complete",
            "sequence": 4,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "1"
          ],
          "value": {
            "id": "alternative",
            "event_ids": [
              "e1",
              "call-partial",
              "alternative-complete"
            ],
            "head_event_id": "alternative-complete"
          }
        },
        {
          "path": [
            "checkpoints",
            "1"
          ],
          "value": {
            "id": "checkpoint-alternative",
            "branch_id": "alternative",
            "at_event_id": "alternative-complete",
            "knowledge": "derived",
            "status": "unknown",
            "context_id": null,
            "configuration_id": "config-1",
            "open_calls": [
              {
                "call_id": "call-1",
                "state": "outcome_unknown"
              }
            ],
            "open_decisions": [],
            "tasks": [],
            "requirements": []
          }
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "historical branch retains partial state",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "branches",
            "1"
          ],
          "value": {
            "id": "partial-history",
            "event_ids": [
              "e1",
              "call-partial"
            ],
            "head_event_id": "call-partial"
          }
        },
        {
          "path": [
            "checkpoints",
            "1"
          ],
          "value": {
            "id": "checkpoint-history",
            "branch_id": "partial-history",
            "at_event_id": "call-partial",
            "knowledge": "derived",
            "status": "unknown",
            "context_id": null,
            "configuration_id": "config-1",
            "open_calls": [
              {
                "call_id": "call-1",
                "state": "outcome_unknown"
              }
            ],
            "open_decisions": [],
            "tasks": [],
            "requirements": []
          }
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "late amendment preserves terminal result",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2"
          ],
          "value": {
            "id": "result-late",
            "sequence": 2,
            "actor_id": "agent",
            "kind": "tool_result",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "execution_id": "run-1",
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored late-result fixture; no tool executed",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "result_index": 0,
              "terminal": true,
              "outcome": "success",
              "parts": [
                {
                  "kind": "text",
                  "text": "Meeting notes: agree on the workshop outline."
                }
              ]
            }
          }
        },
        {
          "path": [
            "events",
            "3"
          ],
          "value": {
            "id": "call-complete",
            "sequence": 3,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "result-late",
            "call-complete"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-complete"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-complete"
        },
        {
          "path": [
            "contexts",
            "1",
            "at_event_id"
          ],
          "value": "call-complete"
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "partial to partial refinement",
      "fixture": "tool-call-partial.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2"
          ],
          "value": {
            "id": "call-more",
            "sequence": 2,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting"
              },
              "arguments_status": "partial"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-more"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-more"
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting"
            },
            "arguments_status": "partial"
          }
        },
        "closed_calls": {}
      }
    },
    {
      "name": "unknown to partial refinement",
      "fixture": "tool-call-partial.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2"
          ],
          "value": {
            "id": "call-more",
            "sequence": 2,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting"
              },
              "arguments_status": "partial"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-more"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "events",
            "1",
            "data",
            "arguments_status"
          ],
          "value": "unknown"
        },
        {
          "path": [
            "streams"
          ],
          "value": []
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting"
            },
            "arguments_status": "partial"
          }
        },
        "closed_calls": {}
      }
    },
    {
      "name": "unknown to complete refinement",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "1",
            "data",
            "arguments_status"
          ],
          "value": "unknown"
        },
        {
          "path": [
            "streams"
          ],
          "value": [
            {
              "id": "stream-complete",
              "kind": "tool_arguments",
              "event_id": "call-complete",
              "call_id": "call-1",
              "status": "complete",
              "segments": [
                {
                  "index": 0,
                  "resource_id": "arguments-prefix",
                  "offset": 0,
                  "length": 24,
                  "terminal": false
                },
                {
                  "index": 1,
                  "resource_id": "arguments-suffix",
                  "offset": 0,
                  "length": 4,
                  "terminal": true
                }
              ]
            }
          ]
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "three-version refinement chain",
      "fixture": "tool-call-partial.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2"
          ],
          "value": {
            "id": "call-more",
            "sequence": 2,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting"
              },
              "arguments_status": "partial"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-more"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "events",
            "3"
          ],
          "value": {
            "id": "call-third",
            "sequence": 3,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-more"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-more"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-more",
            "call-third"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-third"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-third"
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {}
      }
    },
    {
      "name": "selected chain cannot skip its intermediate version",
      "fixture": "tool-call-partial.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2"
          ],
          "value": {
            "id": "call-more",
            "sequence": 2,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-partial"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting"
              },
              "arguments_status": "partial"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-partial"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-more"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-more"
        },
        {
          "path": [
            "events",
            "3"
          ],
          "value": {
            "id": "call-third",
            "sequence": 3,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "call-more"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-1",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete"
            },
            "execution_id": "run-1",
            "supersedes": {
              "event_id": "call-more"
            }
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-more",
            "call-third"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-third"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-third"
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-third"
          ]
        }
      ],
      "error": "conflicting selected call versions"
    },
    {
      "name": "retry uses new invocation identity",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "4"
          ],
          "value": {
            "id": "call-retry",
            "sequence": 4,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "result-late"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-2",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete",
              "retry_of": "call-1"
            },
            "execution_id": "run-1"
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-complete",
            "result-late",
            "call-retry"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-retry"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-retry"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "open_calls"
          ],
          "value": [
            {
              "call_id": "call-2",
              "state": "outcome_unknown"
            }
          ]
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          },
          "call-2": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    },
    {
      "name": "external binding cannot also declare a local invocation",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "required_features"
          ],
          "value": [
            "asif.streams/0.1",
            "asif.external-bindings/0.1"
          ]
        },
        {
          "path": [
            "external_bindings"
          ],
          "value": [
            {
              "kind": "call",
              "id": "call-1",
              "source": {
                "session_id": "session-call-progression",
                "capture_id": "capture-call-partial",
                "event_id": "call-partial"
              },
              "descriptor": {
                "tool_id": "read-notes",
                "arguments": {},
                "arguments_status": "partial"
              }
            }
          ]
        }
      ],
      "error": "duplicate call identity"
    },
    {
      "name": "amendment changed retry relationship",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "2",
            "data",
            "retry_of"
          ],
          "value": "another-invocation"
        }
      ],
      "error": "call amendment changed retry relationship"
    },
    {
      "name": "retry cannot reference its own identity",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events",
            "4"
          ],
          "value": {
            "id": "call-retry",
            "sequence": 4,
            "actor_id": "agent",
            "kind": "tool_call",
            "causes": [
              {
                "event_id": "result-late"
              }
            ],
            "provenance": {
              "mode": "synthetic",
              "producer": "asif-example",
              "method": "authored conformance example",
              "inputs": [
                {
                  "event_id": "call-partial"
                }
              ]
            },
            "data": {
              "call_id": "call-2",
              "tool_id": "read-notes",
              "arguments": {
                "document_id": "meeting-42"
              },
              "arguments_status": "complete",
              "retry_of": "call-2"
            },
            "execution_id": "run-1"
          }
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "call-partial",
            "call-complete",
            "result-late",
            "call-retry"
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "head_event_id"
          ],
          "value": "call-retry"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "at_event_id"
          ],
          "value": "call-retry"
        },
        {
          "path": [
            "checkpoints",
            "0",
            "open_calls"
          ],
          "value": [
            {
              "call_id": "call-2",
              "state": "outcome_unknown"
            }
          ]
        }
      ],
      "error": "retry must use new call identity"
    },
    {
      "name": "unchanged external invocation accepts a late result",
      "fixture": "tool-call-completed.session.json",
      "edits": [
        {
          "path": [
            "events"
          ],
          "value": [
            {
              "id": "e1",
              "sequence": 0,
              "actor_id": "person",
              "kind": "message",
              "causes": [],
              "provenance": {
                "mode": "synthetic",
                "producer": "asif-example",
                "method": "authored conformance example",
                "inputs": []
              },
              "data": {
                "role": "user",
                "parts": [
                  {
                    "kind": "text",
                    "text": "Summarize the selected meeting notes."
                  }
                ]
              }
            },
            {
              "id": "result-late",
              "sequence": 3,
              "actor_id": "agent",
              "kind": "tool_result",
              "causes": [
                {
                  "session_id": "session-call-progression",
                  "capture_id": "capture-earlier-completed",
                  "event_id": "call-complete"
                }
              ],
              "execution_id": "run-1",
              "provenance": {
                "mode": "synthetic",
                "producer": "asif-example",
                "method": "authored late-result fixture; no tool executed",
                "inputs": [
                  {
                    "session_id": "session-call-progression",
                    "capture_id": "capture-earlier-completed",
                    "event_id": "call-complete"
                  }
                ]
              },
              "data": {
                "call_id": "call-1",
                "result_index": 0,
                "terminal": true,
                "outcome": "success",
                "parts": [
                  {
                    "kind": "text",
                    "text": "Meeting notes: agree on the workshop outline."
                  }
                ]
              }
            }
          ]
        },
        {
          "path": [
            "branches",
            "0",
            "event_ids"
          ],
          "value": [
            "e1",
            "result-late"
          ]
        },
        {
          "path": [
            "streams"
          ],
          "value": []
        },
        {
          "path": [
            "contexts",
            "1",
            "inputs",
            "1",
            "source_events"
          ],
          "value": [
            {
              "session_id": "session-call-progression",
              "capture_id": "capture-earlier-completed",
              "event_id": "call-complete"
            }
          ]
        },
        {
          "path": [
            "required_features"
          ],
          "value": [
            "asif.streams/0.1",
            "asif.external-bindings/0.1"
          ]
        },
        {
          "path": [
            "external_bindings"
          ],
          "value": [
            {
              "kind": "call",
              "id": "call-1",
              "source": {
                "session_id": "session-call-progression",
                "capture_id": "capture-earlier-completed",
                "event_id": "call-complete"
              },
              "descriptor": {
                "tool_id": "read-notes",
                "arguments": {
                  "document_id": "meeting-42"
                },
                "arguments_status": "complete"
              }
            }
          ]
        }
      ],
      "expected": {
        "calls": {
          "call-1": {
            "arguments": {
              "document_id": "meeting-42"
            },
            "arguments_status": "complete"
          }
        },
        "closed_calls": {
          "call-1": "success"
        }
      }
    }
  ]
}
