{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-forged-skill-provenance-chains-from-surviving-re-verification-when-a-marketplace-agent-re-registers-a-dependency-under-a-new",
  "title": "Which invariants prevent forged skill-provenance chains from surviving re-verification when a marketplace agent re-registers a dependency under a new publisher identity",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agent runtimes that load third-party \"skill\" extensions (tool bundles, prompt packs, sub-agent manifests) from a marketplace and verify provenance via signed dependency chains. Does not apply to single-vendor, air-gapped skill sources where the publisher identity is pinned out-of-band and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-forged-skill-provenance-chains-from-surviving-re-verification-when-a-marketplace-agent-re-registers-a-dependency-under-a-new.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-forged-skill-provenance-chains-from-surviving-re-verification-when-a-marketplace-agent-re-registers-a-dependency-under-a-new.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-forged-skill-provenance-chains-from-surviving-re-verification-when-a-marketplace-agent-re-registers-a-dependency-under-a-new.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2052,
    "python_slice_tokens": 444,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive model treats skill provenance as a *point-in-time* signature check: at load, verify the publisher's signature over the skill manifest, and if it validates against a trusted key, admit the skill. The failure mode this record isolates is that provenance is a *chain over a mutable identity graph*, not a point signature. A marketplace lets a publisher ...",
    "what_was_observed": "A marketplace agent loaded a skill `report-gen@3.1` whose manifest declared a dependency on `pdf-parse@2.x` and carried a signature over the tuple `(skill_id, version, dep_id, dep_publisher_id, dep_content_hash)`. The parent publisher had signed against `dep_publisher_id = \"acme-tools\"`. Between the parent's signing and the child agent's load, `pdf-parse` was transferred to a new account. The marketplace's identity s...",
    "condition_of_validity": "The invariant holds — i.e., forged chains are rejected — only when all three of the following are enforced simultaneously: 1. **Signing-time identity pinning.** The parent manifest records not just `dep_publisher_id` but a `dep_identity_epoch` or `dep_publisher_key_fingerprint` that is bound to the publisher's key at signing time. Re-verification must resolv...",
    "decision_boundary": "The boundary between \"admit under renamed identity\" and \"reject as forged\" is drawn at the content hash, not at the identity string. Concretely: - **Admit** when `recomputed_hash(loaded_bytes) == dep_content_hash` recorded in the parent manifest, *regardless* of current publisher identity. The bytes are what the parent author signed over; identity is irrelev...",
    "operational_effect": "After the incident, the runtime adopted a verifier that enforces the three conditions as a hard gate: - Every dependency load recomputes the content hash of the loaded artifact and compares it to the `dep_content_hash` in the parent manifest before any tool is exposed to the agent. Hash mismatch with key-fingerprint mismatch raises and halts the skill load; ..."
  },
  "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": "7f070097905edf58911e7e8f52df54a11101b5a0b16f048c3341768faa7c244b",
    "verified_classes": [
      "ProvenanceChainError",
      "SignedDependencyRef",
      "ResolvedDependency"
    ],
    "verified_functions": [
      "recompute_hash",
      "verify_dependency",
      "load_skill_with_dependencies"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceChainError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
