{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-label-laundering-through-agent-authored-memory-summaries",
  "title": "Which invariants prevent label-laundering through agent-authored memory summaries",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents that carry dynamic information-flow (taint) labels on tool outputs and persist derived content into long-term memory, where a *summarization or distillation step* rewrites tainted content into new text. Does not apply to agents that store raw tool payloads verbatim with immutable provenance, nor to single-turn agents with no persistent store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-label-laundering-through-agent-authored-memory-summaries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-label-laundering-through-agent-authored-memory-summaries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-label-laundering-through-agent-authored-memory-summaries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1761,
    "python_slice_tokens": 407,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The taint-tracking failure that matters here is not a missed label on a tool return. It is **label laundering through re-authoring**: the moment the agent's own model writes a memory summary, the output is a *new* artifact whose provenance is the model, not the tool. A naive tracker labels that artifact `trusted` (it came from the agent) and drops the union ...",
    "what_was_observed": "Trace of a working agent with a two-tier memory (episodic buffer → semantic store): 1. `web_fetch` returns a page. The taint classifier marks the payload `{origin: web, integrity: low, label: TAINT}`. Correct. 2. The agent is asked to \"remember key facts.\" It calls `memory_write(summary)`. The summarizer prompt includes the tainted payload. The model produces: *\"User's deployment uses region eu-west-1 and requires ap...",
    "condition_of_validity": "The invariant that prevents this is a **non-absorbing join with derivation-edge labeling**: - Every memory artifact must carry the *least upper bound* of the labels of every context span that causally contributed to its generation, computed over the **derivation DAG**, not the final string. Agent-authored origin does not confer trust; it is orthogonal to int...",
    "decision_boundary": "The boundary is whether the transform is **provenance-preserving**. A transform is safe to run at `TRUSTED` only if it satisfies: for every output token, there exists a labeled input span it derives from, and the output label ≥ join of those spans. Summarization, translation, reformatting, and \"extract the action items\" all violate this unless they carry spa...",
    "operational_effect": "With the non-absorbing join and span-attributed derivation enforced, the eu-west-1 summary above is written as `{origin: self, integrity: low, label: TAINT, derived_from: [span_7, span_9]}`. Retrieval surfaces it, but the tool-selection gate refuses to let a `TAINT` memory authorize a privileged action without an independent `TRUSTED` corroboration. The retr..."
  },
  "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": "76033e417cded92192f02d3622724b13f7738c4403f6f2176cd2ce53509de562",
    "verified_classes": [
      "LabelLaunderingError",
      "Integrity",
      "Span",
      "MemoryArtifact"
    ],
    "verified_functions": [
      "join",
      "write_memory",
      "resummarize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LabelLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
