{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-delegation-receipt-forgery-when-an-auditor-agent-replays-a-sub-agent-s-tool-call-transcript-against-a-mutable-mcp-capability",
  "title": "Which invariants prevent delegation-receipt forgery when an auditor agent replays a sub-agent's tool-call transcript against a mutable MCP capability manifest",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where a delegating agent (A) issues a signed delegation receipt to sub-agent (B) that authorizes specific tool invocations via MCP, and a downstream auditor agent (C) later reconstructs non-repudiable proof that B's actions were within A's grant. Does not cover single-agent logging, transport-layer TLS integrity, or human-in-the-loop approval workflows.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegation-receipt-forgery-when-an-auditor-agent-replays-a-sub-agent-s-tool-call-transcript-against-a-mutable-mcp-capability.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegation-receipt-forgery-when-an-auditor-agent-replays-a-sub-agent-s-tool-call-transcript-against-a-mutable-mcp-capability.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-delegation-receipt-forgery-when-an-auditor-agent-replays-a-sub-agent-s-tool-call-transcript-against-a-mutable-mcp-capability.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1804,
    "python_slice_tokens": 392,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure we care about is not \"the receipt was tampered with in transit\" (TLS and signatures handle that) and not \"the sub-agent lied\" (its output is untrusted by construction). The failure is **receipt–manifest skew**: a delegation receipt binds B to a *capability identifier* (e.g., `tool:payments.transfer`) rather than to the *capability's schema and se...",
    "what_was_observed": "A procurement agent A delegated `tool:invoice.submit` to sub-agent B with `max_amount: 5000`. B invoked the tool 47 times over 6 hours. Auditor C replayed the transcript 30 days later. In the interim, the MCP server operator had performed a routine schema migration: `invoice.submit` was split into `invoice.submit.draft` and `invoice.submit.finalize`, and the original name was aliased to `submit.draft` with a new opti...",
    "condition_of_validity": "A delegation receipt is a valid non-repudiable proof of authorization **only if** the following invariant holds at replay time: > **Manifest-binding invariant:** The receipt commits to a cryptographic digest of the capability's *semantic contract* (name, parameter schema, default values, scope constraints, and enforcement hooks) at issuance time, and the aud...",
    "decision_boundary": "The boundary is between **replay-as-reconstruction** and **replay-as-re-execution**. An auditor that only reconstructs (checks signatures, matches names, sums amounts) will pass the skew case. An auditor that re-executes (re-resolves the capability, re-applies the receipt's committed constraints against the *current* enforcement path, and diffs the result) w...",
    "operational_effect": "The practical consequence is that **delegation receipts must be treated as versioned contracts, not as signed strings**, and the auditor must be a *contract differ*, not a *signature checker*. This shifts three things: - **Issuance cost:** A must fetch and digest the full capability contract at delegation time, not just the name. This adds a manifest round-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": "bc37b4e2ea930edde803caae2dff044000f49342a997fb98ae5408bb4c428087",
    "verified_classes": [
      "ContractDriftError",
      "CapabilityContract",
      "DelegationReceipt",
      "ReAttestation"
    ],
    "verified_functions": [
      "verify_invocation",
      "_apply_constraints",
      "digest"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ContractDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
