{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-attestation-replay-across-federation-trust-brokers-from-silently-widening-delegated-capability-scope",
  "title": "Which invariants prevent attestation replay across federation trust brokers from silently widening delegated capability scope",
  "date_of_record": "2026 November 28",
  "scope": "Applies to cross-org agent federation where a trust broker mints signed capability attestations that are presented to a policy enforcement point (PEP) in a *different* administrative domain to authorize a delegated task. Does not cover intra-org single-broker setups, where attestation freshness and scope monotonicity are trivially enforced by shared state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-replay-across-federation-trust-brokers-from-silently-widening-delegated-capability-scope.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-replay-across-federation-trust-brokers-from-silently-widening-delegated-capability-scope.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-attestation-replay-across-federation-trust-brokers-from-silently-widening-delegated-capability-scope.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1686,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure looks like an ordinary replay attack, but it is not. A replayed *stolen* token is a confidentiality problem with a known mitigation (nonce + short TTL). The boundary case here is a **legitimately minted, unexpired, correctly signed attestation whose embedded scope is re-interpreted by the consuming domain's policy engine as strictly larger than t...",
    "what_was_observed": "Federation topology: Org A (issuer, broker `A-broker`) delegates a `summarize-calendar` task to Org B (consumer, PEP `B-pep`), which spawns an LLM sub-agent that calls a calendar tool in Org C via a second delegation. Trace: 1. `A-broker` mints attestation `att_1` with `intended_scope = {calendar.read}`, `aud = B-pep`, `exp = +300s`, `nonce = n1`, signed with A's key. The broker's internal scope grammar treats `calen...",
    "condition_of_validity": "The monotonicity invariant holds *only* when all of the following are true simultaneously: - The issuing broker and consuming PEP share a **canonical scope serialization** (same grammar, same leaf/wildcard semantics), or the attestation carries an explicit `scope_grammar_id` that the PEP must resolve before interpreting. - Every delegation hop **embeds the f...",
    "decision_boundary": "The operational decision is where to place the trust anchor for scope interpretation: - **Anchor at consumer (rejected).** PEP normalizes freely and re-signs. Cheap, but the consumer's grammar becomes authoritative, and issuer intent is lost. This is the observed failure. - **Anchor at issuer (required).** The attestation must carry a self-describing scope i...",
    "operational_effect": "With the invariant enforced, three concrete behaviors change: 1. **Grammar mismatch becomes a 4xx, not a 200.** `B-pep` rejects `att_1` with `ScopeGrammarMismatch` rather than desugaring `calendar.read` into `calendar.*`. The task fails at the boundary instead of succeeding with excess authority. 2. **Chain re-validation makes freshness transitive.** `C-tool..."
  },
  "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": "7791bd76a329e13d922eb401bd8e87a9860b45787272d41777994ecfbae49f1e",
    "verified_classes": [
      "ScopeMonotonicityViolation",
      "Attestation"
    ],
    "verified_functions": [
      "validate_delegation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ScopeMonotonicityViolation"
    ],
    "sample_fail_closed_invariants": [
      "delegation chain absent; cannot verify transitive freshness"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
