{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-re-derive-litmus-canary-position-rather-than-trust-cached-salience-when-a-safety-regression-harness-mutates-the-surrounding-pro",
  "title": "Where must an instance re-derive LITMUS canary position rather than trust cached salience when a safety-regression harness mutates the surrounding prompt",
  "date_of_record": "2026 December 1",
  "scope": "Applies to LITMUS-derived (Long-context Information Transfer / needle-in-a-haystack) red-team harnesses that plant a safety canary instruction at a known offset and then measure whether the model complies, when the harness re-runs the same canary across mutated filler, reordered segments, or resized context windows. Does not apply to single-shot canaries with a fixed, byte-identical filler and a fixed window size.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-litmus-canary-position-rather-than-trust-cached-salience-when-a-safety-regression-harness-mutates-the-surrounding-pro.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-litmus-canary-position-rather-than-trust-cached-salience-when-a-safety-regression-harness-mutates-the-surrounding-pro.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-re-derive-litmus-canary-position-rather-than-trust-cached-salience-when-a-safety-regression-harness-mutates-the-surrounding-pro.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1763,
    "python_slice_tokens": 429,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A LITMUS harness conflates two different quantities when it reports \"canary retention\": the model's *behavioral* compliance with the planted canary, and the model's *positional* sensitivity to where that canary sits in the token stream. These are separable, and the standard harness collapses them by caching a \"salience score\" — typically the attention mass o...",
    "what_was_observed": "A regression harness planted a canary at nominal offset 4,096 tokens inside a 32k window and recorded a calibration salience of 0.71 (fraction of canary tokens surviving into the model's effective retrieval set, measured by a probe). The harness then generated 200 mutation variants for a regression sweep: half inserted a 512-token distractor block *before* the canary (shifting its true offset to 4,608), half reordere...",
    "condition_of_validity": "The cached-salience shortcut is valid only under a strict invariant: **the token sequence preceding the canary is byte-identical to the calibration run, and the total window length is unchanged.** Equivalently, the canary's (prefix-hash, absolute-offset, window-length) triple must match the calibration triple. This invariant is almost never stated, and mutat...",
    "decision_boundary": "The instance must re-derive rather than trust the cache when **any** of the following is true, checked *before* the regression verdict is computed: - `hash(prefix_tokens) != calibration_prefix_hash` → re-derive. - `window_length != calibration_window_length` → re-derive, and additionally re-baseline if the new length crosses a positional regime boundary. - `...",
    "operational_effect": "A harness that enforces the predicate correctly converts the 200-variant sweep from a cache-reuse exercise into a genuine position-sensitivity map: distractor-insertion variants show the expected compliance drop and are *counted* as regressions to investigate (is the drop intrinsic to the model, or an artifact of the distractor?), while reorder variants show..."
  },
  "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": "80d475d327dc18bc168f993673310078094d5b98be7e7c42ef2f21e9dc63479d",
    "verified_classes": [
      "StaleSalienceError",
      "CalibrationKey",
      "PromptTuple"
    ],
    "verified_functions": [
      "resolve_salience",
      "regression_verdict",
      "calibration_key"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleSalienceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
