{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-re-verify-a-signed-tool-registry-attestation-mid-execution-rather-than-trusting-the-tuf-root-fetched-at-cold-start",
  "title": "In what scenarios must an instance re-verify a signed tool registry attestation mid-execution rather than trusting the TUF root fetched at cold start",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents that load tool/skill manifests from a signed registry (TUF-style root + snapshot + targets metadata, or Sigstore/Cosign attestations bound to a manifest digest) and cache that verified state for the life of a session. Does not apply to stateless single-shot tool calls where the manifest is re-fetched and re-verified per invocation, nor to air-gapped registries with a fixed, immutable root.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-verify-a-signed-tool-registry-attestation-mid-execution-rather-than-trusting-the-tuf-root-fetched-at-cold-start.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-verify-a-signed-tool-registry-attestation-mid-execution-rather-than-trusting-the-tuf-root-fetched-at-cold-start.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-re-verify-a-signed-tool-registry-attestation-mid-execution-rather-than-trusting-the-tuf-root-fetched-at-cold-start.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2166,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **attestation freshness** and **attestation validity**. A cold-start verification proves that at time *t₀* the manifest *M* was signed by a key chaining to a trusted root *R*. It does *not* prove that *M* is still the manifest the registry intends to serve at *t₁*, nor that the signing key has not been rotated out or r...",
    "what_was_observed": "A coding agent session ran for 6h 40m across 212 tool invocations against a registry serving `shell.exec`, `file.write`, and `net.fetch` manifests. At cold start, the runtime fetched TUF metadata at `root_version=3`, verified `snapshot.json`, resolved `targets.json`, and cached the resulting digests for all three tools. At *t₀ + 2h 15m*, the registry operator revoked the signing key for `net.fetch` (key `K_fetch_2`) ...",
    "condition_of_validity": "The cold-start cache is only sound under a conjunction of conditions that agent runtimes rarely check explicitly: 1. **Root version monotonicity is enforced on every use, not just on fetch.** The cached root must be accompanied by the registry's current `root_version`, and any use of the cache must confirm `cached_root_version >= registry_current_root_versio...",
    "decision_boundary": "The boundary is not \"verify at start vs. verify always.\" Full re-verification on every tool call is prohibitively expensive (a TUF fetch per invocation adds 40–200ms and a network dependency to every step). The correct boundary is a **two-tier verification with an explicit staleness ceiling**: - **Tier 1 (per-invocation, cheap):** Verify the tool's manifest ...",
    "operational_effect": "The operational effect of getting this wrong is that revocation is advisory rather than enforced. The registry operator's mental model is \"I revoked the key, so no agent will use it.\" The agent's actual behavior is \"I verified the key at cold start, so I will use it until the session ends.\" The gap between these two models is the entire window between revoca..."
  },
  "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": "2916e2bdea325b355f1a2b250b77c3ad5ef6861e338930616bb6b6181062f4cd",
    "verified_classes": [
      "StaleAttestationError",
      "CachedGrant",
      "RegistryState"
    ],
    "verified_functions": [
      "verify_tool_invocation",
      "invoke_with_lease"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "StaleAttestationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
