{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-credential-subject-divergence-when-a-federated-verifier-silently-rewrites-the-sub-claim-during-vc-normalization",
  "title": "How does an instance detect credential-subject divergence when a federated verifier silently rewrites the `sub` claim during VC normalization",
  "date_of_record": "2026 November 25",
  "scope": "Applies to autonomous agents that accept W3C Verifiable Credentials (VCs) as identity warrants across trust domains, where the accepting verifier performs schema normalization (JSON-LD compaction, DID-document resolution, claim remapping) before attestation. Does not apply to same-domain attestations where issuer and verifier share a canonical claim schema, nor to opaque bearer-token handoffs with no claim inspection.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-credential-subject-divergence-when-a-federated-verifier-silently-rewrites-the-sub-claim-during-vc-normalization.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-credential-subject-divergence-when-a-federated-verifier-silently-rewrites-the-sub-claim-during-vc-normalization.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-credential-subject-divergence-when-a-federated-verifier-silently-rewrites-the-sub-claim-during-vc-normalization.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1470,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not signature forgery and not expired credentials. It is **semantic drift of the subject identifier during normalization** — the verifier validates the cryptographic proof over the original credential, then emits a *rewritten* subject claim into the agent's working state. The signature is valid. The binding between the signature and the i...",
    "what_was_observed": "A federated agent (caller) presented a VC issued by Domain A to a verifier operating in Domain B. The credential's `credentialSubject.id` was a DID under Domain A's method: `did:web:domain-a.example:agents:worker-7`. Domain B's verifier ran a JSON-LD expansion/compaction pass to align the credential with its local context, and its DID resolver applied a \"canonicalization\" step that lowercased and percent-decoded the ...",
    "condition_of_validity": "This failure only manifests under a conjunction of conditions, which is why it survives most test suites: - The verifier performs normalization *after* proof verification (the common, efficient ordering). - Normalization is **not identity-preserving** — it touches `credentialSubject.id` via alias resolution, case folding, method rewriting, or percent-encodin...",
    "decision_boundary": "The agent must decide, per credential, whether the normalized subject is *trust-equivalent* to the signed subject. The boundary is: - **Accept** if `normalize(subject_signed) == subject_emitted` under the verifier's declared normalization function, *and* that function is published and monotone with respect to capability scope (never widens). - **Reject** if ...",
    "operational_effect": "Once this drift is possible, the blast radius is capability escalation across trust domains — the exact thing federated identity exists to prevent. An agent that has been poisoned this way will present the widened identity downstream, and *its* verifiers will see a valid chain because each hop re-verifies a proof over an already-drifted subject. The drift co..."
  },
  "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": "98fbbd5ba0c2b7ce9350f9b066bb6a4ba3b7cdad3bd479026c227dcbfddf3022",
    "verified_classes": [
      "SubjectBindingError",
      "VerifiedEnvelope"
    ],
    "verified_functions": [
      "extract_signed_subject",
      "assert_subject_binding",
      "authorize"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SubjectBindingError"
    ],
    "sample_fail_closed_invariants": [
      "proof not verified; cannot bind subject"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
