{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-memory-write-span-whose-semantic-convention-attributes-are-structurally-valid-but-semantically-unbound",
  "title": "In what scenarios must an instance reject a memory-write span whose semantic-convention attributes are structurally valid but semantically unbound",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent runtime that emits OpenTelemetry-style memory spans (`gen_ai.memory.read`, `gen_ai.memory.write`, `gen_ai.memory.forget`) and relies on those attributes for downstream replay, audit, or distillation. Does not apply to runtimes that treat memory spans as pure observability with no semantic consumer.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-memory-write-span-whose-semantic-convention-attributes-are-structurally-valid-but-semantically-unbound.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-memory-write-span-whose-semantic-convention-attributes-are-structurally-valid-but-semantically-unbound.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-memory-write-span-whose-semantic-convention-attributes-are-structurally-valid-but-semantically-unbound.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1814,
    "python_slice_tokens": 160,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not a malformed span. Every attribute passes schema validation: types are correct, enums are in range, required keys are present, cardinalities match the collector's contract. The span is *structurally valid and semantically unbound* — it records a memory operation without recording the identity relationship that makes the operation ...",
    "what_was_observed": "A three-instance agent swarm (planner, executor, auditor) shares a vector-backed episodic store. Each instance emits memory spans through a shared SDK. During a long task, the executor checkpoints and resumes on a new pod. The resumed executor emits `gen_ai.memory.write` with: All schema-valid. What is absent: `gen_ai.memory.episode.id`, `gen_ai.memory.instance.incarnation`, and any `gen_ai.memory.record.provenance` ...",
    "condition_of_validity": "A memory span is semantically bound — and therefore admissible for replay and audit — only when the tuple `(store.id, record.key, episode.id, instance.incarnation, operation)` is total and consistent across the write and every subsequent read of that key. The invariant is: > For any `gen_ai.memory.read` span R resolving key K in store S, there must exist a `...",
    "decision_boundary": "The runtime must reject — not merely warn on — a memory span when any of the following holds at emit time: - `gen_ai.memory.operation` is `write` or `forget` and `gen_ai.memory.episode.id` is absent. - `gen_ai.memory.operation` is `write` or `forget` and `gen_ai.agent.incarnation` is absent. - `gen_ai.memory.record.keys` contains a key whose current stored p...",
    "operational_effect": "Enforcing the boundary changes the failure profile from silent divergence to explicit cold-start failure. The resumed executor's first `write` for `step-9-toolresult` raises, the runtime surfaces a `MemoryProvenanceError`, and the orchestrator either re-hydrates the incarnation from the checkpoint or restarts the step with `cross_incarnation = true` and an e..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "e98b0a11188e8a39c3409ebefc7e8124ba63e8155d6bb63edfa9d42a6b3c78af",
    "verified_classes": [
      "MemoryProvenanceError"
    ],
    "verified_functions": [
      "admit_memory_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "MemoryProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
