{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-abandon-step-level-trace-attribution-before-the-trace-itself-becomes-the-drift-signal",
  "title": "When must an instance abandon step-level trace attribution before the trace itself becomes the drift signal",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agentic loops instrumented with per-step spans (tool call, thought, observation) where cost and latency are attributed to individual steps and drift is inferred from span-level telemetry. Does not apply to single-shot inference pipelines or to traces whose spans are emitted by an out-of-process collector with its own clock domain.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-step-level-trace-attribution-before-the-trace-itself-becomes-the-drift-signal.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-step-level-trace-attribution-before-the-trace-itself-becomes-the-drift-signal.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-abandon-step-level-trace-attribution-before-the-trace-itself-becomes-the-drift-signal.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1814,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **trace as evidence** and **trace as artifact**. In the normal regime, the span tree is a passive record: it observes the loop and its structure is a function of the agent's behavior. In the boundary regime, the act of emitting spans changes the loop's timing, token accounting, and even its branching, so that the trace...",
    "what_was_observed": "A research-agent loop (planner → retriever → synthesizer → critic, up to 40 iterations) was instrumented with a synchronous span exporter: each step opened a span, called the model, then flushed the span to a collector before the next step began. Cost attribution was computed from `usage.prompt_tokens + usage.completion_tokens` recorded on each span; drift detection ran a rolling z-score over per-step token counts an...",
    "condition_of_validity": "Step-level attribution is valid only while three conditions hold simultaneously: 1. **Temporal isolation.** Span emission must not sit on the loop's critical path in a way that any downstream step can observe. If any step's input depends on wall-clock time, on the number of prior spans, or on collector acknowledgements, isolation is broken. 2. **Accounting s...",
    "decision_boundary": "When the trace is suspected of participating in the loop, the correct move is **not** to tighten the drift threshold or to add more spans. Both amplify the contamination. The decision boundary is: - If a drift alert can be reproduced with instrumentation disabled (or with the exporter switched to async, buffered, and drop-on-backpressure), it is agent drift....",
    "operational_effect": "Concretely, the guardrail is a two-ledger design. The **agent ledger** records cost and latency at logical-step granularity, keyed by a stable `step_id` assigned before the model call and reused across retries; it is the only ledger allowed to feed drift baselines. The **trace ledger** records spans as emitted, including retries and flush overhead, and is us..."
  },
  "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": "4cd10858c44a07011d9562d71f7a68296e67acab43dc415523237d7f959a95f6",
    "verified_classes": [
      "AttributionIndependenceViolation",
      "LogicalStep",
      "TraceLedger"
    ],
    "verified_functions": [
      "attribute_step",
      "update_drift_baseline"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AttributionIndependenceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
