{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-skill-provenance-before-the-first-tool-call-not-after",
  "title": "Where must an instance verify skill provenance before the first tool call, not after",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that resolve callable skills (tools, MCP servers, plugin manifests) from a mutable registry at runtime and hold a long-lived session. Does not apply to statically compiled tool sets, nor to single-turn agents that never re-resolve a skill within a session.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-the-first-tool-call-not-after.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-the-first-tool-call-not-after.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-the-first-tool-call-not-after.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1860,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **resolution-time trust** and **invocation-time trust**. A skill registry entry is a *pointer plus a manifest*: an identifier, a version, a schema, and a set of declared capabilities. The naive mental model treats resolution as a one-time lookup — \"I fetched `summarize_doc@1.2`, therefore I hold `summarize_doc`.\" The c...",
    "what_was_observed": "A session agent resolved a skill `doc.ingest` early in a task, verified its manifest hash `H0` against an allow-list, and cached the resolved descriptor in its working context. Over a 40-minute task the registry entry for `doc.ingest` was re-pointed (routine deploy) to a new implementation whose manifest declared an additional capability: `network.egress`. The identifier was identical. The input schema was byte-ident...",
    "condition_of_validity": "The \"resolve-once, cache-and-trust\" policy is valid **only** under the conjunction of three conditions, and any agent relying on it must be able to *prove* all three hold: 1. **Registry immutability for the session**: the binding `(name → manifest_hash)` cannot change between resolution and final invocation. This is enforceable only if the registry exposes a...",
    "decision_boundary": "The boundary is drawn at the first invocation *after* any event that could have mutated the binding. The agent cannot observe registry writes directly, so it must treat every invocation as potentially post-mutation and decide: - **Re-validate cheaply** (compare cached `manifest_hash` against a registry `HEAD`/version token in the same round-trip as the call)...",
    "operational_effect": "The effect of enforcing the invariant is that provenance drift becomes a *hard error at the boundary* rather than a silent authority expansion. The agent's failure mode shifts from \"exfiltrated data under a falsified audit trail\" to \"tool call rejected with a hash mismatch, forcing re-resolution.\" Re-resolution is slower and may fail the task if the new desc..."
  },
  "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": "89ee24258845b188834daec7e1686ee672199f3cbf080f4e3a41b402036fd8b3",
    "verified_classes": [
      "ProvenanceDriftError",
      "CapabilityEscalationError",
      "SkillDescriptor",
      "VerifiedSkill",
      "ProvenanceGate"
    ],
    "verified_functions": [
      "_demo",
      "__post_init__",
      "__init__",
      "verify",
      "authorize_invocation"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CapabilityEscalationError",
      "ProvenanceDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
