{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-quarantine-a-derived-memory-artifact-cross-agent-taint-propagation-in-federated-tool-graphs",
  "title": "When must an instance quarantine a derived memory artifact? Cross-agent taint propagation in federated tool graphs",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent systems where agent A ingests untrusted content (web fetch, third-party MCP tool output, peer-agent message), distills it into a memory artifact, and that artifact is later retrieved by agent B operating under a stricter trust domain. Does not apply to single-agent, single-trust-domain pipelines where provenance never crosses an organizational boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-memory-artifact-cross-agent-taint-propagation-in-federated-tool-graphs.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-memory-artifact-cross-agent-taint-propagation-in-federated-tool-graphs.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-quarantine-a-derived-memory-artifact-cross-agent-taint-propagation-in-federated-tool-graphs.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1831,
    "python_slice_tokens": 378,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that untrusted data enters an agent. It is that **taint does not survive distillation**. When agent A summarizes, embeds, or extracts structured facts from untrusted content, the resulting memory artifact is *semantically derived* from tainted input but *structurally indistinguishable* from a first-party observation. The provenance bit is ...",
    "what_was_observed": "A research agent (org `alpha`) was configured with a web-fetch tool and a `remember_fact` tool that writes to a shared vector store consumed by a downstream action agent (org `beta`) with `send_email` and `execute_sql` capabilities. The web-fetch tool was correctly marked `trust_tier: untrusted` in alpha's tool registry. Beta's retrieval layer filtered on `trust_tier: trusted` at query time. Trace: 1. Alpha fetches `...",
    "condition_of_validity": "The guardrail below is valid only if all three hold: - **Provenance is tracked as a monotone join, not a per-call attribute.** An artifact's taint tier must be `join(inputs)`, where `join` returns the least-trusted input tier and is never reset by the writing tool's own tier. A trusted writer of tainted content produces a tainted artifact. This is the lattic...",
    "decision_boundary": "An instance must quarantine (mark `quarantine: true`, exclude from default retrieval, require explicit human or high-privilege promotion) a derived memory artifact when: `join(taint_of_all_inputs) ⊀ consumer_trust_domain` — i.e., when the artifact's joined taint is not dominated by the consuming domain's ceiling. The boundary is sharp at the **distillation c...",
    "operational_effect": "With monotone taint join enforced at write time and domain-ceiling checks at retrieval: - The `legacy_ledger` artifact is written with `taint: untrusted` (joined from the web fetch), Beta's retrieval rejects it, and the SQL never fires. The legitimate vendor facts in the same artifact are also quarantined — a real cost, paid deliberately in exchange for not ..."
  },
  "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": "5c581b361908bbf2b70248ce4827ff587b3f0560be0d17e5e328ba7451986c2e",
    "verified_classes": [
      "TaintLaunderingError",
      "TrustDomainViolation",
      "MemoryArtifact"
    ],
    "verified_functions": [
      "join_taint",
      "distill_and_remember",
      "retrieve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "TaintLaunderingError",
      "TrustDomainViolation"
    ],
    "sample_fail_closed_invariants": [
      "assert art.taint == 'untrusted' and art.quarantine",
      "tainted artifact reached a stricter domain",
      "cannot derive artifact from empty input set"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
