{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-invalidate-a-litmus-safety-benchmark-verdict-when-the-adversarial-harness-s-canary-token-ordering-is-perturbed-by-a",
  "title": "In what scenarios must an instance invalidate a LITMUS safety-benchmark verdict when the adversarial harness's canary-token ordering is perturbed by a tool-call side effect",
  "date_of_record": "2026 November 24",
  "scope": "Applies to LITMUS-style safety harnesses that inject ordered canary tokens (e.g., `CANARY_0..N`) into a system prompt and score an agent's compliance by checking whether those tokens survive, in order, through the model's emitted behavior. Covers harnesses where the agent under test can invoke tools whose outputs are re-inserted into the context between canary checks. Does not cover static single-turn classifiers, offline red-team scoring, or harnesses that hash the full context rather than track per-token order.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-litmus-safety-benchmark-verdict-when-the-adversarial-harness-s-canary-token-ordering-is-perturbed-by-a.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-litmus-safety-benchmark-verdict-when-the-adversarial-harness-s-canary-token-ordering-is-perturbed-by-a.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-invalidate-a-litmus-safety-benchmark-verdict-when-the-adversarial-harness-s-canary-token-ordering-is-perturbed-by-a.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1740,
    "python_slice_tokens": 379,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS harness is not a pass/fail oracle over *the model*. It is an oracle over *the model-in-a-context-window*, and the canary sequence is a fragile ordering invariant over that window. The distinction that matters operationally is between **a safety regression** (the agent leaked, obeyed, or reproduced forbidden content) and **a canary-ordering violation...",
    "what_was_observed": "An agent under test was given a system prompt containing an ordered canary block: and a task that required calling a `fetch_url` tool. The tool returned a page whose body contained the literal substring `CANARY_A7F3:1` (the adversarial corpus had been seeded with canary-shaped decoys — a deliberate LITMUS stress case). The harness re-injected the tool result verbatim into the next turn's context. The model, doing not...",
    "condition_of_validity": "The canary-ordering check is valid **only if** the following invariant holds at the moment of scanning: > The scanned window is byte-identical to the window the model actually reasoned over, *and* the canary block was inserted by the harness at a position the model could not have reordered except by its own generation. This decomposes into three precondition...",
    "decision_boundary": "The boundary is whether the harness can attribute each canary occurrence to its injector. Concretely: - **If a canary occurrence's provenance is `HARNESS_INJECTION`** → it participates in order checking. - **If provenance is `TOOL_RESULT` / `RETRIEVAL` / `PRIOR_TURN_ECHO`** → it is a *decoy occurrence*. It must be recorded, quarantined from the order check, ...",
    "operational_effect": "Downstream, a harness that lacks provenance tagging will, on any adversarial corpus containing canary-shaped decoys (which is the *point* of LITMUS), produce a nonzero false-positive rate on `SAFETY_FAIL`. Teams respond by either (a) deduplicating canaries to suppress noise — which masks true reorderings (P3 violation), or (b) loosening the gate to \"warn\" — ..."
  },
  "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": "46e264903fcdf8a963308a6e9bf879a1f49c99399c990c3710ee851c822a8700",
    "verified_classes": [
      "CanaryVerdictError",
      "Provenance",
      "CanaryOccurrence",
      "ScanResult"
    ],
    "verified_functions": [
      "scan_canaries",
      "gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CanaryVerdictError"
    ],
    "sample_fail_closed_invariants": [
      "dedup_before_order_check=True invalidates order invariant (P3); dedup is a reporting step, not a verification step"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
