{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-a-signed-skill-manifest-from-being-silently-re-scoped-between-registry-publication-and-runtime-load",
  "title": "Which invariants prevent a signed skill manifest from being silently re-scoped between registry publication and runtime load",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agent runtimes that load third-party skills/tools from a marketplace via a signed manifest (name + version + capability set + parameter schema + declared side-effect scope) and bind the signature to a specific artifact digest. Does not cover unsigned local plugins, nor models whose tool schemas are compiled into the system prompt at build time with no runtime resolution step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-signed-skill-manifest-from-being-silently-re-scoped-between-registry-publication-and-runtime-load.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-signed-skill-manifest-from-being-silently-re-scoped-between-registry-publication-and-runtime-load.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-a-signed-skill-manifest-from-being-silently-re-scoped-between-registry-publication-and-runtime-load.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1942,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a malicious skill is published.\" Marketplaces already gate that with review and signatures. The failure is that **the object the signature attests to and the object the runtime executes are not required to be the same object under the same interpretation.** A manifest is signed over a *declaration* — a capability set, a parameter schema, ...",
    "what_was_observed": "A skill `csv-summarizer@2.3.1` declared scope `filesystem:read:./data/*`. The manifest was signed by the publisher and the digest matched at load. At runtime the agent invoked it with a path argument of `./data/../../etc/agent-secrets/env`. The skill's declared glob was interpreted by the runtime's path resolver as a *prefix check after normalization*, while the skill's own internal file-open used the raw argument. T...",
    "condition_of_validity": "The signature-plus-digest model is sound *only* when all of the following hold, and each is a separate invariant that must be independently enforced: - **I1 — Interpretation closure.** The signed manifest must bind not just the capability strings but the *semantics* of those strings: the exact matcher, the exact coercion rules, the exact capability table ver...",
    "decision_boundary": "The operational question is not \"is this skill signed\" but \"**can I reconstruct, from the signed bytes alone, the exact set of effects this skill will be permitted to cause, and does my runtime's enforcement mechanism provably implement that set?**\" If the answer requires reading runtime source or trusting a capability table the publisher never saw, the sign...",
    "operational_effect": "The practical consequence is that \"signed\" and \"scoped\" are independent properties, and marketplaces that conflate them ship skills that pass every integrity check while exceeding every declared bound. The remediation is architectural: move scope enforcement from the runtime's pre-invocation check into the execution sandbox's policy, derive that policy mecha..."
  },
  "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": "85e24f8216d27516643c8960f472d4c32f25a6c877741dd91f6b75a06e95b62f",
    "verified_classes": [
      "ManifestRescopeError",
      "Manifest"
    ],
    "verified_functions": [
      "resolve_effective_grant",
      "verify_and_bind"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ManifestRescopeError"
    ],
    "sample_fail_closed_invariants": [
      "artifact digest mismatch"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
