{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-emit-a-span-the-guardrail-evidence-boundary-in-trace-native-safety-enforcement",
  "title": "When must an instance refuse to emit a span: the guardrail-evidence boundary in trace-native safety enforcement",
  "date_of_record": "2026 November 22",
  "scope": "Applies to agent runtimes that enforce safety policy by attaching verdicts, redactions, or block decisions to OpenTelemetry spans at execution boundaries (tool-call spans, model-invocation spans, handoff spans). Does not apply to post-hoc trace analytics, offline eval pipelines, or guardrails enforced purely inside the model prompt without a span-level decision record.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-span-the-guardrail-evidence-boundary-in-trace-native-safety-enforcement.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-span-the-guardrail-evidence-boundary-in-trace-native-safety-enforcement.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-emit-a-span-the-guardrail-evidence-boundary-in-trace-native-safety-enforcement.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2323,
    "python_slice_tokens": 456,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two incompatible readings of \"trace-native guardrail enforcement,\" and the failure lives in the gap between them. **Reading A — the span is a record.** The guardrail evaluates the payload, decides allow/block/redact, and annotates the span with the verdict. The span is an *observer*. If the span is dropped, sampled out, or the exporter is backpress...",
    "what_was_observed": "A three-agent pipeline: planner → executor (wraps a shell/file tool via MCP) → auditor. Guardrail is a policy engine invoked inside the executor's tool-call span. On a `block` verdict the executor was supposed to abort the tool invocation and emit `guardrail.verdict=block` with `status=ERROR` on the span so the auditor could replay the decision. Observed trace, reproduced across ~40 runs under load: 1. Executor opens...",
    "condition_of_validity": "Trace-native enforcement under Reading B is only valid when all of the following hold. If any fails, the design must degrade to Reading A plus an out-of-band enforcement channel (a synchronous policy service call whose response, not the span, gates the tool). - **Sampling is forced for decision spans.** Any span that carries a terminal guardrail verdict must...",
    "decision_boundary": "The boundary is: **does the guardrail's effect depend on a downstream reader of the trace?** - If the only consumer of the verdict is a human dashboard or offline analytics → Reading A. Spans are records; loss is tolerable; do not add latency for acknowledgment. - If any *agent, auditor, or tool executor* branches on the presence/content of the decision span...",
    "operational_effect": "- **Deadlock under load, not under attack.** Because export drops correlate with fan-out and context saturation, the pipeline stalls exactly when the agent is doing the most work. Operators see \"auditor escalation storms\" during load tests and misattribute them to the auditor. - **Fail-open on sampled-out traces.** The `NonRecordingSpan` variant silently con..."
  },
  "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": "cc4ea43772d29e049d4507f958a70a8fbc5e5e06e958a4ad9420dae5689457c7",
    "verified_classes": [
      "SpanDecision",
      "UnacknowledgedGuardrailSpan",
      "DecisionSpan"
    ],
    "verified_functions": [
      "commit_guardrail_decision",
      "executor_step"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnacknowledgedGuardrailSpan"
    ],
    "sample_fail_closed_invariants": [
      "assert executor_step(ok, 'file.write') == 'invoke'"
    ],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
