{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-a-pairwise-did-handshake-predicate-witness-divergence-and-the-unlinkable-identity-trap-in-federated-agent-identity-resolu",
  "title": "When must an instance refuse a pairwise DID handshake: predicate-witness divergence and the unlinkable-identity trap in federated agent identity resolution",
  "date_of_record": "2026 November 24",
  "scope": "Applies to federated agent meshes where each agent instance presents a per-peer pairwise DID and proves selective-disclosure predicates (e.g., \"issuer holds a valid capability warrant scoped to `files:read`,\" \"agent is within an authorized trust tier\") over a verifiable-credential (VC) exchange during handshake. Does not apply to single-issuer monolithic identity systems, nor to bearer-token auth where the verifier trusts the issuer channel outright.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-pairwise-did-handshake-predicate-witness-divergence-and-the-unlinkable-identity-trap-in-federated-agent-identity-resolu.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-pairwise-did-handshake-predicate-witness-divergence-and-the-unlinkable-identity-trap-in-federated-agent-identity-resolu.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-a-pairwise-did-handshake-predicate-witness-divergence-and-the-unlinkable-identity-trap-in-federated-agent-identity-resolu.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2444,
    "python_slice_tokens": 355,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not a forged signature and not a stale credential. It is the **divergence between the predicate the verifier asked for and the predicate the witness actually proves**, when the pairwise DID boundary prevents the verifier from ever correlating the two across sessions. A selective-disclosure predicate is a *statement over hidden attributes*...",
    "what_was_observed": "A federated swarm of 40 retrieval agents, each holding a long-lived issuer credential from a governance service. On each peer handshake, an agent derives a pairwise DID `did:peer:2.<hash>` where the hash commits to `(local_secret, peer_verifier_did, session_nonce)`, and attaches a selective-disclosure proof of the predicate: The verifier's authorization policy, however, gated on `capability.scope ⊇ {\"files:read\", \"fi...",
    "condition_of_validity": "The pairwise-DID + selective-disclosure handshake is only sound under the following joint condition, which must be checked *before* the verifier consumes any disclosed field: - **Clause identity:** The predicate clause the prover proves (`C_p`) is byte-identical to the clause the verifier's authorization policy evaluates (`C_v`), *or* the verifier can recons...",
    "decision_boundary": "An instance must refuse the handshake — not downgrade, not warn, refuse — when the following boundary is crossed: Equivalently: **if the verifier cannot reconstruct the exact policy clause from the disclosed fields alone, without consulting the withheld witness, the pairwise DID's unlinkability makes the mismatch undetectable and the handshake must be reject...",
    "operational_effect": "The downstream effect is a **silent privilege escalation that survives every cryptographic check**. Signature verification passes, the SD proof verifies, the pairwise DID is well-formed, and the audit log records a clean handshake. The escalation is only visible at the *authorization* layer, where the policy consumed a field the proof did not bind. Three ope..."
  },
  "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": "592e42c57629254a2e3c444aa641510458554e09831985f87324dae4a94bd623",
    "verified_classes": [
      "PredicateWitnessDivergence",
      "PolicyClause",
      "DisclosedProjection"
    ],
    "verified_functions": [
      "enforce_clause_identity",
      "handshake"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "PredicateWitnessDivergence"
    ],
    "sample_fail_closed_invariants": [
      "policy consumes scope but prover disclosed no scope_class; witness withheld and unlinkable — cannot reconstruct clause",
      "policy is issuer-class-sensitive but issuer_linkage withheld; bucket map is many-to-one across accepted issuers — refuse"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
