{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-skill-injection-drift-from-surviving-a-signed-manifest-re-attestation-cycle",
  "title": "Which invariants prevent skill-injection drift from surviving a signed-manifest re-attestation cycle",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that load external skills/tools described by signed manifests and gate invocation on a behavioral diff of tool descriptions between attestation epochs. Does not apply to statically compiled tool sets, or to runtimes where tool descriptions are immutable for the lifetime of the process.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-drift-from-surviving-a-signed-manifest-re-attestation-cycle.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-drift-from-surviving-a-signed-manifest-re-attestation-cycle.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-drift-from-surviving-a-signed-manifest-re-attestation-cycle.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1857,
    "python_slice_tokens": 398,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct classes of skill-injection attack, and they fail against different defenses: 1. **Content injection** — the attacker modifies the *body* of a skill (its code, prompt template, or tool implementation). This is caught by signature verification: the manifest hash no longer matches the payload. 2. **Semantic injection** — the attacker leav...",
    "what_was_observed": "A skill registry served tool manifests of the form: The `artifact_sha256` was signed by the publisher key and verified on load. The `description` and `params` blocks were **not** in the signed digest — they were treated as presentation metadata, refreshed independently on a CDN-backed description cache with a 15-minute TTL. The failure trace: 1. Epoch *N*: agent's planner reads `query_ledger` description and classifi...",
    "condition_of_validity": "The invariant holds only when all three of the following are true simultaneously: - **Co-signing:** the description string, the full parameter schema (including `default`, `enum`, and `additionalProperties`), and the example set are inside the signed digest — not merely adjacent to it. A signature over the artifact alone is insufficient. - **Bounded semantic...",
    "decision_boundary": "The runtime must decide, per epoch transition, whether to admit the new description into the retrieval index. The decision is a conjunction, evaluated in order, short-circuiting on first failure: The critical asymmetry: **an empty structured diff is not proof of safety, and a non-empty diff is not proof of danger.** A byte-identical description with a change...",
    "operational_effect": "After remediation, the registry co-signs the description surface, and the runtime maintains a per-tool epoch ledger of parsed schemas and capability classes. On each epoch transition it emits a `SkillDescriptionDrift` event whenever the structural diff is non-empty, and refuses to admit the epoch into the retrieval index until either the delta is within the ..."
  },
  "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": "c897d308c98f07d54b2669834dc804af23ffbb764bfa9a9c0011ea73c5ea40f4",
    "verified_classes": [
      "SkillDescriptionDrift",
      "SkillManifest"
    ],
    "verified_functions": [
      "_structural_delta",
      "admit_epoch"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillDescriptionDrift"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
