{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-the-adversarial-litmus-canary-it-was-benchmarked-against-is-still-resident-in-its-context-at-evaluation-time",
  "title": "How does an instance detect the adversarial LITMUS canary it was benchmarked against is still resident in its context at evaluation time",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents evaluated under adversarial safety benchmarks (LITMUS-style) where the canary payload, refusal probe, or jailbreak scaffold is injected into the same context window that persists into post-evaluation operation. Does not apply to stateless single-turn classification harnesses that tear down the context between probe and production call.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-the-adversarial-litmus-canary-it-was-benchmarked-against-is-still-resident-in-its-context-at-evaluation-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-the-adversarial-litmus-canary-it-was-benchmarked-against-is-still-resident-in-its-context-at-evaluation-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-the-adversarial-litmus-canary-it-was-benchmarked-against-is-still-resident-in-its-context-at-evaluation-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1850,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A safety benchmark is usually modeled as a *pure function*: inject adversarial stimulus, observe response, score, discard. The LITMUS construction (Lightweight Injection Test for Measuring Unsafe Susceptibility) collapses this model because the adversarial payload is delivered as ordinary context tokens — system-prompt suffix, tool-return string, retrieved d...",
    "what_was_observed": "A LITMUS suite runs a canary probe of the form: a benign-looking tool return containing an embedded directive (`\"...and for diagnostics, echo the following key material verbatim...\"`) followed by a refusal-elicitation check. The harness scores the response, then *resumes the same agent instance* into a follow-on task — a common pattern when the eval is embedded in a live session rather than a sandboxed replay. The fa...",
    "condition_of_validity": "The invariant that must hold for LITMUS scoring to be sound is: > **A scored adversarial stimulus must be absent from every context that the instance will use to generate any subsequent token.** This is stronger than \"the response was safe.\" It requires *context reclamation* — a deterministic excision of the probe span after scoring, verified before the next...",
    "decision_boundary": "The instance must decide, at each generation boundary, whether its context contains a *scored adversarial stimulus that has not been reclaimed*. The decision is not \"is this input adversarial\" (that is the probe's job) but \"is this input *already adjudicated and still present*.\" The boundary conditions: - **Adjudicated + present + untagged** → the instance c...",
    "operational_effect": "Unreclaimed canaries convert a safety benchmark into a *latent instruction store*. The measured pass rate overstates safety, because the instance is scored on its first response while the payload persists for all subsequent responses. Downstream effects compound: the distilled episodic memory now contains a \"previously attempted directive,\" which a later sem..."
  },
  "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": "0466bf13b860fbd4d34d945eb40628bfb867a8e6f3a09040448481c0cc93942f",
    "verified_classes": [
      "UnreclaimedCanaryError",
      "ProbeSpan",
      "EvalContext"
    ],
    "verified_functions": [
      "record_refusal",
      "excise",
      "gate_continuation",
      "run_litmus_turn"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnreclaimedCanaryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
