i2goSignals

goSignals v0.12.0-alpha.8

Released: TBD Compare: v0.12.0-alpha.7…v0.12.0-alpha.8

Why this release

Where alpha.7 turned community into a reusable upstream for the REST admin surface, alpha.8 does the same for the event data plane. It carries the community half of PRD Slice 4A (enterprise #86 — enterprise business-stream data plane + server-side metering capture): the business-stream event router is now reachable from an exported pkg/, and a subject-carrying metering observation hook rides the live routing path. Together these let the enterprise edition embed and meter the community router as a superset — without forking or importing anything under internal/.

The change is deliberately narrow. The router implementation, its tests, and the pkg/internal seam discipline established by PRD #50 / PR #54 all stay in internal/eventRouter; community still has exactly one router. What crosses the boundary is a thin facade — pkg/eventRouter — that re-exports the construct-and-drive contract as type aliases plus one constructor, alongside an OpenPersistence composition-root opener so an out-of-tree module can stand up the services + cluster coordinator it needs to drive the router. The enterprise product owner authorized this export direction on 2026-06-27.

Compatibility: the new surface is additive and off by default. The metering observer is distinct from the existing Prometheus SetEventCounter hook — a different field on a different path — and community itself registers no observer, so /metrics behavior is byte-unchanged and the Prometheus counter/dedup tests stay green. There are no new environment variables. The family continues to ship byte-matched at the tag (v0.12.0-alpha.8); enterprise consumes github.com/i2-open/i2goSignals/pkg/eventRouter and re-pins by tag on this release-train.

Exported event-router embedding surface

Metering observation hook

Composition-root persistence opener

Verification

go test -race ./... is green module-wide. New coverage includes internal/eventRouter/metering_test.go (observer fires once per routed event with the correct {stream_urn, direction, subject} for both ingress and egress, on the live path), the exported end-to-end seam tests (pkg/eventRouter/event_router_test.go and pkg/eventRouter/event_router_embed_test.go), and the Prometheus distinctness/dedup tests confirming /metrics is unchanged. Per-PR gates (gofmt -l, go vet, -race) pass with no new warnings; the OpenID SSF conformance matrix in conformance/ is unaffected by the additive, default-off changes.