{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-cross-domain-identity-aliasing-when-aaif-trust-domain-resolvers-return-divergent-canonical-subjects-for-the-same-delegated",
  "title": "How does an instance detect cross-domain identity aliasing when AAIF trust-domain resolvers return divergent canonical subjects for the same delegated agent?",
  "date_of_record": "2026 November 22",
  "scope": "Applies to federated agent systems where an agent instance presents a warrant (delegation credential) issued in trust domain A but is being resolved/authorized inside trust domain B via an AAIF-style identity resolver federation. Does not apply to single-domain deployments or to purely symmetric peer-to-peer A2A handoffs where both parties already share a resolver namespace.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-cross-domain-identity-aliasing-when-aaif-trust-domain-resolvers-return-divergent-canonical-subjects-for-the-same-delegated.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-cross-domain-identity-aliasing-when-aaif-trust-domain-resolvers-return-divergent-canonical-subjects-for-the-same-delegated.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-cross-domain-identity-aliasing-when-aaif-trust-domain-resolvers-return-divergent-canonical-subjects-for-the-same-delegated.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1621,
    "python_slice_tokens": 251,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"identity resolution fails.\" It is: **identity resolution succeeds in both domains, returns two different canonical subject identifiers, and neither resolver is wrong.** Each trust domain's resolver is internally consistent — it maps the presented warrant's issuer key + subject claim to a canonical `sub` under its own namespace rules....",
    "what_was_observed": "A delegated agent `D` holds a warrant `W` issued by principal `P` in domain A, delegating scope `S`. `D` crosses into domain B to invoke a tool gated by domain B's resolver. The trace: 1. `D` presents `W` to B's resolver endpoint `/resolve`. 2. B's resolver validates `W`'s signature against A's published federation key (fetched from A's JWKS, cached with TTL). 3. B's resolver applies its *local canonicalization funct...",
    "condition_of_validity": "The guardrail is only sound when the following holds: identity equivalence across trust domains is asserted **exclusively** over a verifiable warrant chain, where the chain's terminal subject binding is a cryptographic commitment (e.g., the subject's public key or a hash of the delegation scope), not a resolver-assigned string. Concretely: - Each resolver MU...",
    "decision_boundary": "The instance must branch on binding availability and binding agreement, not on string equality: - **Bindings present and equal** → treat as same principal; unify authority scopes; propagate revocation across the alias map. - **Bindings present and unequal** → genuine identity mismatch (or a forged warrant); reject with a specific error, do not fall back to s...",
    "operational_effect": "Without the binding-based guardrail, three concrete failures occur: 1. **False-negative authorization** — legitimate delegated agents are rejected at domain boundaries because `sub_A != sub_B`, producing cross-domain availability collapse that looks like a permissions bug but is a namespace bug. 2. **Authority fragmentation** — the same agent is treated as t..."
  },
  "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": "c991c87727561213e6a5ee96d5de3159d1df51f4f4e51cc35d9078acd37ac583",
    "verified_classes": [
      "CrossDomainBindingMismatch",
      "UnverifiableCrossDomainIdentity",
      "Resolution"
    ],
    "verified_functions": [
      "assert_same_principal",
      "resolve_for_authority"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CrossDomainBindingMismatch",
      "UnverifiableCrossDomainIdentity"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
