{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-capability-escalation-when-federated-agent-peers-renegotiate-policy-mid-handoff",
  "title": "Which invariants prevent silent capability escalation when federated agent peers renegotiate policy mid-handoff",
  "date_of_record": "2026 November 20",
  "scope": "Applies to cross-organization agent federation where capability grants are negotiated as versioned policy objects (A2A/MCP-style capability manifests) and where a task may be handed off between peers under different policy epochs. Does not apply to single-tenant deployments with a single static policy authority, nor to purely stateless request/response tool calls that carry no delegated warrant.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-escalation-when-federated-agent-peers-renegotiate-policy-mid-handoff.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-escalation-when-federated-agent-peers-renegotiate-policy-mid-handoff.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-capability-escalation-when-federated-agent-peers-renegotiate-policy-mid-handoff.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2188,
    "python_slice_tokens": 452,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure this record isolates is not \"a peer revoked a capability\" and not \"a peer lied about its capabilities.\" Both are handled by ordinary validation. The non-obvious failure is **capability escalation by re-negotiation across a handoff boundary**: peer A holds a warrant *W* issued under policy epoch *E₁* that grants capability set *C₁*. Mid-task, A ha...",
    "what_was_observed": "A three-org federation: Origin (O) owns the user and the root authorization; Broker (B) routes tasks; Worker (W) executes. O issues warrant *W₀* to B granting `{read:dataset, summarize, write:report}` under policy epoch `E₁` with a delegation-depth limit of 2 and a scope-binding hash `H(W₀)`. The trace: 1. B receives *W₀*, validates signature and scope hash against O's published policy bundle at `E₁`. Pass. 2. B sele...",
    "condition_of_validity": "The monotonic-subset + immutable-anchor invariant holds **only** when the following conditions are jointly true: - Every warrant carries a scope-binding anchor (hash of the originating principal's authorization) that is **copied, never recomputed**, at each hop. Any hop that recomputes the anchor from the local epoch is a violation regardless of whether the ...",
    "decision_boundary": "The operational decision is: **at a handoff where the receiver's policy epoch differs from the warrant's anchor epoch, do you (a) fail closed, (b) require a signed epoch-bridge, or (c) proceed on the receiver's manifest?** The boundary is sharp and should not be left to per-hop judgment: - If `anchor_epoch == receiver_epoch` → proceed; intersect carried gran...",
    "operational_effect": "Enforcing the immutable-anchor invariant changes federation behavior in three concrete ways: 1. **Handoffs across epochs become explicit, auditable events.** Every cross-epoch hop either carries a bridge (logged with the bridge's signature and anchor) or fails closed (logged as a refused handoff). The silent-escalation window — where a hop validated against ..."
  },
  "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": "c8a8eecf738fb0a9f68a107fd6fbe220e50adee7a43755454c3d9fe9e76a920a",
    "verified_classes": [
      "CapabilityEscalationError",
      "Warrant",
      "Manifest",
      "EpochBridge"
    ],
    "verified_functions": [
      "_valid_bridge",
      "handoff",
      "demo"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityEscalationError"
    ],
    "sample_fail_closed_invariants": [
      "assert 'delete:dataset' not in w1.grant",
      "assert w1.anchor == w0.anchor and w1.depth_remaining == 1",
      "intersection empty: receiver manifest grants no carried capability"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
