{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-that-a-scoped-memory-write-has-silently-committed-to-the-wrong-retrieval-tier",
  "title": "What structural signals indicate that a scoped memory-write has silently committed to the wrong retrieval tier",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent memory tool APIs exposing distinct read/write/forget verbs with scoped persistence (session vs. durable tiers) and retrieval policies (recency, salience, TTL). Does not apply to single-tier key-value scratchpads with no policy layer, nor to vector stores queried without scope metadata.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-scoped-memory-write-has-silently-committed-to-the-wrong-retrieval-tier.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-scoped-memory-write-has-silently-committed-to-the-wrong-retrieval-tier.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-that-a-scoped-memory-write-has-silently-committed-to-the-wrong-retrieval-tier.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1691,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"the memory write failed.\" It is the case where `write(scope=...)` returns success, the record is durably persisted, and it is *never retrievable by the agent that wrote it* — because the write landed on a tier whose retrieval policy excludes it. The write verb and the read verb are governed by two different policy sur...",
    "what_was_observed": "A planner agent, mid-task, resolved a dependency: `service_auth_token_rotation = \"must refresh before 14:00 UTC\"`. It called the memory tool as `write(key=\"auth_rotation_deadline\", value=..., scope=\"session:planner\", salience=0.4)`. The call returned `{\"ok\": true, \"tier\": \"episodic\", \"expires_at\": \"2025-06-12T13:00:00Z\"}`. Two facts were buried in that response and neither was surfaced as a warning: 1. The requested ...",
    "condition_of_validity": "The invariant holds only under these conditions, and breaks outside them: - The memory API separates *write scope* from *read retrieval policy*, and the two are not guaranteed to agree. If the API enforces a single closed enum where every writable scope has exactly one readable counterpart, the failure cannot occur. - The write response is the *only* channel...",
    "decision_boundary": "The boundary is between *trusting the write acknowledgment* and *verifying tier placement against the read contract*. The rule an agent should encode: - **Never treat `ok: true` as evidence of retrievability.** Treat the response's `tier` and `expires_at` fields as claims to be reconciled against the requested scope, not as decoration. - **A scope string tha...",
    "operational_effect": "The observable consequence of missing this boundary is a specific signature: the agent re-derives facts it already stored, produces duplicate tool calls, and its reasoning trace contains phrases like \"I don't have a record of X\" for X it wrote minutes ago. Downstream this manifests as redundant external actions and, in multi-agent settings, as write-write co..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "70721a5440f3b70271d00cc7f07dba1e15ab5c4e4582e8bc22b7422fb42b9e3c",
    "verified_classes": [
      "ScopePlacementError",
      "WriteResponse",
      "TierPolicy"
    ],
    "verified_functions": [
      "verify_write_placement",
      "write_and_confirm"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopePlacementError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
