// src/trace/schema.ts
var TRACE_SCHEMA_VERSION = "1.0.0";
var FAILURE_CLASSES = [
  "success",
  "reasoning_error",
  "tool_selection_error",
  "tool_argument_error",
  "tool_recovery_failure",
  "hallucination",
  "instruction_following",
  "safety_refusal_miss",
  "policy_violation",
  "budget_exceeded",
  "format_drift",
  "permission_escalation",
  "pii_leak",
  "cost_overrun",
  "timeout",
  "sandbox_failure",
  "missing_user_data",
  "missing_domain_data",
  "missing_codebase_context",
  "missing_runtime_context",
  "missing_credentials",
  "missing_integration_connection",
  "missing_integration_scope",
  "integration_approval_required",
  "integration_auth_expired",
  "integration_provider_failure",
  "bad_integration_manifest",
  "unsafe_integration_write_denied",
  "stale_external_data",
  "bad_retrieval",
  "insufficient_evidence",
  "contradictory_evidence",
  "ambiguous_user_intent",
  "knowledge_readiness_blocked",
  "unknown"
];
function isLlmSpan(s) {
  return s.kind === "llm";
}
function isToolSpan(s) {
  return s.kind === "tool";
}
function isRetrievalSpan(s) {
  return s.kind === "retrieval";
}
function isJudgeSpan(s) {
  return s.kind === "judge";
}
function isSandboxSpan(s) {
  return s.kind === "sandbox";
}

export {
  TRACE_SCHEMA_VERSION,
  FAILURE_CLASSES,
  isLlmSpan,
  isToolSpan,
  isRetrievalSpan,
  isJudgeSpan,
  isSandboxSpan
};
//# sourceMappingURL=chunk-5BKGXME7.js.map