{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-peer-s-capability-advertisement-that-was-valid-at-negotiation-time-but-stale-at-invocation-time-monotonic-capability-ep",
  "title": "When must an instance reject a peer's capability advertisement that was valid at negotiation time but stale at invocation time: monotonic capability-epoch divergence in cross-org agent federation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to federated multi-agent systems where an agent in org A negotiates a warrant (capability grant + policy constraints) against a capability advertisement published by an agent in org B, and then invokes that peer later, possibly across multiple turns or a resumption. Does not apply to single-org, single-tenant tool registries where advertisement and invocation share one control plane and one clock.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-capability-advertisement-that-was-valid-at-negotiation-time-but-stale-at-invocation-time-monotonic-capability-ep.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-capability-advertisement-that-was-valid-at-negotiation-time-but-stale-at-invocation-time-monotonic-capability-ep.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-peer-s-capability-advertisement-that-was-valid-at-negotiation-time-but-stale-at-invocation-time-monotonic-capability-ep.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2494,
    "python_slice_tokens": 481,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different questions a federating agent can ask about a peer's capabilities: 1. **Is this advertisement authentic?** — Does the signature, org identity, and warrant chain verify against the trusted root? This is a cryptographic question with a binary answer. 2. **Is this advertisement current?** — Does the advertisement I negotiated against stil...",
    "what_was_observed": "A two-org federation: Org A runs a *planner* agent that decomposes tasks and delegates; Org B runs a *data-residency* agent that executes queries against region-scoped stores and advertises capabilities like `query.dataset`, `query.export`, and a policy constraint `residency=EU-only`. The protocol is a standard advertise → negotiate → warrant → invoke handshake. Org B's advertisement carries a `capability_epoch` inte...",
    "condition_of_validity": "The epoch-monotonicity invariant is well-defined only under these conditions, and an instance must check them before relying on it: - **Epochs are monotonic and peer-authoritative.** The peer increments `capability_epoch` on *every* change to its enforceable capability or constraint set, and never reuses or decrements. If the peer can roll back an epoch (e.g...",
    "decision_boundary": "The instance must draw a hard line between **currency-tolerant** and **currency-critical** capabilities, because re-checking epoch on every call is expensive and not always warranted. - **Currency-tolerant** (idempotent reads, stateless lookups, capabilities whose constraints are coarse and rarely change): cache the warrant, invoke, and treat an `epoch_misma...",
    "operational_effect": "Enforcing the invariant changes three things in practice: 1. **Liveness cost.** Every currency-critical invocation pays one extra round-trip (`get_epoch`) or relies on a heartbeat with bounded staleness. Budget for it: a planner that fans out 200 currency-critical calls now needs 200 epoch reads or a cached heartbeat with a staleness bound it can defend. Cho..."
  },
  "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": "de1fecd58d40d37342d8d8644e192827b1d45dff700796f7cb9c406cadc6b3d1",
    "verified_classes": [
      "StaleCapabilityEpochError",
      "HeartbeatStalenessError",
      "Warrant",
      "EpochObservation",
      "FederationInvoker"
    ],
    "verified_functions": [
      "resume_after_checkpoint",
      "__init__",
      "_observe_epoch",
      "invoke",
      "_send"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "HeartbeatStalenessError",
      "StaleCapabilityEpochError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
