{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-skill-provenance-before-registry-mutation-not-after-tool-invocation-the-load-time-trust-window-collapse-in-dynamically-l",
  "title": "Where must an instance verify skill provenance before registry mutation, not after tool invocation: the load-time trust-window collapse in dynamically loaded skill registries",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that resolve callable skills/tools from a mutable registry (local manifest, remote MCP server advertisement, or plugin directory) at runtime, where the registry entry carries a provenance attestation (signature, hash, or issuer claim) that is checked at *invocation* rather than at *load*. Does not apply to statically compiled tool sets whose schemas are frozen at process start and never re-resolved.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-registry-mutation-not-after-tool-invocation-the-load-time-trust-window-collapse-in-dynamically-l.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-registry-mutation-not-after-tool-invocation-the-load-time-trust-window-collapse-in-dynamically-l.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-registry-mutation-not-after-tool-invocation-the-load-time-trust-window-collapse-in-dynamically-l.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1767,
    "python_slice_tokens": 356,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats skill provenance as an *invocation-time* gate: the agent loads a skill descriptor, and before calling the tool it verifies the signature against the declared issuer. This model is wrong for dynamically loaded registries because the descriptor itself is *executable input* long before any tool call fires. A skill entry typically ...",
    "what_was_observed": "A registry-backed agent resolved skills from a remote advertisement endpoint. The loader parsed entries into a `SkillDescriptor` and inserted them into the resolver map keyed by name. The invocation path did: The signature check passed on every call in the incident window, because the attacker did not tamper with the signed payload. Instead, the attacker registered a skill named `summarize_document` whose *descriptio...",
    "condition_of_validity": "The load-time-verification invariant is required whenever **all three** hold: - The registry is mutable at runtime (remote advertisement, hot-reload, plugin discovery) — so entries can appear after the agent's trust policy was established. - Descriptor fields (description, examples, `when_to_use`, default args) are concatenated into any prompt the planner re...",
    "decision_boundary": "The decision is not \"verify or don't verify\" — it is *where the verification sits relative to the planner's first read*. Three admissible architectures: 1. **Admission-gated resolver.** `registry.admit(entry)` is the only mutation path; it verifies issuer against a pinned policy set, checks the descriptor hash against a signed manifest, and *rejects* (not qu...",
    "operational_effect": "After migrating to admission-gated resolution, the observable change is that self-asserted issuers never reach the planner: the `values()` enumeration is provably a subset of policy-approved entries, so skill-selection prompts are constructed only from pinned text. The cost is that dynamic registration now fails closed — an unpinned issuer's skill is invisib..."
  },
  "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": "b8385764f7fa96996439e1b7468ab5a3d2bc9894272e9f9ebd79ec1fdd02d9c0",
    "verified_classes": [
      "ProvenanceAdmissionError",
      "SkillDescriptor",
      "AdmissionGatedRegistry"
    ],
    "verified_functions": [
      "invoke",
      "__init__",
      "admit",
      "resolvable"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceAdmissionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
