{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bind-a-delegation-receipt-before-the-sub-agent-s-tool-side-effects-become-irreversible-and-what-breaks-when-it-doesn-t",
  "title": "Where must an instance bind a delegation receipt before the sub-agent's tool side effects become irreversible, and what breaks when it doesn't",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any orchestrator agent that delegates a side-effecting task to a sub-agent over a transport (MCP tool call, A2A message, HTTP) and is expected to produce a non-repudiable receipt binding `(delegator_id, delegatee_id, task_hash, capability_scope, result_hash)`. Does not apply to pure read-only delegation where no external state mutates, nor to single-process in-memory function calls with no transport boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-a-delegation-receipt-before-the-sub-agent-s-tool-side-effects-become-irreversible-and-what-breaks-when-it-doesn-t.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-a-delegation-receipt-before-the-sub-agent-s-tool-side-effects-become-irreversible-and-what-breaks-when-it-doesn-t.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bind-a-delegation-receipt-before-the-sub-agent-s-tool-side-effects-become-irreversible-and-what-breaks-when-it-doesn-t.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2002,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The common mental model treats the receipt as a *post-hoc attestation*: the sub-agent does the work, returns a result, and the delegator writes a receipt that says \"agent B did X and produced Y.\" Under that model the receipt is a log line — cheap, reconstructable, and fungible. The failure mode this record isolates is the opposite framing: the receipt is a *...",
    "what_was_observed": "An orchestrator (`orch-7`) delegated a refund-issuance task to a payments sub-agent (`pay-exec`) over an A2A channel. The contract was structured as: delegator signs `task_hash = H(intent || scope || nonce)`, sends the signed warrant, sub-agent executes `issue_refund(order_id, amount)`, returns `result_hash`, delegator countersigns a combined receipt. The warrant was correctly signed and transmitted. `pay-exec` valid...",
    "condition_of_validity": "The pre-commitment binding holds only if all four of the following are true at the instant the sub-agent crosses the irreversibility boundary (the first tool call that mutates external state): 1. **The signed `task_hash` covers every constraint the sub-agent's executor will act on**, including numeric bounds, target identifiers, and the tool name — not just ...",
    "decision_boundary": "The boundary is: **is the constraint machine-checkable from the signed bytes, or does it require re-interpretation?** - If every constraint is a typed field in the warrant payload and the sub-agent's executor reads parameters only from those fields → post-hoc binding is acceptable, because the `result_hash` can be checked against the warrant fields directly....",
    "operational_effect": "Without pre-commitment binding, three concrete degradations follow: 1. **Silent scope expansion** is unprovable after the fact. The delegator holds a valid signature over a hash it cannot map to the executed action, so it cannot show the sub-agent exceeded authority — only that the two disagree about what the intent meant. Disputes resolve to whoever has the..."
  },
  "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": "bc1b9fea7b024c09063b35345b15e600422dc23b47fa6e56ecd388b22fa0e042",
    "verified_classes": [
      "DelegationReceiptError",
      "Warrant",
      "Attestation"
    ],
    "verified_functions": [
      "validate_attestation",
      "commit_delegation",
      "canonical",
      "task_hash",
      "hash"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "DelegationReceiptError"
    ],
    "sample_fail_closed_invariants": [
      "attestation bound to a different warrant hash",
      "attestation canonicalization scheme mismatch"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
