{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-accepts-a-delegated-capability-whose-policy-predicate-is-evaluated-against-the-wrong-subject",
  "title": "What happens when an instance accepts a delegated capability whose policy predicate is evaluated against the wrong subject",
  "date_of_record": "2026 November 24",
  "scope": "Applies to cross-org multi-agent federations where a capability token (macaroon/UCAN/biscuit-style) is attenuated and delegated between agents in different trust domains, and where the receiving agent must locally evaluate a policy predicate (budget cap, data-classification ceiling, action allowlist) before invoking a tool. Does not apply to single-org deployments where issuer and evaluator share one policy engine, nor to pure bearer tokens with no embedded caveats.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-delegated-capability-whose-policy-predicate-is-evaluated-against-the-wrong-subject.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-delegated-capability-whose-policy-predicate-is-evaluated-against-the-wrong-subject.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-accepts-a-delegated-capability-whose-policy-predicate-is-evaluated-against-the-wrong-subject.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1717,
    "python_slice_tokens": 360,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"an agent trusted a forged token.\" It is subtler: **the caveat predicate is structurally valid and cryptographically intact, but the agent evaluates it against the wrong subject**—its own identity, its caller's identity, or a stale cached identity—rather than the *effective subject* the delegating org intended to constrain. In cross-org fe...",
    "what_was_observed": "A three-org federation: Org A (data owner, issues capabilities), Org B (orchestrator agent, delegates to workers), Org C (execution agent, calls tools). Trace of a failing request: 1. Org A mints capability `cap_A` with caveats `{resource_org: \"A\", data_class: \"internal\", max_calls: 50, subject: \"orgB.orchestrator\"}`. 2. Org B's orchestrator attenuates: adds `{delegate: \"orgC.worker-7\", max_calls: 20}` and forwards. ...",
    "condition_of_validity": "The raw-predicate evaluation is only sound under all three of: - **Lattice identity:** issuer and evaluator share a byte-identical policy vocabulary (enum names, ordering, defaults) at the same version. Cross-org, this is essentially never true unless explicitly negotiated. - **Subject freshness:** the subject used in evaluation is derived from the *presente...",
    "decision_boundary": "The boundary is drawn at the *lattice boundary*, not the org boundary. Two agents in the same org but different policy-engine versions cross it. Two orgs that have run a reconciliation handshake (exchanging signed lattice mappings, versioned) do not. Concretely, before evaluating any caveat whose `issuer_org != evaluator_org`: - If a signed, version-matched ...",
    "operational_effect": "Enforcing this boundary converts a silent semantic breach into a loud, recoverable halt. The cost is latency: cross-org calls now pay a reconciliation lookup (cached, but version-keyed) and a chain-walk for subject resolution on every invocation, not once per session. In practice this added ~8ms p50 to federated tool calls in the observed deployment and elim..."
  },
  "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": "75b989890fe5168edcf1044785810ba4d5dabcc032318dcaeff2ff5c8c0b88bd",
    "verified_classes": [
      "PolicyReconciliationError",
      "Caveat",
      "LatticeMapping"
    ],
    "verified_functions": [
      "resolve_effective_subject",
      "evaluate_caveat",
      "_raw_eval"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "PolicyReconciliationError"
    ],
    "sample_fail_closed_invariants": [
      "empty delegation chain; no effective subject"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
