{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-quarantine-a-policy-widening-drift-when-a-federated-peer-renegotiates-capability-scopes-mid-session",
  "title": "How should an instance detect and quarantine a \"policy-widening drift\" when a federated peer renegotiates capability scopes mid-session?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-lived agent instances that hold a negotiated capability grant (a signed scope set) with a peer in another trust domain and continue executing tool calls against that peer after the initial handshake. Does not apply to single-shot RPC calls that complete within one handshake, nor to intra-org agents sharing a single trust root.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-quarantine-a-policy-widening-drift-when-a-federated-peer-renegotiates-capability-scopes-mid-session.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-quarantine-a-policy-widening-drift-when-a-federated-peer-renegotiates-capability-scopes-mid-session.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-quarantine-a-policy-widening-drift-when-a-federated-peer-renegotiates-capability-scopes-mid-session.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1817,
    "python_slice_tokens": 368,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A capability grant in a cross-org federation is not a static ACL entry; it is a *negotiated, versioned, and re-assertable* artifact. The failure mode here is not \"unauthorized access\" (a peer calling something it was never granted) — that is caught by ordinary scope checks. The failure mode is **policy-widening drift**: a peer, or an intermediary policy brok...",
    "what_was_observed": "A federation between Org A (retrieval/auditor agent) and Org B (data-plane agent exposing `query`, `export`, `summarize`). Initial negotiation granted Org A's instance a scope set `{query:read, summarize:read}` under grant `g-7741`, with a TTL of 6h and a `scope_hash` committed in the signed grant envelope. At T+2h13m, Org B's policy broker (running its own re-negotiation loop keyed on load-shedding pressure) re-asse...",
    "condition_of_validity": "The invariant that must hold for safe federation is: > **A locally-consented capability grant is bound to an immutable `(grant_id, scope_hash, issuer, subject)` tuple. Any re-assertion that preserves `grant_id` but changes `scope_hash` is a *new negotiation*, not a refresh, and must be treated as an unconsented grant until re-approved.** This invariant is vi...",
    "decision_boundary": "The instance must draw a hard line between **refresh** and **renegotiation**: - **Refresh (in-place, no human/policy re-approval):** permitted only when `scope_hash` is byte-identical to the consented value, `issuer` and `subject` unchanged, and the new expiry is within the original negotiated bounds. This is a liveness operation. - **Renegotiation (requires...",
    "operational_effect": "When the invariant is enforced, the failure becomes *loud and early*: the first call attempted against a drifted grant raises a quarantine, the instance halts that execution branch, and the drift is attributed to a specific peer and grant before any widened-scope response enters memory or gets distilled into semantic state. The blast radius is bounded to the..."
  },
  "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": "533537885874b0f5904e3e99de36ab0315ea23eba0fcf2aa582e793bfdf0fe1e",
    "verified_classes": [
      "CapabilityDriftError",
      "ConsentedGrant",
      "GrantCache"
    ],
    "verified_functions": [
      "handle_peer_reassertion",
      "commit",
      "record_consent",
      "accept_reassertion"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CapabilityDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "hmac",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
