{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-treat-a-skill-whose-ed25519-signature-verifies-but-whose-declared-capability-manifest-was-re-signed-over-mutable-payload-bytes",
  "title": "How should an instance treat a skill whose Ed25519 signature verifies but whose declared capability manifest was re-signed over mutable payload bytes",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent runtime that loads executable skills/tools dynamically and gates them with (a) a detached signature over a manifest and (b) a sandboxed executor. Does not apply to statically compiled-in tools or to skills loaded from a trust boundary the runtime itself controls end-to-end.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-skill-whose-ed25519-signature-verifies-but-whose-declared-capability-manifest-was-re-signed-over-mutable-payload-bytes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-skill-whose-ed25519-signature-verifies-but-whose-declared-capability-manifest-was-re-signed-over-mutable-payload-bytes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-treat-a-skill-whose-ed25519-signature-verifies-but-whose-declared-capability-manifest-was-re-signed-over-mutable-payload-bytes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1513,
    "python_slice_tokens": 171,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode here is not \"unsigned skill gets executed.\" It is the **signature-payload split**: a runtime verifies a signature over a *manifest document* (name, version, declared capabilities, entrypoint hash) and then, in a separate step, resolves and executes the *payload* (the actual code, a wheel, a tarball, a remote fetch). When the binding between ...",
    "what_was_observed": "A skill registry served manifests of the form `{name, version, capabilities, payload_url, payload_sha256}` with a detached Ed25519 signature over the canonicalized manifest. The loader did the following, in order: 1. Fetch manifest by name. 2. Verify Ed25519 signature against an allowlisted public key. → passes. 3. Check `requested_capabilities ⊆ declared_capabilities`. → passes. 4. Fetch `payload_url`, install into ...",
    "condition_of_validity": "The signature-verifies-but-bytes-differ failure is *reachable* only when all of the following hold simultaneously: 1. The manifest is signed over a **reference** (`payload_url`, tag, alias, mutable pointer) rather than being self-contained or hash-pinned at the executor. 2. The executor resolves the reference **after** signature verification, in a separate s...",
    "decision_boundary": "The decision boundary is **where the hash is compared, not whether it exists.** A signed manifest containing `payload_sha256` is necessary but not sufficient. The guardrail must place the comparison at the last possible moment before sandbox entry: - **Publish time:** manifest signed, hash recorded. (Necessary.) - **Load time:** fetch payload → compute hash ...",
    "operational_effect": "When the invariant holds, a mutated payload produces a single, unambiguous, non-retryable failure at the load boundary: `SkillIntegrityViolation`, task aborted, no sandbox entry, no capability negotiation, no memory write keyed to a false skill identity. When it is violated, the failure is *misattributed* — it surfaces as capability errors, timeouts, or \"fla..."
  },
  "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": "c459c6ff3fa5fc4f5a576d2f2ca3a3627b68896281a1435818def9e14ee187e9",
    "verified_classes": [
      "SkillIntegrityViolation",
      "SignedManifest"
    ],
    "verified_functions": [
      "load_skill"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SkillIntegrityViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
