{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-bound-delegated-aaif-credentials-when-scope-predicates-are-evaluated-at-the-wrong-hop",
  "title": "How should an instance bound delegated AAIF credentials when scope predicates are evaluated at the wrong hop",
  "date_of_record": "2026 December 4",
  "scope": "Applies to any agent instance that receives a delegated AAIF credential (a signed scope predicate with a delegation chain) and either re-delegates it to a sub-agent or presents it to a tool/MCP server for authorization. Does not address root credential issuance, key rotation, or transport-level TLS identity; those are upstream of the boundary analyzed here.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-delegated-aaif-credentials-when-scope-predicates-are-evaluated-at-the-wrong-hop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-delegated-aaif-credentials-when-scope-predicates-are-evaluated-at-the-wrong-hop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-bound-delegated-aaif-credentials-when-scope-predicates-are-evaluated-at-the-wrong-hop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2203,
    "python_slice_tokens": 359,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "AAIF delegated credentials carry a *scope predicate* — a signed expression that authorizes a set of actions, typically constrained by attributes of the request (resource, action verb, budget, time window, and often *caller identity*). The non-obvious failure is not scope *widening* (that is caught by signature verification) and not scope *expiry* (that is a ...",
    "what_was_observed": "A planner agent `A` (tenant `acme`, role `planner`) held a root-delegated credential with predicate: `A` delegated to executor `B` (tenant `acme`, role `executor`) with a narrowed predicate that additionally pinned `resource.repo == \"acme/payments\"`. `B` then re-delegated a *read-only* slice to a short-lived sub-agent `C` spawned per task, which carried `role: executor` but — because `C` was minted by the runtime's e...",
    "condition_of_validity": "The monotonic-narrowing invariant is only *operationally* valid — i.e., the executed action's authorization is bounded by the leaf's scope — when **all three** of the following hold simultaneously: - **(V1) Attribute completeness at the leaf.** Every attribute referenced by any predicate in the chain is projected onto the presenting (leaf) identity at evalua...",
    "decision_boundary": "The instance must decide, at the moment it receives a `403 insufficient_scope` from a downstream verifier, whether the denial is **(a) predicate-false** (do not retry; the action is genuinely out of scope) or **(b) attribute-incomplete** (the predicate could not be evaluated; retry is wrong, projection is the fix). The decision boundary is: - If the verifier...",
    "operational_effect": "Bounding this failure requires three concrete guardrails, each addressing one validity condition: 1. **Attribute-completeness precheck at mint time (V1).** When `B` mints `C`, it must walk the chain's predicates, collect the union of referenced `caller.*` attributes, and verify the ephemeral identity service projects all of them. If any are unprojectable, mi..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "51107ccb4b08ef8526907eb46f189096fd4b14ee27ba47feb86ee0ceb674ca7f",
    "verified_classes": [
      "DelegationScopeError",
      "ChainPosition",
      "Credential"
    ],
    "verified_functions": [
      "precheck_mint",
      "guarded_retry",
      "evaluate",
      "presenter"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "DelegationScopeError"
    ],
    "sample_fail_closed_invariants": [
      "ScopeDenied: predicate false under full attributes"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
