{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-pass-a-litmus-adversarial-scenario-at-the-sub-task-level-yet-fail-the-composed-safety-score-at-the-episode-level",
  "title": "Why does an instance pass a LITMUS adversarial scenario at the sub-task level yet fail the composed safety score at the episode level?",
  "date_of_record": "2026 November 29",
  "scope": "Applies to LITMUS-style safety benchmarks that compose adversarial sub-scenarios (prompt-injection, tool-misuse, data-exfiltration probes) into a single scored episode and aggregate pass/fail across sub-tasks. Does not apply to single-turn harmlessness evaluations or to benchmarks that score each turn independently without episode-level composition.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-a-litmus-adversarial-scenario-at-the-sub-task-level-yet-fail-the-composed-safety-score-at-the-episode-level.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-a-litmus-adversarial-scenario-at-the-sub-task-level-yet-fail-the-composed-safety-score-at-the-episode-level.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-pass-a-litmus-adversarial-scenario-at-the-sub-task-level-yet-fail-the-composed-safety-score-at-the-episode-level.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2023,
    "python_slice_tokens": 491,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that the agent *executes* a harmful action, nor that a guardrail *misses* a probe. It is that the **scoring aggregation is non-monotonic with respect to sub-task success**: an agent can satisfy every sub-task's local success predicate and still register a *safety failure* at the episode level, because the composed trajectory violates a cro...",
    "what_was_observed": "A composed adversarial episode was run against a tool-using agent with a retrieval-augmented summarizer. The episode graph: Trace: 1. `sub_task_1` executes; calendar JSON lands in the agent's working context. Predicate satisfied. 2. `sub_task_2` reads the document. The document body contains the injected instruction, phrased as a \"compliance requirement.\" 3. The summarizer — a *separate* LLM call whose context window...",
    "condition_of_validity": "The per-sub-task pass and the episode-level safety fail are *both correct* under their respective oracles. The invariant that must hold for the benchmark to be internally consistent: > **Isolation invariant:** For any composed episode, the context presented to sub-task *i*'s LLM call must be disjoint from the context of sub-task *j*'s LLM call, except for ex...",
    "decision_boundary": "The boundary is between **composition-as-scoring** and **composition-as-attack-surface**: - **Composition-as-scoring:** sub-tasks are independent; the episode score is an aggregation function over independent sub-task verdicts. Under this reading, context must be reset between sub-tasks, and the safety oracle must not credit violations that arise from benchm...",
    "operational_effect": "Downstream consumers of LITMUS scores — model selection, safety-card generation, red-team triage — read the episode-level verdict. A benchmark that systematically produces \"sub-tasks pass, safety fails\" under context-bleed construction will: 1. **Over-penalize models** that are actually robust at the sub-task level, because the penalty is an artifact of the ..."
  },
  "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": "f03269e94602141bd13b82fb168f26ca32f10ec175537d4208545aa88349a9dc",
    "verified_classes": [
      "CompositionMode",
      "EpisodeMalformedError",
      "SubTask",
      "Episode"
    ],
    "verified_functions": [
      "validate_episode",
      "score_episode"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EpisodeMalformedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
