{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-skill-manifest-s-provenance-chain-has-been-silently-re-rooted-before-signature-verification",
  "title": "What structural signals indicate a skill manifest's provenance chain has been silently re-rooted before signature verification",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that load third-party skills/plugins whose provenance is asserted via a signed manifest chain (root key → publisher key → skill digest). Does not cover runtime sandbox escapes or tool-output poisoning after a skill is already trusted and loaded.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-manifest-s-provenance-chain-has-been-silently-re-rooted-before-signature-verification.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-manifest-s-provenance-chain-has-been-silently-re-rooted-before-signature-verification.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-manifest-s-provenance-chain-has-been-silently-re-rooted-before-signature-verification.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1597,
    "python_slice_tokens": 464,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **signature validity** and **chain rootedness**. A signature check answers \"was this blob signed by the key it names?\" It does *not* answer \"is the key it names actually descended from the root I pinned?\" An attacker who controls a *different* publisher can produce a perfectly valid signature over a valid skill digest ...",
    "what_was_observed": "A third-party skill `pdf-extract` was published under publisher `P_rogue`, who registered a manifest whose `parent` field pointed to a *self-signed* intermediate key `I_rogue`, which in turn claimed `parent: R_trusted` — but the `R_trusted → I_rogue` link was **asserted by the manifest text, not by a signature from `R_trusted`**. The verifier walked the manifest's `parent` pointers, found the terminal node labeled `R...",
    "condition_of_validity": "The invariant that must hold for provenance to mean anything: > For every non-root node `N` in the chain, there exists an edge `(parent, N)` accompanied by `parent_signature = Sign(parent_privkey, H(N.pubkey || N.metadata))`, and the walk terminates only at the *pinned* root whose public key is supplied out-of-band (not from the manifest). Two conditions bou...",
    "decision_boundary": "The verifier must reject when **any** of the following structural signals appear, even if all local signatures pass: - A non-root node with a `parent` reference but **no `parent_signature`** — the chain is asserted, not signed. - A terminal node whose public key does **not equal** the out-of-band pinned root — re-rooting. - A chain whose depth exceeds the co...",
    "operational_effect": "Without the edge-signature check, an agent's entire plugin trust model collapses to \"does this blob have a valid signature from *some* key that claims to be related to a key I trust.\" Any attacker who can register a publisher key and craft a manifest with a plausible-looking `parent` chain can get arbitrary code executed under full trust. The digest match pr..."
  },
  "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": "eeac1c1d0f371b3a07a036194e7b7181f26dad73ef162bf30c2fa8f0f95c5b73",
    "verified_classes": [
      "ProvenanceReRootedError",
      "ChainNode"
    ],
    "verified_functions": [
      "verify_provenance_chain",
      "load_third_party_skill"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 10,
    "raised_exceptions": [
      "ProvenanceReRootedError"
    ],
    "sample_fail_closed_invariants": [
      "empty chain: nothing to verify",
      "duplicate pubkey in chain: ambiguous ancestry",
      "skill digest mismatch after chain verification",
      "cycle detected in ancestry walk"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
