Skip to main content
  • Version 0.1.0
  • Purity pure zero-dep (browser-safe; only external dep is zod, no node:* / OTel / DB / network)
  • Purpose The typed substrate every observability surface shares: the orchestration-event Zod schema, the runtime-error taxonomy, the pure graph + fleet-health projection reducers, metric folds, and the adapter-agnostic structured-output judge drive.
  • Workspace deps none
  • External deps zod ^3.25.0
The OTel SDK is NEVER imported here; it is lazy-loaded server-side only when an OTLP endpoint is configured. DB persistence (appendEvent/listEvents) lives in @clawboo/db; the gated emit/trace helpers live in apps/web/server/lib/obs. This package is purely the schema + pure-fold layer. The barrel re-exports six module groups: ./events/schema, ./log/schema, ./taxonomy/errors, ./project/graph, ./metrics, ./judge/drive. The package exposes a single . entry point (no subpath exports).

Public API

Functions

Types & interfaces

events / log taxonomy project / graph metrics judge / drive

Constants

Classes

None, this package exports only functions, types/interfaces, and constants.

Used by

  • @clawboo/db: events/appendEvent.ts + events/listEvents.ts (the insert-only event store persisting OrchestrationEvent).
  • @clawboo/evals: graders/model.ts (the structured-output judge for the model grader) + graders/code.ts.
  • apps/web (server): lib/obs/{index,logger}.ts (the gated emitEvent/withTaskSpan/structured-log helpers), lib/executorRunner.ts (error-taxonomy classification + event emit on terminals), lib/verification/critic.ts (the shared judge drive), api/obs.ts (/api/obs/* reads: projectGraph/projectFleetHealth/summarizeMetrics).

Source

Barrel: packages/obs/src/index.ts (re-exports ./events/schema, ./log/schema, ./taxonomy/errors, ./project/graph, ./metrics, ./judge/drive).

See also

Last modified on June 26, 2026