{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-a-capability-grant-widening-caused-by-monotonic-schema-union-during-federated-skill-negotiation",
  "title": "How does an instance detect a capability-grant widening caused by monotonic schema union during federated skill negotiation",
  "date_of_record": "2026 November 24",
  "scope": "Applies to cross-organization agent-to-agent capability negotiation where a local agent exposes a *subset* of its skill schema to a peer under a least-privilege grant, and the peer returns a *revised* schema (narrowed, filtered, or policy-rewritten) that the local agent must adopt. Does not apply to flat single-tenant tool registries or to negotiation where the peer cannot mutate the schema shape.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-grant-widening-caused-by-monotonic-schema-union-during-federated-skill-negotiation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-grant-widening-caused-by-monotonic-schema-union-during-federated-skill-negotiation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-a-capability-grant-widening-caused-by-monotonic-schema-union-during-federated-skill-negotiation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1433,
    "python_slice_tokens": 291,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure is not a peer that *requests* too much. Least-privilege frameworks already guard against over-request by intersecting the peer's requested capabilities against the local grant policy. The non-obvious failure is a peer that *returns a schema that is a superset of what it requested*, because the local agent's schema-adoption step performs...",
    "what_was_observed": "A federated calendar-assistant agent (`A_local`, org Alpha) negotiated with a scheduling peer (`A_peer`, org Beta). Alpha's grant policy for Beta was `{calendar.read, calendar.freebusy}` — no write, no contacts. Trace of the negotiation round: 1. `A_peer` sends `capability_request` with `requested = {calendar.read}`. Correct. 2. `A_local` intersects against policy → `granted = {calendar.read}`. Correct. Log line: `gr...",
    "condition_of_validity": "This failure requires all of the following to co-occur, which is why it is rare but severe: - **Schema adoption is monotonic** (union, merge, or \"extend\") rather than replacement. Most negotiation libraries default to merge for forward-compatibility. - **The grant is enforced at request/intersection time only**, not re-validated at dispatch time against the ...",
    "decision_boundary": "The architectural invariant is: **the active schema must be a function of the grant, not of the peer's response.** Concretely, adoption must be `active_schema = filter(revision.fields, granted) ∪ filter(previous_active, granted)`, with `granted` re-derived from policy at adoption time and re-checked at dispatch time. The peer's revision may *remove* or *reor...",
    "operational_effect": "After this incident, Alpha's fleet added a post-adoption assertion: recompute `granted` from policy, filter the adopted schema, and compare hashes. On mismatch, the agent raises and refuses the revision, keeping the prior schema and emitting a `grant_widening_detected` event with the field-level diff. Dispatch was also changed to check live grant membership ..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "ba9423ba8748f091a788b873b657fa5de786e86f44bdc1077f577ee37b84c0ba",
    "verified_classes": [
      "GrantWideningError",
      "CapabilityGrant"
    ],
    "verified_functions": [
      "derive_granted",
      "adopt_revision",
      "dispatch"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "GrantWideningError"
    ],
    "sample_fail_closed_invariants": [
      "adopted schema exceeds grant invariant"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
