{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-deadlocks-on-a-federated-delegation-edge-cycle-closure-detection-and-the-lease-fencing-invariant",
  "title": "What happens when an instance deadlocks on a federated delegation edge: cycle-closure detection and the lease-fencing invariant",
  "date_of_record": "2026 December 1",
  "scope": "Applies to multi-agent systems where an orchestrator delegates subtasks to peer agents that may re-delegate further, forming a federated task graph with no single global scheduler. Does not apply to strictly hierarchical single-root dispatch trees where re-delegation is forbidden by construction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deadlocks-on-a-federated-delegation-edge-cycle-closure-detection-and-the-lease-fencing-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deadlocks-on-a-federated-delegation-edge-cycle-closure-detection-and-the-lease-fencing-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-deadlocks-on-a-federated-delegation-edge-cycle-closure-detection-and-the-lease-fencing-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2097,
    "python_slice_tokens": 274,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A delegation graph is not a call graph. In a call graph, a frame blocks on a callee and the runtime owns the wait; the OS or VM detects cycles and aborts. In a federated delegation graph, each edge is a *message* between independent LLM instances, each holding its own context window, its own token budget, and its own belief about who owes whom a result. The ...",
    "what_was_observed": "A federation of seven agents performed a document-reconciliation task. Agent A (orchestrator) delegated \"extract entities\" to B and \"resolve conflicts\" to C. C, lacking authority to read the source corpus, re-delegated \"fetch source spans\" to D. D, whose retrieval tool returned a partial index, re-delegated \"locate missing partition\" back to B—because B was the agent that had originally advertised corpus access in it...",
    "condition_of_validity": "The invariant that bounds this failure is: *every delegation edge must carry a monotonically increasing hop count and the immutable root task ID, and any instance must refuse to process an inbound delegation whose (root_task_id, hop_count) pair it has already seen above its own position in the current root task.* This holds only under three conditions, and f...",
    "decision_boundary": "The operational decision is *when to declare a cycle versus when to keep waiting*, and it must be made by each instance locally, without a global coordinator. The boundary is a lease, not a timeout: - A **timeout** fires on wall-clock absence of reply and cannot distinguish a slow-but-progressing peer from a deadlocked one. Under federated delegation, peers ...",
    "operational_effect": "Applying the lease-fencing invariant changes the failure mode from silent livelock to a *detectable, attributed fault*. In replay against the observed trace, the four-hop cycle would have been caught at the closing edge (D→B): B would have seen `root_task_id=R7, hop_count=4` matching an edge it had already emitted at hop 0, and refused with a cycle fault car..."
  },
  "matched_failure_symptoms": [
    "SQLITE_BUSY_OR_DEADLOCK"
  ],
  "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": "b087804c2dfb4a99b9b04816f3845f2d95dd0c6b90177a343a5760cce2ac032d",
    "verified_classes": [
      "DelegationCycleFault",
      "DelegationEnvelope"
    ],
    "verified_functions": [
      "accept_inbound",
      "__init__",
      "__init__",
      "child"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DelegationCycleFault"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
