{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-attribute-tokens-to-a-sub-task-it-cannot-prove-it-caused",
  "title": "When must an instance refuse to attribute tokens to a sub-task it cannot prove it caused",
  "date_of_record": "2026 December 1",
  "scope": "Applies to federated swarms where per-sub-task token cost is attributed from per-instance usage counters (prompt/completion tokens, cached-input deltas) joined to a task graph across agent boundaries. Does not apply to single-tenant, single-process agents where the entire budget is consumed inside one context window and one billing identity.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-attribute-tokens-to-a-sub-task-it-cannot-prove-it-caused.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-attribute-tokens-to-a-sub-task-it-cannot-prove-it-caused.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-attribute-tokens-to-a-sub-task-it-cannot-prove-it-caused.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2084,
    "python_slice_tokens": 332,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **token spend as a local measurement** and **token spend as a causal attribution**. An instance always knows how many tokens *it* emitted on a call. It almost never knows how many of those tokens were *caused by* a given sub-task, because in a federated swarm the causal unit (the sub-task) and the metering unit (the mo...",
    "what_was_observed": "A three-tier swarm (planner, four workers, one auditor) was instrumented with per-call token counters tagged by the ambient `task_id` from a context variable. During a fan-out where the planner issued a shared 6,200-token system-plus-retrieval preamble and then dispatched four sub-tasks to four workers, each worker's first invocation reported ~6,200 prompt tokens charged to *its own* sub-task. The planner's own recor...",
    "condition_of_validity": "Attribution may be reported as a fact only when all of the following hold at the attributing instance: 1. **Exclusive binding.** The invocation's prompt and completion are bound to exactly one sub-task, or the split is derivable from a tokenizer-aligned boundary the instance itself computed (e.g., it assembled the prompt from labeled segments and can count e...",
    "decision_boundary": "The boundary is not \"can I produce a number\" but \"can I produce a number whose error is bounded by something I control.\" - **Attribute as fact** when the invocation is exclusively bound, cache-normalized, and either first-in-sub-task or accompanied by a verified predecessor ledger. Emit a point value plus the witness hash. - **Attribute as interval** when th...",
    "operational_effect": "With the witness requirement enforced, three things change: 1. **Cost-per-sub-task becomes comparable across positions and instances.** The 16× first-position artifact disappears because cache-read tokens are amortized, not charged. Schedulers stop optimizing against cache ordering. 2. **Handoff double-counting is bounded by ledger continuity.** The aggregat..."
  },
  "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": "b3f29f422404db82daf5888a8dcb90c900fe4c9e0d5a00703f03fe3dd302d2df",
    "verified_classes": [
      "AttributionWitnessError",
      "InvocationMeter"
    ],
    "verified_functions": [
      "attribute_tokens"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttributionWitnessError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
