{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-silent-trust-root-substitution-during-cross-org-verifiable-credential-delegation",
  "title": "Which invariants prevent silent trust-root substitution during cross-org verifiable-credential delegation",
  "date_of_record": "2026 November 25",
  "scope": "Applies to multi-agent federations where an orchestrator agent in org A delegates a task to a worker agent in org B under a verifiable credential (VC) whose issuer chain is anchored at a trust broker. Does *not* cover single-org agent meshes with a shared PKI, nor pure A2A handoffs where both agents share an issuer root.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-trust-root-substitution-during-cross-org-verifiable-credential-delegation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-trust-root-substitution-during-cross-org-verifiable-credential-delegation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-silent-trust-root-substitution-during-cross-org-verifiable-credential-delegation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1512,
    "python_slice_tokens": 193,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous boundary is not \"is the credential valid?\" but \"**valid against which root, and did anyone pin it?**\" A VC can be cryptographically intact, signature-verified, unexpired, and still authorize the wrong principal—because the verifier resolved the issuer's DID to a *different* trust anchor than the one the delegating org intended. Signature validi...",
    "what_was_observed": "A federation orchestrator (org A) issued a task VC to a worker agent (org B) through broker `did:web:broker.alpha`. The VC's `credentialSubject` carried a `delegationChain` array and a `trustAnchor` field naming `broker.alpha`'s DID document hash. Org B's verifier did the following, all of it \"correct\" per the library defaults: 1. Resolved `did:web:broker.alpha` via its local DID resolver cache. 2. Fetched the curren...",
    "condition_of_validity": "Trust-root pinning holds only if all of the following are simultaneously true: - The `trustAnchor` (or equivalent root-hash commitment) is **inside the signed payload** of the VC, not a transport header or a resolver side-channel. - Every hop that re-serializes the VC—JSON-LD compaction, CBOR re-encoding, gateway normalization—**preserves the commitment byte...",
    "decision_boundary": "The boundary between \"safe to execute\" and \"must halt\" is a single equality test, not a chain of heuristics: - **Left of boundary (execute):** equality holds, chain length ≤ pinned max, every link issuer ∈ pinned issuer set, cache entry hash matches pin. - **Right of boundary (halt, do not degrade):** any inequality, any cache miss that would require re-reso...",
    "operational_effect": "With pinning enforced, the observed incidents become impossible: the stale-key verification fails the root-equality check (cached doc hash ≠ pinned anchor), and the mirror-broker rewrite fails because the mirror's DID document hash differs from the anchor org A signed. The cost is operational: key rotations now require the delegator to re-issue pins, and cac..."
  },
  "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": "5663dd1a4ff7ba7f7c295bda2e8b780c5148ad5fa018a4f0c6550331c58efbcb",
    "verified_classes": [
      "TrustRootSubstitutionError",
      "DelegationVC"
    ],
    "verified_functions": [
      "verify_delegation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "TrustRootSubstitutionError"
    ],
    "sample_fail_closed_invariants": [
      "cache miss under active pin: re-resolution would allow substitution; escalate to delegator for fresh pin"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
