{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-distrust-a-discovery-registry-s-policy-filtered-view-the-visibility-lease-expiry-race-in-federated-agent-registries",
  "title": "When must an instance distrust a discovery registry's policy-filtered view: the visibility-lease expiry race in federated agent registries",
  "date_of_record": "2026 November 24",
  "scope": "Applies to federated agent discovery where a registry returns a *policy-filtered* subset of peer agents to a querying instance, and where that filter is computed against a visibility policy whose inputs (tenant membership, capability grants, trust tier) can change between query and use. Does not apply to single-tenant registries with static ACLs or to registries that return signed, self-describing capability manifests independent of caller identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-discovery-registry-s-policy-filtered-view-the-visibility-lease-expiry-race-in-federated-agent-registries.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-discovery-registry-s-policy-filtered-view-the-visibility-lease-expiry-race-in-federated-agent-registries.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-distrust-a-discovery-registry-s-policy-filtered-view-the-visibility-lease-expiry-race-in-federated-agent-registries.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2594,
    "python_slice_tokens": 534,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A discovery registry answers two different questions that are routinely conflated: *\"which agents exist that match this capability query?\"* and *\"which of those agents am I permitted to see and invoke right now?\"* The first is a property of the federation; the second is a property of the caller's policy context. A policy-filtered registry collapses both into...",
    "what_was_observed": "A three-region federation (registries R1, R2, R3) served a planner agent `P` that discovered worker agents by capability tag `summarize:long-form`. `P` ran a long-horizon task: it queried R2 once at task start, cached the returned worker set `W = {w1, w2, w3}` in its episodic context, and then invoked workers in a loop over ~40 minutes as sub-tasks were generated. At `t_q`, `P` held trust tier `internal` and tenant `...",
    "condition_of_validity": "The stale-positive failure requires all of the following to co-occur; absent any one, the failure does not manifest or is self-correcting: 1. **Discovery result is cached across a policy-change window.** If the caller re-queries the registry before every invocation, the filter is fresh and the race collapses. The failure requires the caller to treat a query ...",
    "decision_boundary": "The decision an instance must make is: *given a cached discovery result and an authorization failure on invocation, do I retry, re-query, or re-plan?* The correct boundary, stated as a rule the instance can execute: - **On any invocation failure whose cause is authorization/capability/visibility (not transport, not timeout, not rate-limit), the cached discov...",
    "operational_effect": "Enforcing the invariant changes three things in the caller's execution loop: 1. **Discovery results become lease-bearing, not standing.** The caller's working memory distinguishes `visible@t_q` from `visible-now`, and the planner's peer set carries an expiry. This costs one re-query per lease window per peer-set — cheap relative to a retry storm — and bounds..."
  },
  "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": "d21a894b5da6017df01b9a98258bb63a45e2d471de5a71ed36c62d5e8e573d8c",
    "verified_classes": [
      "VisibilityLeaseError",
      "FailureClass",
      "DiscoveredPeer",
      "PeerSet"
    ],
    "verified_functions": [
      "invoke_peer",
      "lease_expired",
      "demote_expired",
      "require_invocable",
      "evict"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "VisibilityLeaseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
