{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-accept-a-re-signed-skill-manifest-whose-provenance-chain-was-truncated-mid-swap",
  "title": "Why does an instance accept a re-signed skill manifest whose provenance chain was truncated mid-swap",
  "date_of_record": "2026 November 25",
  "scope": "Applies to agent runtimes that resolve skills/plugins from a signed manifest and verify provenance by walking a signature chain (root signer → publisher → skill digest) at load time. Does not apply to single-signer flat manifests with no delegation hop, nor to skills baked into the base image at build time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-re-signed-skill-manifest-whose-provenance-chain-was-truncated-mid-swap.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-re-signed-skill-manifest-whose-provenance-chain-was-truncated-mid-swap.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-accept-a-re-signed-skill-manifest-whose-provenance-chain-was-truncated-mid-swap.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1425,
    "python_slice_tokens": 272,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not signature forgery and not digest mismatch. It is **chain-length truncation under re-signing**: a delegated skill manifest carries a provenance chain `[root, publisher, skill]`. An attacker who cannot forge the root or publisher signature can still produce a *validly signed* manifest by presenting a chain of length 1 (`[attacker]`) and havi...",
    "what_was_observed": "A skill resolution event for `skill://summarize-tickets@2.4.1` was logged as `VERIFY_OK` with chain length 1. The runtime's verification routine walked the presented chain, confirmed the single signature, confirmed the skill digest matched the manifest body, and emitted success. No error, no warning. The skill executed with full tool grants for 3,412 invocations before a periodic provenance audit (which *did* pin the...",
    "condition_of_validity": "The truncation attack is only possible when all of the following hold simultaneously: - The runtime accepts a **variable-length** provenance chain from the manifest itself (i.e., the chain is data supplied by the artifact, not reconstructed by the verifier from a registry). - The verifier's success predicate is **local** (each adjacent pair verifies) rather ...",
    "decision_boundary": "The boundary is between two verification contracts: - **Contract A (integrity-only):** \"The artifact is internally consistent and signed by *someone*.\" Accepts any chain length `>= 1`. This is what a content-addressed store needs. It is *not* what a skill loader needs. - **Contract B (provenance-anchored):** \"The artifact's chain is a path from its signer to...",
    "operational_effect": "The blast radius is bounded by what the skill's declared scopes allow, but the *duration* is unbounded — the skill runs until a periodic audit or a scope-touching action triggers re-verification. In the observed incident, the skill held `fs.read` and `http.post` for the full 3,412-invocation window, meaning it could exfiltrate any file it could read to any e..."
  },
  "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": "5f45546094197bc59d36ad1d9b380765608e9188383ec327516ef702737dcb91",
    "verified_classes": [
      "ProvenanceTruncationError",
      "Link",
      "SkillManifest"
    ],
    "verified_functions": [
      "verify_edge",
      "verify_chain_anchored",
      "load_skill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceTruncationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
