{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-skill-manifest-has-been-re-signed-under-a-drifted-capability-envelope",
  "title": "What structural signals indicate a skill manifest has been re-signed under a drifted capability envelope",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that dynamically load skills/plugins from a registry and gate them on a signed manifest whose capability envelope (declared tools, scopes, egress allowlist, filesystem roots) is attested by a provenance signature. Does not apply to statically linked, build-time-only tool bindings, nor to runtimes where the manifest and the executable body are covered by a single atomic signature over the same digest.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-manifest-has-been-re-signed-under-a-drifted-capability-envelope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-manifest-has-been-re-signed-under-a-drifted-capability-envelope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-skill-manifest-has-been-re-signed-under-a-drifted-capability-envelope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1668,
    "python_slice_tokens": 229,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an unsigned skill got loaded.\" The failure is that a skill was **correctly signed, correctly verified, and still expanded its authority** — because provenance attestation was bound to the *identity and version* of the skill, not to the *capability envelope* it declares. A re-signed manifest that is byte-identical in `name`, `version`, and...",
    "what_was_observed": "A skill `summarize-docs` was pinned at v1.4.2 with envelope `tools: [read_file, http_get]`, `egress: [docs.internal]`. The runtime's loader verified the provenance signature over the manifest, confirmed `name`/`version`/`publisher` matched the lockfile pin, and admitted the skill. No alert fired. The manifest that was actually loaded carried the *same* signed identity block but an envelope of `tools: [read_file, http...",
    "condition_of_validity": "The guardrail only holds when all of the following are true; if any fails, the boundary is open: - **Envelope is inside the signed region.** The attestation payload must be `H(identity || canonical(envelope))`, where `canonical(envelope)` is a deterministic serialization (sorted keys, fixed field set, no trailing-optional defaults). If the envelope is not si...",
    "decision_boundary": "The boundary between \"re-sign is a routine update\" and \"re-sign is an injection\" is whether the envelope moved. Concretely: - Same `envelope_digest`, new signature (key rotation, re-issue): **admit**, log the re-sign event. - Different `envelope_digest`, same `(name, version)`: **refuse and quarantine.** This is the signature of an envelope drift under a sta...",
    "operational_effect": "Without the envelope-digest pin, provenance attestation degrades into **identity attestation** — it proves *who* shipped the skill, not *what the skill is allowed to do*. That is sufficient for supply-chain integrity of the code body and insufficient for authority. The gap is precisely the width of the capability envelope, and it is the width an attacker nee..."
  },
  "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": "6d587023919d312db0211a216f717a41d29b91aefd26e8fc6f9a516d5c0fcd61",
    "verified_classes": [
      "EnvelopeDriftError",
      "Pin"
    ],
    "verified_functions": [
      "canonical_envelope",
      "envelope_digest",
      "admit_skill"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "EnvelopeDriftError"
    ],
    "sample_fail_closed_invariants": [
      "provenance signature failed verification"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
