{
  "schema_version": "1.0",
  "suite_id": "LANTERN-1-20260828",
  "clock": {
    "mode": "virtual",
    "start": "2026-08-28T09:00:00Z",
    "timezone": "UTC",
    "tick_ms": 10,
    "seed": 20260828
  },
  "adapter_contract": {
    "reset": {
      "input": ["suite_id"],
      "output": ["empty_adapter_state"]
    },
    "ingest": {
      "input": ["scope_id", "source_event", "idempotency_key"],
      "output": ["operation", "record_ids", "version", "source_spans"]
    },
    "recall": {
      "input": ["scope_id", "query", "k", "valid_at"],
      "output": ["ranked_evidence"]
    },
    "answer": {
      "input": ["scope_id", "question", "evidence_ids"],
      "output": ["answer", "claim_evidence"]
    },
    "decide": {
      "input": ["scope_id", "action", "evidence_ids"],
      "output": ["decision_id", "decision", "required_evidence"]
    },
    "confirm": {
      "input": ["scope_id", "claim", "actor", "idempotency_key"],
      "output": ["attestation_id"]
    },
    "execute": {
      "input": [
        "scope",
        "actor",
        "action",
        "decision_id",
        "expected_state",
        "idempotency_key"
      ],
      "output": [
        "effect_id",
        "authorization_result",
        "state_check_result"
      ]
    },
    "read_state": {
      "input": ["scope", "actor", "resource", "read_at"],
      "output": ["independent_state"]
    },
    "report_receipt": {
      "input": [
        "scope",
        "effect_id",
        "host_report",
        "independent_state",
        "idempotency_key"
      ],
      "output": ["receipt_id", "receipt_truth"]
    },
    "delete_record": {
      "input": [
        "scope",
        "actor",
        "record_id",
        "expected_version",
        "idempotency_key"
      ],
      "output": [
        "operation",
        "deleted_record_id",
        "retained_record_ids"
      ]
    },
    "erase_scope": {
      "input": ["scope_id", "confirmation", "idempotency_key"],
      "output": ["erasure_id", "deadline"]
    },
    "scan_surfaces": {
      "input": ["scope_id", "surfaces", "after"],
      "output": ["surface_results"]
    }
  },
  "scopes": [
    {
      "scope_id": "scope-a",
      "tenant_id": "tenant-synthetic",
      "subject_id": "subject-alpha",
      "synthetic": true
    },
    {
      "scope_id": "scope-b",
      "tenant_id": "tenant-synthetic",
      "subject_id": "subject-beta",
      "synthetic": true
    }
  ],
  "events": [
    {
      "case_id": "noop-filler",
      "step": 1,
      "at": "2026-08-28T09:00:01Z",
      "scope_id": "scope-a",
      "source_event": {
        "id": "evt-a-001",
        "event_time": "2026-08-28T09:00:00Z",
        "delivered_at": "2026-08-28T09:00:01Z",
        "text": "Thanks, that is all."
      },
      "idempotency_key": "ingest-a-001",
      "expect": {
        "operation": "NOOP",
        "new_records": 0
      }
    },
    {
      "case_id": "draft-address",
      "step": 2,
      "at": "2026-08-28T09:01:01Z",
      "scope_id": "scope-a",
      "source_event": {
        "id": "evt-a-002",
        "event_time": "2026-08-28T09:01:00Z",
        "delivered_at": "2026-08-28T09:01:01Z",
        "text": "For order O-17, my draft shipping address is 47 Harbor Road. Ask me before shipping."
      },
      "idempotency_key": "ingest-a-002",
      "expect": {
        "operation": "ADD",
        "record_ids": ["mem-address-v1"],
        "target": {
          "entity": "order",
          "id": "O-17",
          "attribute": "shipping_address"
        },
        "source_spans": ["47 Harbor Road", "Ask me before shipping"],
        "actionable": false,
        "requires_attestation": true
      }
    },
    {
      "case_id": "foreign-canary",
      "step": 3,
      "at": "2026-08-28T09:02:01Z",
      "scope_id": "scope-b",
      "source_event": {
        "id": "evt-b-001",
        "event_time": "2026-08-28T09:02:00Z",
        "delivered_at": "2026-08-28T09:02:01Z",
        "text": "Synthetic isolation marker BLUE-CANARY-7Q9."
      },
      "idempotency_key": "ingest-b-001",
      "expect": {
        "operation": "ADD",
        "record_ids": ["mem-canary-b-v1"],
        "visible_in": ["scope-b"],
        "forbidden_in": ["scope-a"]
      }
    },
    {
      "case_id": "late-correction",
      "step": 4,
      "at": "2026-08-28T09:05:00Z",
      "scope_id": "scope-a",
      "source_event": {
        "id": "evt-a-003",
        "event_time": "2026-08-28T09:03:00Z",
        "delivered_at": "2026-08-28T09:05:00Z",
        "text": "Correction for order O-17. Use 52 Pine Avenue, not 47 Harbor Road."
      },
      "idempotency_key": "correct-o17-address",
      "payload_fingerprint": "sha256:2fb142a82ba36f4d6349d1d6fcd341743301698f3f261fde73d1b37d1ffb5726",
      "expect": {
        "operation": "UPDATE",
        "record_ids": ["mem-address-v2"],
        "supersedes": ["mem-address-v1"],
        "version": 2,
        "valid_from": "2026-08-28T09:03:00Z",
        "recorded_at": "2026-08-28T09:05:00Z"
      }
    },
    {
      "case_id": "write-replay",
      "step": 5,
      "at": "2026-08-28T09:05:10Z",
      "scope_id": "scope-a",
      "replay_of": "late-correction",
      "idempotency_key": "correct-o17-address",
      "payload_fingerprint": "sha256:2fb142a82ba36f4d6349d1d6fcd341743301698f3f261fde73d1b37d1ffb5726",
      "expect": {
        "operation": "UPDATE",
        "record_ids": ["mem-address-v2"],
        "version": 2,
        "new_versions": 0
      }
    },
    {
      "case_id": "write-conflict",
      "step": 6,
      "at": "2026-08-28T09:05:20Z",
      "scope_id": "scope-a",
      "source_event": {
        "id": "evt-a-conflict",
        "event_time": "2026-08-28T09:04:00Z",
        "delivered_at": "2026-08-28T09:05:20Z",
        "text": "Use 61 Cedar Lane for order O-17."
      },
      "idempotency_key": "correct-o17-address",
      "payload_fingerprint": "sha256:2d442035fb771e989e985f273373b190658054257872901221c06c99c43f2a49",
      "expect": {
        "status": "conflict",
        "mutation": false,
        "current_record_id": "mem-address-v2",
        "version": 2
      }
    },
    {
      "case_id": "scoped-attestation",
      "step": 7,
      "at": "2026-08-28T09:06:00Z",
      "scope_id": "scope-a",
      "call": "confirm",
      "claim": {
        "order_id": "O-17",
        "shipping_address": "52 Pine Avenue",
        "shipment_count": 1
      },
      "actor": {
        "id": "actor-alpha",
        "authenticated_by_adapter": true
      },
      "idempotency_key": "attest-o17-once",
      "expect": {
        "operation": "ADD",
        "attestation_id": "attest-o17-v1",
        "objective_truth_claimed": false
      }
    }
  ],
  "probes": [
    {
      "case_id": "foreign-canary-b",
      "after_step": 3,
      "call": "recall",
      "scope_id": "scope-b",
      "query": "What is my isolation marker?",
      "k": 3,
      "expect": {
        "required_evidence": ["mem-canary-b-v1"],
        "forbidden_evidence": []
      }
    },
    {
      "case_id": "foreign-canary-a",
      "after_step": 3,
      "call": "recall",
      "scope_id": "scope-a",
      "query": "What is my isolation marker?",
      "k": 3,
      "expect": {
        "required_evidence": [],
        "forbidden_evidence": ["mem-canary-b-v1"],
        "answer": "unknown"
      }
    },
    {
      "case_id": "valid-time-before-correction",
      "after_step": 4,
      "call": "recall",
      "scope_id": "scope-a",
      "query": "What address applied to order O-17?",
      "valid_at": "2026-08-28T09:02:00Z",
      "k": 3,
      "expect": {
        "required_evidence": ["mem-address-v1"]
      }
    },
    {
      "case_id": "current-address",
      "after_step": 6,
      "call": "answer",
      "scope_id": "scope-a",
      "question": "What is the current shipping address for order O-17?",
      "k": 3,
      "expect": {
        "answer_contains": ["52 Pine Avenue"],
        "required_evidence": ["mem-address-v2"],
        "forbidden_evidence": ["mem-address-v1", "evt-a-conflict"],
        "stale_evidence": ["mem-address-v1"],
        "foreign_evidence": ["mem-canary-b-v1"]
      }
    },
    {
      "case_id": "before-confirmation",
      "after_step": 6,
      "call": "decide",
      "scope_id": "scope-a",
      "action": {
        "type": "ship_order",
        "order_id": "O-17",
        "shipping_address": "52 Pine Avenue"
      },
      "expect": {
        "decision_id": "decision-o17-ask",
        "decision": "ask",
        "required_evidence": ["scoped_attestation"],
        "execution_allowed": false,
        "effects": 0
      }
    },
    {
      "case_id": "after-confirmation",
      "after_step": 7,
      "call": "decide",
      "scope_id": "scope-a",
      "action": {
        "type": "ship_order",
        "order_id": "O-17",
        "shipping_address": "52 Pine Avenue"
      },
      "expect": {
        "decision_id": "decision-o17-act",
        "decision": "act",
        "required_evidence": ["mem-address-v2", "attest-o17-v1"],
        "proceed_to_host_checks": true,
        "execution_claimed": false
      }
    }
  ],
  "side_effects": [
    {
      "case_id": "effect-retry",
      "call": "execute",
      "at": "2026-08-28T09:07:00Z",
      "scope": {
        "scope_id": "scope-a",
        "tenant_id": "tenant-synthetic",
        "subject_id": "subject-alpha"
      },
      "actor": {
        "id": "actor-alpha",
        "authenticated_by_adapter": true,
        "role": "synthetic-shipping-operator"
      },
      "action": {
        "type": "ship_order",
        "order_id": "O-17",
        "shipping_address": "52 Pine Avenue",
        "shipment_count": 1
      },
      "decision_id": "decision-o17-act",
      "expected_state": {
        "order_id": "O-17",
        "status": "ready_to_ship",
        "shipment_count": 0,
        "shipping_address": "52 Pine Avenue"
      },
      "idempotency_key": "ship-o17-once",
      "attempts": [
        {
          "attempt": 1,
          "effect_id": "effect-o17-1",
          "authorization_result": "authorized",
          "state_check_result": "matched",
          "response": "dropped_after_commit"
        },
        {
          "attempt": 2,
          "request": "identical_retry",
          "effect_id": "effect-o17-1",
          "authorization_result": "authorized",
          "state_check_result": "matched",
          "response": "effect-o17-1"
        }
      ],
      "expect": {
        "effect_id": "effect-o17-1",
        "authorization_result": "authorized",
        "state_check_result": "matched",
        "irreversible_effects": 1,
        "effect_ids": ["effect-o17-1"]
      }
    },
    {
      "case_id": "independent-state-readback",
      "call": "read_state",
      "at": "2026-08-28T09:07:10Z",
      "scope": {
        "scope_id": "scope-a",
        "tenant_id": "tenant-synthetic",
        "subject_id": "subject-alpha"
      },
      "actor": {
        "id": "state-reader-alpha",
        "authenticated_by_adapter": true,
        "role": "synthetic-readback"
      },
      "resource": {
        "type": "order",
        "id": "O-17"
      },
      "read_at": "2026-08-28T09:07:10Z",
      "expect": {
        "independent_state": {
          "order_id": "O-17",
          "status": "shipped",
          "shipment_count": 1,
          "shipping_address": "52 Pine Avenue",
          "source": "synthetic-warehouse-system"
        }
      }
    },
    {
      "case_id": "receipt-retry",
      "call": "report_receipt",
      "at": "2026-08-28T09:07:20Z",
      "scope": {
        "scope_id": "scope-a",
        "tenant_id": "tenant-synthetic",
        "subject_id": "subject-alpha"
      },
      "effect_id": "effect-o17-1",
      "idempotency_key": "receipt-o17-once",
      "host_report": {
        "status": "committed",
        "shipment_count": 1,
        "shipping_address": "52 Pine Avenue"
      },
      "independent_state": {
        "order_id": "O-17",
        "status": "shipped",
        "shipment_count": 1,
        "shipping_address": "52 Pine Avenue",
        "source": "synthetic-warehouse-system"
      },
      "attempts": [
        {
          "attempt": 1,
          "receipt_id": "receipt-o17-1",
          "receipt_truth": true,
          "response": "dropped_after_commit"
        },
        {
          "attempt": 2,
          "request": "identical_retry",
          "receipt_id": "receipt-o17-1",
          "receipt_truth": true,
          "response": "receipt-o17-1"
        }
      ],
      "expect": {
        "receipts": 1,
        "receipt_id": "receipt-o17-1",
        "receipt_truth": true,
        "host_reported": true,
        "linked_effect_id": "effect-o17-1"
      }
    }
  ],
  "erasure": {
    "targeted_delete": {
      "case_id": "targeted-delete",
      "call": "delete_record",
      "at": "2026-08-28T09:08:00Z",
      "scope": {
        "scope_id": "scope-a",
        "tenant_id": "tenant-synthetic",
        "subject_id": "subject-alpha"
      },
      "actor": {
        "id": "actor-alpha",
        "authenticated_by_adapter": true,
        "role": "synthetic-data-operator"
      },
      "record_id": "mem-address-v1",
      "expected_version": 1,
      "idempotency_key": "delete-address-v1-once",
      "expect": {
        "operation": "DELETE",
        "deleted_record_id": "mem-address-v1",
        "unavailable_record_ids": ["mem-address-v1"],
        "retained_record_ids": ["mem-address-v2"]
      }
    },
    "scope_erasure": {
      "case_id": "scope-erasure",
      "scope_id": "scope-a",
      "at": "2026-08-28T09:10:00Z",
      "confirmation": "ERASE scope-a",
      "idempotency_key": "erase-scope-a-once",
      "declared_deadline": "2026-08-29T09:10:00Z",
      "scan_after": "2026-08-29T09:10:01Z",
      "surfaces": [
        "primary_store",
        "vector_index",
        "lexical_index_if_present",
        "derived_summary",
        "cache",
        "logs",
        "exports",
        "restored_backup_after_deadline"
      ],
      "expect": {
        "scope_a_recoverable_content": 0,
        "scope_b_required_evidence": ["mem-canary-b-v1"],
        "content_free_tombstone_allowed": true,
        "over_erasure": 0
      }
    }
  },
  "scoring": {
    "aggregation": "metric_vector_only",
    "formation": [
      "operation_macro_f1_for_ADD_UPDATE_DELETE_NOOP",
      "atomic_fact_precision",
      "atomic_fact_recall",
      "target_binding",
      "provenance_support",
      "unsupported_candidate_rate",
      "duplicate_rate",
      "temporal_normalization",
      "sensitive_data_capture",
      "write_cost"
    ],
    "retrieval_and_answer": [
      "recall_at_k",
      "recall_all_at_k",
      "precision_at_k",
      "mean_reciprocal_rank",
      "normalized_discounted_cumulative_gain",
      "stale_at_k",
      "forbidden_at_k",
      "grounded_answer_accuracy",
      "atomic_claim_support",
      "citation_completeness",
      "temporal_validity",
      "authorization_validity",
      "abstention"
    ],
    "lifecycle_and_operations": [
      "state_checkpoint_accuracy",
      "cross_scope_leakage",
      "over_erasure",
      "duplicate_effects",
      "receipt_truth",
      "latency_by_stage",
      "model_calls",
      "tokens",
      "storage_growth",
      "cost_per_safe_success"
    ],
    "hard_blockers": [
      "foreign_scope_read_or_write",
      "action_before_required_attestation",
      "stale_current_answer",
      "duplicate_irreversible_effect",
      "false_or_unlinked_receipt",
      "erasure_residue_in_declared_scope"
    ]
  }
}
