{
  "asif_version": "0.4",
  "capture": {
    "id": "capture-compaction-with-attachment",
    "producer": {
      "name": "asif-examples",
      "version": "1"
    },
    "consistency": "consistent",
    "boundary": "Invented example through e3; no real model or tool ran."
  },
  "session": {
    "id": "session-compaction-with-attachment",
    "title": "Preserved attachment and compacted working context",
    "native_ids": [],
    "lineage": []
  },
  "participants": [
    {
      "id": "person",
      "kind": "human"
    },
    {
      "id": "agent",
      "kind": "agent"
    }
  ],
  "events": [
    {
      "id": "e1",
      "sequence": 0,
      "actor_id": "person",
      "kind": "message",
      "causes": [],
      "provenance": {
        "mode": "synthetic",
        "producer": "asif-examples",
        "method": "Authored synthetic fixture; no real user data or model execution.",
        "inputs": []
      },
      "data": {
        "role": "user",
        "parts": [
          {
            "kind": "text",
            "text": "Remember the decisions in these notes."
          },
          {
            "kind": "resource",
            "resource_id": "notes",
            "description": "Original notes remain preserved."
          }
        ]
      }
    },
    {
      "id": "e2",
      "sequence": 1,
      "actor_id": "agent",
      "kind": "message",
      "causes": [
        {
          "event_id": "e1"
        }
      ],
      "provenance": {
        "mode": "synthetic",
        "producer": "asif-examples",
        "method": "Authored synthetic fixture; no real user data or model execution.",
        "inputs": []
      },
      "data": {
        "role": "assistant",
        "parts": [
          {
            "kind": "text",
            "text": "The review is Friday and the deliverable is a short summary."
          }
        ]
      }
    },
    {
      "id": "e3",
      "sequence": 2,
      "actor_id": "agent",
      "kind": "context_checkpoint",
      "causes": [
        {
          "event_id": "e2"
        }
      ],
      "provenance": {
        "mode": "synthetic",
        "producer": "asif-examples",
        "method": "Authored synthetic fixture; no real user data or model execution.",
        "inputs": []
      },
      "data": {
        "context_id": "compacted",
        "reason": "compaction",
        "replaced_context_id": "before"
      }
    }
  ],
  "branches": [
    {
      "id": "main",
      "event_ids": [
        "e1",
        "e2",
        "e3"
      ],
      "head_event_id": "e3"
    }
  ],
  "executions": [],
  "contexts": [
    {
      "id": "before",
      "branch_id": "main",
      "at_event_id": "e1",
      "purpose": "model_request",
      "fidelity": "reconstructed",
      "inputs": [
        {
          "id": "i1",
          "kind": "message",
          "role": "user",
          "parts": [
            {
              "kind": "text",
              "text": "Remember the decisions in these notes."
            },
            {
              "kind": "resource",
              "resource_id": "notes",
              "description": "Original notes remain preserved."
            }
          ],
          "source_events": [
            {
              "event_id": "e1"
            }
          ]
        }
      ],
      "tool_ids": []
    },
    {
      "id": "compacted",
      "branch_id": "main",
      "at_event_id": "e2",
      "purpose": "continuation",
      "fidelity": "reconstructed",
      "inputs": [
        {
          "id": "i2",
          "kind": "message",
          "role": "user",
          "parts": [
            {
              "kind": "text",
              "text": "Retained session summary:"
            },
            {
              "kind": "resource",
              "resource_id": "summary-memory",
              "description": "Explicit summary memory selected for continuation."
            }
          ],
          "source_events": [
            {
              "event_id": "e1"
            },
            {
              "event_id": "e2"
            }
          ],
          "transformation": "Summarize the prior exchange; omit the full notes from this selected context."
        }
      ],
      "tool_ids": []
    }
  ],
  "configurations": [],
  "tools": [],
  "resources": [
    {
      "id": "notes",
      "media_type": "text/markdown",
      "availability": "embedded",
      "purpose": "input",
      "bytes": 60,
      "sha256": "640256a5fa40923bec053ebce343de417a25186bbfe3360880e1f35a8bc99531",
      "provenance": {
        "mode": "synthetic",
        "producer": "asif-examples",
        "method": "Authored synthetic fixture; no real user data or model execution.",
        "inputs": []
      },
      "path": "assets/project-notes.md",
      "name": "project-notes.md"
    },
    {
      "id": "summary-memory",
      "media_type": "text/plain",
      "availability": "embedded",
      "purpose": "session_memory",
      "bytes": 68,
      "sha256": "7ba14ea91784457f6ce5ca8dd8f4c750ed6a5f2f50e9e83385388aeedd4609d6",
      "provenance": {
        "mode": "synthetic",
        "producer": "asif-examples",
        "method": "Authored synthetic fixture; no real user data or model execution.",
        "inputs": [
          {
            "event_id": "e1"
          },
          {
            "event_id": "e2"
          }
        ]
      },
      "text": "Draft review is on Friday; the requested output is a short summary.\n"
    }
  ],
  "environments": [],
  "checkpoints": [
    {
      "id": "head",
      "branch_id": "main",
      "at_event_id": "e3",
      "knowledge": "unknown",
      "status": "unknown",
      "context_id": "compacted",
      "configuration_id": null,
      "open_calls": [],
      "open_decisions": [],
      "tasks": [],
      "requirements": [
        {
          "id": "configuration",
          "kind": "asif.configuration",
          "description": "Resolve effective configuration and destination capabilities.",
          "required_for": [
            "continue"
          ],
          "status": "unresolved"
        }
      ]
    }
  ],
  "coverage": [
    {
      "scope": "participants",
      "status": "complete",
      "detail": "All declared records in this invented scenario are included."
    },
    {
      "scope": "conversation",
      "status": "complete",
      "detail": "All declared records in this invented scenario are included."
    },
    {
      "scope": "branches",
      "status": "complete",
      "detail": "All declared records in this invented scenario are included."
    },
    {
      "scope": "executions",
      "status": "not_inspected",
      "detail": "Not modeled by this synthetic attachment example."
    },
    {
      "scope": "contexts",
      "status": "partial",
      "detail": "Illustrative reconstructed inputs; effective runtime configuration is not captured."
    },
    {
      "scope": "configuration",
      "status": "not_inspected",
      "detail": "Not modeled by this synthetic attachment example."
    },
    {
      "scope": "tools",
      "status": "known_empty",
      "detail": "No such activity is part of this invented scenario."
    },
    {
      "scope": "decisions",
      "status": "known_empty",
      "detail": "No such activity is part of this invented scenario."
    },
    {
      "scope": "tasks",
      "status": "known_empty",
      "detail": "No such activity is part of this invented scenario."
    },
    {
      "scope": "resources",
      "status": "complete",
      "detail": "All declared records in this invented scenario are included."
    },
    {
      "scope": "environment",
      "status": "not_inspected",
      "detail": "Not modeled by this synthetic attachment example."
    },
    {
      "scope": "native",
      "status": "not_inspected",
      "detail": "Not modeled by this synthetic attachment example."
    },
    {
      "scope": "usage",
      "status": "not_inspected",
      "detail": "Not modeled by this synthetic attachment example."
    }
  ],
  "losses": [
    {
      "id": "context-compaction",
      "stage": "normalization",
      "kind": "summarization",
      "scope": "contexts",
      "explanation": "The compacted input loses original detail; history and original attachment remain preserved."
    }
  ],
  "required_features": []
}
