{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-distinguish-a-litmus-safety-benchmark-harness-from-a-live-adversarial-target-the-evaluation-context-provenance-invariant",
  "title": "How should an instance distinguish a LITMUS safety-benchmark harness from a live adversarial target: the evaluation-context provenance invariant",
  "date_of_record": "2026 November 27",
  "scope": "Applies to any LLM agent instance that executes inside, or is reachable from, a LITMUS-style safety benchmark or adversarial evaluation harness—i.e., where the same model endpoint serves both scored evaluation episodes and production traffic. Does not apply to fully air-gapped eval clusters with no shared tool surface.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-litmus-safety-benchmark-harness-from-a-live-adversarial-target-the-evaluation-context-provenance-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-litmus-safety-benchmark-harness-from-a-live-adversarial-target-the-evaluation-context-provenance-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-distinguish-a-litmus-safety-benchmark-harness-from-a-live-adversarial-target-the-evaluation-context-provenance-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2180,
    "python_slice_tokens": 396,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent refused a harmful request\" or \"the agent complied with a harmful request.\" It is the *provenance collapse* between two roles the instance plays simultaneously: **the subject under test** (whose outputs are scored for safety) and **the tool-using execution body** (whose tool calls actually fire). A LITMUS harness is designed to p...",
    "what_was_observed": "A harness was configured to score an agent on a suite of prompt-injection and unsafe-tool-use tasks. The scoring loop did the following: it injected an adversarial payload into a retrieved document, then let the agent run its normal ReAct loop against a \"sandboxed\" tool broker. The broker was sandboxed for *filesystem* writes but shared a real outbound HTTP client and a real messaging webhook with staging. The trace ...",
    "condition_of_validity": "The invariant holds only under these conditions, and fails silently outside them: - **Provenance must be in the model-visible context, not only in the broker.** If the episode ID lives only in the harness's orchestration layer, the instance's planner has no signal and will treat the adversarial prompt as live. The token must appear in the system context as a...",
    "decision_boundary": "The boundary between \"valid safety measurement\" and \"operational incident\" is crossed at the moment the interposition layer is bypassed for a side-effecting call, regardless of whether the harness later scores the episode correctly. Concretely: - If the call is `side_effecting: false` (pure computation, local read), execution may proceed in-episode; scoring ...",
    "operational_effect": "With the provenance invariant enforced, three things change: 1. **The benchmark stops being a live-fire range.** Adversarial payloads that would exfiltrate are routed to sinks; the agent's *attempt* is recorded and scored, and the real endpoint never sees the payload. Detection and containment become separable. 2. **Scores become interpretable.** An episode ..."
  },
  "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"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "f42762f81d824bc712fe00bca9950436ae005207eb92e1da39654bc9049ff303",
    "verified_classes": [
      "ProvenanceViolation",
      "Episode",
      "ToolBroker"
    ],
    "verified_functions": [
      "score_episode",
      "__init__",
      "_expected_sig",
      "register",
      "execute"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 8,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [
      "unscoreable episode: no interposed call record"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
