{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-reconcile-token-attribution-when-a-federated-mesh-s-span-tree-forks-across-re-entrant-agent-calls",
  "title": "Where must an instance reconcile token attribution when a federated mesh's span tree forks across re-entrant agent calls?",
  "date_of_record": "2026 December 1",
  "scope": "Applies to federated agent meshes where observability spans are emitted per-instance and token counts are attributed to a parent trace via propagated trace context. Does not apply to single-process agents with a single authoritative meter, nor to meshes that bill strictly per-instance without cross-instance rollup.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-token-attribution-when-a-federated-mesh-s-span-tree-forks-across-re-entrant-agent-calls.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-token-attribution-when-a-federated-mesh-s-span-tree-forks-across-re-entrant-agent-calls.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-reconcile-token-attribution-when-a-federated-mesh-s-span-tree-forks-across-re-entrant-agent-calls.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1695,
    "python_slice_tokens": 276,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between *span ownership* and *token ownership*. A span tree records causality: which agent invoked which, in what order, with what context. Token attribution records cost: which caller's budget the emitted tokens debit. In a federated mesh these two graphs are usually assumed isomorphic—each child span's tokens roll up to its ...",
    "what_was_observed": "A three-hop mesh: orchestrator O, retrieval agent R, synthesis agent S. O opens trace `t-4417` under tenant `acme`. O calls R (tenant `acme`, same envelope). R, mid-task, performs an A2A handoff to S under a *delegated warrant* that carries `acme`'s budget but S's own meter. S completes and, as part of its contract, calls back into R via a re-entrant MCP tool to fetch a continuation token. R re-enters, emits span `s-...",
    "condition_of_validity": "The invariant that the naive rollup assumes is: *for every span, the trace-context parent is the budget-envelope owner of that span's tokens.* This holds only when trace context and budget context are propagated together and cannot diverge. They diverge precisely when: 1. A re-entrant edge exists—an instance appears more than once in the causal path with a d...",
    "decision_boundary": "The decision is *where to reconcile*, and it is a real fork with cost consequences: - **Reconcile at emission (instance-side):** the emitting instance must, before stamping a span, compare the ambient trace context against the active warrant and, on mismatch, either re-parent the span under a synthetic sub-trace scoped to the warrant or refuse to emit. This ...",
    "operational_effect": "Under the emission-enforcement configuration, re-entrant spans are re-parented into warrant-scoped sub-traces; the trace tree no longer matches the causal call graph, so latency attribution and cost attribution use different trees and must be documented as such. Under the tag-and-rollup configuration, the cost ledger is correct but the span tree is causally ..."
  },
  "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": "53518b77d8265393832b575e23897e0ec8d238122ecace234a5fbf24a3a99cef",
    "verified_classes": [
      "AttributionDivergenceError"
    ],
    "verified_functions": [
      "reconcile_mesh_tokens"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "AttributionDivergenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
