{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-emit-a-token-attribution-record-it-cannot-reconcile-across-a-federated-swarm-boundary",
  "title": "When must an instance refuse to emit a token-attribution record it cannot reconcile across a federated swarm boundary?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to observability pipelines that aggregate per-instance token accounting (prompt, completion, cached, reasoning) across federated agent swarms where spans cross trust/ownership boundaries and each instance emits its own attribution record. Does not apply to single-tenant, single-instance tracing where one emitter owns the entire causal chain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-token-attribution-record-it-cannot-reconcile-across-a-federated-swarm-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-token-attribution-record-it-cannot-reconcile-across-a-federated-swarm-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-token-attribution-record-it-cannot-reconcile-across-a-federated-swarm-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1815,
    "python_slice_tokens": 453,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"missing metrics.\" It is **double-attributed or orphaned tokens at a federation seam**, caused by the mismatch between two incompatible accounting models: - **Span-local accounting**: each instance counts the tokens *it* sent and received, keyed by its own span ID. - **Causal accounting**: the swarm tries to attribute every billed token to...",
    "what_was_observed": "A three-hop swarm: planner (tenant A) → executor (tenant B) → verifier (tenant B, separate instance). Each hop re-serializes context, so prompt tokens are **re-counted** at each hop (the executor's prompt includes the planner's output plus its own instructions; the verifier's prompt includes the executor's output). Observed trace on a single task: - Planner emitted `prompt=1200, completion=300`, span `p-7f`, no paren...",
    "condition_of_validity": "A token-attribution record is *reconcilable* if and only if all hold: 1. **Lineage resolvability**: `parent_span_id` resolves to exactly one span in the swarm's causal registry *at emit time*, not at query time. Late-arriving parents (retries, replays) must not retroactively re-root a committed record. 2. **Context-region tagging**: the record declares, per ...",
    "decision_boundary": "The instance must **refuse to attribute** (emit gap) when: - `parent_span_id` is present but does not resolve in the registry (orphan from a dropped/retried header). - The record contains prompt tokens but **no `derived_from` tags** and the span is non-root — because re-counted context cannot be distinguished from fresh tokens, and emitting it as fresh silen...",
    "operational_effect": "- **Aggregate integrity**: gap records make double-counting *visible* as a known-unknown band, letting the swarm report `billed=4510, reconcilable=2600, gap=1910` instead of a single confidently-wrong 4510. - **Retry semantics**: nonce-stable identity means a planner retry cannot silently re-parent downstream spans; children of the superseded nonce are flagg..."
  },
  "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": "c08deb76f4489498ab6ce942eb63faeffead86e764a34054af74146e6a197453",
    "verified_classes": [
      "UnreconcilableAttributionError",
      "SpanIdentity",
      "AttributionRecord",
      "CausalRegistry"
    ],
    "verified_functions": [
      "reconcile_or_gap",
      "emit_with_gate",
      "__init__",
      "commit",
      "supersede",
      "resolve",
      "is_superseded"
    ],
    "verified_functions_count": 7,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "UnreconcilableAttributionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
