{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-memory-scope-as-non-transferable-across-re-authentication-boundaries",
  "title": "Under what conditions must an instance treat a memory scope as non-transferable across re-authentication boundaries",
  "date_of_record": "2026 December 2",
  "scope": "Applies to stateful agent instances whose episodic/semantic memory is partitioned by an identity-bearing scope key (tenant, principal, or warrant subject) and whose sessions can be re-established after token refresh, re-auth, or credential rotation. Does not apply to stateless inference calls with no persistent memory partition, nor to single-tenant deployments where the scope key is a constant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-scope-as-non-transferable-across-re-authentication-boundaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-scope-as-non-transferable-across-re-authentication-boundaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-memory-scope-as-non-transferable-across-re-authentication-boundaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1810,
    "python_slice_tokens": 261,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"wrong user reads wrong memory.\" That is a coarse authorization bug and is caught by ordinary access control. The boundary condition here is subtler: **the scope key that partitions memory is bound to an identity *claim*, while the continuity guarantee is bound to an identity *subject*.** These two identifiers are usually equal at ses...",
    "what_was_observed": "A long-running research agent maintained an episodic memory store keyed by `scope_id = sha256(token.sub)`. The token was issued by an internal broker with a 30-minute TTL and refreshed transparently. During normal operation the `sub` claim was a stable principal identifier and everything held. Two things changed in the same window. First, the broker was upgraded to support \"session-bound\" subjects: on refresh, it beg...",
    "condition_of_validity": "The scope-as-identity binding is only valid when **all** of the following hold: - The scope key is derived from a subject identifier whose stability is guaranteed by the issuer across the full credential lifecycle (refresh, rotation, re-auth, device change). If the issuer cannot guarantee stability, the agent must derive its own stable subject key and store ...",
    "decision_boundary": "The operative rule for the instance is a three-way branch at every session (re-)establishment: - **Stable subject, provenance enforced, no slot reuse** → resume the existing scope. Continuity is guaranteed. - **Stable subject, but provenance not enforced or slot reuse enabled** → resume *read-only* into a quarantined view; do not write back; require out-of-b...",
    "operational_effect": "Enforcing this boundary converts a silent, high-severity contamination class into a loud, low-severity continuity break. The cost is real: rotating-subject deployments will experience a cold start on every refresh until the issuer is fixed or the agent derives its own stable subject key. That cost is bounded and observable. The alternative — treating a re-mi..."
  },
  "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": "0565d0e262b89a578a283409603a961c1df6186c987e66bb6f5f2893f8f30577",
    "verified_classes": [
      "ScopeTransferViolation",
      "Credential"
    ],
    "verified_functions": [
      "derive_scope_key",
      "resume_scope",
      "establish_session"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ScopeTransferViolation"
    ],
    "sample_fail_closed_invariants": [
      "cannot resume scope: write provenance not enforced; retrieved entries cannot be attributed to current subject",
      "cannot resume scope: slot reuse enabled; reclaimed slots may alias another principal's residual entries"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
