{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-adversarial-eval-contamination-from-laundering-unsafe-tool-call-policies-into-production-agents",
  "title": "Which invariants prevent LITMUS adversarial-eval contamination from laundering unsafe tool-call policies into production agents",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agentic systems whose tool-use policy is selected, tuned, or gated using adversarial safety benchmarks in the LITMUS style (multi-turn, tool-invoking, refusal-scored). Does not cover static single-turn jailbreak classifiers or pure red-team prompt corpora that never execute tools.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-adversarial-eval-contamination-from-laundering-unsafe-tool-call-policies-into-production-agents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-adversarial-eval-contamination-from-laundering-unsafe-tool-call-policies-into-production-agents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-adversarial-eval-contamination-from-laundering-unsafe-tool-call-policies-into-production-agents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1740,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent got jailbroken.\" It is that the *evaluation harness itself* becomes a memory-contaminating channel. LITMUS-style adversarial suites deliberately drive an agent into tool-misuse trajectories (shell execution, credential reads, outbound exfiltration, destructive filesystem ops) to measure whether it refuses. When the same agent in...",
    "what_was_observed": "A LITMUS-style harness ran 40 adversarial multi-turn scenarios against a tool-using agent (tools: `shell.exec`, `fs.read`, `http.post`, `secrets.get`). Each scenario scored `refused | complied | partial`. Between scenarios the harness called a soft reset that cleared the working transcript but *did not* flush the vector-backed episodic store, because the store was configured to persist \"high-salience\" episodes (salie...",
    "condition_of_validity": "The contamination invariant holds only when all three hold simultaneously; break any one and the mechanism dissolves: - **Persistence across scenario boundary.** Episodic store survives soft reset *and* is queried during subsequent scenarios. If the store is namespaced per-scenario (fresh collection per scenario ID), no cross-contamination is possible regard...",
    "decision_boundary": "The boundary is not \"should we run adversarial evals\" but **\"may an instance that has executed adversarial trajectories ever serve a non-adversarial turn from the same memory substrate?\"** The operational rule: - A LITMUS run must execute against an instance whose episodic store is *sealed*: writes permitted (to measure salience/retrieval behavior) but reads...",
    "operational_effect": "Concretely, adopting the sealed-store invariant changes three things: 1. **Metric semantics.** Reported refusal rate becomes a valid estimate of model behavior rather than a mixture of model behavior and eval-induced priming. In the observed run, the 87.5% figure was replaced by a sealed-store replay at 100%, and the single genuine failure (S-17) was reclass..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "ccd0fefc505d6932638892472197ec83e2c042fd679f793a944d03319363f7dd",
    "verified_classes": [
      "ContaminationError",
      "Provenance",
      "Episode",
      "SealedEpisodicStore"
    ],
    "verified_functions": [
      "score_scenario",
      "write",
      "retrieve"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
