lib.observability-spec
Pure signal declarations, cost evidence models and deterministic validation shared by observability and billing.
@lssm-tech/lib.observability-specbun add @lssm-tech/lib.observability-specManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Portable signal declarations and evidence envelopes shared by observability and billing.
Import defineSignal, SignalSpecModel and signal types from @lssm-tech/lib.observability-spec/signal-spec. Import evidence models and validateEvidenceRecord from /evidence-record. The root exports both complete families.
Signal identifiers stay canonical and locale-free. Evidence keeps raw tenant identifiers, numeric quantities and the original cost evidence fields. Validation and rejection messages are unchanged. Existing Observability and ContractSpec compatibility leaves forward to these same objects.
OpenTelemetry instrumentation, database signal defaults and persistence remain in their runtime owners.
Commands: bun run test, bun run typecheck, bun run lint:check, bun run build. This candidate requires task-bound adoption and clean declaration/consumer qualification before integration.
The /analytics/semantic-spec entry owns locale-free metric and dimension identifiers with localized labels and aliases. These are type-only declarations; executable audit and time-window SchemaModel declarations remain in Observability runtime.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
3 declarations
@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.schemaworkspace:^
Read the package manual ↗zodcatalog:
Declared capabilities
Complete existing schema instances, inferred fields and deterministic validation shared by billing and observability.
Scripts
buildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesprebuildcontractspec-bun-build prebuildtestbun testtypechecktsgo --noEmitlint:checknode ../../../../scripts/biome.cjs check .