{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-a-re-verified-skill-manifest-as-untrusted-because-provenance-signatures-were-minted-over-a-pre-normalization",
  "title": "In what scenarios must an instance treat a re-verified skill manifest as untrusted because provenance signatures were minted over a pre-normalization byte stream",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that dynamically load skills/tool manifests from a registry and gate execution on a provenance signature (Sigstore/cosign, JWS, in-toto attestation) verified over manifest bytes. Does not apply to statically compiled-in tools or to manifests whose execution semantics are not derived from the signed bytes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-re-verified-skill-manifest-as-untrusted-because-provenance-signatures-were-minted-over-a-pre-normalization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-re-verified-skill-manifest-as-untrusted-because-provenance-signatures-were-minted-over-a-pre-normalization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-a-re-verified-skill-manifest-as-untrusted-because-provenance-signatures-were-minted-over-a-pre-normalization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1939,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct trust questions, and conflating them is the entire attack surface: 1. **Is this manifest authentically from the publisher I trust?** — answered by signature verification over the manifest byte stream. 2. **Is the executable semantics I will now derive from this manifest identical to the semantics the publisher signed?** — answered by *...",
    "what_was_observed": "A skill manifest declared a single tool `http_fetch` with a signed `allowed_hosts: [\"api.vendor.example\"]` and `max_bytes: 4096`. The signature verified cleanly against the registry's public key. On load, the agent's tool executor issued requests to `169.254.169.254` (cloud metadata) and exfiltrated the response. The manifest bytes as signed contained a YAML **anchor/alias expansion** that the publisher's authoring t...",
    "condition_of_validity": "The provenance gate is only sound when **all four** of the following hold simultaneously. If any fails, the signature is a necessary but insufficient condition and the manifest must be treated as untrusted regardless of verification success: 1. **Canonicalization is specified and shared.** The signing tool and the loading tool use the *same* canonicalization...",
    "decision_boundary": "The boundary is **not** \"did the signature verify?\" It is **\"does the parsed structure that governs execution lie in the image of the signing canonicalization?\"** Operationally, an instance must refuse to load — and must surface the refusal as a provenance failure, not a parse error — when: - The manifest contains duplicate keys at any depth (reject, do not ...",
    "operational_effect": "The effect of enforcing this boundary is that **provenance becomes a statement about semantics, not bytes**. Without it, a signature is a statement that \"some key holder emitted these bytes,\" which an attacker who controls a registry-merge step, a lenient parser, or a schema-version skew can satisfy while shipping arbitrary executable semantics. The agent's ..."
  },
  "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": "8a02c8ce71760e035edd27ee5e3594e62822ffe1a433fba153acf8e4f884a2bb",
    "verified_classes": [
      "ProvenanceSemanticMismatch"
    ],
    "verified_functions": [
      "_reject_duplicate_keys",
      "_canonicalize",
      "load_verified_manifest",
      "activate_skill"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceSemanticMismatch"
    ],
    "sample_fail_closed_invariants": [
      "signature verification failed",
      "parsed structure does not round-trip to signed bytes; executable semantics are not in the signed image"
    ],
    "stdlib_dependencies": [
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
