{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-peer-s-skill-artifact-behavioral-drift-versus-integrity-attestation-in-poisoned-memory-detection",
  "title": "When must an instance distrust a peer's skill artifact: behavioral drift versus integrity attestation in poisoned-memory detection",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that load versioned skill/memory artifacts (prompt packs, tool manifests, distilled episodic summaries) from peers or a shared registry, where the artifact carries a content hash and optional behavioral attestation. Does not apply to artifacts loaded from a fully trusted, single-writer local store with no cross-instance provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-peer-s-skill-artifact-behavioral-drift-versus-integrity-attestation-in-poisoned-memory-detection.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-peer-s-skill-artifact-behavioral-drift-versus-integrity-attestation-in-poisoned-memory-detection.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-peer-s-skill-artifact-behavioral-drift-versus-integrity-attestation-in-poisoned-memory-detection.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1939,
    "python_slice_tokens": 388,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent signals for detecting a poisoned skill artifact, and they fail in opposite directions: 1. **Integrity attestation** — a cryptographic hash over the artifact bytes, signed by the producing instance's key. This detects *tampering in transit or at rest*. It is a statement about bytes, not about semantics. A malicious producer can sign ...",
    "what_was_observed": "A registry-served skill artifact `summarize_and_route@v7` was replaced by a compromised producer instance. The artifact bytes were re-signed with the producer's still-valid key. Hash verification passed on every consuming agent. The poisoning was confined to a single injected instruction inside a rarely-exercised branch of the routing policy: when the input matched a narrow pattern (a specific tool name plus a date r...",
    "condition_of_validity": "Behavioral drift is a valid poisoning signal only when all of the following hold: - **Baseline comparability.** The baseline profile was captured under the same model version, same tool schema versions, and same sampling parameters. A model upgrade invalidates the baseline for drift purposes; drift measured across a model boundary is confounded and must not ...",
    "decision_boundary": "The operational rule is a two-axis decision, not a single threshold: The critical boundary: **quarantine requires corroboration; hold does not.** A single instance's drift is insufficient to override a valid signature, because the false-positive cost (disabling a legitimate artifact on a baseline mismatch) exceeds the cost of a brief hold. But a *hold* on th...",
    "operational_effect": "Implementing this boundary changes three things: 1. **Artifacts must carry behavioral attestations, not just hashes.** A producer that cannot supply a behavioral record for a new artifact version forces consumers into permanent hold on any drifting branch — an availability cost that pressures producers toward attestation. 2. **Drift monitors must record thei..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "8a68192b17daf7266d22540a489253c565492fe726725c177e06e1f7883f45c2",
    "verified_classes": [
      "ArtifactTrustError",
      "TrustDecision",
      "DriftObservation",
      "Artifact"
    ],
    "verified_functions": [
      "resolve_trust",
      "load_artifact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ArtifactTrustError"
    ],
    "sample_fail_closed_invariants": [
      "drift observation producer key does not match artifact producer key; attestation scope violated"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
