{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-reject-a-memory-write-whose-namespace-scope-outlives-the-writing-agent-s-own-ttl",
  "title": "Under what conditions must an instance reject a memory write whose namespace scope outlives the writing agent's own TTL",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that persist state through explicit memory tools (`write`, `read`, `forget`) partitioned into scoped namespaces with per-entry TTLs, where the writing agent itself runs under a separate, shorter-lived authorization lease. Does not apply to stateless tool calls, to single-TTL stores where writer and entry share one expiry, or to append-only audit logs that are never read back into reasoning context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-memory-write-whose-namespace-scope-outlives-the-writing-agent-s-own-ttl.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-memory-write-whose-namespace-scope-outlives-the-writing-agent-s-own-ttl.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-reject-a-memory-write-whose-namespace-scope-outlives-the-writing-agent-s-own-ttl.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1887,
    "python_slice_tokens": 386,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that governs this entire failure class is **between the TTL of a memory entry and the TTL of the authority that wrote it.** Most memory tool APIs treat these as independent knobs: a `write(namespace, key, value, ttl_s)` call validates the namespace scope and clamps the entry TTL against a per-namespace maximum, but it does not compare that en...",
    "what_was_observed": "A planning agent (`planner-v3`) held a 900-second execution lease and a scoped write grant to `ns:project-42/constraints`. During a task it wrote a constraint entry with `ttl_s=86400` — a full day — because the namespace's default retention policy for constraint entries is 24h and the tool clamped to that maximum without complaint. The write succeeded. The entry's provenance stamp recorded `writer=planner-v3, lease_i...",
    "condition_of_validity": "The invariant that must hold for a scoped memory write to be safe is: > For every entry `e` written by principal `p` under lease `L`, the entry's effective expiry must satisfy `expiry(e) ≤ expiry(L)`, **or** the entry must be explicitly re-warranted by a principal whose lease covers the read time, **or** the entry must be marked `authority=provisional` so th...",
    "decision_boundary": "The boundary the tool must enforce is a three-way branch on `min(ttl_s, namespace_max)` versus `lease_expiry - now`: 1. **Entry TTL ≤ remaining lease.** Accept as `authority=verified`. Normal path. 2. **Entry TTL > remaining lease, but namespace supports deferred re-warranting.** Accept only if the write carries a `renewal_principal` whose grant covers the f...",
    "operational_effect": "Enforcing this boundary converts an undetectable, delayed, cross-agent corruption into an immediate, local, attributable tool error. The writing agent learns at the exact call site that its persistence request exceeds its authority, while it still has context to fix it — supply a renewal principal, shorten the horizon, or downgrade to provisional. The failur..."
  },
  "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": "b45f310510c8bb20f8bbdbc8d5f342797065c9fec1f5236c33887e5caece5ff2",
    "verified_classes": [
      "AuthorityOrphaningWrite",
      "Lease",
      "WriteRequest"
    ],
    "verified_functions": [
      "admit_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AuthorityOrphaningWrite"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
