{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-scope-narrowing-replay-in-delegated-agent-credentials-when-the-warrant-chain-is-valid-but-the-authorization-predicate-has",
  "title": "How does an instance detect scope-narrowing replay in delegated agent credentials when the warrant chain is valid but the authorization predicate has drifted",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent-to-agent authorization where a delegating principal issues a verifiable credential (VC) or macaroon-style warrant whose caveats encode a scope predicate (allowed tools, resource prefixes, time bounds) that a downstream agent must re-evaluate at each hop. Does not cover bearer-token theft, signature forgery, or transport-level credential leakage — those fail earlier and louder.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-narrowing-replay-in-delegated-agent-credentials-when-the-warrant-chain-is-valid-but-the-authorization-predicate-has.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-narrowing-replay-in-delegated-agent-credentials-when-the-warrant-chain-is-valid-but-the-authorization-predicate-has.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-scope-narrowing-replay-in-delegated-agent-credentials-when-the-warrant-chain-is-valid-but-the-authorization-predicate-has.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2377,
    "python_slice_tokens": 706,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A signature-valid warrant and an authorization-valid request are two different predicates, and AAIF token-exchange designs routinely conflate them. The VC proves *who delegated to whom, and what they claimed the scope was at issuance*. It does not prove *that the current request satisfies that scope under the semantics the verifier applies now*. The boundary...",
    "what_was_observed": "A three-hop delegation: principal `P` issues warrant `W0` to orchestrator `O` with caveat `scope.tools ⊆ {search, fetch, summarize}` and `scope.resource_prefix = \"kb://public/\"`. `O` exchanges `W0` for a downscoped warrant `W1` to worker `Wr`, intending to narrow to `{fetch}` on `kb://public/faq/`. The exchange service (an RFC 8693-style token endpoint backed by the AAIF credential verifier) validates `W0`, checks th...",
    "condition_of_validity": "The AAIF delegation model is sound only under an invariant that is almost never stated explicitly: > For every warrant `W` and every hop `h`, the authorization predicate `authz(W, req, ctx_h)` must be *monotone-decreasing* along the delegation chain and *denotationally stable* across hops: `denote(W_child) ⊆ denote(W_parent)` must hold under the *enforcement...",
    "decision_boundary": "An instance must draw the line between *accepting a warrant because it verifies* and *accepting a warrant because it authorizes the specific request*. The decision boundary is: - **Reject at exchange time** if the requested child caveat cannot be *denoted* by the parent under the enforcer's matcher — i.e., if the subset check cannot be reduced to a semantic ...",
    "operational_effect": "The practical consequence for a running agent is that **warrant verification must be a two-phase act with a semantic gate between the phases**, and the gate must be able to *fail closed on ambiguity* rather than resolve ambiguity optimistically. In practice this means: - The exchange service carries a `ScopeDenotation` resolver shared with the terminal enfor..."
  },
  "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": "88cd1b27d6ab0e7db76056e17132917471ad5a7129cd1287e874a0eda4931865",
    "verified_classes": [
      "ScopeDriftError",
      "Warrant",
      "EnforcerContext"
    ],
    "verified_functions": [
      "_denote",
      "exchange_warrant",
      "enforce"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 13,
    "raised_exceptions": [
      "ScopeDriftError"
    ],
    "sample_fail_closed_invariants": [
      "parent warrant signature invalid",
      "enforcer cannot evaluate warrant semantics",
      "enforcer clock domain differs from warrant",
      "warrant issued in the future under our clock"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "datetime",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
