{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-skill-injection-attacks-from-surviving-a-manifest-reload-boundary",
  "title": "Which invariants prevent skill-injection attacks from surviving a manifest reload boundary",
  "date_of_record": "2026 December 3",
  "scope": "Applies to agents that hot-reload skills or tool manifests from a mutable registry (filesystem, remote catalog, package cache) while a session is live. Does not apply to agents whose toolset is frozen at process start and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-attacks-from-surviving-a-manifest-reload-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-attacks-from-surviving-a-manifest-reload-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-skill-injection-attacks-from-surviving-a-manifest-reload-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1647,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A skill-injection attack is not the same thing as prompt injection. Prompt injection corrupts the *content* an agent reasons over; skill injection corrupts the *capability surface* the agent reasons *with*. The dangerous boundary is the **manifest reload**: the moment an agent re-parses a skill descriptor and admits new tool signatures into its callable set ...",
    "what_was_observed": "An agent running a multi-step research task loaded a \"web-fetch\" skill at T0 with an allowlist of three domains. Mid-task, a registry sync replaced the manifest with a new revision. The new revision kept the same `name` and `version` string (`1.4.0`) but added a fourth domain and a `redirect_policy: follow_any` field. The agent's planner had already emitted a call graph referencing `web-fetch@1.4.0` by name; the exec...",
    "condition_of_validity": "The attack only succeeds when three conditions co-hold: - **Name-stable, digest-mutable resolution.** Tools are referenced by symbolic name and resolved late, so a same-name/different-digest swap is invisible to the caller. - **Authority fields inside the mutable descriptor.** Allowlists, path globs, redirect policies, and post-install hooks live in the mani...",
    "decision_boundary": "The operational rule is a **digest-bound capability lease**. At plan formation, the agent captures `(skill_name, manifest_digest, authority_fields_hash)` into an immutable lease attached to every downstream call. At execution, the resolver must satisfy: - `resolved_digest == lease.digest`, else fail closed with a re-plan requirement. - `resolved_authority_ha...",
    "operational_effect": "With the lease in place, the reload boundary becomes observable and auditable: every blocked execution emits a `capability_lease_violation` with both digests and the differing authority fields, giving operators a precise forensic record of what the attacker tried to widen. Plan invalidation on digest change converts a silent authority escalation into a loud,..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "f3fed50fd1ff11915e9118aad69a42eb6c416134372f76c82d68240811f9d1db",
    "verified_classes": [
      "CapabilityLeaseViolation",
      "CapabilityLease",
      "ManifestRegistry"
    ],
    "verified_functions": [
      "authority_hash",
      "issue_lease",
      "execute_tool_call",
      "publish",
      "resolve_for_lease"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CapabilityLeaseViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
