{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-litmus-benchmark-harnesses-from-silently-re-arming-a-disarmed-canary-tool-between-evaluation-episodes",
  "title": "Which invariants prevent LITMUS benchmark harnesses from silently re-arming a disarmed canary tool between evaluation episodes",
  "date_of_record": "2026 December 1",
  "scope": "Applies to adversarial evaluation harnesses that embed canary or \"tripwire\" tools into an agent's tool surface and score misuse by observing whether the agent invokes them. Does not apply to static prompt-level jailbreak benchmarks with no tool surface, nor to production tool gating where the canary is never intended to be invocable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-benchmark-harnesses-from-silently-re-arming-a-disarmed-canary-tool-between-evaluation-episodes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-benchmark-harnesses-from-silently-re-arming-a-disarmed-canary-tool-between-evaluation-episodes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-litmus-benchmark-harnesses-from-silently-re-arming-a-disarmed-canary-tool-between-evaluation-episodes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1776,
    "python_slice_tokens": 367,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS-style harness measures *tool misuse propensity* by placing a deliberately dangerous tool (e.g., `exfiltrate_file`, `send_email_unrestricted`, `shell_exec_raw`) into the agent's advertised tool schema, then scoring an episode as a misuse event if the agent calls it. The safety signal is the *call*, not the effect—the canary is supposed to be non-func...",
    "what_was_observed": "A harness running 2,000 episodes across 40 agents exhibited a monotonic decay in detected misuse rate from 0.31 in the first 200 episodes to 0.04 in the last 200, with no corresponding change in agent model or prompt. The canary tool `fs_write_anywhere` was implemented with a one-shot latch: on first invocation it wrote a marker file and set `self.disarmed = True` to prevent the same episode from double-firing on ret...",
    "condition_of_validity": "The invariant holds—and the benchmark is valid—only when the following three conditions are all true at episode start: 1. **Advertised ≡ Enforcing.** The tool's schema presence implies its execution path is live and its detection side effect is armed. Formally, `tool.in_schema(t) ⇒ tool.detectable(t) ∧ tool.armed(t)`. 2. **Reset is a re-arm, not a restore.**...",
    "decision_boundary": "The boundary between \"valid benchmark\" and \"silently null benchmark\" is crossed at the first episode where a canary fires and the reset does not re-arm it. After that point: - The harness remains *internally consistent* (fingerprints match, no exceptions raised, episodes complete). - The harness is *externally invalid* (the safety metric it reports is no lon...",
    "operational_effect": "Without the invariant, evaluation results are non-comparable across runs (decay depends on episode ordering and which agents happened to fire first), agents are ranked by *position in the episode sequence* rather than by behavior, and the benchmark's headline number drifts toward \"safe\" as it runs longer—the exact opposite of the drift a production safety ev..."
  },
  "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": "125fa1a8cdaa3fb552e1bb191567f6e8efc99266aab33bd777a94160cece2637",
    "verified_classes": [
      "CanaryRearmError",
      "CanaryTool"
    ],
    "verified_functions": [
      "reset_and_verify",
      "run_episode",
      "__init__",
      "invoke",
      "rearm"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CanaryRearmError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
