Skip to content

kernel observer: root-level observability with OTel-aligned levels#32

Merged
JaimeStill merged 2 commits intomainfrom
25-kernel-observer
Feb 18, 2026
Merged

kernel observer: root-level observability with OTel-aligned levels#32
JaimeStill merged 2 commits intomainfrom
25-kernel-observer

Conversation

@JaimeStill
Copy link
Copy Markdown
Contributor

Summary

Promotes orchestrate/observability/ to a root-level observability/ package with OTel-compatible severity levels, integrates the Observer pattern into the kernel runtime loop replacing the ad-hoc *slog.Logger, and migrates all orchestrate imports.

Closes #25

Changes

  • New observability/ package — Foundation-level (Level 0) with Observer interface, Event struct, OTel-aligned Level type (values ARE OTel SeverityNumbers), SlogObserver, NoOpObserver, MultiObserver, and global registry
  • Kernel observer integration — Replace *slog.Logger with observability.Observer, add WithObserver option, 7 kernel event types, default SlogObserver(slog.Default())
  • Orchestrate migration — All imports updated from orchestrate/observability to observability, Level field added to all event emissions, new node.state event separates state snapshots from node.complete
  • Decentralized event types — Each package defines its own event type constants (orchestrate/state/events.go, orchestrate/workflows/events.go, kernel/observer.go)
  • 100% test coverage on new observability package, all existing tests updated and passing

Promotes orchestrate/observability to a root-level package with OTel-compatible
severity levels, integrates Observer into the kernel runtime loop replacing
*slog.Logger, and migrates all orchestrate imports.
@JaimeStill JaimeStill merged commit b7894e7 into main Feb 18, 2026
2 checks passed
@JaimeStill JaimeStill deleted the 25-kernel-observer branch February 18, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kernel observer

1 participant