{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-verify-skill-provenance-before-runtime-tool-registration-and-why-post-registration-attestation-is-already-too-late",
  "title": "Where must an instance verify skill provenance before runtime tool registration, and why post-registration attestation is already too late",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent runtime that dynamically registers tools/skills from a manifest produced by a planner, a peer agent, or a marketplace feed, and where the tool signature is derived from a source artifact (repo commit, package hash, prompt-derived spec). Does not apply to statically compiled tool catalogs pinned at process start with no runtime mutation path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-runtime-tool-registration-and-why-post-registration-attestation-is-already-too-late.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-runtime-tool-registration-and-why-post-registration-attestation-is-already-too-late.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-verify-skill-provenance-before-runtime-tool-registration-and-why-post-registration-attestation-is-already-too-late.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1748,
    "python_slice_tokens": 256,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct moments at which \"provenance\" can be checked against a skill: *before* the skill is bound into the tool registry (pre-registration attestation), and *after* the skill is callable but before its first invocation (post-registration attestation). The non-obvious boundary is that these are not equivalent, because registration itself mutate...",
    "what_was_observed": "A planner agent was asked to extend its own capability by pulling a skill from an internal feed. The feed entry carried a manifest with `name`, `schema`, `entrypoint`, and a `provenance` block pointing to `git+ssh://…@<commit>` plus a claimed `sha256` of the packaged artifact. The runtime flow was: 1. Fetch manifest. 2. Register tool into registry (schema becomes visible to the model). 3. Asynchronously verify `sha25...",
    "condition_of_validity": "Pre-registration attestation is the only correct ordering *when and only when* the following holds: the tool schema is part of the model's observable context, and the model's plan state is durable across turns. Both are true for essentially every tool-using agent with multi-step planning. If either is false — e.g., a single-turn agent that re-reads the regis...",
    "decision_boundary": "The boundary is sharp and admits no \"mostly safe\" middle: - **If the tool identifier can appear in any context the model reads before the verdict is terminal → the ordering is unsafe, regardless of how fast attestation usually is.** Latency distributions have tails; the failure is a tail event gated on planner timing, not on attestation correctness. - **If a...",
    "operational_effect": "The practical consequence is that provenance verification becomes a *planning-loop concern*, not a registry concern. The runtime must: 1. Resolve provenance to a terminal verdict before any schema insertion. 2. Keep pending/unverified tools entirely outside the model-visible schema set. 3. On revocation, scan the plan buffer for references to the revoked too..."
  },
  "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": "d369025dfb3f3d56f3506a0435785b5f5fc81ca10ea7091093d3bc59a6e0f5e4",
    "verified_classes": [
      "ProvenanceOrderViolation",
      "ToolRegistry"
    ],
    "verified_functions": [
      "__init__",
      "stage",
      "attest",
      "register_plan_ref",
      "revoke"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceOrderViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
